| | |
| | | using CY.BLL.EC; |
| | | using CY.Infrastructure.DESEncrypt; |
| | | using CY.Infrastructure.Query; |
| | | using CY.BLL.OA; |
| | | |
| | | namespace CY.WebForm.Pages.work |
| | | { |
| | |
| | | Sys_DictionaryBLL bll_Sys_DictionaryBLL = null; |
| | | OA_WorkPlanBll oA_WorkReminderBll = null; |
| | | OA_CarDictionaryBLL bll_OA_CarDictionaryBLL = null; |
| | | |
| | | OA_SuppliersBLL _OA_SuppliersBLL = null; |
| | | public MyRequestAdd() |
| | | { |
| | | departmentBll = new OA_DepartmentBll(); |
| | |
| | | oA_WorkReminderBll = new OA_WorkPlanBll(); |
| | | oA_StaffBLL = new OA_StaffBLL(); |
| | | bll_OA_CarDictionaryBLL = new OA_CarDictionaryBLL(); |
| | | _OA_SuppliersBLL = new OA_SuppliersBLL(); |
| | | } |
| | | |
| | | //页面加载 |
| | |
| | | this.selPlanTitle.DataTextField = "ParName"; |
| | | this.selPlanTitle.DataBind(); |
| | | this.selPlanTitle.Items.Insert(0, new ListItem("全部", "")); |
| | | |
| | | //供应商 |
| | | this.selSuppliers.DataSource = _OA_SuppliersBLL.getSupplierTable(CurrentUser.MemberId); |
| | | this.selSuppliers.DataBind(); |
| | | this.selSuppliers.Items.Insert(0, new ListItem("全部", "")); |
| | | |
| | | InitData(); |
| | | } |
| | | } |
| | |
| | | else |
| | | { |
| | | this.txtPlanTitle.Value = m_OA_WorkPlan.PlanTitle.ToString(); |
| | | } |
| | | if (m_OA_WorkPlan.PlanDataType == 15) |
| | | { |
| | | this.txtShoukuandanwei.Value = m_OA_WorkPlan.PlanComplany; |
| | | } |
| | | else |
| | | { |
| | | this.txtShoukuandanwei.Value = ""; |
| | | } |
| | | this.txtPlanContent.Value = m_OA_WorkPlan.PlanContent.ToString(); |
| | | } |
| | |
| | | } |
| | | |
| | | m_OA_WorkPlan.Operator = CurrentUser.ShortName; |
| | | m_OA_WorkPlan.PlanComplany = ""; |
| | | if (this.selPlanDataType.Value == "15") |
| | | { |
| | | if (!this.txtPlanMoney.Value.Trim().ToDecimal2().HasValue || this.txtPlanMoney.Value.Trim().ToDecimal2().Value <= 0) |
| | | { |
| | | JavaScript.MessageBox("付款申请请填写申请费用!", this); |
| | | return; |
| | | } |
| | | if (string.IsNullOrWhiteSpace(this.txtShoukuandanwei.Value)) |
| | | { |
| | | JavaScript.MessageBox("付款申请请填写收款单位!", this); |
| | | return; |
| | | } |
| | | m_OA_WorkPlan.PlanComplany = this.txtShoukuandanwei.Value; |
| | | } |
| | | else |
| | | { |
| | | m_OA_WorkPlan.PlanComplany = ""; |
| | | } |
| | | |
| | | m_OA_WorkPlan.PlanContent = this.txtPlanContent.Value.Trim(); |
| | | m_OA_WorkPlan.PlanDataType = this.selPlanDataType.Value.ToInt32(); |
| | | m_OA_WorkPlan.PlanMoney = this.txtPlanMoney.Value.Trim().ToDecimal2()??0; |