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

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

?? form3.frm

?? 集裝箱的裝箱問題 給定一個集裝箱
?? FRM
?? 第 1 頁 / 共 3 頁
字號:
'OICQ    :88382850
'          如果您有新的好的代碼別忘記給枕善居哦!
'****************************************************************************
'==========================================貨物列表編輯==================================================
'增加貨物列表
Private Sub Command1_Click()
        Set itmx = ListView3.ListItems.Add(, , "")
        For I = 1 To 6
            itmx.SubItems(I) = Text1(I - 1).Text
        Next I
        itmx.SubItems(6) = CStr(CInt(Text1(5).Text))
End Sub
'修改貨物列表
Private Sub Command2_Click()

ListView3.SelectedItem.SubItems(1) = Text1(0).Text
ListView3.SelectedItem.SubItems(2) = Text1(1).Text
ListView3.SelectedItem.SubItems(3) = Text1(2).Text
ListView3.SelectedItem.SubItems(4) = Text1(3).Text
ListView3.SelectedItem.SubItems(5) = Text1(4).Text
ListView3.SelectedItem.SubItems(6) = CStr(CInt(Text1(5).Text))
End Sub
'刪除貨物列表
Private Sub Command3_Click()
If ListView3.SelectedItem.Text = "" Then
MsgBox "請選擇要刪除的行!"
ElseIf ListView3.SelectedItem.Text = "√" Then
a = MsgBox("確定要從列表中刪除名稱為" & ListView3.SelectedItem.SubItems(1) & "的貨物數(shù)據(jù)么?", 308, "刪除確認!")
If a = 6 Then
ListView3.ListItems.Remove (ListView3.SelectedItem.Index)
End If
End If
End Sub
'========================================================================================================


'=========================================集裝箱列表編輯=================================================
'增加集裝箱列表
Private Sub Command8_Click()
        Set itmx = ListView1.ListItems.Add(, , "")
        For I = 1 To 5
            itmx.SubItems(I) = Text1(I - 1).Text
        Next I
End Sub
'修改集裝箱列表
Private Sub Command7_Click()
ListView1.SelectedItem.SubItems(1) = Text2(0).Text
ListView1.SelectedItem.SubItems(2) = Text2(1).Text
ListView1.SelectedItem.SubItems(3) = Text2(2).Text
ListView1.SelectedItem.SubItems(4) = Text2(3).Text
ListView1.SelectedItem.SubItems(5) = Text2(4).Text

End Sub
'刪除集裝箱列表
Private Sub Command6_Click()
If ListView1.SelectedItem.Text = "" Then
MsgBox "請選擇要刪除的行!"
ElseIf ListView1.SelectedItem.Text = "√" Then
a = MsgBox("確定要從列表中刪除名稱為" & ListView1.SelectedItem.SubItems(1) & "的集裝箱數(shù)據(jù)么?", 308, "刪除確認!")
If a = 6 Then
ListView1.ListItems.Remove (ListView1.SelectedItem.Index)
End If
End If
End Sub
'========================================================================================================

'==========================================托盤列表編輯==================================================
'增加托盤列表
Private Sub Command11_Click()
        Set itmx = ListView2.ListItems.Add(, , "")
        For I = 1 To 6
            itmx.SubItems(I) = Text1(I - 1).Text
        Next I
End Sub
'修改托盤列表
Private Sub Command10_Click()
ListView2.SelectedItem.SubItems(1) = Text3(0).Text
ListView2.SelectedItem.SubItems(2) = Text3(1).Text
ListView2.SelectedItem.SubItems(3) = Text3(2).Text
ListView2.SelectedItem.SubItems(4) = Text3(3).Text
ListView2.SelectedItem.SubItems(5) = Text3(4).Text
ListView2.SelectedItem.SubItems(6) = Text3(5).Text
End Sub
'刪除托盤列表
Private Sub Command9_Click()
If ListView2.SelectedItem.Text = "" Then
MsgBox "請選擇要刪除的行!"
ElseIf ListView2.SelectedItem.Text = "√" Then
a = MsgBox("確定要從列表中刪除名稱為" & ListView2.SelectedItem.SubItems(1) & "的托盤數(shù)據(jù)么?", 308, "刪除確認!")
If a = 6 Then
ListView2.ListItems.Remove (ListView2.SelectedItem.Index)
End If
End If
End Sub
'========================================================================================================

