private void FrmPdBillSend_Load(object sender, EventArgs e) { ShowWait("正在读取盘点明细...\r\n 请稍候..."); string msg; if (!PdDataDAL.GetPdDataInfo(out PubGlobal.PdDataInfo, out msg)) { MessageBox.Show("读取盘点单数据失败:" + msg); this.DialogResult = DialogResult.Cancel; HideWait(); return; } if (!PdDataDAL.ListPdData(out pdDatas, out msg)) { MessageBox.Show("查询盘点单明细失败:" + msg); this.DialogResult = DialogResult.Cancel; HideWait(); return; } else { tbPdDate.Text = PubGlobal.PdDataInfo.PdDate.ToString("yyyy-MM-dd"); tbCkCode.Text = PubGlobal.PdDataInfo.CkCode; dBPdDataBindingSource.DataSource = pdDatas; } HideWait(); }
private void FrmPdBillMx_Load(object sender, EventArgs e) { string str; ShowWait("正在读取盘点单信息\r\n请稍候..."); this.tbPdDate.Text = PubGlobal.PdDataInfo.PdDate.ToString("yyyy-MM-dd"); this.tbCkCode.Text = PubGlobal.PdDataInfo.CkCode; if (!PdDataDAL.ListPdData(out this.pdDatas, out str)) { MessageBox.Show("读取盘点单错误:" + str); HideWait(); } else { HideWait(); this.dBPdDataBindingSource.DataSource = this.pdDatas; } }