serial UglyPickingCNTs,MakovaDrawTextCnts,KeyCodesCNTs,vhLib.Macro Default %Library.TMFormClass 0 14 1 0 %Library.String $$$cmReceptie.GetBufferSeperator() %TMButton %Library.List %Library.TMForm %TMShape %TMShape %Library.String "I"_$P(MApplication.GetClientIP(),".",4)_"."_$RANDOM(100) %Library.String 1 %Library.TMBitmap %TMSpeedButton %TMSpeedButton %TMSpeedButton %TMSpeedButton %TMSpeedButton %TMSpeedButton %TMButton %TMButton %TMSpeedButton %TMSpeedButton %TMCheckBox %TMImageList %TMImageList %TMLabel %TMLabel %TMLabel %TMLabel %TMListView %TMListView %TMListView %TMMemo %Library.Boolean 0 %TMPopupMenu %TMMenuItem %TMMenuItem %TMMenuItem %TMMenuItem %TMMenuItem %TMMenuItem %TMMenuItem %TMMenuItem %TMMenuItem %TMMenuItem %TMPanel %TMPanel %TMPanel %TMPanel %TMPanel %TMShape %TMShape initvalue:%String cache 0 %Status document literal Args:%String cache 0 document literal Value:%List cache 0 %Library.Status document literal cache 0 document literal ; Ctl3D = False ; Font.Charset = DEFAULT_CHARSET ; Font.Color = clWindowText ; Font.Height = -11 ; Font.Name = 'MS Sans Serif' ; Font.Style = [] ; HotTrackStyles = [] ; ReadOnly = True ; RowSelect = True ; ParentFont = False ; TabOrder = 0 ; ViewStyle = vsReport ; OnColumnClick = lvBuffersColumnClick ; OnCustomDraw = lvBuffersCustomDraw ; OnCustomDrawItem = lvBuffersCustomDrawItem ; OnSelectItem = lvBuffersSelectItem ; end ; end ; object pnlGekoppeld: CPanel ; Left = 8 ; Top = 253 ; Width = 753 ; Height = 127 ; Anchors = [akLeft, akRight, akBottom] ; BevelOuter = bvNone ; TabOrder = 2 ; TabStop = True ; object shHdrGekoppeld: CShape ; Left = 0 ; Top = 0 ; Width = 753 ; Height = 21 ; Align = alTop ; Brush.Color = clBtnFace ; end ; object lblHdrGekoppeld: CLabel ; Left = 4 ; Top = 3 ; Width = 741 ; Height = 16 ; Alignment = taCenter ; Anchors = [akLeft, akTop, akRight] ; AutoSize = False ; Caption = 'GEKOPPELD' ; Font.Charset = DEFAULT_CHARSET ; Font.Color = clWindowText ; Font.Height = -13 ; Font.Name = 'MS Sans Serif' ; Font.Style = [fsBold] ; ParentFont = False ; Transparent = True ; end ; object lvGekoppeld: CListView ; Left = 0 ; Top = 21 ; Width = 753 ; Height = 106 ; Align = alClient ; Columns = < ; item ; Caption = 'Product' ; Width = 250 ; end ; item ; Caption = 'Klant' ; Width = 250 ; end ; item ; Caption = 'Toelevering' ; Width = 70 ; end ; item ; Alignment = taRightJustify ; Caption = 'QtyReq' ; Width = 55 ; end ; item ; Alignment = taRightJustify ; Caption = 'QtyRes' ; Width = 55 ; end> ; Ctl3D = False ; HideSelection = False ; HotTrackStyles = [] ; ReadOnly = True ; RowSelect = True ; SmallImages = ilGekoppeld ; TabOrder = 0 ; ViewStyle = vsReport ; end ; end ; object pnlFooter: CPanel ; Left = 0 ; Top = 511 ; Width = 768 ; Height = 25 ; Align = alBottom ; BevelInner = bvLowered ; TabOrder = 4 ; TabStop = True ; object lblMsg: CLabel ; Left = 7 ; Top = 6 ; Width = 755 ; Height = 13 ; Anchors = [akLeft, akRight, akBottom] ; AutoSize = False ; Caption = 'Er zijn geen buffers geselecteerd.' ; ControlClass = 'UI.Lib.Ctrl.TMsgLabel' ; end ; end ; object pnlHeader: CPanel ; Left = 0 ; Top = 0 ; Width = 768 ; Height = 36 ; Align = alTop ; BevelInner = bvRaised ; TabOrder = 0 ; TabStop = True ; object btnAfsluiten: CSpeedButton ; Left = 675 ; Top = 7 ; Width = 79 ; Height = 22 ; Anchors = [akTop, akRight] ; Color = clInfoBk ; Caption = 'Afsluiten' ; Flat = False ; Font.Charset = DEFAULT_CHARSET ; Font.Color = clBlack ; Font.Height = -11 ; Font.Name = 'MS Sans Serif' ; Font.Style = [fsBold] ; ParentFont = False ; OnClick = btnAfsluitenClick ; end ; object btnChooseBuffers: CSpeedButton ; Left = 11 ; Top = 7 ; Width = 79 ; Height = 22 ; Color = clInfoBk ; DropdownAlways = True ; Caption = 'Buffers...' ; Flat = False ; Font.Charset = DEFAULT_CHARSET ; Font.Color = clBlack ; Font.Height = -11 ; Font.Name = 'MS Sans Serif' ; Font.Style = [fsBold] ; ParentFont = False ; OnClick = btnChooseBuffersClick ; end ; object Shape4: CShape ; Left = 100 ; Top = 5 ; Width = 560 ; Height = 26 ; end ; object btnAutomatischKoppelen: CSpeedButton ; Left = 102 ; Top = 7 ; Width = 95 ; Height = 22 ; Color = clInfoBk ; Caption = 'AUTO' ; Enabled = False ; Flat = False ; Font.Charset = DEFAULT_CHARSET ; Font.Color = clBlack ; Font.Height = -11 ; Font.Name = 'MS Sans Serif' ; Font.Style = [fsBold] ; ParentFont = False ; OnClick = btnAutomatischKoppelenClick ; end ; object btnDoorsturen: CSpeedButton ; Left = 563 ; Top = 7 ; Width = 95 ; Height = 22 ; Color = clInfoBk ; Caption = 'Doorsturen' ; Enabled = False ; Flat = False ; Font.Charset = DEFAULT_CHARSET ; Font.Color = clBlack ; Font.Height = -11 ; Font.Name = 'MS Sans Serif' ; Font.Style = [fsBold] ; ParentFont = False ; OnClick = btnDoorsturenClick ; end ; object btnManueelKoppelen: CSpeedButton ; Left = 196 ; Top = 7 ; Width = 95 ; Height = 22 ; Color = clInfoBk ; Caption = 'MANUEEL' ; Enabled = False ; Flat = False ; Font.Charset = DEFAULT_CHARSET ; Font.Color = clBlack ; Font.Height = -11 ; Font.Name = 'MS Sans Serif' ; Font.Style = [fsBold] ; ParentFont = False ; OnClick = btnManueelKoppelenClick ; end ; object btnALaCarte: CSpeedButton ; Left = 290 ; Top = 7 ; Width = 103 ; Height = 22 ; Color = clInfoBk ; Caption = 'A LA CARTE' ; Enabled = False ; Flat = False ; Font.Charset = DEFAULT_CHARSET ; Font.Color = clBlack ; Font.Height = -11 ; Font.Name = 'MS Sans Serif' ; Font.Style = [fsBold] ; ParentFont = False ; OnClick = btnALaCarteClick ; end ; object btnUndo: CSpeedButton ; Left = 398 ; Top = 7 ; Width = 79 ; Height = 22 ; Color = clInfoBk ; Caption = 'UNDO' ; Enabled = False ; Flat = False ; Font.Charset = DEFAULT_CHARSET ; Font.Color = clBlack ; Font.Height = -11 ; Font.Name = 'MS Sans Serif' ; Font.Style = [fsBold] ; ParentFont = False ; OnClick = btnUndoClick ; end ; object btnBufferEdit: CSpeedButton ; Left = 479 ; Top = 7 ; Width = 79 ; Height = 22 ; Color = clInfoBk ; DropdownMenu = pmBufferEdit ; Caption = 'Buffer' ; Flat = False ; Font.Charset = DEFAULT_CHARSET ; Font.Color = clBlack ; Font.Height = -11 ; Font.Name = 'MS Sans Serif' ; Font.Style = [fsBold] ; ParentFont = False ; end ; end ; object pnlOngekoppeld: CPanel ; Left = 8 ; Top = 380 ; Width = 753 ; Height = 127 ; Anchors = [akLeft, akRight, akBottom] ; BevelOuter = bvNone ; Caption = 'pnlOngekoppeld' ; TabOrder = 3 ; TabStop = True ; object Shape3: CShape ; Left = 0 ; Top = 0 ; Width = 753 ; Height = 21 ; Align = alTop ; Brush.Color = clBtnFace ; end ; object lblHdrOngekoppeld: CLabel ; Left = 4 ; Top = 3 ; Width = 741 ; Height = 16 ; Alignment = taCenter ; Anchors = [akLeft, akTop, akRight] ; AutoSize = False ; Caption = 'ONGEKOPPELD' ; Font.Charset = DEFAULT_CHARSET ; Font.Color = clWindowText ; Font.Height = -13 ; Font.Name = 'MS Sans Serif' ; Font.Style = [fsBold] ; ParentFont = False ; Transparent = True ; end ; object lvOngekoppeld: CListView ; Left = 0 ; Top = 21 ; Width = 753 ; Height = 106 ; Align = alClient ; Columns = < ; item ; Caption = 'Klant' ; Width = 250 ; end ; item ; Caption = 'Toelevering' ; Width = 70 ; end ; item ; Alignment = taRightJustify ; Caption = 'QtyRes' ; Width = 0 ; end ; item ; Alignment = taRightJustify ; Caption = 'QtyReq' ; Width = 55 ; end ; item ; Alignment = taRightJustify ; Caption = 'QtyToGo' ; Width = 55 ; end ; item ; Alignment = taRightJustify ; Caption = 'Leveringsweek' ; Width = 85 ; end ; item ; Alignment = taCenter ; Caption = 'B' ; Width = 25 ; end ; item ; Caption = 'dataTLNr' ; Width = 0 ; end ; item ; Caption = 'dataTLUNr' ; Width = 0 ; end ; item ; Caption = 'dataProductNr' ; Width = 0 ; end> ; Ctl3D = False ; HideSelection = False ; HotTrackStyles = [] ; MultiSelect = True ; ReadOnly = True ; RowSelect = True ; TabOrder = 0 ; ViewStyle = vsReport ; OnSelectItem = lvOngekoppeldSelectItem ; end ; object chkBackorder: CCheckBox ; Left = 670 ; Top = 2 ; Width = 80 ; Height = 17 ; Anchors = [akTop, akRight] ; Caption = 'Backorder' ; Font.Charset = DEFAULT_CHARSET ; Font.Color = clRed ; Font.Height = -11 ; Font.Name = 'MS Sans Serif' ; Font.Style = [fsBold] ; ParentFont = False ; TabOrder = 1 ; Visible = False ; OnClick = chkBackorderClick ; end ; end ; object Button2: CButton ; Left = 9 ; Top = 46 ; Width = 99 ; Height = 20 ; Caption = 'INV. STATUS?' ; Font.Charset = ANSI_CHARSET ; Font.Color = clGreen ; Font.Height = -11 ; Font.Name = 'r_ansi' ; Font.Style = [fsBold] ; ParentFont = False ; TabOrder = 5 ; OnClick = Button2Click ; end ; object mmoLog: CMemo ; Left = 7 ; Top = 67 ; Width = 33 ; Height = 16 ; Anchors = [akLeft, akTop, akRight, akBottom] ; Color = 15522506 ; Font.Charset = ANSI_CHARSET ; Font.Color = clWindowText ; Font.Height = -11 ; Font.Name = 'Tahoma' ; Font.Style = [fsBold] ; ParentFont = False ; ScrollBars = ssVertical ; TabOrder = 7 ; Visible = False ; end ; object btnMailLogTo: CButton ; Left = 584 ; Top = 482 ; Width = 75 ; Height = 21 ; Anchors = [akRight, akBottom] ; Caption = '&Send report' ; TabOrder = 8 ; Visible = False ; OnClick = btnMailLogToClick ; end ; object btnLogOk: CButton ; Left = 658 ; Top = 482 ; Width = 75 ; Height = 21 ; Anchors = [akRight, akBottom] ; Caption = '&OK' ; TabOrder = 6 ; Visible = False ; OnClick = btnLogOkClick ; end ; object ilBufferEdit: CImageList ; Left = 71 ; Top = 108 ; Bitmap = 'FileOpen.bmp,FileDelete.bmp,FileNew4.bmp,ShopBasket.bmp' ; end ; object pmBufferEdit: CPopupMenu ; Images = ilBufferEdit ; OnPopup = pmBufferEditPopup ; Left = 103 ; Top = 108 ; object pmiNewBufferline: TMenuItem ; Caption = 'Via product...' ; ImageIndex = 2 ; ShortCut = 16464 ; OnClick = pmiNewBufferlineClick ; end ; object pmiBufferViaToelevering: TMenuItem ; Caption = 'Via toelevering...' ; ImageIndex = 3 ; OnClick = pmiBufferViaToeleveringClick ; end ; object pmiSep2: TMenuItem ; Caption = '-' ; end ; object pmiOpenBufferline: TMenuItem ; Caption = 'Wijzig lijn...' ; ImageIndex = 0 ; ShortCut = 16471 ; OnClick = pmiOpenBufferlineClick ; end ; object pmiSep1: TMenuItem ; Caption = '-' ; end ; object pmiDeleteBufferline: TMenuItem ; Caption = 'Verwijder lijn' ; ImageIndex = 1 ; ShortCut = 16430 ; OnClick = pmiDeleteBufferlineClick ; end ; object pmiSep3: TMenuItem ; Caption = '-' ; end ; object pmiWisBufferLijst: TMenuItem ; Caption = 'Wis bufferlijst' ; OnClick = pmiWisBufferLijstClick ; end ; object pmiSep4: TMenuItem ; Caption = '-' ; end ; object pmiSynchronize: TMenuItem ; Caption = 'Synchroniseren...' ; OnClick = pmiSynchronizeClick ; end ; end ; object ilGekoppeld: CImageList ; Left = 71 ; Top = 136 ; Bitmap = 'RedWarning.bmp' ; end ;end ]]> Args:%String cache 0 document literal Args:%String cache 0 document literal "_$C(9)_"Opent het scherm voor het selecteren van buffers."_$C(13,10,13,10) . Set ShortCutMsg=ShortCutMsg_""_$C(9)_"Voert automatische koppeling(en) uit."_$C(13,10) . Set ShortCutMsg=ShortCutMsg_""_$C(9)_"Voert manuele koppeling uit."_$C(13,10) . Set ShortCutMsg=ShortCutMsg_""_$C(9)_"Voert 'à la carte' koppeling uit (best match)."_$C(13,10,13,10) . Set ShortCutMsg=ShortCutMsg_""_$C(9)_"Koppelingen van geselecteerde lijn ongedaan maken."_$C(13,10) . Set ShortCutMsg=ShortCutMsg_""_$C(9)_"Gekoppelde informatie doorsturen."_$C(13,10) . Set ShortCutMsg=ShortCutMsg_""_$C(9)_"Programma afsluiten."_$C(13,10,13,10) . Set ShortCutMsg=ShortCutMsg_""_$C(9)_"Activeert de buffer-lijst."_$C(13,10) . Set ShortCutMsg=ShortCutMsg_""_$C(9)_"Activeert de ongekoppelde toeleveringslijst."_$C(13,10,13,10) . Set ShortCutMsg=ShortCutMsg_""_$C(9)_"Voeg buffer toe via toeleveringsnummer."_$C(13,10) . Set ShortCutMsg=ShortCutMsg_"