'=================================判斷輸入是否為數(shù)字=====================================================
Private Function checkinput(obj As TextBox, num_type As Integer) As Boolean
If IsNumeric(obj.Text) Then
    Select Case num_type
    Case 0 '只要是數(shù)字
        checkinput = True
    Case 1 '必須為整數(shù)
        If CSng(obj.Text) Mod 1 = 0 Then
            checkinput = True
        Else
            checkinput = False
        End If
    Case Else
        checkinput = False
    End Select
Else
    checkinput = False
End If
End Function
Private Sub Command4_Click()
    '判斷使用集裝箱還是托盤并判斷列表中是否有選中的集裝箱或者托盤
    If Option1(0).Value = True Then
        Dim containers As Boolean
        containers = False
        For Each items In ListView1.ListItems
            If items.Text = "√" Then containers = True
        Next
        If Not containers Then
            MsgBox "沒有選擇集裝箱", 48, "錯誤!"
            Exit Sub
        End If
    ElseIf Option1(1).Value = True Then
        Dim trays As Boolean
        trays = False
        For Each items In ListView2.ListItems
            If items.Text = "√" Then trays = True
        Next
        If Not trays Then
            MsgBox "沒有選擇托盤", 48, "錯誤!"
            Exit Sub
        End If
    End If
    
    '檢查是否有待裝貨物
    Dim goods As Boolean
    goods = False
    For Each items In ListView3.ListItems
        If items.Text = "√" And CInt(items.SubItems(6)) > 0 Then goods = True
    Next
    If Not goods Then
        MsgBox "沒有選擇要裝箱的貨物或者要裝箱的貨物數(shù)量為0", 48, "錯誤!"
        Exit Sub
    End If
    '檢查裝箱策略選擇
    Dim check1flag As Boolean
    check1flag = False
    For Each check In Check1
        If check.Value = 1 Then check1flag = True
    Next
    If Not check1flag Then
        MsgBox "沒有選擇裝箱策略", 48, "錯誤!"
        Exit Sub
    End If
    '檢查工作面拆分策略選擇
    Dim check2flag As Boolean
    check2flag = False
    For Each check In Check2
        If check.Value = 1 Then check2flag = True
    Next
    If Not check2flag Then
        MsgBox "沒有選擇工作面拆分策略", 48, "錯誤!"
        Exit Sub
    End If
    '檢查剩余空間拆分策略選擇
    Dim check3flag As Boolean
    check3flag = False
    For Each check In Option2
        If check.Value = True Then check3flag = True
    Next
    If Not check3flag Then
        MsgBox "沒有選擇剩余空間拆分策略", 48, "錯誤!"
        Exit Sub
    End If
    '驗證通過,加載清單窗體
    Load Form4
    '選擇的容器
    If Option1(0).Value = True Then
        For Each items In ListView1.ListItems
            If items.Text = "√" Then
                Set itmx = Form4.ListView2.ListItems.Add(, , "√")
                For I = 1 To 5
                    itmx.SubItems(I) = items.SubItems(I)
                Next I
            End If
        Next
        hc = True 'New Code
    ElseIf Option1(1).Value = True Then
        For Each items In ListView2.ListItems
            If items.Text = "√" Then
                Set itmx = Form4.ListView2.ListItems.Add(, , "√")
                For I = 1 To 6
                    itmx.SubItems(I) = items.SubItems(I)
                Next I
            End If
        Next
        hc = False 'New Code
    End If
    '選擇的貨物
    For Each items In ListView3.ListItems
            If items.Text = "√" And CInt(items.SubItems(6)) > 0 Then
                Set itmx = Form4.ListView3.ListItems.Add(, , "√")
                For I = 1 To 6
                    itmx.SubItems(I) = items.SubItems(I)
                Next I
            End If
    Next
    '選擇的優(yōu)先策略
    For Each check In Check1
        If check.Value = 1 Then
            Form4.Check1(check.Index).Value = 1
        Else
            Form4.Check1(check.Index).Value = 0
        End If
    Next
    '選擇的拆分策略
    For Each check In Check2
        If check.Value = 1 Then
            Form4.Check2(check.Index).Value = 1
        Else
            Form4.Check2(check.Index).Value = 0
        End If
    Next
    '剩余空間拆分策略
    For Each check In Option2
        If check.Value = True Then
            Form4.Option2(check.Index).Value = True
        Else
            Form4.Option2(check.Index).Value = False
        End If
    Next
    Form4.getcount
    Form4.Show
