Ejemplo n.º 1
0
        private void btnOK_Click(object sender, System.EventArgs e)
        {
            try
            {
                DataTable   dtOrderReduce    = (DataTable)Session["ProductList"];
                OrderFacade order            = new OrderFacade();
                string      strOrderSerialNo = txtOrderSerialNo.Text;
                OperLog     operLog          = new OperLog();
                operLog.cnvcOperID   = oper.strLoginID;
                operLog.cnvcDeptID   = oper.strDeptID;
                operLog.cnvcOperType = "减单";

                order.OrderReduce(strOrderSerialNo, ddlReduceType.SelectedValue, txtReduceComments.Text, dtOrderReduce, operLog);
                Session["ProductList"] = null;
                btnCancel_Click(null, null);
                btnOK.Visible = false;
                Popup("减单成功");

                DataTable dtOrderBookDetail = (DataTable)Session["ProductList"];
                this.DataGrid2.DataSource = dtOrderBookDetail;
                this.DataGrid2.DataBind();
            }
            catch (Exception ex)
            {
                Popup(ex.Message);
            }
        }