| | |
| | | using CY.Infrastructure.DESEncrypt; |
| | | using CY.Infrastructure.Query; |
| | | using System.Transactions; |
| | | using CY.BLL.OA; |
| | | |
| | | namespace CY.WebForm.Pages.work |
| | | { |
| | |
| | | OA_StaffBLL oA_StaffBLL = null; |
| | | OA_DepartmentBll oA_DepartmentBll = null; |
| | | public string planDataType = ""; |
| | | OA_SubjectSetBLL _OA_SubjectSetBLL = null; |
| | | public BaoxiaoReplyAdd() |
| | | { |
| | | oA_WorkReminderBll = new OA_WorkPlanBll(); |
| | |
| | | oA_WorkPlan_ShenpiBLL = new OA_WorkPlan_shenpiBLL(); |
| | | oA_StaffBLL = new OA_StaffBLL(); |
| | | oA_DepartmentBll = new OA_DepartmentBll(); |
| | | _OA_SubjectSetBLL = new OA_SubjectSetBLL(); |
| | | } |
| | | |
| | | //页面加载 |
| | |
| | | //数据加载 |
| | | public void InitData() |
| | | { |
| | | //科目名称 |
| | | this.selSubject.DataSource = _OA_SubjectSetBLL.getAllSubject(CurrentUser.MemberId, "贷"); |
| | | this.selSubject.DataBind(); |
| | | // this.selSubject.Items.Insert(0, new ListItem("请选择", "")); |
| | | |
| | | OA_WorkPlan m_OA_WorkPlan = oA_WorkReminderBll.GetModelByKeyid(Request["keyid"].ToInt32()); |
| | | if (m_OA_WorkPlan != null) |
| | | { |
| | |
| | | this.spanPlanPeople.InnerText = m_OA_WorkPlan.PlanPeople.ToString(); |
| | | |
| | | |
| | | this.spanPlanMoney.InnerText = m_OA_WorkPlan.PlanMoney.Value.ToString("0.00"); |
| | | this.txtPlanMoney.Value = m_OA_WorkPlan.PlanMoney.Value.ToString("0.00"); |
| | | |
| | | this.spanSubject.InnerText = m_OA_WorkPlan.RewardContent.ToString(); |
| | | this.spanPlanContent.InnerText = m_OA_WorkPlan.PlanContent.ToString(); |
| | | this.selSubject.Value = m_OA_WorkPlan.RewardResult; |
| | | this.txtPlanContent.Value = m_OA_WorkPlan.PlanContent; |
| | | this.spanHoubufapiaoStatus.InnerText = m_OA_WorkPlan.HoubufapiaoStatusName; |
| | | var sss = oA_WorkPlan_AttachmentBLL.GetModelByKaipiaoId(Request["keyid"].ToInt32().Value); |
| | | |
| | |
| | | if (m_OA_WorkPlan.ApprovalStatus == 1 || m_OA_WorkPlan.ApprovalStatus == 2) |
| | | { |
| | | JavaScript.MessageBox("该报销已经审批完成", this); |
| | | return; |
| | | } |
| | | if (m_OA_WorkPlan.PlanMoney< this.txtPlanMoney.Value.ToDecimal2()) |
| | | { |
| | | JavaScript.MessageBox("修改后的报销金额不能大于原报销金额", this); |
| | | return; |
| | | } |
| | | var oA_WorkPlan_Shenpis = oA_WorkPlan_ShenpiBLL.GetModelByKaipiaoId(Request["keyid"].ToInt32().Value).ToList(); |
| | |
| | | } |
| | | } |
| | | |
| | | m_OA_WorkPlan.PlanMoney = this.txtPlanMoney.Value.ToDecimal2(); |
| | | m_OA_WorkPlan.RewardResult = this.selSubject.Value; |
| | | m_OA_WorkPlan.PlanContent = this.txtPlanContent.Value; |
| | | |
| | | var a_SubjectSet = _OA_SubjectSetBLL.getSingleSubject(this.selSubject.Value.ToInt32()); |
| | | if (a_SubjectSet != null) |
| | | { |
| | | m_OA_WorkPlan.RewardContent = a_SubjectSet.SubjectName; |
| | | } |
| | | |
| | | |
| | | DateTime nowTime = DateTime.Now; |
| | |
| | | m_OA_WorkPlan.LastUpdateTime = nowTime; |
| | | res = oA_WorkReminderBll.UpdateModel(m_OA_WorkPlan); |
| | | } |
| | | else |
| | | { |
| | | res = oA_WorkReminderBll.UpdateModel(m_OA_WorkPlan); |
| | | } |
| | | |
| | | |
| | | |