"_$C(9)_"Voeg buffer toe via productnummer." . Do MApplication.MessageBox(ShortCutMsg,..Form.Caption_": Shortcuts",$$$MBICONINFORMATION) . Set Key=0 ;End of user code s Args=$lb(Sender,Key,Shift) q ]]> cache 0 document literal ProductNr:%String cache 0 %Library.Boolean document literal ChoosenBuffers:%List cache 0 %Library.List document literal 1 Do ;Status>1 is GEEN FATALE fout, maar vereist wel een bericht . Do MApplication.MessageBox($LI(lbStatus,2),..Form.Caption,$$$MBICONINFORMATION) Else If $LI(lbStatus)<0 Do Quit "" . Do MApplication.MessageBox($LI(lbStatus,2),..Form.Caption,$$$MBICONERROR) ; --- User Interface --- Do ..dCOMPWRITElvBuffers() Quit ChoosenBuffers ]]> initvalue:%String cache 0 MApplication document literal Sender:%Library.String cache 0 %Library.Boolean document literal initvalue:%String cache 0 %Library.Status document literal Args:%String cache 0 document literal Args:%String cache 0 document literal Args:%String cache 0 document literal 0 Do . ;Do MApplication.MessageBox($LI(Status,2),..Form.Caption,$$$MBICONINFORMATION) Else If $LI(Status)<0 Do . Do MApplication.MessageBox($LI(Status,2),..Form.Caption,$$$MBICONERROR) Do:($LI(Status)=1) ..dCOMPWRITElvBuffers() ;Set Sender.Enabled="True" ;End of user code s Args=$lb(Sender) q ]]> Args:%String cache 0 document literal Laag omwille van mogelijke delete van een item uit de list . Set lbBuffer=$LI(lbBuffers,Loop) . Set RGID=$LI(lbBuffer,1) . Set VolgNr=$LI(lbBuffer,2) . Set LijnNr="" . For Set LijnNr=$$$cmReceptie.GetNextBufferLijnNr(RGID,VolgNr,LijnNr) Quit:(LijnNr="") Do .. Set ValidateOK=$$$cmReceptie.ValidateBufferComposites(RGID,VolgNr,LijnNr,.tmpResultStr) .. If tmpResultStr'="" $$$WriteToLog(tmpResultStr) .. Set ResultStr=ResultStr_$C(13,10,13,10)_tmpResultStr If ResultStr'="" Do . Set tmpResultStr="Het controleren van de CompositeIDs leverde volgende resultaten op:"_ResultStr . Do MApplication.MessageBox(tmpResultStr,..Form.Caption,$$$MBICONEXCLAMATION) Quit ]]> Args:%String cache 0 document literal Args:%String cache 0 document literal Args:%String cache 0 document literal ") New MailStatus Set MailStatus=$$SendMiniMail^vhLib(MailFrom,MailTo,..Form.Caption,..mmoLog.Text) If $$$ISERR(MailStatus) Do . Do MApplication.MessageBox($$ParseStatus^vhLib(MailStatus),..Form.Caption,$$$MBICONERROR) Else Do . Do MApplication.MessageBox("Informatie succesvol verstuurd naar "_$$ListToPieces^vhLib(MailTo,",")_".",..Form.Caption,$$$MBICONINFORMATION) . Set Sender.Enabled="False" ;End of user code s Args=$lb(Sender) q ]]> Args:%String cache 0 document literal geen koppeling meer,dus quit . Set OngekoppeldSelItem=..lvOngekoppeld.Items.GetItems(SelLoop) . Quit:(OngekoppeldSelItem.Selected="False") . ;Set OngekoppeldSelItem.Selected="False" . Set TLNr=OngekoppeldSelItem.SubItems.GetStrings($$$lvonTLNr) . Set TLUNr=OngekoppeldSelItem.SubItems.GetStrings($$$lvonTLUNr) . Set Status=$$KoppelManueel(ProductNr,BufferKey,TLNr,TLUNr) . Set:($LI(Status)=1) UpdateRequired=1 If UpdateRequired Do . Do ..dCOMPWRITElvBuffers() Set Sender.Enabled="True" ;End of user code s Args=$lb(Sender) q ;------------------------------------------------------------------------------ KoppelManueel(ProductNr,BufferKey,TLNr,TLUNr) ;Vragen naar aantal dat van toelevering moet genomen worden New PTQtyAvailable,PTLine,PBQtyAvailable,MaxToTake Set PTLine=aPT(ProductNr,TLNr,TLUNr) Set PTQtyAvailable=$P(PTLine,..BufferSEP,$$$toeQtyRequest)-$P(PTLine,..BufferSEP,$$$toeQtyReserved) Set PBLine=aPB(ProductNr,BufferKey,0) Set PBQtyAvailable=$P(PBLine,..BufferSEP,$$$kbtQtyRequest)-$P(PBLine,..BufferSEP,$$$kbtQtyReserved) ;Minimum nemen van PTQtyAvailable & PBQtyAvailable New QtyToTakeFromToelev If PTQtyAvailableMaxToTake Do ... Do MApplication.MessageBox("Het maximum aantal dat gekoppeld kan worden is "_MaxToTake_".",..Form.Caption,$$$MBICONINFORMATION) ... Set QtyToTakeFromToelev=MaxToTake .. Else If QtyToTakeFromToelev<0 Do ... Do MApplication.MessageBox("U kan enkel een positief aantal koppelen.",..Form.Caption,$$$MBICONINFORMATION) ... Set QtyToTakeFromToelev=$ZABS(QtyToTakeFromToelev) .. Else Do ... Set QuitFor=1 Quit:(EarlyQuit) $LB(2,"Manueel koppelen ge-annuleerd.") ;------------------ ;Uitvoeren van de manuele koppeling Set MApplication.ScreenCursor=$$$crHourGlass Do ..lblMsg.PushStatus() Do ..lblMsg.ShowMsg("Bezig met manueel koppelen van buffer '"_BufferKey_"' en toeleveringslijn '"_TLNr_"."_TLUNr_"'...") New Status Set Status=$$$cmReceptieProductie.KoppelMANUEEL(ProductNr,BufferKey,TLNr,TLUNr,QtyToTakeFromToelev) Do ..lblMsg.PopStatus() Set MApplication.ScreenCursor=$$$crDefault ;------------------ ;Eventuele fout-afhandeling OF indien Ok, kijken of er een backorder is en de gebruiker If $LI(Status)<0 Do . Do MApplication.MessageBox($LI(Status,2),..Form.Caption,$$$MBICONERROR) Else Do . ;Do ..HANDLEBackOrder(ProductNr) Quit Status ]]> Args:%String cache 0 document literal Args:%String cache 0 document literal lbMarkedProducts:%Library.List cache 0 document literal cache 0 document literal 0 -> selecteer eerste If +..lvBuffers.Selected=0 Do . If ..lvBuffers.Items.Count>0 Do .. Set ..lvBuffers.ItemFocused=..lvBuffers.Items.GetItems(0) .. Set ..lvBuffers.Selected=..lvBuffers.ItemFocused ;------------------ Do ..lvBuffers.Items.EndUpdate() Set MApplication.ScreenCursor=$$$crDefault Set ..lblMsg.Caption=..lvBuffers.Items.Count_" buffer-item(s)." Quit ]]> cache 0 document literal 0 -> selecteer eerste If +..lvBuffers.Selected=0 Do . If ..lvBuffers.Items.Count>0 Do .. Set ..lvBuffers.ItemFocused=..lvBuffers.Items.GetItems(0) .. Set ..lvBuffers.Selected=..lvBuffers.ItemFocused ;------------------ Do ..lvBuffers.Items.EndUpdate() Set MApplication.ScreenCursor=$$$crDefault Set ..lblMsg.Caption=..lvBuffers.Items.Count_" buffer-item(s)." Quit ]]> ClearOnly:%Boolean=0 cache 0 document literal QtyRequest:"(+"_(QtyReserved-QtyRequest)_") ",1:"")_QtyReserved) .... Set tmpItem.ImageIndex=-1 ;Checken of product gekoppeld is aan één toelevering New TLCnt Set TLCnt=$S(lbTLNrs="":0,1:$LL(lbTLNrs)) If TLCnt=0 Do . Do dcwlgSetInterfaceToKoppelNone() Else If TLCnt=1 Do . New SingleTLNr . Set SingleTLNr=$LI(lbTLNrs) . New Status . Set Status=$$dcwlgAddRest(SingleTLNr,ProductNr) ;Huidig product niet meer tonen, het staat er reeds in... . If $LI(Status)<0 Do Quit .. Do dcwlgSetInterfaceToKoppel() .. Do MApplication.MessageBox($LI(Status,2),..Form.Caption,$$$MBICONERROR) . Else Do .. Do dcwlgSetInterfaceToKoppelAanToelev(SingleTLNr) Else Do . Do dcwlgSetInterfaceToKoppel() Quit ;============================================================================== dcwlgSetInterfaceToKoppelAanToelev(TLNr) Set ..lvGekoppeld.Columns.GetItems($$$lvgecolProduct).Width=250 Set ..lvGekoppeld.Columns.GetItems($$$lvgecolToelevering).Width=0 Set ..lblHdrGekoppeld.Caption="GEKOPPELD AAN TOELEVERING "_TLNr Set ..shHdrGekoppeld.Brush.Color=$$$clBtnFace Quit ;------------------------------------------------------------------------------ dcwlgSetInterfaceToKoppel() Set ..lvGekoppeld.Columns.GetItems($$$lvgecolProduct).Width=0 Set ..lvGekoppeld.Columns.GetItems($$$lvgecolToelevering).Width=70 Set ..lblHdrGekoppeld.Caption="GEKOPPELD" Set ..shHdrGekoppeld.Brush.Color=$ZHEX("8080FF") Quit ;------------------------------------------------------------------------------ dcwlgSetInterfaceToKoppelNone() Set ..lvGekoppeld.Columns.GetItems($$$lvgecolProduct).Width=0 Set ..lvGekoppeld.Columns.GetItems($$$lvgecolToelevering).Width=70 Set ..lblHdrGekoppeld.Caption="GEKOPPELD" Set ..shHdrGekoppeld.Brush.Color=$$$clBtnFace Quit ;============================================================================== dcwlgAddRest(TLNr,exclProductNr) New Status Set Status=$$$cmReceptieProductie.aBuildSortedProdArrayViaToelev(TLNr,exclProductNr) Quit:($LI(Status)<0) Status Set tmpItem=..lvGekoppeld.Items.Add() Set tmpItem.Caption="" Set tmpItem.ImageIndex=-1 New QtyIsDone,ProductNr,tmpItem,PTPLine,RealQtyRequested,QtyReserved Set (QtyIsDone,ProductNr)="" For Set QtyIsDone=$O(aiPTP(QtyIsDone)) Quit:(QtyIsDone="") Do . For Set ProductNr=$O(aiPTP(QtyIsDone,ProductNr)) Quit:(ProductNr="") Do .. Set PTPLine=aiPTP(QtyIsDone,ProductNr) .. Set RealQtyRequested=$LI(PTPLine,2) ;zoals aanwezig in de toelevering (nt zoals id buffer) .. Set QtyReserved=$LI(PTPLine,1) .. Set tmpItem=..lvGekoppeld.Items.Add() .. Set tmpItem.Caption=##class(Prod.Product).GetPropViaNr(ProductNr,"KortTekst") .. Do tmpItem.SubItems.Add("") .. Do tmpItem.SubItems.Add("") .. Do tmpItem.SubItems.Add(RealQtyRequested) .. Do tmpItem.SubItems.Add(QtyReserved) .. Set tmpItem.ImageIndex=$S(QtyIsDone:-1,1:0) Quit Status ]]> ClearOnly:%Boolean=0 cache 0 document literal 0 Do . Set ..lvOngekoppeld.ItemFocused=..lvOngekoppeld.Items.GetItems(0) . Set ..lvOngekoppeld.Selected=..lvOngekoppeld.ItemFocused Quit ]]> Args:%String cache 0 document literal Args:%String cache 0 document literal Args:%String cache 0 document literal we trekken een vertikale lijn If Item.Data=1 Do . Set Canvas.Pen.Color=$$$clSilver . Set Canvas.Pen.Style="psDot" . Set Canvas.Font.Style="" . Do Canvas.MoveTo(0,13) . Do Canvas.LineTo($LI(Rect,3),13) ;Copy buffer naar canvas Do Sender.Canvas.Draw($LI(Rect,1),$LI(Rect,2),..bmpBuffer) ;End of user code s Args=$lb(Sender,Item,"","False") q ]]> Args:%String cache 0 document literal Args:%String cache 0 document literal Args:%String cache 0 document literal Args:%String cache 0 document literal Args:%String cache 0 document literal Args:%String cache 0 document literal Args:%String cache 0 document literal Args:%String cache 0 document literal Job:%String="" Args:%String cache 0 document literal %Library.CacheSerialState "%Library.TMFormClass" Address Form BufferSEP Button1 Button2 ChoosenBuffers Shape2 Shape3 Shape4 UserID bmpBuffer btnALaCarte btnAfsluiten btnAutomatischKoppelen btnBufferEdit btnChooseBuffers btnDoorsturen btnLogOk btnMailLogTo btnManueelKoppelen btnUndo chkBackorder frmEditBufferLine frmNewBufferLine ilBufferEdit lblHdrBuffer lblHdrGekoppeld lblHdrOngekoppeld lblMsg lvBuffers lvGekoppeld lvOngekoppeld mmoLog pmBufferEdit pmiDeleteBufferline pmiNewBufferline pmiOpenBufferline pmiSep1 pnlBuffer pnlFooter pnlGekoppeld pnlHeader pnlOngekoppeld shHdrBuffer pmiBufferViaToelevering pmiSep2 UserId pmiSep3 pmiVerwijderTempBfrs pmiWisBufferLijst ilGekoppeld shHdrGekoppeld pmiSep4 pmiSynchronize pOwnerDraw