/// <summary>
        /// 自定义编码及大包装修改后 保存
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnSave_Click(object sender, EventArgs e)
        {
            try
            {
                defineInfoListModel = GetDefineInfoListModel();
                if (defineInfoListModel.Count == 0)
                {
                    return;
                }

                DefineCodeBLL.GetInstance().OperatorDefineInfoList(defineInfoListModel, this.CurrentUser);

                XtraMessageBox.Show("自定义编码及大包装设置成功!", Constant.APPNAME, MessageBoxButtons.OK, MessageBoxIcon.Information);

                //清空制单时用到供应目录缓存
                string strProjectID          = LueProject.EditValue.ToString();
                string strDataNameByPurchace = Constant.ORDPRODUCT + strProjectID + "经常采购目录";
                if (ClientCache.CachedDS.Tables.IndexOf(strDataNameByPurchace) != -1)
                {
                    ClientCache.CachedDS.Tables.Remove(strDataNameByPurchace);
                }
            }
            catch (Exception ex)
            {
                XtraMessageBox.Show("自定义编码及大包装设置失败!", Constant.APPNAME, MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
        /// <summary>
        /// 数据绑定
        /// </summary>
        private void DataBind(string ProjectID)
        {
            //获取采购目录查询数据集
            DefineCodeDt = DefineCodeBLL.GetInstance().GetDefineCodeDt(ProjectID);

            this.bindingSource1.DataSource = DefineCodeDt.DefaultView;
        }
        /// <summary>
        /// 修改保存操作
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void BtnSave_Click(object sender, EventArgs e)
        {
            if (!string.IsNullOrEmpty(this.txtProductMnemonic.Text))
            {
                if (DefineCodeBLL.GetInstance().DefineCodeIsAddProductMnemonic(this.txtProductMnemonic.Text, strHitCommID))
                {
                    XtraMessageBox.Show("自定义编码已存在,请重新输入!", Constant.MsgTitle, MessageBoxButtons.OK, MessageBoxIcon.Information);
                    this.txtProductMnemonic.Focus();
                    return;
                }
            }

            if (this.LueSenderName.EditValue == null)
            {
                XtraMessageBox.Show("请选择配送商企业!", Constant.MsgTitle, MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }

            OrdHitCommMode ordHitCommmodel = GetOrdHitCommModel();

            List <DefineInfoModel> defineInfoListmodel = new List <DefineInfoModel>();
            DefineInfoModel        defineInfoModel     = GetDefineInfoModel();

            defineInfoListmodel.Add(defineInfoModel);
            try
            {
                StockListBLL.GetInstance().PostOrdHitCommInfo(ordHitCommmodel, CurrentUser);
                DefineCodeBLL.GetInstance().OperatorDefineInfoList(defineInfoListmodel, CurrentUser);
                XtraMessageBox.Show("采购目录信息修改成功!", Constant.MsgTitle, MessageBoxButtons.OK, MessageBoxIcon.Information);

                this.EditFlag = true;

                this.Close();
            }
            catch (Exception ex)
            {
                XtraMessageBox.Show("采购目录信息修改失败!", Constant.MsgTitle, MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }