亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? frmoption1.frm

?? 用vb寫的飲食管理系統(tǒng)功能全面
?? FRM
?? 第 1 頁 / 共 2 頁
字號:
  End If
  
  If Val(txtCompanyLen) < 2 Then
     txtCompanyLen = 8
  End If
  
  SaveSetting App.EXEName, "Option", "Company", txtCompany
  SaveSetting App.EXEName, "Option", "CompanyLen", txtCompanyLen
  
  sCompany = txtCompany
  lCompany = Val(txtCompanyLen)
  
  Unload Me
  
End Sub

Private Sub cmdSelectType_Click()

   Load frmSelectType
   frmSelectType.Left = frmOption1.cmdSelectType.Left + frmOption1.Left + frmOption1.cmdSelectType.Width
   frmSelectType.Top = frmOption1.cmdSelectType.Top + frmOption1.Top + frmOption1.cmdSelectType.Height + 750

   frmSelectType.Show 1
   
   If sType <> "" Then
      cmbType.Text = sType
      If cmdAdd.Enabled = True Then cmdAdd.SetFocus
   End If

End Sub

Private Sub cmdSelectUnit_Click()

   Load frmSelectUnit
   frmSelectUnit.Left = frmOption1.cmdSelectUnit.Left + frmOption1.Left + frmOption1.cmdSelectUnit.Width
   frmSelectUnit.Top = frmOption1.cmdSelectUnit.Top + frmOption1.Top + frmOption1.cmdSelectUnit.Height + 750

   frmSelectUnit.Show 1
   
   If sUnit <> "" Then
      txtDW.Text = sUnit
      txtCode.SetFocus
   End If
   
End Sub

Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)

 If pic2.Visible = True Then
    If KeyCode = 46 Then 'Del
      If Shift = 1 Then
         DelRecord Grid1.Text, "名稱", "EatList"
       ' 刷新數(shù)據(jù)
         Grid1.RemoveItem Grid1.Row
      Else
       cmdDel.Value = True
      End If
    End If
    Exit Sub
 End If
 If pic3.Visible = True Then
    If KeyCode = 46 Then 'Del
       cmdDelLine.Value = True
    End If
    Exit Sub
 End If
  
End Sub

Private Sub Form_Load()
  
  FO = True
  On Error GoTo Err_Load
  Dim L As Long, T As Long
  L = Val(GetSetting(App.EXEName, "Option", "Option_L", 2000))
  T = Val(GetSetting(App.EXEName, "Option", "Option_T", 2000))
  Me.Left = L
  Me.Top = T

    Screen.MousePointer = 11
  ' 配置網(wǎng)格
    ConfigGrid
  
  ' 配置名稱
    txtCompany = sCompany
    txtCompanyLen = lCompany
    
   Screen.MousePointer = 0
  Exit Sub
Err_Load:
 MsgBox "表單加載錯誤!    " & vbCrLf & vbCrLf & Err.Description, vbCritical
 
End Sub

Private Sub Form_Unload(Cancel As Integer)

 FO = False
 SaveSetting App.EXEName, "Option", "Option_L", Me.Left
 SaveSetting App.EXEName, "Option", "Option_T", Me.Top
 
End Sub

Private Sub txtAddLine_Change()

 If txtAddLine <> "" Then
    cmdAddLine.Enabled = True
  Else
    cmdAddLine.Enabled = False
 End If
 
End Sub

Private Sub txtAddLine_KeyPress(KeyAscii As Integer)

 If KeyAscii = 13 Then
    If cmdAddLine.Enabled = True Then cmdAddLine.Value = True
 End If
 
End Sub

Private Sub Picture1_Click()

End Sub

Private Sub txtCode_Change()

 If txtPM <> "" And txtDJ <> "" And txtCode <> "" Then
     cmdAdd.Enabled = True
    Else
     cmdAdd.Enabled = False
  End If
  
End Sub

Private Sub txtCode_GotFocus()
  
  txtCode.SelStart = 0
  txtCode.SelLength = Len(txtCode)
  
End Sub

Private Sub txtCode_KeyDown(KeyCode As Integer, Shift As Integer)

  DirectFocus txtDW, cmbType, txtCode, txtCode, KeyCode
  
End Sub

