コード例 #1
0
 private void sbtnMod_Click(object sender, System.EventArgs e)
 {
     //修改
     if(this.dataGrid1.CurrentRowIndex<0)
     {
         MessageBox.Show("请选择要修改的出库单","系统提示",MessageBoxButtons.OK,MessageBoxIcon.Information);
         return;
     }
     string strBillNo = this.dataGrid1[this.dataGrid1.CurrentRowIndex,0].ToString();
     string strsql = "";
     bool IsHis = false;
     if(this.checkBox1.Checked)
     {
         strsql = "select * from tbBillOfOutStorageHis where cnvcbillno='"+strBillNo+"' and cnvcDeptID='"+CMSMData.CMSMDataAccess.SysInitial.LocalDeptID+"'";
         IsHis = true;
     }
     else
     {
         strsql = "select * from tbBillOfOutStorage where cnvcbillno='"+strBillNo+"' and cnvcDeptID='"+CMSMData.CMSMDataAccess.SysInitial.LocalDeptID+"'";
     }
     DataTable dt = Helper.Query(strsql,false);
     Entity.BillOfOutStorage bos = new CMSM.Entity.BillOfOutStorage(dt);
     frmBillOfOutStorageAdd frm = new frmBillOfOutStorageAdd();
     frm.BOS = bos;
     frm.Flag = OperFlag.MOD;
     frm.IsHis = IsHis;
     frm.ShowDialog();
     this.DgBind();
 }
コード例 #2
0
 private void sbtnAdd_Click(object sender, System.EventArgs e)
 {
     Form frmadd=new frmBillOfOutStorageAdd();
     frmadd.ShowDialog();
 }