| | |
| | | OA_DepartmentBll oA_DepartmentBll = null; |
| | | OA_StaffBLL oA_StaffBLL = null; |
| | | OA_WorkPlan_shenpiBLL oA_WorkPlan_ShenpiBLL = null; |
| | | public string piliangpifu = null; |
| | | //初始化 |
| | | public BaoxiaoReplyList() |
| | | { |
| | |
| | | DateTime? endTime = null; |
| | | pa.PageSize = UCPager1.AspNetPager.PageSize; |
| | | pa.PageIndex = UCPager1.AspNetPager.CurrentPageIndex; |
| | | var oA_WorkPlans = bll_OA_WorkPlanBll.SelectModelPage(pa, CurrentUser.MemberId, Guid.Empty, Guid.Empty, 3, 17, "", null, null, string.IsNullOrEmpty(this.txtRegTimeStart.Value) ? beginTime : Convert.ToDateTime(this.txtRegTimeStart.Value), string.IsNullOrEmpty(this.txtRegTimeEnd.Value) ? endTime : Convert.ToDateTime(this.txtRegTimeEnd.Value), this.txtPlanPeople.Value.Trim(), -1, this.selApprovalStatus.Value.ToInt32(), null, null,this.TxtRewardContent.Value.Trim(), this.txtPlanContent.Value.Trim()); |
| | | var oA_WorkPlans = bll_OA_WorkPlanBll.SelectModelPage(pa, CurrentUser.MemberId, Guid.Empty, Guid.Empty, 3, 17, "", null, null, string.IsNullOrEmpty(this.txtRegTimeStart.Value) ? beginTime : Convert.ToDateTime(this.txtRegTimeStart.Value), string.IsNullOrEmpty(this.txtRegTimeEnd.Value) ? endTime : Convert.ToDateTime(this.txtRegTimeEnd.Value), this.txtPlanPeople.Value.Trim(), -1, this.selApprovalStatus.Value.ToInt32(), null, null,this.TxtRewardContent.Value.Trim(), this.txtPlanContent.Value.Trim(),"3"); |
| | | var oA_Staff = oA_StaffBLL.GetModelByMemberId(CurrentUser.TrueMemberId); |
| | | |
| | | if (oA_Staff.BF_Isbaoxiaojingli) |
| | | { |
| | | piliangpifu = "1"; |
| | | } |
| | | else |
| | | { |
| | | piliangpifu = "0"; |
| | | } |
| | | |
| | | foreach (var oA_WorkPlan in oA_WorkPlans) |
| | | { |
| | | var sss = oA_WorkPlan_AttachmentBLL.GetModelByKaipiaoId(oA_WorkPlan.Keyid.Value); |
| | |
| | | } |
| | | else if (!oA_Staff.BF_IsBaoxiaozhuguan && oA_Staff.BF_Isbaoxiaojingli) |
| | | { |
| | | if (oA_WorkPlan_Shenpis.Count > 2) |
| | | { |
| | | oA_WorkPlan.Nengfoushenpi = 1; |
| | | } |
| | | if (oA_WorkPlan_Shenpis.Count < 2) |
| | | { |
| | | oA_WorkPlan.Nengfoushenpi = 1; |
| | | } |
| | | } |
| | | else if (oA_Staff.BF_IsBaoxiaozhuguan && oA_Staff.BF_Isbaoxiaojingli) |
| | | { |
| | | var oA_WorkPlan_Shenpis1 = oA_WorkPlan_Shenpis.Where(x => x.Buzhou == 1).ToList(); |
| | | |
| | | |
| | | var shenpicount = oA_WorkPlan_Shenpis1.Count(x => x.ApprovalStaffId == CurrentUser.TrueMemberId); |
| | | |
| | | |
| | | |
| | | if(oA_WorkPlan_Shenpis.Count != 2 && ((oA_WorkPlan_Shenpis1.Count > 1) || shenpicount > 0)) |
| | | { |
| | | oA_WorkPlan.Nengfoushenpi = 1; |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | |
| | | |
| | | |
| | | } |
| | | this.AllMoney.InnerText = pa.heji1.Value.ToString("0.00"); |
| | | |
| | | |
| | | this.NowMoney.InnerText = oA_WorkPlans.Sum(x => x.PlanMoney).Value.ToString("F2"); |
| | | this.RepClientList.DataSource = oA_WorkPlans; |
| | | this.RepClientList.DataBind(); |