private void btnDivideGoods_Click(object sender, System.EventArgs e) { //生成分货数据 try { string strwhhouse = this.ddlWarehouse.SelectedValue; ProduceLog pLog = new ProduceLog(); pLog.cnnProduceSerialNo = decimal.Parse(txtProduceSerialNo.Text); pLog.cnvcOperID = oper.strLoginID; OperLog operLog = new OperLog(); operLog.cnvcOperID = oper.strLoginID; operLog.cnvcDeptID = oper.strDeptID; operLog.cnvcOperType = "分货"; GoodsFacade goods = new GoodsFacade(); goods.AddAssignLog(pLog, operLog, strwhhouse); BindAssignLog(txtProduceSerialNo.Text); Popup("分货成功"); this.btnQuery_Click(null, null); //this.btnDivideGoods.Enabled = false; } catch (Exception ex) { Popup(ex.Message); } }
protected void btnDivideGoods_Click(object sender, System.EventArgs e) { try { ProduceLog pLog = new ProduceLog(); pLog.cnnProduceSerialNo = decimal.Parse(txtProduceSerialNo.Text); pLog.cnvcOperID = oper.strLoginID; OperLog operLog = new OperLog(); operLog.cnvcOperID = oper.strLoginID; operLog.cnvcDeptID = oper.strDeptID; operLog.cnvcOperType = "分货"; GoodsFacade goods = new GoodsFacade(); goods.AddAssignLog(pLog, operLog); BindAssignLog(txtProduceSerialNo.Text); Popup("分货成功"); //this.btnDivideGoods.Enabled = false; } catch (Exception ex) { Popup(ex.Message); } }