コード例 #1
0
        private void btnMakeLog_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 = "生产预估";
                ProduceFacade pf = new ProduceFacade();
                if (chkSelf.Checked)
                {
                    pf.AddMakeLogSelf(pLog, operLog);
                }
                else
                {
                    pf.AddMakeLog(pLog, operLog);
                }
                Popup("预估成功");
                BindGrid();
            }
            catch (Exception ex)
            {
                Popup(ex.Message);
            }
        }
コード例 #2
0
        protected void btnMakeLog_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 = "订单制令";

                ProduceFacade pf = new ProduceFacade();
                pf.AddMakeLog(pLog, "0", operLog);
                Popup("制令成功");
            }
            catch (Exception ex)
            {
                Popup(ex.Message);
            }
        }