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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? frmfp.frm

?? 廣翔稅務代理版打印,能制作非常復雜的報表.
?? FRM
?? 第 1 頁 / 共 2 頁
字號:
      Width           =   900
   End
End
Attribute VB_Name = "frmfp"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim zsbexcel As Excel.Application
Dim i As Integer
Dim fpmc(30) As String
Dim fpbm(30) As String
Const ASC_ENTER = 13 '回車
Dim gRow As Integer
Dim gCol As Integer

Private Sub Cmdback_Click()
Unload Me
End Sub

Private Sub cmdprint_Click()
'On Error GoTo errorhandler
Dim t As Integer
Dim j As Integer
Dim sum, sum1 As Integer
Set zsbexcel = New Excel.Application
 zsbexcel.Visible = True
 zsbexcel.SheetsInNewWorkbook = 1
  Set zsbworkbook = zsbexcel.Workbooks.Open(App.Path + "\" + "sheet\kyfp.xlt")
 With zsbexcel.ActiveSheet
.Range("C4").Value = Text11
If Text10 <= 25 Then
.Range("J3").Value = "第1頁"
.Range("K3").Value = "(共1頁)"
Else
End If
.Range("G4").Value = Text12
.Range("G3").Value = Format(DTPicker2, "yyyy-MM-dd")
sum = 0
sum1 = 0
For t = 1 To Grid1.Rows - 1
Grid1.Row = t
For j = 0 To 11
Grid1.Col = j
'If IsNull(Grid1.Text) = False Then
.Cells(t + 5, j + 1) = Grid1.Text
'End If
Next j
sum = Grid1.TextMatrix(t, 11) + sum
sum1 = Grid1.TextMatrix(t, 10) + sum1
Next t
.Cells(32, 12).Value = sum
.Cells(31, 12).Value = sum
.Cells(31, 11).Value = sum1
.Cells(32, 11).Value = sum1
.Cells(31, 2).Value = Text10 - 1
.Cells(32, 2).Value = Text10 - 1
End With
  'dd = MsgBox("yes or no", vbYesNo + vbSystemModal)
  'If dd = vbNo Then Exit Sub
 ' zsbexcel.ActiveSheet.PageSetup.Orientation = xlPortrait       'xlLandscape
  'zsbexcel.ActiveSheet.PageSetup.PaperSize = xlPaperA4
 zsbexcel.Caption = "打印預覽"
 zsbexcel.ActiveWindow.SelectedSheets.PrintPreview
  'zsbexcel.ActiveSheet.PrintOut
  zsbexcel.DisplayAlerts = False
  zsbexcel.Quit
  zsbexcel.DisplayAlerts = True
  Set zsbexcel = Nothing
  Exit Sub
'errorhandler:
   ' MsgBox "請正確安裝EXCEL!", vbOKOnly + vbCritical
  '  Exit Sub
End Sub

Private Sub cmdsave_Click()
'定義發票編碼
Dim X As Long
X = Combo1.ListIndex
fpbmc = fpbm(X)
'定義所屬日期
pdate = CStr(Format(DTPicker1, "yyyyMM"))
'保存到數據庫中
 On Error Resume Next
Dim db As Database, EF As Recordset, RecStr As String
DBEngine.BeginTrans
Set db = OpenDatabase(Con, False, False, ConStr)
Set EF = db.OpenRecordset("fp", dbOpenTable)
RecStr = "Insert into fp (printDate,fpbm,fplb,fpzg,fpqh,fpzh,kyqh,kyzh,yyqh,yyzh,zf,ys,qybm) values('" & pdate & "','" & fpbmc & "','" & Trim(Combo1.Text) & "','" & Trim(Text1.Text) & "','" & Trim(Text2.Text) & "','" & Trim(Text3.Text) & "','" & Trim(Text4.Text) & "','" & Trim(Text5.Text) & "','" & Trim(Text6.Text) & "','" & Trim(Text7.Text) & "','" & Trim(Text8.Text) & "','" & Trim(Text9.Text) & "','" & frmqy.qybm & "')"
db.Execute RecStr
db.Close
DBEngine.CommitTrans
'重新導入網格
Loadfp
start
End Sub

Private Sub Command1_Click()
DeleteRecord
End Sub

Private Sub Command3_Click()
Loadfp
End Sub
Private Sub Form_Load()
Text11 = frmqy.qymc
Text12 = frmqy.nsrdjh
'定義所屬日期
DTPicker1.Year = Format(Date, "yyyy")
If Format(Date, "MM") = 1 Then
DTPicker1.Year = Format(Date, "yyyy") - 1
DTPicker1.Month = 12
Else
DTPicker1.Month = Format(Date, "MM") - 1
End If
'定義打印日期
DTPicker2.Year = DTPicker1.Year
If DTPicker1.Month = 12 Then
DTPicker2.Month = DTPicker1.Month
DTPicker2.Day = 31
Else
DTPicker2.Month = DTPicker1.Month + 1
DTPicker2.Day = 1
DTPicker2 = DTPicker2 - 1
End If
Me.Left = (Screen.Width - Me.Width) / 2
Me.Top = (Screen.Height - Me.Height) / 2
LoadFplx
Loadfp
End Sub

Private Sub Grid1_DblClick()
' Move the text box to the current grid cell:
Text13.Top = Grid1.CellTop + Grid1.Top
Text13.Left = Grid1.CellLeft + Grid1.Left
' Save the position of the grids Row and Col for later:
gRow = Grid1.Row
gCol = Grid1.Col
' Make text box same size as current grid cell:
Text13.Width = Grid1.CellWidth '- 2 * Screen.TwipsPerPixelX
Text13.Height = Grid1.CellHeight ' - 2 * Screen.TwipsPerPixelY
' Transfer the grid cell text:
Text13.Text = Grid1.Text
' Show the text box:
Text13.Visible = True
Text13.ZOrder 0 ' 把 Text1 放到最前面!
Text13.SetFocus
' Redirect this KeyPress event to the text box:
If KeyAscii <> ASC_ENTER Then
SendKeys Chr$(KeyAscii)
End If
End Sub

Private Sub Grid1_KeyPress(KeyAscii As Integer)
Call Grid1_DblClick
End Sub

Private Sub Text1_Change()
If Len(Text1) = 10 Then
    SendKeys "{tab}"
        KeyAscii = 0
    End If
End Sub

Private Sub Text1_KeyPress(KeyAscii As Integer)
    If KeyAscii = 13 Then
        SendKeys "{tab}"
        KeyAscii = 0
    End If
    
End Sub
Private Sub Text1_GotFocus()
    Text1.SelStart = 0
    Text1.SelLength = Len(Text1)
End Sub


Private Sub Text13_GotFocus()
 Text13.SelStart = 0
 Text13.SelLength = Len(Text13)
End Sub

Private Sub Text13_LostFocus()
 On Error Resume Next
Dim tmpRow As Integer
Dim tmpCol As Integer
Dim Gtext(13) As String
' Save current settings of Grid Row and col. This is needed only if
' the focus is set somewhere else in the Grid.
tmpRow = Grid1.Row
tmpCol = Grid1.Col
' Set Row and Col back to what they were before Text1_LostFocus:
Grid1.Row = gRow
Grid1.Col = gCol
Grid1.Text = Text13.Text ' Transfer text back to grid.
'保存到數據庫中
For i = 1 To 12
Grid1.Col = i
Gtext(i) = Grid1.Text
Next i
'======================
 Dim db As Database, RecStr As String
  Dim EF As Recordset
    DBEngine.BeginTrans
    Set db = OpenDatabase(Con, False, False, ConStr)
    Set EF = db.OpenRecordset("fp", dbOpenTable)
    RecStr = "Update fp Set fpbm='" & Gtext(1) & "'," & "fplb='" & Gtext(2) & "'," & "fpzg='" & Gtext(3) & "'," & "fpqh='" & Gtext(4) & "'," & "fpzh='" & Gtext(5) & "'," & "kyqh='" & Gtext(6) & "'," & "kyzh='" & Gtext(7) & "'," & "yyqh='" & Gtext(8) & "'," & "yyzh='" & Gtext(9) & "'," & "zf='" & Gtext(10) & "'," & "ys='" & Gtext(11) & "'" & " Where ID=" & Val(Gtext(12))
    db.Execute RecStr
    db.Close
    DBEngine.CommitTrans
'======================
Text13.SelStart = 0 ' Return caret to beginning.
Text13.Visible = False ' Disable text box.
' Return row and Col contents:
Loadfp
Grid1.Row = tmpRow
Grid1.Col = tmpCol
Exit Sub
End Sub

Private Sub Text2_Change()
If Len(Text2) = 9 Then
    SendKeys "{tab}"
        KeyAscii = 0
    End If
End Sub

Private Sub Text2_KeyPress(KeyAscii As Integer)
    If KeyAscii = 13 Then
        SendKeys "{tab}"
        KeyAscii = 0
    End If
End Sub
Private Sub Text2_GotFocus()
    Text2.SelStart = 0
    Text2.SelLength = Len(Text2)
End Sub

Private Sub Text3_Change()
If Len(Text3) = 10 Then
    SendKeys "{tab}"
        KeyAscii = 0
    End If
End Sub

Private Sub Text3_GotFocus()
    Text3.SelStart = 0
    Text3.SelLength = Len(Text3)
End Sub
Private Sub Text3_KeyPress(KeyAscii As Integer)
    If KeyAscii = 13 Then
        SendKeys "{tab}"
        KeyAscii = 0
    End If
End Sub
Private Sub Text4_KeyPress(KeyAscii As Integer)
    If KeyAscii = 13 Then
        SendKeys "{tab}"
        KeyAscii = 0
    End If
End Sub
Private Sub Text5_KeyPress(KeyAscii As Integer)
    If KeyAscii = 13 Then
        SendKeys "{tab}"
        KeyAscii = 0
    End If
End Sub
Private Sub Text6_KeyPress(KeyAscii As Integer)
    If KeyAscii = 13 Then
        SendKeys "{tab}"
        KeyAscii = 0
    End If
End Sub
Private Sub Text7_KeyPress(KeyAscii As Integer)
    If KeyAscii = 13 Then
        SendKeys "{tab}"
        KeyAscii = 0
    End If
End Sub
Private Sub Text8_KeyPress(KeyAscii As Integer)
    If KeyAscii = 13 Then
        SendKeys "{tab}"
        KeyAscii = 0
    End If
    If KeyAscii <> 8 And KeyAscii < 48 Or KeyAscii > 57 Then
        'Beep
KeyAscii = 0
    End If
End Sub
Private Sub Text9_KeyPress(KeyAscii As Integer)
    If KeyAscii = 13 Then
        SendKeys "{tab}"
        KeyAscii = 0
    End If
    If KeyAscii <> 8 And KeyAscii < 48 Or KeyAscii > 57 Then
        'Beep
KeyAscii = 0
    End If
End Sub

Private Sub Text2_LostFocus()
Text4 = Text2
Text6 = Text2
End Sub

Private Sub Text3_LostFocus()
Text5 = Text3
Text7 = Text3
End Sub
Private Sub LoadFplx()
On Error Resume Next
Dim db As Database, EF As Recordset, X As Long, i As Long
    Set db = OpenDatabase(Con, False, False, ConStr)
    Set EF = db.OpenRecordset("fplx", dbOpenTable)
        X = EF.RecordCount
    Set EF = db.OpenRecordset("fplx", dbOpenDynaset)
    For i = 0 To X - 1
        fpmc(i) = EF.Fields(3).Value
        If Not IsNull(EF.Fields(0).Value) Then
           fpbm(i) = EF.Fields(0).Value
        End If
        Combo1.AddItem fpmc(i), i
        EF.MoveNext
    Next
     EF.Close
     db.Close
If X >= 1 Then
    Combo1.ListIndex = 0
End If
End Sub
Private Sub Loadfp()
Grid1.Clear
Grid1.FormatString = "^ 序號 |^ 發票編碼 |^  發票名稱 |^ 發票字軌 |^ 發票起號 |^ 發票止號 |^ 可用起號 |^ 可用止號|^ 已用起號|^ 已用止號|^ 作廢|^ 遺失|^ ID"
Grid1.ColWidth(0) = (Grid1.Width / 12) - 100
Grid1.ColWidth(1) = (Grid1.Width / 12) + 550
Grid1.ColWidth(2) = (Grid1.Width / 12) + 550
Grid1.ColWidth(3) = (Grid1.Width / 12) + 550
Grid1.ColWidth(4) = (Grid1.Width / 12) + 550
Grid1.ColWidth(5) = (Grid1.Width / 12) + 550
Grid1.ColWidth(6) = (Grid1.Width / 12) + 550
Grid1.ColWidth(7) = (Grid1.Width / 12) + 550
Grid1.ColWidth(8) = (Grid1.Width / 12) + 550
Grid1.ColWidth(9) = (Grid1.Width / 12) + 550
Grid1.ColWidth(10) = (Grid1.Width / 12) - 100
Grid1.ColWidth(11) = (Grid1.Width / 12) - 100
Grid1.ColWidth(12) = 0
'定義所屬時間
pdate = CStr(Format(DTPicker1, "yyyyMM"))
Dim db As Database, EF As Recordset, HH As Integer
  Set db = OpenDatabase(Con, False, False, ConStr)
    Set EF = db.OpenRecordset("fp", dbOpenTable)
    Set EF = db.OpenRecordset("Select * From fp where PrintDate= '" & pdate & "' And qybm='" & frmqy.qybm & "'", dbOpenDynaset)
        HH = 1
        If EF.EOF() Then
        Grid1.Rows = 1
        Else
        End If
        Do While Not EF.EOF()
         Grid1.Rows = HH + 1
           Grid1.Row = HH
           Grid1.Col = 0
           Grid1.CellAlignment = 7
       ' If Not IsNull(EF.Fields("xh").Value) Then
           Grid1.Text = HH ' EF.Fields("xh").Value
       ' End If
           Grid1.Row = HH
           Grid1.Col = 1
           Grid1.CellAlignment = 7
        If Not IsNull(EF.Fields("fpbm").Value) Then
           Grid1.Text = EF.Fields("fpbm").Value
        End If
           Grid1.Row = HH
           Grid1.Col = 2
           Grid1.CellAlignment = 7
         If Not IsNull(EF.Fields("fplb").Value) Then
           Grid1.Text = EF.Fields("fplb").Value
        End If
           Grid1.Row = HH
           Grid1.Col = 3
           Grid1.CellAlignment = 7
        If Not IsNull(EF.Fields("fpzg").Value) Then
           Grid1.Text = EF.Fields("fpzg").Value
        End If
           Grid1.Row = HH
           Grid1.Col = 4
           Grid1.CellAlignment = 7
        If Not IsNull(EF.Fields("fpqh").Value) Then
           Grid1.Text = EF.Fields("fpqh").Value
        End If
           Grid1.Row = HH
           Grid1.Col = 5
           Grid1.CellAlignment = 7
        If Not IsNull(EF.Fields("fpzh").Value) Then
           Grid1.Text = EF.Fields("fpzh").Value
        End If
           Grid1.Row = HH
           Grid1.Col = 6
           Grid1.CellAlignment = 7
        If Not IsNull(EF.Fields("kyqh").Value) Then
           Grid1.Text = EF.Fields("kyqh").Value
        End If
           Grid1.Row = HH
           Grid1.Col = 7
           Grid1.CellAlignment = 7
        If Not IsNull(EF.Fields("kyzh").Value) Then
           Grid1.Text = EF.Fields("kyzh").Value
        End If
           Grid1.Row = HH
           Grid1.Col = 8
           Grid1.CellAlignment = 7
        If Not IsNull(EF.Fields("yyqh").Value) Then
           Grid1.Text = EF.Fields("yyqh").Value
        End If
           Grid1.Row = HH
           Grid1.Col = 9
           Grid1.CellAlignment = 7
        If Not IsNull(EF.Fields("yyzh").Value) Then
           Grid1.Text = EF.Fields("yyzh").Value
        End If
        
           Grid1.Row = HH
           Grid1.Col = 10
           Grid1.CellAlignment = 7
        If Not IsNull(EF.Fields("zf").Value) Then
           Grid1.Text = EF.Fields("zf").Value
        End If
           Grid1.Row = HH
           Grid1.Col = 11
           Grid1.CellAlignment = 7
        If Not IsNull(EF.Fields("ys").Value) Then
           Grid1.Text = EF.Fields("ys").Value
        End If
        Grid1.Row = HH
           Grid1.Col = 12
           Grid1.CellAlignment = 7
        If Not IsNull(EF.Fields("ID").Value) Then
           Grid1.Text = EF.Fields("ID").Value
        End If
          EF.MoveNext
          HH = HH + 1
        Loop
        EF.Close
        db.Close
 Grid1.Visible = True
Text10 = HH
End Sub
Private Sub start()
Combo1.ListIndex = 0
Text1 = ""
Text2 = ""
Text3 = ""
Text4 = ""
Text5 = ""
Text6 = ""
Text7 = ""
Text8 = 0
Text9 = 0
End Sub
Private Sub DeleteRecord()
On Error Resume Next
Grid1.Col = 0
If Grid1.Text = "" Then Exit Sub
   Dim Qp As Integer
   Qp = MsgBox("真的要刪除(" & Grid1.Text & ")記錄嗎(Y/N)?", vbYesNo + 16 + vbDefaultButton2, "確認刪除")
   If Qp = 7 Then
      Exit Sub
   End If
Grid1.Col = 12
Dim db As Database, RecStr As String
    DBEngine.BeginTrans
  Set db = OpenDatabase(Con, False, False, ConStr)
      RecStr = "Delete * From fp Where ID=" & Grid1.Text
      db.Execute RecStr
      db.Close
    DBEngine.CommitTrans
  '刷新記錄
 Loadfp
End Sub

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美精品一区二区三区久久久| 亚洲三级免费观看| 亚洲国产成人私人影院tom | 蜜桃精品视频在线观看| 国产一区二区三区高清播放| 欧美日韩高清一区二区| 亚洲欧洲精品一区二区三区不卡| 久久精品免费看| 91麻豆免费看| ww久久中文字幕| 香蕉av福利精品导航| 黑人巨大精品欧美一区| 99久久久久久| 日韩午夜激情电影| 中文字幕在线视频一区| 丝袜亚洲另类欧美| 成人小视频在线| 91精品国产日韩91久久久久久| 国产精品青草综合久久久久99| 天天操天天综合网| av不卡在线播放| 欧美精品一区男女天堂| 亚洲精品高清在线| 国产v日产∨综合v精品视频| 3d动漫精品啪啪1区2区免费| 亚洲伦在线观看| 国产一区高清在线| 欧美人xxxx| 亚洲精品国产a| 成人国产亚洲欧美成人综合网| 91精品视频网| 亚洲精品乱码久久久久久久久 | 成人午夜视频在线观看| 欧美一区二区在线看| 亚洲视频你懂的| 国产精品911| 日韩精品一区在线| 亚洲第一在线综合网站| 97精品国产97久久久久久久久久久久| 精品成人免费观看| 午夜欧美在线一二页| 91网站在线播放| 国产精品伦一区| 高清在线观看日韩| 久久蜜桃一区二区| 久久97超碰色| 日韩欧美色综合网站| 亚洲国产综合视频在线观看| 91麻豆免费看片| 亚洲码国产岛国毛片在线| 成人午夜又粗又硬又大| 国产亚洲精品资源在线26u| 久久精品国产精品亚洲综合| 91精品国产一区二区三区蜜臀| 图片区小说区国产精品视频| 欧美三级日韩三级| 亚洲小说春色综合另类电影| 欧美三级日本三级少妇99| 一区二区欧美在线观看| 欧美三级电影在线观看| 亚洲成人动漫在线观看| 欧美在线你懂得| 天堂在线一区二区| 欧美电视剧在线观看完整版| 久久久噜噜噜久久人人看 | 中文字幕免费不卡在线| 国产精品一卡二卡| 国产视频一区二区三区在线观看| 风间由美中文字幕在线看视频国产欧美| 久久一留热品黄| 成人午夜激情在线| 国产精品白丝在线| 在线看日本不卡| 日日骚欧美日韩| 日韩免费一区二区| 国产成人一区二区精品非洲| 国产精品久久久久影视| 91在线视频官网| 婷婷久久综合九色综合绿巨人| 欧美一区二区三区的| 国产一区二区网址| 亚洲欧洲性图库| 欧美疯狂性受xxxxx喷水图片| 精品影院一区二区久久久| 欧美国产精品专区| 精品视频在线视频| 久久se这里有精品| 亚洲欧美另类在线| 日韩欧美三级在线| 91片黄在线观看| 久久国产精品色婷婷| 亚洲欧洲另类国产综合| 91精品国产手机| 成人激情开心网| 天天操天天综合网| 国产精品久久久久久久久快鸭| 欧美久久久久中文字幕| 国产成人h网站| 欧美a级理论片| 亚洲黄色免费网站| 91精品国产乱| www.欧美色图| 午夜精品在线看| 亚洲在线视频免费观看| 久久久综合九色合综国产精品| 欧美视频一区在线观看| 狠狠色狠狠色综合系列| 亚洲国产欧美一区二区三区丁香婷| 久久嫩草精品久久久精品一| 91精品国产一区二区三区香蕉| 99久久国产综合精品女不卡| 久久99精品视频| 亚洲aⅴ怡春院| 最新成人av在线| 国产女主播视频一区二区| 91精品国产综合久久精品图片| 97se亚洲国产综合自在线| 国产一区二区在线电影| 日韩精品一级二级| 夜夜精品浪潮av一区二区三区| 国产精品久久久久久久裸模| 精品播放一区二区| 欧美日韩一区二区三区在线| 91亚洲男人天堂| 99精品久久99久久久久| 国产高清一区日本| 国内精品免费**视频| 欧美aaaaaa午夜精品| 天天色综合成人网| 午夜一区二区三区在线观看| 中文字幕va一区二区三区| 欧美一区二区精品久久911| 精品视频在线免费看| 精品污污网站免费看| 欧美日韩精品一区二区三区四区 | 国产98色在线|日韩| 国产揄拍国内精品对白| 美腿丝袜亚洲一区| 日日摸夜夜添夜夜添国产精品| 视频一区中文字幕| 偷窥国产亚洲免费视频| 午夜不卡av在线| 精品一区二区在线看| 国产精选一区二区三区| 国产乱码一区二区三区| 高清在线不卡av| 成人黄色综合网站| 国产不卡一区视频| 国产成人免费在线视频| 成人动漫一区二区| 99精品一区二区三区| 日本精品一级二级| 欧美肥妇free| 久久综合一区二区| 欧美国产视频在线| 亚洲免费av观看| 日韩高清在线不卡| 精品在线观看免费| 国产不卡在线视频| 色哟哟日韩精品| 88在线观看91蜜桃国自产| 日韩一区二区三区在线| 国产午夜一区二区三区| 久久精品欧美一区二区三区麻豆| 亚洲欧洲精品一区二区精品久久久| 亚洲国产人成综合网站| 久久99久久99| 色婷婷综合久久久久中文一区二区| 欧美顶级少妇做爰| 国产亚洲一区二区三区四区| 亚洲女同女同女同女同女同69| 日韩和欧美的一区| 日韩av在线免费观看不卡| 成人免费va视频| 欧美亚洲免费在线一区| 欧美大片在线观看一区二区| 日韩欧美国产成人一区二区| 国产片一区二区三区| 亚洲成人自拍偷拍| 国产剧情一区在线| 欧美三区免费完整视频在线观看| 久久久99精品免费观看| 亚洲18女电影在线观看| 开心九九激情九九欧美日韩精美视频电影| 国产精品乡下勾搭老头1| 91色视频在线| 日韩精品一区二区三区中文不卡 | 婷婷久久综合九色综合伊人色| 大桥未久av一区二区三区中文| 欧美丰满高潮xxxx喷水动漫| ㊣最新国产の精品bt伙计久久| 亚洲一区在线看| 精品制服美女久久| 日本久久一区二区三区| 欧美成人精品福利| 中文字幕日韩欧美一区二区三区| 蜜臀av性久久久久蜜臀aⅴ| 成人国产在线观看| 欧美亚洲综合另类| 中文天堂在线一区|