void ShowFocusedSequence() { object detailID = gridView1.GetFocusedRowCellValue("ID"); DataTable data = new AsnDal().ListNotPutawaySeqs(ConvertUtil.ToInt(detailID)); gridControl2.DataSource = data; }
public FrmShowAsnInboundDetail(ASNDetailEntity asnDetailEntity) : this() { asnDal = new AsnDal(); this.asnDetailEntity = asnDetailEntity; }
private void OnFormLoad(object sender, EventArgs e) { asnDal = new AsnDal(); asnQueryDal = new AsnQueryDal(); ucQueryCondition.LoadDataSource(); }
public FrmCrossInbound() { InitializeComponent(); asnDal = new AsnDal(); pagerDal = new PagerDal(); bindDataSouce = new BindLookUpEditDataSouce(); }
public FrmStrategyDialog(AsnHeaderEntity asnHeaderEntity) : this() { asnDal = new AsnDal(); codeItemDal = new CodeItemDal(); bindDataSouce = new BindLookUpEditDataSouce(); this.asnHeaderEntity = asnHeaderEntity; }
public FrmASNSearch() { InitializeComponent(); myPre = new PAsnManage(this); asnDal = new AsnDal(); codeItemDal = new CodeItemDal(); bindDataSouce = new BindLookUpEditDataSouce(); }
private void OnFormLoad(object sender, EventArgs e) { try { DataTable data = new AsnDal().ListInboundSummary(billID); gridControl1.DataSource = data; } catch (Exception ex) { MsgBox.Err(ex.Message); } }
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; } }
private void OnFrmLoad(object sender, EventArgs e) { try { this.asnDal = new AsnDal(); LoadData(); } catch (Exception ex) { MsgBox.Err(ex.Message); this.Close(); } }
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); } }