private void btnEnterNew_Click(object sender, System.EventArgs e)
        {
            strBeginDate = Request.Form["txtBegin"].ToString();
            if (strBeginDate == null || strBeginDate == "")
            {
                this.SetErrorMsgPageBydirHistory("进仓日期不能为空,请重新选择日期!");
                return;
            }
            DataTable dtDetail = (DataTable)Session["EnterDetail"];

            if (dtDetail.Rows.Count == 0)
            {
                this.SetErrorMsgPageBydirHistory("进仓货品为空,请先添加产品!");
                return;
            }
            string strProviderCode    = this.ddlProvider.SelectedValue;
            string strDate            = strBeginDate;
            string strSysTime         = DateTime.Now.ToShortDateString() + " " + DateTime.Now.ToLongTimeString();
            string strEnterType       = this.ddlEnterType.SelectedItem.Text;
            string strStorageOperType = this.ddlEnterType.SelectedValue;
            string strDeliverMan      = this.txtDeliverMan.Text.Trim();
            string strValidateOperID  = this.txtValidateOper.Text.Trim();
            string strSafeOperID      = this.txtSafeOper.Text.Trim();
            string strStorageOperID   = this.txtStorageOper.Text.Trim();
            string strBillOperID      = this.txtBillOper.Text.Trim();

            if (strProviderCode == "")
            {
                this.SetErrorMsgPageBydirHistory("供应商不能为空!");
                return;
            }

            CMSMStruct.LoginStruct ls1 = (CMSMStruct.LoginStruct)Session["Login"];
            Hashtable htpara           = new Hashtable();

            htpara.Add("strProviderCode", strProviderCode);
            htpara.Add("strDate", strDate);
            htpara.Add("strSysTime", strSysTime);
            htpara.Add("strEnterType", strEnterType);
            htpara.Add("strStorageOperType", strStorageOperType);
            htpara.Add("strDeliverMan", strDeliverMan);
            htpara.Add("strValidateOperID", strValidateOperID);
            htpara.Add("strSafeOperID", strSafeOperID);
            htpara.Add("strStorageOperID", strStorageOperID);
            htpara.Add("strBillOperID", strBillOperID);
            htpara.Add("strOperID", ls1.strOperName);

            Hashtable htapp   = (Hashtable)Application["appconf"];
            string    strcons = (string)htapp["cons"];

            StoBusi = new BusiComm.StorageBusi(strcons);
            try
            {
                if (StoBusi.NewBillOfEnterStorageAdd(htpara, dtDetail))
                {
                    this.SetSuccMsgPageBydir("新进仓单录入成功!", "Storage/wfmBillOfEnterStorage.aspx");
                    return;
                }
                else
                {
                    this.SetErrorMsgPageBydir("新进仓单录入时发生错误,请重试!");
                    return;
                }
            }
            catch (Exception er)
            {
                this.clog.WriteLine(er);
                this.SetErrorMsgPageBydir("查询错误,请重试!");
                return;
            }
        }