End Sub
'========================================================================================================
Private Sub Command5_Click()
For Each items In ListView1.ListItems
    If items.Text = "√" Then MsgBox "選中了" + CStr(items.Index)
Next
End Sub
'========================================================================================================

Private Sub Form_Load()
initlistview '初始化listview里的數(shù)據(jù)
hc = False 'New Code
End Sub
'========================================================================================================

'初始化listview里的數(shù)據(jù)
Public Sub initlistview()
'集裝箱列表
Open App.Path + "\containers.txt" For Input As #1
Seek #1, 1
ListView1.ListItems.Clear
I = 0
    Do While Not EOF(1)   ' 循環(huán)至文件尾。
        I = I + 1
        
        Line Input #1, textline   ' 讀入一行數(shù)據(jù)。
        temps = Split(textline, "|")



        Set itmx = ListView1.ListItems.Add(, , "")
        For I = 0 To UBound(temps)
            itmx.SubItems(I + 1) = temps(I)
        Next I
        DoEvents
    Loop

Close
'托盤列表
Open App.Path + "\trays.txt" For Input As #1
Seek #1, 1
ListView2.ListItems.Clear
I = 0
    Do While Not EOF(1)   ' 循環(huán)至文件尾。
        I = I + 1
        
        Line Input #1, textline   ' 讀入一行數(shù)據(jù)。
        temps = Split(textline, "|")



        Set itmx = ListView2.ListItems.Add(, , "")
        For I = 0 To UBound(temps)
            itmx.SubItems(I + 1) = temps(I)
        Next I
        DoEvents
    Loop

Close
'貨物列表
Open App.Path + "\goods.txt" For Input As #1
Seek #1, 1
ListView3.ListItems.Clear
I = 0
    Do While Not EOF(1)   ' 循環(huán)至文件尾。
        I = I + 1
        
        Line Input #1, textline   ' 讀入一行數(shù)據(jù)。
        temps = Split(textline, "|")



        Set itmx = ListView3.ListItems.Add(, , "")
        For I = 0 To UBound(temps)
            itmx.SubItems(I + 1) = temps(I)
        Next I
        If itmx.SubItems(6) = "" Then itmx.SubItems(6) = "0"
        
        If CInt(itmx.SubItems(6)) > 0 Then itmx.Text = "√"
        DoEvents
    Loop

Close
End Sub
'========================================================================================================

Private Sub ListView1_ItemClick(ByVal Item As MSComctlLib.ListItem)
If Item.Text = "" Then
Item.Text = "√"
Else
Item.Text = ""
End If
Text2(0).Text = Item.SubItems(1)
Text2(1).Text = Item.SubItems(2)
Text2(2).Text = Item.SubItems(3)
Text2(3).Text = Item.SubItems(4)
Text2(4).Text = Item.SubItems(5)
End Sub

Private Sub ListView2_ItemClick(ByVal Item As MSComctlLib.ListItem)
If Item.Text = "" Then
Item.Text = "√"
Else
Item.Text = ""
End If
Text3(0).Text = Item.SubItems(1)
Text3(1).Text = Item.SubItems(2)
Text3(2).Text = Item.SubItems(3)
Text3(3).Text = Item.SubItems(4)
Text3(4).Text = Item.SubItems(5)
Text3(5).Text = Item.SubItems(6)
End Sub

Private Sub ListView3_ItemClick(ByVal Item As MSComctlLib.ListItem)
If Item.Text = "" Then
Item.Text = "√"
Else
Item.Text = ""
End If
Text1(0).Text = Item.SubItems(1)
Text1(1).Text = Item.SubItems(2)
Text1(2).Text = Item.SubItems(3)
Text1(3).Text = Item.SubItems(4)
Text1(4).Text = Item.SubItems(5)
Text1(5).Text = Item.SubItems(6)
End Sub


