NewMerchant.vb
- Public Class NewMerchant
- Dim ProgramName As String = My.Application.Info.AssemblyName
- Dim DataPath As String = System.Environment.CurrentDirectory & "\UAM"
- Dim ProductPath As String = DataPath & "\Products" '
- Dim ServicesPath As String = DataPath & "\Services"
- Dim CatPath As String = DataPath & "\Categories"
- Dim StoresPath As String = DataPath & "\Stores"
- Dim CustomersPath As String = DataPath & "\Customers"
- Dim CompanyPath As String = DataPath & "\Company"
- Dim MovmentPath As String = DataPath & "\Movment"
- Dim RequestsPath As String = DataPath & "\Requests"
- Dim VendorsPath As String = DataPath & "\Vendors"
- Dim BoxPath As String = DataPath & "\Box"
- Dim AlertsPath As String = DataPath & "\Alerts"
- Dim SettingsPath As String = DataPath & "\Settings"
- Dim MaxList As Integer = 0
- Dim FromList As Integer = 0
- Dim ToList As Integer = 0
- Private Shared NewMerchantInstance As NewMerchant
- Public Shared Function GetInstance() As NewMerchant
- If (NewMerchantInstance Is Nothing) Then
- NewMerchantInstance = New NewMerchant
- End If
- Return NewMerchantInstance
- End Function
- Private Sub NewMerchant_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
- MaxList = 0
- FromList = 0
- ToList = 0
- LoadVendors()
- End Sub
- Public Sub LoadVendors()
- Dim Addad As Integer = 0
- For Addad = 0 To My.Computer.FileSystem.GetDirectories(VendorsPath).Count - 1
- Dim VendorName As String = ""
- VendorName = My.Computer.FileSystem.GetDirectoryInfo(My.Computer.FileSystem.GetDirectories(VendorsPath).Item(Addad)).Name
- CNameTXT.Items.Add(VendorName)
- Next
- End Sub
- Public Sub CreateNewVendor()
- Dim CPath As String = VendorsPath & "\" & CNameTXT.Text
- Dim CName As String = CNameTXT.Text
- Dim CAddress As String = CAddressTXT.Text
- Dim CTel As String = CTelTXT.Text
- Dim CMail As String = CMailTXT.Text
- Dim CWeb As String = CWebTXT.Text
- Dim CJob As String = CJobTXT.Text
- Dim CJobAddress As String = CJobAddressTXT.Text
- If My.Computer.FileSystem.DirectoryExists(CPath) = False Then
- My.Computer.FileSystem.CreateDirectory(CPath)
- End If
- My.Computer.FileSystem.WriteAllText(CPath & "\name.dat", CName, False, System.Text.Encoding.GetEncoding(0))
- My.Computer.FileSystem.WriteAllText(CPath & "\address.dat", CAddress, False, System.Text.Encoding.GetEncoding(0))
- My.Computer.FileSystem.WriteAllText(CPath & "\tel.dat", CTel, False, System.Text.Encoding.GetEncoding(0))
- My.Computer.FileSystem.WriteAllText(CPath & "\mail.dat", CMail, False, System.Text.Encoding.GetEncoding(0))
- My.Computer.FileSystem.WriteAllText(CPath & "\web.dat", CWeb, False, System.Text.Encoding.GetEncoding(0))
- My.Computer.FileSystem.WriteAllText(CPath & "\job.dat", CJob, False, System.Text.Encoding.GetEncoding(0))
- My.Computer.FileSystem.WriteAllText(CPath & "\jobaddress.dat", CJobAddress, False, System.Text.Encoding.GetEncoding(0))
- My.Computer.FileSystem.WriteAllText(CPath & "\totaldept.dat", 0, False, System.Text.Encoding.GetEncoding(0))
- My.Computer.FileSystem.WriteAllText(CPath & "\totalpayment.dat", 0, False, System.Text.Encoding.GetEncoding(0))
- End Sub
- Public Sub LoadVendorInfo(ByRef CName As String)
- On Error Resume Next
- CNameTXT.Text = CName
- LV.Items.Clear()
- Dim CNamePath As String = VendorsPath & "\" & CName
- Dim Addad As Integer = 0
- CAddressTXT.Text = My.Computer.FileSystem.ReadAllText(CNamePath & "\address.dat", System.Text.Encoding.GetEncoding(0))
- CTelTXT.Text = My.Computer.FileSystem.ReadAllText(CNamePath & "\tel.dat", System.Text.Encoding.GetEncoding(0))
- CMailTXT.Text = My.Computer.FileSystem.ReadAllText(CNamePath & "\mail.dat", System.Text.Encoding.GetEncoding(0))
- CWebTXT.Text = My.Computer.FileSystem.ReadAllText(CNamePath & "\web.dat", System.Text.Encoding.GetEncoding(0))
- CJobTXT.Text = My.Computer.FileSystem.ReadAllText(CNamePath & "\job.dat", System.Text.Encoding.GetEncoding(0))
- CJobAddressTXT.Text = My.Computer.FileSystem.ReadAllText(CNamePath & "\jobaddress.dat", System.Text.Encoding.GetEncoding(0))
- If My.Computer.FileSystem.DirectoryExists(CNamePath & "\payment") = False Then GoTo CalcIt
- MaxList = My.Computer.FileSystem.GetDirectories(CNamePath & "\payment").Count
- If FromList = 0 Then FromList = MaxList
- ToList = FromList - 20
- If MaxList - ToList > MaxList Then
- ToList = 0
- End If
- For Addad = FromList - 1 To ToList Step -1
- 'For Addad = My.Computer.FileSystem.GetDirectories(CNamePath & "\payment").Count - 1 To 0 Step -1
- Dim WDir As String = My.Computer.FileSystem.GetDirectories(CNamePath & "\payment").Item(Addad)
- Dim DateFormat As String = My.Computer.FileSystem.ReadAllText(WDir & "\date.dat", System.Text.Encoding.GetEncoding(0))
- LV.Items.Add(DateFormat.Chars(0) & DateFormat.Chars(1) & DateFormat.Chars(2) & DateFormat.Chars(3) & "/" & DateFormat.Chars(4) & DateFormat.Chars(5) & "/" & DateFormat.Chars(6) & DateFormat.Chars(7) & " " & DateFormat.Chars(8) & DateFormat.Chars(9) & ":" & DateFormat.Chars(10) & DateFormat.Chars(11))
- LV.Items.Item(LV.Items.Count - 1).SubItems.Add(My.Computer.FileSystem.ReadAllText(WDir & "\pname.dat", System.Text.Encoding.GetEncoding(0)))
- LV.Items.Item(LV.Items.Count - 1).SubItems.Add(My.Computer.FileSystem.ReadAllText(WDir & "\pamount.dat", System.Text.Encoding.GetEncoding(0)))
- LV.Items.Item(LV.Items.Count - 1).SubItems.Add(My.Computer.FileSystem.ReadAllText(WDir & "\paymenttotal.dat", System.Text.Encoding.GetEncoding(0)))
- LV.Items.Item(LV.Items.Count - 1).SubItems.Add(My.Computer.FileSystem.ReadAllText(WDir & "\paydbl.dat", System.Text.Encoding.GetEncoding(0)))
- LV.Items.Item(LV.Items.Count - 1).SubItems.Add(My.Computer.FileSystem.ReadAllText(WDir & "\remaindbl.dat", System.Text.Encoding.GetEncoding(0)))
- Next
- SLBL.Text = MaxList - ToList & " من " & MaxList
- SLBL.Tag = 20
- CalcIt:
- Dim Total As Double = 0
- Dim Dept As Double = 0
- For Addad = 0 To My.Computer.FileSystem.GetDirectories(CNamePath & "\payment").Count - 1
- Total += Val(My.Computer.FileSystem.ReadAllText(My.Computer.FileSystem.GetDirectories(CNamePath & "\payment").Item(Addad) & "\paymenttotal.dat", System.Text.Encoding.GetEncoding(0)))
- Dept += Val(My.Computer.FileSystem.ReadAllText(My.Computer.FileSystem.GetDirectories(CNamePath & "\payment").Item(Addad) & "\remaindbl.dat", System.Text.Encoding.GetEncoding(0)))
- Next
- TotalPayment.Text = "قيمة المشتريات : " & Total & " " & My.Computer.FileSystem.ReadAllText(SettingsPath & "\maincurrency.dat", System.Text.Encoding.GetEncoding(0))
- TotaldebtTXT.Text = "باقي الديون : " & Dept & " " & My.Computer.FileSystem.ReadAllText(SettingsPath & "\maincurrency.dat", System.Text.Encoding.GetEncoding(0))
- 'Correct Main Dir :
- My.Computer.FileSystem.WriteAllText(VendorsPath & "\" & CName & "\totalpayment.dat", Total, False, System.Text.Encoding.GetEncoding(0))
- My.Computer.FileSystem.WriteAllText(VendorsPath & "\" & CName & "\totaldept.dat", Dept, False, System.Text.Encoding.GetEncoding(0))
- LV.AutoResizeColumns(ColumnHeaderAutoResizeStyle.HeaderSize)
- End Sub
- Private Sub CNameTXT_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles CNameTXT.KeyDown
- If e.KeyCode = Keys.Enter Then CAddressTXT.Select()
- End Sub
- Private Sub CNameTXT_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles CNameTXT.TextChanged
- If My.Computer.FileSystem.DirectoryExists(VendorsPath & "\" & CNameTXT.Text) = True And CNameTXT.Text <> "" Then
- LV.Items.Clear()
- MaxList = 0
- FromList = 0
- ToList = 0
- LoadVendorInfo(CNameTXT.Text)
- AddCBTN.Text = "تعديل"
- Refresher.Enabled = True
- Else
- Refresher.Enabled = False
- AddCBTN.Text = "إضافة"
- CAddressTXT.Text = ""
- CTelTXT.Text = ""
- CMailTXT.Text = ""
- CWebTXT.Text = ""
- CJobTXT.Text = ""
- CJobAddressTXT.Text = ""
- MaxList = 0
- FromList = 0
- ToList = 0
- LV.Items.Clear()
- End If
- End Sub
- Private Sub AddCBTN_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AddCBTN.Click
- TestText()
- CreateNewVendor()
- StartUp.CloseTabs()
- End Sub
- Public Sub TestText()
- 'test values to add errors to Alerts :
- Dim PName As String = CNameTXT.Text
- Dim WDir As String = ""
- '××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××
- If CAddressTXT.Text = "" Then
- StartUp.AlertsWriter(PName, "لم تقم بوضع عنوان التاجر " & PName & " , أنقر هنا لوضع عنوان التاجر", "M-add")
- Else
- WDir = AlertsPath & "\" & PName & "\M-add"
- If My.Computer.FileSystem.DirectoryExists(WDir) Then System.IO.Directory.Delete(WDir, True)
- End If
- '××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××
- If CTelTXT.Text = "" Then
- StartUp.AlertsWriter(PName, "لم تقم بوضع رقم هاتف التاجر " & PName & " , أنقر هنا لوضع رقم الهاتف", "M-tel")
- Else
- WDir = AlertsPath & "\" & PName & "\M-tel"
- If My.Computer.FileSystem.DirectoryExists(WDir) Then System.IO.Directory.Delete(WDir, True)
- End If
- '××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××
- If CMailTXT.Text = "" Then
- StartUp.AlertsWriter(PName, "لم تقم بوضع عنوان البريد الإلكتروني للتاجر " & PName & " , أنقر هنا لوضع عنوان البريد الإلكتروني", "M-mail")
- Else
- WDir = AlertsPath & "\" & PName & "\M-mail"
- If My.Computer.FileSystem.DirectoryExists(WDir) Then System.IO.Directory.Delete(WDir, True)
- End If
- '××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××
- If CWebTXT.Text = "" Then
- StartUp.AlertsWriter(PName, "لم تقم بوضع عنوان الموقع الإلكتروني للتاجر " & PName & " , أنقر هنا لوضع عنوان الموقع الإلكتروني", "M-web")
- Else
- WDir = AlertsPath & "\" & PName & "\M-web"
- If My.Computer.FileSystem.DirectoryExists(WDir) Then System.IO.Directory.Delete(WDir, True)
- End If
- '××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××
- If CJobTXT.Text = "" Then
- StartUp.AlertsWriter(PName, "لم تقم بتسجيل عمل التاجر " & PName & " , أنقر هنا لتعيين وظيفة التاجر", "M-job")
- Else
- WDir = AlertsPath & "\" & PName & "\M-job"
- If My.Computer.FileSystem.DirectoryExists(WDir) Then System.IO.Directory.Delete(WDir, True)
- End If
- '××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××
- If CJobAddressTXT.Text = "" Then
- StartUp.AlertsWriter(PName, "لم تقم بتعيين عنوان عمل التاجر " & PName & " , أنقر هنا لتعيين عنوان عمل التاجر", "M-jobaddress")
- Else
- WDir = AlertsPath & "\" & PName & "\M-jobaddress"
- If My.Computer.FileSystem.DirectoryExists(WDir) Then System.IO.Directory.Delete(WDir, True)
- End If
- '××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××
- StartUp.LoadAlerts()
- End Sub
- Private Sub LV_DoubleClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles LV.DoubleClick
- LoadProduct()
- End Sub
- Public Sub LoadProduct()
- If LV.SelectedItems.Count > 0 Then
- NewProduct.GetInstance.LoadProduct(LV.FocusedItem.SubItems(1).Text)
- StartUp.MainPanel.Controls.Clear()
- StartUp.MainPanel.Controls.Add(NewProduct.GetInstance())
- StartUp.AddNewTab(NewProduct.GetInstance.Tag, NewProduct.GetInstance.Name)
- End If
- End Sub
- Private Sub CancelBTN_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CancelBTN.Click
- MaxList = 0
- FromList = 0
- ToList = 0
- StartUp.CloseTabs()
- End Sub
- Private Sub NextBTN_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles NextBTN.Click
- If FromList > 20 Then FromList -= 20 : LoadVendorInfo(CNameTXT.Text)
- End Sub
- Private Sub PrevBTN_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PrevBTN.Click
- If FromList < MaxList Then FromList += 20 : LoadVendorInfo(CNameTXT.Text)
- End Sub
- Private Sub DeptBTN_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DeptBTN.Click
- Dim Addad As Integer = 0
- Dim Total As Double = 0
- Dim Dept As Double = 0
- Dim CNamePath As String = VendorsPath & "\" & CNameTXT.Text & "\payment"
- Dim WDir As String = ""
- Dim MyValue As Double = 0
- MyValue = Val(InputBox("أدخل المبلغ الذي ستقوم بتسديده للتاجر " & CNameTXT.Text, "تسديد دين للتاجر " & CNameTXT.Text, 0))
- For Addad = 0 To My.Computer.FileSystem.GetDirectories(CNamePath).Count - 1
- WDir = My.Computer.FileSystem.GetDirectories(CNamePath).Item(Addad)
- Total += Val(My.Computer.FileSystem.ReadAllText(WDir & "\paymenttotal.dat", System.Text.Encoding.GetEncoding(0)))
- Dept += Val(My.Computer.FileSystem.ReadAllText(WDir & "\remaindbl.dat", System.Text.Encoding.GetEncoding(0)))
- Next
- If MyValue = Nothing Then GoTo Finish
- If MyValue > Dept Then MyValue = Dept
- For Addad = 0 To My.Computer.FileSystem.GetDirectories(CNamePath).Count - 1
- Dim YearSTR As String = Date.Now.Year
- Dim MonthSTR As String = Date.Now.Month
- Dim DaySTR As String = Date.Now.Day
- If MonthSTR.Length <= 1 Then MonthSTR = "0" & MonthSTR
- If DaySTR.Length <= 1 Then DaySTR = "0" & DaySTR
- Dim DateDir As String = MovmentPath & "\" & YearSTR & "\" & MonthSTR & "\" & DaySTR
- Dim LastDayInterValue As Double = 0
- Dim LastValue As Double = 0
- Dim LValue As Double = 0
- WDir = My.Computer.FileSystem.GetDirectories(CNamePath).Item(Addad)
- LastValue = Val(My.Computer.FileSystem.ReadAllText(WDir & "\remaindbl.dat", System.Text.Encoding.GetEncoding(0)))
- LValue = Val(My.Computer.FileSystem.ReadAllText(WDir & "\paydbl.dat", System.Text.Encoding.GetEncoding(0)))
- If LastValue > 0 Then
- If MyValue > LastValue Then
- My.Computer.FileSystem.WriteAllText(WDir & "\remaindbl.dat", 0, False, System.Text.Encoding.GetEncoding(0))
- My.Computer.FileSystem.WriteAllText(WDir & "\paydbl.dat", LastValue, False, System.Text.Encoding.GetEncoding(0))
- 'MsgBox(Addad & " , " & LastValue & " , " & LastValue & " , تم التسديد")
- '..............
- '..............
- '..............
- 'Write To Box :
- '..............
- '..............
- '..............
- 'money
- If My.Computer.FileSystem.FileExists(DateDir & "\money.dat") = True Then
- LastDayInterValue = Val(My.Computer.FileSystem.ReadAllText(DateDir & "\money.dat", System.Text.Encoding.GetEncoding(0)))
- Else
- LastDayInterValue = 0
- End If
- My.Computer.FileSystem.WriteAllText(DateDir & "\money.dat", LastDayInterValue - Val(LastValue), False)
- My.Computer.FileSystem.WriteAllText(BoxPath & "\money.dat", LastDayInterValue - Val(LastValue), False)
- 'capital
- If My.Computer.FileSystem.FileExists(DateDir & "\capital.dat") = True Then
- LastDayInterValue = Val(My.Computer.FileSystem.ReadAllText(DateDir & "\capital.dat", System.Text.Encoding.GetEncoding(0)))
- Else
- LastDayInterValue = 0
- End If
- My.Computer.FileSystem.WriteAllText(DateDir & "\capital.dat", LastDayInterValue - Val(LastValue), False)
- My.Computer.FileSystem.WriteAllText(BoxPath & "\capital.dat", LastDayInterValue - Val(LastValue), False)
- '..............
- '..............
- '..............
- 'Sub Salary :
- '..............
- '..............
- '..............
- MyValue = MyValue - LastValue
- Dept = Dept - LastValue
- Else
- My.Computer.FileSystem.WriteAllText(WDir & "\remaindbl.dat", LastValue - MyValue, False, System.Text.Encoding.GetEncoding(0))
- My.Computer.FileSystem.WriteAllText(WDir & "\paydbl.dat", MyValue + LValue, False, System.Text.Encoding.GetEncoding(0))
- 'MsgBox(Addad & " , " & LastValue & " , " & MyValue & " , تم التسديد والإنتهاء")
- '..............
- '..............
- '..............
- 'Write To Box :
- '..............
- '..............
- '..............
- 'money
- If My.Computer.FileSystem.FileExists(DateDir & "\money.dat") = True Then
- LastDayInterValue = Val(My.Computer.FileSystem.ReadAllText(DateDir & "\money.dat", System.Text.Encoding.GetEncoding(0)))
- Else
- LastDayInterValue = 0
- End If
- My.Computer.FileSystem.WriteAllText(DateDir & "\money.dat", LastDayInterValue - Val(MyValue), False)
- My.Computer.FileSystem.WriteAllText(BoxPath & "\money.dat", LastDayInterValue - Val(MyValue), False)
- 'capital
- If My.Computer.FileSystem.FileExists(DateDir & "\capital.dat") = True Then
- LastDayInterValue = Val(My.Computer.FileSystem.ReadAllText(DateDir & "\capital.dat", System.Text.Encoding.GetEncoding(0)))
- Else
- LastDayInterValue = 0
- End If
- My.Computer.FileSystem.WriteAllText(DateDir & "\capital.dat", LastDayInterValue - Val(MyValue), False)
- My.Computer.FileSystem.WriteAllText(BoxPath & "\capital.dat", LastDayInterValue - Val(MyValue), False)
- '..............
- '..............
- '..............
- 'Sub Salary :
- '..............
- '..............
- '..............
- Dept = Dept - MyValue
- MyValue = 0
- GoTo Finish
- End If
- End If
- Next
- Finish:
- My.Computer.FileSystem.WriteAllText(VendorsPath & "\" & CNameTXT.Text & "\totaldept.dat", Dept, False, System.Text.Encoding.GetEncoding(0))
- '
- LoadVendorInfo(CNameTXT.Text)
- End Sub
- Private Sub CAddressTXT_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles CAddressTXT.KeyDown
- If e.KeyCode = Keys.Enter Then CTelTXT.Select()
- End Sub
- Private Sub CTelTXT_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles CTelTXT.KeyDown
- If e.KeyCode = Keys.Enter Then CMailTXT.Select()
- End Sub
- Private Sub CMailTXT_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles CMailTXT.KeyDown
- If e.KeyCode = Keys.Enter Then CWebTXT.Select()
- End Sub
- Private Sub CWebTXT_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles CWebTXT.KeyDown
- If e.KeyCode = Keys.Enter Then CJobTXT.Select()
- End Sub
- Private Sub CJobTXT_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles CJobTXT.KeyDown
- If e.KeyCode = Keys.Enter Then CJobAddressTXT.Select()
- End Sub
- Private Sub CJobAddressTXT_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles CJobAddressTXT.KeyDown
- If e.KeyCode = Keys.Enter Then AddCBTN.Select()
- End Sub
- Private Sub CAddressTXT_LostFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles CAddressTXT.LostFocus
- Refresher.Enabled = True
- End Sub
- Private Sub CAddressTXT_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CAddressTXT.TextChanged
- Refresher.Enabled = False
- End Sub
- Private Sub CTelTXT_LostFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles CTelTXT.LostFocus
- Refresher.Enabled = True
- End Sub
- Private Sub CTelTXT_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CTelTXT.TextChanged
- Refresher.Enabled = False
- End Sub
- Private Sub CMailTXT_LostFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles CMailTXT.LostFocus
- Refresher.Enabled = True
- End Sub
- Private Sub CMailTXT_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CMailTXT.TextChanged
- Refresher.Enabled = False
- End Sub
- Private Sub CWebTXT_LostFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles CWebTXT.LostFocus
- Refresher.Enabled = True
- End Sub
- Private Sub CWebTXT_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CWebTXT.TextChanged
- Refresher.Enabled = False
- End Sub
- Private Sub CJobTXT_LostFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles CJobTXT.LostFocus
- Refresher.Enabled = True
- End Sub
- Private Sub CJobTXT_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CJobTXT.TextChanged
- Refresher.Enabled = False
- End Sub
- Private Sub CJobAddressTXT_LostFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles CJobAddressTXT.LostFocus
- Refresher.Enabled = True
- End Sub
- Private Sub CJobAddressTXT_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CJobAddressTXT.TextChanged
- Refresher.Enabled = False
- End Sub
- Private Sub Refresher_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Refresher.Tick
- LoadVendorInfo(CNameTXT.Text)
- End Sub
- Private Sub CNameTXT_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CNameTXT.SelectedIndexChanged
- End Sub
- End Class