Private Sub txtCompany_GotFocus()

  txtCompany.SelStart = 0
  txtCompany.SelLength = Len(txtCompany)
  
End Sub

Private Sub txtCompany_KeyPress(KeyAscii As Integer)

End Sub

Private Sub txtCompanyLen_GotFocus()

  txtCompanyLen.SelStart = 0
  txtCompanyLen.SelLength = Len(txtCompany)
  
End Sub

Private Sub txtCompanyLen_KeyPress(KeyAscii As Integer)

If (KeyAscii > 46 And KeyAscii < 58 And KeyAscii <> 47) Or KeyAscii = 8 Then
    Exit Sub
 Else
   KeyAscii = 0
End If

End Sub

Private Sub txtDJ_Change()

If txtPM <> "" And txtDJ <> "" And txtCode <> "" Then
     cmdAdd.Enabled = True
    Else
     cmdAdd.Enabled = False
  End If
  
End Sub

Private Sub txtDJ_GotFocus()

  txtDJ.SelStart = 0
  txtDJ.SelLength = Len(txtDJ)
  
End Sub

Private Sub txtDJ_KeyDown(KeyCode As Integer, Shift As Integer)

DirectFocus txtPM, txtDW, txtDJ, txtDJ, KeyCode

End Sub

Private Sub txtDJ_KeyPress(KeyAscii As Integer)

If (KeyAscii > 45 And KeyAscii < 58 And KeyAscii <> 47) Or KeyAscii = 8 Then
   If KeyAscii = 46 And InStr(1, txtDJ, ".", vbBinaryCompare) > 0 Then '為小數(shù)點時
      KeyAscii = 0
   End If
      Exit Sub
   Else
   KeyAscii = 0
End If

End Sub

Private Sub txtDW_GotFocus()
  
  txtDW.SelStart = 0
  txtDW.SelLength = Len(txtDW)
  
End Sub

Private Sub txtDW_KeyDown(KeyCode As Integer, Shift As Integer)

 DirectFocus txtDJ, txtCode, txtDW, txtDW, KeyCode

End Sub

Private Sub txtDW_KeyPress(KeyAscii As Integer)

 If KeyAscii = 13 And Trim(txtDW) <> "" Then
    KeyAscii = 0
    txtCode.SetFocus
  Else
    KeyAscii = 0
    cmdSelectUnit.Value = True
 End If
 
End Sub

Private Sub txtJE_Change()

 If txtJE = "" Then
   txtJE = "0"
   txtJE.SelStart = 0
   txtJE.SelLength = Len(txtJE)
 End If
 
End Sub

Private Sub txtJE_GotFocus()

 txtJE.SelStart = 0
 txtJE.SelLength = Len(txtJE)
 
End Sub

Private Sub txtJE_KeyPress(KeyAscii As Integer)

If (KeyAscii > 45 And KeyAscii < 58 And KeyAscii <> 47) Or KeyAscii = 8 Then
   If KeyAscii = 46 And InStr(1, txtJE, ".", vbBinaryCompare) > 0 Then '為小數(shù)點時
      KeyAscii = 0
   End If
      Exit Sub
 Else
   KeyAscii = 0
End If

End Sub

Private Sub txtJE_LostFocus()

 If txtJE = "0" Then
    txtJE = "4.0"
 End If
 
End Sub

Private Sub txtJS_Change()

 If txtJS = "" Then
   txtJS = "0"
   txtJS.SelStart = 0
   txtJS.SelLength = Len(txtJS)
 End If
 
End Sub

Private Sub txtJS_GotFocus()

 txtJS.SelStart = 0
 txtJS.SelLength = Len(txtJS)
 
End Sub

Private Sub txtJS_KeyPress(KeyAscii As Integer)

If (KeyAscii > 47 And KeyAscii < 58) Or KeyAscii = 8 Then
   Exit Sub
 Else
   KeyAscii = 0
End If

End Sub

Private Sub txtJS_LostFocus()

 If txtJS = "0" Then
    txtJS = "15"
 End If
 
End Sub

Private Sub txtPM_Change()

  If txtPM <> "" And txtDJ <> "" And txtCode <> "" Then
     cmdAdd.Enabled = True
    Else
     cmdAdd.Enabled = False
  End If
  
End Sub

Private Sub txtPM_GotFocus()

  txtPM.SelStart = 0
  txtPM.SelLength = Len(txtPM)
  
