Ejemplo n.º 1
0
        private void OnTabSelected(object sender, TabControlEventArgs e)
        {
            //Event handler for change in tab selection
            this.Cursor = Cursors.WaitCursor;
            try {
                if (this.mIssue == null)
                {
                    return;
                }
                switch (e.TabPage.Name)
                {
                case "tabDetail":
                    break;

                case "tabOSD":
                    EnterpriseDS osdscans = EnterpriseFactory.GetOSDScans(this.mIssue.PROID);
                    this.oSDScanTableBindingSource.DataSource = osdscans;
                    break;

                case "tabPOD":
                    EnterpriseDS podscans = EnterpriseFactory.GetPODScans(this.mIssue.PROID);
                    this.pODScanTableBindingSource.DataSource = podscans;
                    break;
                }
            }
            catch (Exception ex) { reportError(ex); }
            finally { setUserServices(); this.Cursor = Cursors.Default; }
        }
Ejemplo n.º 2
0
 private void showDeliveryInfo(bool showCartons)
 {
     //Clear and validate
     this.grdDelivery.SelectedObject = null;
     if (this.mIssue != null)
     {
         //Display delivery info
         EnterpriseDS delivery = EnterpriseFactory.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)
         {
             EnterpriseDS osdscans = EnterpriseFactory.GetOSDScans(this.mIssue.PROID);
             this.oSDScanTableBindingSource.DataSource = osdscans;
             EnterpriseDS podscans = EnterpriseFactory.GetPODScans(this.mIssue.PROID);
             this.pODScanTableBindingSource.DataSource = podscans;
         }
     }
 }