username@email.com
4 天以前 e8e3122fdc4844202fb9e05477d47139e47a8aae
CY_ECommercePlatform/CY.WebForm/Pages/financial/BaoxiaoFukuanEdit.aspx.cs
@@ -25,6 +25,7 @@
        OA_StaffBLL staffBLL = null;
        OA_WorkPlanBll bll_OA_WorkPlanBll = null;
        OA_DepartmentBll oA_DepartmentBll = null;
        OA_ShebeiWeixiuBLL oA_ShebeiWeixiuBLL = null;
        public BaoxiaoFukuanEdit()
        {
            firmAccount = new OA_FirmAccount();
@@ -37,6 +38,7 @@
            staffBLL = new OA_StaffBLL();
            bll_OA_WorkPlanBll = new OA_WorkPlanBll();
            oA_DepartmentBll = new OA_DepartmentBll();
            oA_ShebeiWeixiuBLL = new OA_ShebeiWeixiuBLL();
        }
        protected void Page_Load(object sender, EventArgs e)
@@ -70,10 +72,10 @@
        protected void InitialData()
        {
            var keyid = Request["keyid"].ToInt32();
            //科目名称
            selSubject.DataSource = _OA_SubjectSetBLL.getAllSubject(CurrentUser.MemberId, "贷");
            selSubject.DataBind();
            selSubject.Items.Insert(0, new ListItem("请选择", ""));
            ////科目名称
            //selSubject.DataSource = _OA_SubjectSetBLL.getAllSubject(CurrentUser.MemberId, "贷");
            //selSubject.DataBind();
            //selSubject.Items.Insert(0, new ListItem("请选择", ""));
            ///账户类型
            selAcoountType.DataSource = _Sys_DictionaryBLL.GetDataByType("账户类型");
@@ -85,6 +87,7 @@
            {
                var oA_WorkPlan = bll_OA_WorkPlanBll.GetModelByKeyid(keyid);
                this.selSubject.Value = oA_WorkPlan.RewardResult;
                this.selSubjectName.Value = oA_WorkPlan.RewardContent;
                this.txtMoney.Value = oA_WorkPlan.PlanMoney.Value.ToString("0.00");
                this.txtPaymentUnit.Value = oA_WorkPlan.PlanPeople;
                var oA_Department = oA_DepartmentBll.GetModelByKeyid(oA_WorkPlan.DepartId);
@@ -151,6 +154,14 @@
                            oA_WorkPlan.Operator = CurrentUser.ShortName;
                            oA_WorkPlan.LastUpdateTime = DateTime.Now;
                            var res = bll_OA_WorkPlanBll.UpdateModel(oA_WorkPlan);
                            var shebeiWeixiu = oA_ShebeiWeixiuBLL.GetModelBytiaojian(null, oA_WorkPlan.Keyid, null);
                            if (shebeiWeixiu != null)
                            {
                                shebeiWeixiu.Shifoufufei = 1;
                                oA_ShebeiWeixiuBLL.UpdateModel(shebeiWeixiu);
                            }
                        }