Professional Documents
Culture Documents
dMeNaHRsay
Coding
Option Explicit
+ isDuplicatedID( )
+ cmdCancel_Click
txtProductID.Text = ""
txtProductID.SetFocus
txtProductName.Text = ""
txtCategory.Text = ""
txtQuantity.Text = "0"
End If
+ isDuplicatedID()
+ isNotPCatID()
+ cmdNewCategory_Click()
+ Sub cmdCancel_Click()
+ cboEmployeeID_Click()
+ cmdReceived_Click()
+ cboProductID_Click()
Rs.Open "Select * from Product where ProID='" & cboProductID.Text & "'",
conn, adOpenDynamic, adLockReadOnly
If Rs.EOF = False Then
lblProductName.Caption = Rs.Fields("ProName")
End If
Rs.Close
End Sub
+ cmdReceivedItem_Click()
'Calucalate Amount
txtReceivedDate.Enabled = False
End If
If isNotValidInput = True Then
MsgBox Msg, , "Validate Input"
End If
End Sub
cboCustomer.Clear
lblCustomerName.Caption = ""
lblCustomerAddress.Caption = ""
cboEmployeeID.Clear
lblEmployeeName.Caption = ""
lblFunction.Caption = ""
End Sub
+ Sub cboCustomer_Click()
+ cboEmployeeID_Click()
+ cboProductID_Click()
+ cmdSale_Click()
txtSaleDate.Enabled = False
cboCustomer.Enabled = False
cboEmployeeID.Enabled = False
txtRegion.Enabled = False
cmdSale.Enabled = False
cboProductID.Enabled = True
txtQuantity.Enabled = True
txtUnitPrice.Enabled = True
cmdSaleItem.Enabled = True
End If
End Sub
+ cmdSaleItem_Click()
End Function
tvProductCategory.Nodes.Clear
tvProductCategory.Nodes.Add , , "PCatID", "Product Category"
End Sub
Rs.Close
End Sub