| | |
| | | OA_DepartmentBll oA_DepartmentBll = null; |
| | | public string planDataType = ""; |
| | | OA_SubjectSetBLL _OA_SubjectSetBLL = null; |
| | | OA_ShebeiWeixiuBLL oA_ShebeiWeixiuBLL = null; |
| | | public BaoxiaoReplyAdd() |
| | | { |
| | | oA_WorkReminderBll = new OA_WorkPlanBll(); |
| | |
| | | oA_StaffBLL = new OA_StaffBLL(); |
| | | oA_DepartmentBll = new OA_DepartmentBll(); |
| | | _OA_SubjectSetBLL = new OA_SubjectSetBLL(); |
| | | oA_ShebeiWeixiuBLL = new OA_ShebeiWeixiuBLL(); |
| | | } |
| | | |
| | | //页面加载 |
| | |
| | | string Messagejingli = null; |
| | | if (oA_Staff.BF_Isbaoxiaojingli) |
| | | { |
| | | if (oA_WorkPlan_Shenpis.Count > 2) |
| | | { |
| | | Messagejingli = "该流程已经审批完成!"; |
| | | } |
| | | if (oA_WorkPlan_Shenpis.Count < 2) |
| | | { |
| | | Messagejingli = "没到经理审批步骤!"; |
| | |
| | | oA_WorkPlan_Shenpi.ApprovalContent = this.txtApprovalContent.Value.Trim(); |
| | | oA_WorkPlan_Shenpi.CreateTime = nowTime; |
| | | oA_WorkPlan_Shenpi.Operator = CurrentUser.TrueName; |
| | | if (oA_WorkPlan_Shenpis.Count == 2) |
| | | if (oA_WorkPlan_Shenpis.Count >= 2 && oA_Staff.BF_Isbaoxiaojingli) |
| | | { |
| | | oA_WorkPlan_Shenpi.Buzhou = 2; |
| | | } |
| | |
| | | res = oA_WorkPlan_ShenpiBLL.InsertModel(oA_WorkPlan_Shenpi); |
| | | |
| | | |
| | | if (oA_WorkPlan_Shenpis.Count == 2 || this.selApprovalStatus.Value == "2") |
| | | if ((oA_WorkPlan_Shenpis.Count >= 2 && oA_Staff.BF_Isbaoxiaojingli ) || this.selApprovalStatus.Value == "2") |
| | | { |
| | | |
| | | m_OA_WorkPlan.ApprovalContent = this.txtApprovalContent.Value.Trim(); |
| | |
| | | m_OA_WorkPlan.Operator = CurrentUser.ShortName; |
| | | m_OA_WorkPlan.LastUpdateTime = nowTime; |
| | | res = oA_WorkReminderBll.UpdateModel(m_OA_WorkPlan); |
| | | |
| | | var oA_ShebeiWeixiu = oA_ShebeiWeixiuBLL.GetModelBytiaojian(null, m_OA_WorkPlan.Keyid, null); |
| | | if (oA_ShebeiWeixiu != null) |
| | | { |
| | | //oA_ShebeiWeixiu.Zerenren = this.selZerenren.Value.ToInt32(); |
| | | oA_ShebeiWeixiu.ApprovalStatus = this.selApprovalStatus.Value.ToInt32(); |
| | | //oA_ShebeiWeixiu.DanzePrice = this.txtDanzePrice.Value.ToDecimal2(); |
| | | oA_ShebeiWeixiuBLL.UpdateModel(oA_ShebeiWeixiu); |
| | | } |
| | | } |
| | | else |
| | | { |