Exemplo n.º 1
0
        void ShowFocusedSequence()
        {
            object    detailID = gridView1.GetFocusedRowCellValue("ID");
            DataTable data     = new AsnDal().ListNotPutawaySeqs(ConvertUtil.ToInt(detailID));

            gridControl2.DataSource = data;
        }
Exemplo n.º 2
0
        public FrmShowAsnInboundDetail(ASNDetailEntity asnDetailEntity)
            : this()
        {
            asnDal = new AsnDal();

            this.asnDetailEntity = asnDetailEntity;
        }
Exemplo n.º 3
0
        private void OnFormLoad(object sender, EventArgs e)
        {
            asnDal      = new AsnDal();
            asnQueryDal = new AsnQueryDal();

            ucQueryCondition.LoadDataSource();
        }
Exemplo n.º 4
0
        public FrmCrossInbound()
        {
            InitializeComponent();

            asnDal        = new AsnDal();
            pagerDal      = new PagerDal();
            bindDataSouce = new BindLookUpEditDataSouce();
        }
Exemplo n.º 5
0
 public FrmStrategyDialog(AsnHeaderEntity asnHeaderEntity)
     : this()
 {
     asnDal               = new AsnDal();
     codeItemDal          = new CodeItemDal();
     bindDataSouce        = new BindLookUpEditDataSouce();
     this.asnHeaderEntity = asnHeaderEntity;
 }
Exemplo n.º 6
0
        public FrmASNSearch()
        {
            InitializeComponent();

            myPre         = new PAsnManage(this);
            asnDal        = new AsnDal();
            codeItemDal   = new CodeItemDal();
            bindDataSouce = new BindLookUpEditDataSouce();
        }
Exemplo n.º 7
0
 private void OnFormLoad(object sender, EventArgs e)
 {
     try
     {
         DataTable data = new AsnDal().ListInboundSummary(billID);
         gridControl1.DataSource = data;
     }
     catch (Exception ex)
     {
         MsgBox.Err(ex.Message);
     }
 }
Exemplo n.º 8
0
 private void OnFormLoad(object sender, EventArgs e)
 {
     asnDal         = new AsnDal();
     txtRemark.Text = asnHeader.WmsRemark;
     if (asnHeader.RowForeColor != null)
     {
         colorFore.Color = Color.FromArgb(asnHeader.RowForeColor.Value);
     }
     else
     {
         colorFore.Color = Color.Empty;
     }
 }
Exemplo n.º 9
0
        private void OnFrmLoad(object sender, EventArgs e)
        {
            try
            {
                this.asnDal = new AsnDal();

                LoadData();
            }
            catch (Exception ex)
            {
                MsgBox.Err(ex.Message);
                this.Close();
            }
        }
Exemplo n.º 10
0
        private void RestoreFocusedBill()
        {
            DeletedAsnHeaderEntity asnHeaderEntity = SelectedHeader;

            if (asnHeaderEntity == null)
            {
                MsgBox.Warn("请选中要还原的单据。");
                return;
            }

            if (MsgBox.AskOK(string.Format("确认要还原单据“{0}”吗?", asnHeaderEntity.BillNO)) != DialogResult.OK)
            {
                return;
            }

            try
            {
                //先看单据编号是否已存在
                AsnHeaderEntity header = new AsnDal().GetHeaderInfoByBillNO(GlobeSettings.LoginedUser.WarehouseCode, asnHeaderEntity.BillNO);
                if (header != null)
                {
                    MsgBox.Warn("单据编号已存在,无法还原。");
                }
                else
                {
                    asnDeletedDal.RestoreBill(asnHeaderEntity.BillID, asnHeaderEntity.BillNO);
                    gvHeader.DeleteSelectedRows();
                    bindingSource1.ResetBindings(false);
                    ShowFocusDetail();
                    MsgBox.OK("还原成功。");
                }
            }
            catch (Exception ex)
            {
                MsgBox.Err(ex.Message);
            }
        }