End Sub

Private Sub txtPM_KeyDown(KeyCode As Integer, Shift As Integer)

 DirectFocus txtPM, txtDJ, txtPM, txtPM, KeyCode

End Sub


Private Sub ConfigGrid()

On Error GoTo Err_init
Grid1.Visible = False
Grid1.Clear
Grid1.Cols = 6
Grid1.FormatString = "^ .. |^ 物品名稱 |^ 單價 |^ 單位 |^ 代碼 |^ 類別 "
Grid1.ColWidth(0) = 300
Grid1.ColWidth(1) = 1800
Grid1.ColWidth(2) = 600
Grid1.ColWidth(3) = 800
Grid1.ColWidth(4) = 1000
Grid1.ColWidth(5) = 1030

Dim DB As Database, EF As Recordset, HH As Integer, DelNO As Long
Dim shiftStr As String, shiftStrL As String, shiftStrR As String, shiftNum As Integer, ili As Integer, tempStr As String, SureStr As String, Qy As Integer
    Set DB = OpenDatabase(ConData, False, False, Constr)
    'Set DB = OpenConnection(ConData, dbDriverNoPrompt, False, ConStr)
    
    Set EF = DB.OpenRecordset("EatList", dbOpenTable)
        DelNO = EF.RecordCount
        Grid1.Rows = EF.RecordCount + 1
    Set EF = DB.OpenRecordset("EatList", dbOpenDynaset)
        HH = 1
        Do While Not EF.EOF()
           Grid1.Row = HH
           Grid1.Col = 0
           Grid1.CellAlignment = 4
        If Not IsNull(EF.Fields(0).Value) Then
           Grid1.Text = EF.Fields(0).Value
        End If
           Grid1.Row = HH
           Grid1.Col = 1
           Grid1.CellAlignment = 1
        If Not IsNull(EF.Fields(1).Value) Then
           Grid1.Text = EF.Fields(1).Value
        End If
           Grid1.Row = HH
           Grid1.Col = 2
           Grid1.CellAlignment = 1
        If Not IsNull(EF.Fields(3).Value) Then
           Grid1.Text = EF.Fields(3).Value
        End If
           Grid1.Row = HH
           Grid1.Col = 3
           Grid1.CellAlignment = 1
        If Not IsNull(EF.Fields(2).Value) Then
           Grid1.Text = EF.Fields(2).Value
        End If
           Grid1.Row = HH
           Grid1.Col = 4
           Grid1.CellAlignment = 1
        If Not IsNull(EF.Fields(4).Value) Then
           Grid1.Text = EF.Fields(4).Value
        End If
           Grid1.Row = HH
           Grid1.Col = 5
           Grid1.CellAlignment = 1
        If Not IsNull(EF.Fields(5).Value) Then
           Grid1.Text = EF.Fields(5).Value
        End If
        
          EF.MoveNext
          HH = HH + 1
        Loop
        EF.Close
        DB.Close
 Grid1.Col = 1
 Grid1.Row = 1
 Grid1.ColSel = 5
 Grid1.Visible = True
   Exit Sub
Err_init:
 MsgBox "網(wǎng)絡配置錯誤!    " & vbCrLf & vbCrLf & Err.Description, vbCritical
 
End Sub

Private Sub DelRecord(sWP As String, sFields As String, sTable As String)

   On Error GoTo Err_init
   Dim DB As Database
   Dim sEXE As String
   
   Set DB = OpenDatabase(ConData, False, False, Constr)
   'Set DB = OpenConnection(ConData, dbDriverNoPrompt, False, ConStr)
   
   ' SQL語言刪除
     sEXE = "Delete * From " & sTable & " Where " & sFields & "='" & sWP & "'"
     DBEngine.BeginTrans     ' 進行事務操作
     DB.Execute sEXE
     DBEngine.CommitTrans
     DB.Close
          Exit Sub
Err_init:
 MsgBox "記錄刪除錯誤!    " & vbCrLf & vbCrLf & Err.Description, vbCritical
 
End Sub