Private Sub Text1_KeyPress(Index As Integer, KeyAscii As Integer)
If Index > 0 And Index < 5 Then
    If KeyAscii > 57 Or KeyAscii < 46 Or KeyAscii = 47 Then
        MsgBox "輸入格式錯誤,請檢查!當前要求輸入數(shù)字。", 48, "輸入錯誤!"
        KeyAscii = 0
    End If
ElseIf Index = 5 Then
    If KeyAscii > 57 Or KeyAscii < 48 Then
        MsgBox "輸入格式錯誤,請檢查!當前要求輸入整數(shù)。", 48, "輸入錯誤!"
        KeyAscii = 0
    End If
End If

End Sub

Private Sub Text2_KeyPress(Index As Integer, KeyAscii As Integer)
If Index > 0 Then
    If KeyAscii > 57 Or KeyAscii < 46 Or KeyAscii = 47 Then
        MsgBox "輸入格式錯誤,請檢查!當前要求輸入數(shù)字。", 48, "輸入錯誤!"
        KeyAscii = 0
    End If
End If
End Sub
Private Sub Text3_KeyPress(Index As Integer, KeyAscii As Integer)
If Index > 0 Then
    If KeyAscii > 57 Or KeyAscii < 46 Or KeyAscii = 47 Then
        MsgBox "輸入格式錯誤,請檢查!當前要求輸入數(shù)字。", 48, "輸入錯誤!"
        KeyAscii = 0
    End If
