Ejemplo n.º 1
0
 private void showDeliveryInfo(bool showCartons)
 {
     //Clear and validate
     this.grdDelivery.SelectedObject = null;
     if (this.mIssue != null)
     {
         //Display delivery info
         DeliveryDS delivery = CustomerProxy.GetDelivery(this.mIssue.CompanyID, this.mIssue.StoreNumber, this.mIssue.OFD1FromDate, this.mIssue.OFD1ToDate, this.mIssue.PROID);
         if (delivery.DeliveryTable.Rows.Count > 0)
         {
             this.grdDelivery.SelectedObject = new DeliveryInfo(delivery.DeliveryTable[0]);
         }
         if (showCartons)
         {
             ScanDS osdscans = CustomerProxy.GetOSDScans(this.mIssue.PROID);
             this.oSDScanTableBindingSource.DataSource = osdscans;
             ScanDS podscans = CustomerProxy.GetPODScans(this.mIssue.PROID);
             this.pODScanTableBindingSource.DataSource = podscans;
         }
     }
 }