Private Sub AddRecord(sWP1 As String, sFields1 As String, sWP2 As Currency, sFields2 As String, sWP3 As String, sFields3 As String, sWP4 As String, sFields4 As String, sWP5 As String, sFields5 As String, sTable As String)

  On Error GoTo Err_init
   Dim DB As Database
   Dim sEXE As String
   
   Set DB = OpenDatabase(ConData, False, False, Constr)
   'Set DB = OpenConnection(ConData, dbDriverNoPrompt, False, ConStr)
   
   ' SQL語言刪除
     sEXE = "Insert into " & sTable & " (" & sFields1 & "," & sFields2 & "," & sFields3 & "," & sFields4 & "," & sFields5 & ") values('" & sWP1 & "'," & sWP2 & ",'" & sWP3 & "','" & sWP4 & "','" & sWP5 & "')"
     DBEngine.BeginTrans     ' 進行事務操作
     DB.Execute sEXE
     DBEngine.CommitTrans
     DB.Close
          Exit Sub
Err_init:
 MsgBox "添加記錄錯誤!    " & vbCrLf & vbCrLf & Err.Description, vbCritical
 
End Sub

Private Function GetCode(sWP As String, sFields As String, sTable As String) As Boolean

  On Error GoTo Err_init
   Dim DB As Database
   Dim EF As Recordset
   Dim sEXE As String
   
   Set DB = OpenDatabase(ConData, False, False, Constr)
   'Set DB = OpenConnection(ConData, dbDriverNoPrompt, False, ConStr)
   
   ' SQL語言刪除
     sEXE = "Select * From " & sTable & " Where " & sFields & "='" & sWP & "'"
   Set EF = DB.OpenRecordset(sEXE, dbOpenDynaset)
     If EF.EOF And EF.BOF Then
        GetCode = True
      Else
        GetCode = False
     End If
     EF.Close
     DB.Close
     Exit Function
     
Err_init:
 MsgBox "添加記錄錯誤!    " & vbCrLf & vbCrLf & Err.Description, vbCritical
 GetCode = False
 