End If
End Sub

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品国产伦一区二区三区免费| proumb性欧美在线观看| 91.xcao| 亚洲国产cao| 欧美一区二区三区啪啪| 蜜桃久久av一区| 久久伊人中文字幕| 成人av免费网站| 亚洲6080在线| 久久精品男人天堂av| av亚洲精华国产精华精| 亚洲午夜精品久久久久久久久| 欧美丰满高潮xxxx喷水动漫| 国内精品自线一区二区三区视频| 久久久777精品电影网影网| www.视频一区| 午夜亚洲福利老司机| 欧美tk丨vk视频| 成人av在线一区二区三区| 亚洲最快最全在线视频| 337p亚洲精品色噜噜| 国产成人精品免费一区二区| 亚洲激情中文1区| 精品国产网站在线观看| 日本丰满少妇一区二区三区| 日韩和欧美的一区| 国产精品嫩草久久久久| 欧美日韩视频第一区| 欧美日韩精品一区二区三区 | 欧美一区二区啪啪| 国产在线视频一区二区三区| 一区二区三区资源| 久久久久久久一区| 在线观看www91| 国产成人高清视频| 日韩电影一二三区| 一区二区三区欧美视频| 久久精品视频在线看| 欧美日韩情趣电影| 懂色av一区二区夜夜嗨| 天天综合色天天| 国产精品久久久久久久浪潮网站| 欧美日韩不卡视频| 91浏览器入口在线观看| 韩国一区二区视频| 五月婷婷欧美视频| 亚洲精品日产精品乱码不卡| 久久午夜色播影院免费高清| 欧美日韩性生活| 99视频精品全部免费在线| 老汉av免费一区二区三区 | 欧美综合一区二区| 成人午夜精品在线| 精品中文字幕一区二区小辣椒| 亚洲九九爱视频| 国产精品天美传媒沈樵| 欧美精品一区二区不卡| 欧美疯狂做受xxxx富婆| 欧美在线999| 色综合天天狠狠| 成人免费三级在线| 国产精品一区久久久久| 麻豆国产欧美日韩综合精品二区| 亚洲一卡二卡三卡四卡| 亚洲色欲色欲www| 国产精品麻豆网站| 中文字幕av在线一区二区三区| 日韩视频一区二区三区| 欧美肥大bbwbbw高潮| 欧美人动与zoxxxx乱| 欧美亚一区二区| 91国内精品野花午夜精品| 91丨国产丨九色丨pron| www.日韩在线| 99视频有精品| 在线观看中文字幕不卡| 日本道精品一区二区三区 | 成人av免费网站| 99在线视频精品| 91免费精品国自产拍在线不卡| 成人教育av在线| 91欧美激情一区二区三区成人| av在线这里只有精品| 91亚洲永久精品| 91国偷自产一区二区开放时间 | 亚洲精品国久久99热| 亚洲欧美在线视频| 亚洲色图制服诱惑| 午夜影院在线观看欧美| 日本欧美肥老太交大片| 奇米影视7777精品一区二区| 蜜桃av一区二区| 国产一区二区三区av电影| 国精品**一区二区三区在线蜜桃| 精品系列免费在线观看| 粉嫩aⅴ一区二区三区四区| 91免费视频网址| 欧美日韩dvd在线观看| 日韩一本二本av| 久久久国产一区二区三区四区小说| 久久久91精品国产一区二区三区| 国产精品欧美久久久久无广告| 国产精品久久久久aaaa| 亚洲一区二区三区四区不卡| 美女性感视频久久| 国产精品88888| 91猫先生在线| 日韩一级免费一区| 中文字幕不卡的av| 首页亚洲欧美制服丝腿| 国内精品久久久久影院薰衣草 | 欧美国产精品v| 亚洲精品视频观看| 国产在线播放一区二区三区| 91亚洲国产成人精品一区二三| 4hu四虎永久在线影院成人| 国产偷v国产偷v亚洲高清| 亚洲自拍偷拍av| 国产成+人+日韩+欧美+亚洲| 欧美性猛交xxxx黑人交| 国产色产综合色产在线视频| 一区二区三区美女| 国产成人免费视频网站高清观看视频| 色哟哟精品一区| 久久精品一区四区| 石原莉奈在线亚洲三区| 国产精品另类一区| 在线观看免费视频综合| 亚洲一区二区视频在线观看| 久久综合九色综合97婷婷| 成人av影视在线观看| 奇米777欧美一区二区| 亚洲自拍偷拍图区| 欧美三级中文字| 蜜臀精品久久久久久蜜臀| 久久国产尿小便嘘嘘尿| 亚洲精品免费在线观看| 亚洲同性gay激情无套| 国产精品色在线| 色综合久久综合网欧美综合网| 国产精品福利影院| 久久国产日韩欧美精品| 欧美色网一区二区| 最近日韩中文字幕| 国产一区二区精品久久| 91精品国产综合久久久蜜臀粉嫩| 亚洲天堂免费看| 丁香婷婷综合激情五月色| 日韩欧美电影一区| 日韩成人午夜精品| 欧美美女一区二区在线观看| 亚洲黄色性网站| 色妹子一区二区| 一区精品在线播放| 成人免费av网站| 国产欧美日韩精品a在线观看| 精品亚洲免费视频| 精品久久久久久最新网址| 日韩**一区毛片| 欧美一级精品在线| 蜜桃一区二区三区在线观看| 91精品免费在线观看| 日本中文在线一区| 欧美日韩精品免费| 亚洲高清不卡在线观看| 在线看国产一区| 亚洲国产一区在线观看| 色狠狠一区二区| 亚洲午夜三级在线| 欧美体内she精高潮| 亚洲国产综合人成综合网站| 欧美午夜一区二区| 日韩高清不卡一区二区| 91精品婷婷国产综合久久性色| 日本午夜一本久久久综合| 日韩一区二区三| 国内成人精品2018免费看| 亚洲第一电影网| 欧美一区二区播放| 韩国精品一区二区| 国产色婷婷亚洲99精品小说| 99re热这里只有精品免费视频| 亚洲丝袜自拍清纯另类| 91老司机福利 在线| 亚洲第一综合色| 日韩欧美一区二区免费| 国产精品123区| 亚洲人一二三区| 欧美日韩国产精品自在自线| 久久黄色级2电影| 国产欧美日本一区二区三区| 91亚洲男人天堂| 日韩成人免费在线| 中国色在线观看另类| 日本高清视频一区二区| 久久精工是国产品牌吗| 中文字幕一区在线观看| 欧美高清激情brazzers| 国产宾馆实践打屁股91| 亚洲国产欧美在线人成|