End Function

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
av网站一区二区三区| 热久久一区二区| 成人一二三区视频| 欧美国产乱子伦| 播五月开心婷婷综合| 亚洲日本va午夜在线影院| 91免费版在线看| 午夜久久久久久| 日韩欧美激情在线| 成人综合激情网| 亚洲摸摸操操av| 欧美一级二级三级蜜桃| 韩国v欧美v日本v亚洲v| 国产精品久久久久四虎| 在线免费观看日本一区| 免费看欧美美女黄的网站| 久久精品日产第一区二区三区高清版 | 国产精品不卡一区二区三区| 一本色道亚洲精品aⅴ| 天天综合色天天| 精品动漫一区二区三区在线观看| 国产91精品精华液一区二区三区 | 一区二区三区四区av| 91精品欧美综合在线观看最新| 九九九精品视频| 亚洲欧洲在线观看av| 欧美精品日韩精品| 国产成人激情av| 亚洲成在人线在线播放| 久久精品日产第一区二区三区高清版| 91性感美女视频| 韩国女主播成人在线观看| 亚洲码国产岛国毛片在线| 精品乱人伦小说| 欧美亚洲综合网| 成人永久免费视频| 奇米在线7777在线精品| 1区2区3区欧美| 欧美精品一区二区三区久久久| 色999日韩国产欧美一区二区| 黄色精品一二区| 五月天婷婷综合| 亚洲免费毛片网站| 国产欧美一区在线| 精品少妇一区二区三区在线视频| 色素色在线综合| 国产精品2024| 看电影不卡的网站| 亚洲成人av中文| 亚洲摸摸操操av| 中文字幕一区二区三区在线观看| 日韩欧美国产系列| 欧美区在线观看| 欧美午夜寂寞影院| 91麻豆swag| av电影天堂一区二区在线| 国产一区二区三区国产| 美女脱光内衣内裤视频久久网站| 亚洲高清免费观看高清完整版在线观看 | 国产成人午夜高潮毛片| 麻豆freexxxx性91精品| 丝袜诱惑亚洲看片| 亚洲国产日韩一区二区| 亚洲精品免费在线观看| 日韩理论在线观看| 成人免费在线播放视频| 国产精品久久久久久久岛一牛影视| 日韩免费视频一区二区| 在线播放亚洲一区| 欧美猛男超大videosgay| 欧美亚洲综合在线| 欧美色视频在线| 欧美日韩一区二区三区在线| 在线观看一区二区精品视频| 91福利精品第一导航| 一本一道久久a久久精品| 色香蕉久久蜜桃| 欧美性大战久久久久久久| 在线观看日产精品| 欧美狂野另类xxxxoooo| 91精品午夜视频| 精品国产不卡一区二区三区| 久久尤物电影视频在线观看| 久久亚洲影视婷婷| 国产亚洲欧美激情| 中文幕一区二区三区久久蜜桃| 欧美国产欧美亚州国产日韩mv天天看完整| 久久色成人在线| 国产精品对白交换视频| 樱桃视频在线观看一区| 亚洲成人第一页| 久久激情五月激情| 成人精品国产一区二区4080| 99vv1com这只有精品| 欧美视频三区在线播放| 日韩一区二区三区视频在线| 精品sm在线观看| 中文字幕亚洲区| 亚洲国产精品一区二区www| 奇米一区二区三区| 国产成人在线网站| 在线视频国产一区| 欧美成人三级电影在线| 国产精品久久久久天堂| 五月开心婷婷久久| 国产乱码精品一区二区三区五月婷| 波多野结衣精品在线| 欧美日本精品一区二区三区| 久久久99精品免费观看不卡| 尤物av一区二区| 国产一区二区三区av电影| 91视频在线观看| 日韩午夜小视频| 国产精品国产自产拍高清av| 婷婷六月综合网| 国产91对白在线观看九色| 精品视频在线免费观看| 久久久久9999亚洲精品| 亚洲一区二区三区四区不卡 | 高清shemale亚洲人妖| 在线观看日韩高清av| 久久精品综合网| 亚洲18色成人| 99久久免费国产| 亚洲精品一区二区三区蜜桃下载 | 欧美在线不卡视频| 欧美成人福利视频| 亚洲综合在线视频| 成人自拍视频在线观看| 日韩一区二区不卡| 亚洲制服欧美中文字幕中文字幕| 久久99国产精品久久99| 欧美亚洲日本一区| 国产精品国产三级国产有无不卡| 蜜臀国产一区二区三区在线播放| 一本色道久久综合亚洲aⅴ蜜桃| 欧美r级在线观看| 日韩精品三区四区| 欧洲一区二区av| 综合激情成人伊人| 国产v综合v亚洲欧| 精品动漫一区二区三区在线观看| 亚洲电影在线播放| 色偷偷久久一区二区三区| 国产欧美一区二区精品性| 精品在线播放免费| 欧美乱妇一区二区三区不卡视频| 国产精品欧美久久久久无广告| 日本乱人伦aⅴ精品| 欧美韩国日本综合| 国内精品视频一区二区三区八戒| 欧美日本一区二区三区| 一区二区三区中文在线观看| 成人一区二区三区视频在线观看 | 亚洲精品自拍动漫在线| 成人午夜在线播放| 国产色综合一区| 国产寡妇亲子伦一区二区| 精品国产乱码久久久久久影片| 日韩一区精品视频| 欧美精品 日韩| 午夜激情一区二区三区| 欧美日韩国产小视频| 亚洲v日本v欧美v久久精品| 欧美自拍偷拍一区| 亚洲国产精品天堂| 欧美精品乱码久久久久久| 天天av天天翘天天综合网色鬼国产| 色哟哟一区二区在线观看 | 亚洲一线二线三线久久久| 色综合久久精品| 亚洲图片欧美一区| 欧美色区777第一页| 午夜久久久影院| 欧美电视剧在线看免费| 精品亚洲国产成人av制服丝袜| 精品日韩99亚洲| 国产suv一区二区三区88区| 中文字幕av一区二区三区| 97久久精品人人爽人人爽蜜臀 | 一区二区国产视频| 欧美视频一区二区三区四区| 亚洲国产精品视频| 欧美一区二区三区系列电影| 麻豆精品国产91久久久久久 | 国产精品不卡一区| 欧美自拍偷拍一区| 美国三级日本三级久久99| 久久综合国产精品| 成人avav影音| 亚洲一级电影视频| 日韩免费福利电影在线观看| 国产在线乱码一区二区三区| 欧美国产精品一区| 欧美视频在线一区| 久久精品999| 综合在线观看色| 4hu四虎永久在线影院成人| 国产一区二区中文字幕| ...av二区三区久久精品|