/// <summary> /// 初始化下拉框 /// </summary> private void InitDropDownList() { this.drpUnitId.DataValueField = "UnitId"; this.drpUnitId.DataTextField = "UnitName"; this.drpUnitId.DataSource = BLL.UnitService.GetMainAndSubUnitByProjectIdList(this.ProjectId); this.drpUnitId.DataBind(); Funs.FineUIPleaseSelect(this.drpUnitId); BLL.ConstValue.InitConstValueDropDownList(this.drpYear, BLL.ConstValue.Group_0008, true); BLL.ConstValue.InitConstValueDropDownList(this.drpMonths, BLL.ConstValue.Group_0009, true); }
private void InitUsers() { var users = from x in Funs.DB.Sys_User join y in Funs.DB.Project_ProjectUser on x.UserId equals y.UserId where y.ProjectId == this.ProjectId && this.drpSubUnits.SelectedValueArray.Contains(x.UnitId) select x; this.drpSubUnitPerson.DataValueField = "UserId"; this.drpSubUnitPerson.DataTextField = "UserName"; this.drpSubUnitPerson.DataSource = users; this.drpSubUnitPerson.DataBind(); Funs.FineUIPleaseSelect(this.drpSubUnitPerson); this.drpSubUnitPerson.SelectedIndex = 0; }
/// <summary> /// 加载页面 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { this.btnClose.OnClientClick = ActiveWindow.GetHideReference(); this.ProjectId = this.CurrUser.LoginProjectId; this.drpPersonId.DataValueField = "UserId"; this.drpPersonId.DataTextField = "UserName"; this.drpPersonId.DataSource = BLL.UserService.GetUserList(); this.drpPersonId.DataBind(); Funs.FineUIPleaseSelect(this.drpPersonId); this.HealthManageId = Request.Params["HealthManageId"]; if (!string.IsNullOrEmpty(this.HealthManageId)) { Model.Administrative_HealthManage healthManage = BLL.HealthManageService.GetHealthManageById(this.HealthManageId); if (healthManage != null) { this.ProjectId = healthManage.ProjectId; if (!string.IsNullOrEmpty(healthManage.PersonId)) { this.drpPersonId.SelectedValue = healthManage.PersonId; } if (healthManage.Age != null) { this.txtAge.Text = Convert.ToString(healthManage.Age); } this.txtBloodtype.Text = healthManage.Bloodtype; this.txtHealthState.Text = healthManage.HealthState; this.txtTaboo.Text = healthManage.Taboo; if (healthManage.CheckTime != null) { this.txtCheckTime.Text = string.Format("{0:yyyy-MM-dd}", healthManage.CheckTime); } this.txtRemark.Text = healthManage.Remark; } } else { this.txtCheckTime.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now); } ///初始化审核菜单 this.ctlAuditFlow.MenuId = BLL.Const.HealthManageMenuId; this.ctlAuditFlow.DataId = this.HealthManageId; this.ctlAuditFlow.ProjectId = this.ProjectId; this.ctlAuditFlow.UnitId = this.CurrUser.UnitId; } }
/// <summary> /// 加载页面 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { this.btnClose.OnClientClick = ActiveWindow.GetHideReference(); this.drpUnitId.DataValueField = "UnitId"; this.drpUnitId.DataTextField = "UnitName"; this.drpUnitId.DataSource = BLL.UnitService.GetUnitByProjectIdList(this.CurrUser.LoginProjectId); this.drpUnitId.DataBind(); Funs.FineUIPleaseSelect(this.drpUnitId); this.drpPersonId.DataValueField = "PersonId"; this.drpPersonId.DataTextField = "PersonName"; this.drpPersonId.DataSource = BLL.PersonService.GetPersonList(this.CurrUser.LoginProjectId); this.drpPersonId.DataBind(); Funs.FineUIPleaseSelect(this.drpPersonId); this.AccidentReportOtherId = Request.Params["AccidentReportOtherId"]; this.AccidentReportOtherItemId = Request.Params["AccidentReportOtherItemId"]; if (!string.IsNullOrEmpty(this.AccidentReportOtherItemId)) { Model.Accident_AccidentReportOtherItem accidentReportOtherItem = BLL.AccidentReportOtherItemService.GetAccidentReportOtherItemById(this.AccidentReportOtherItemId); if (accidentReportOtherItem != null) { this.AccidentReportOtherId = accidentReportOtherItem.AccidentReportOtherId; if (!string.IsNullOrEmpty(accidentReportOtherItem.UnitId)) { this.drpUnitId.SelectedValue = accidentReportOtherItem.UnitId; } if (!string.IsNullOrEmpty(accidentReportOtherItem.PersonId)) { this.drpPersonId.SelectedValue = accidentReportOtherItem.PersonId; } if (!string.IsNullOrEmpty(accidentReportOtherItem.PositionId)) { this.hdPositionId.Text = accidentReportOtherItem.PositionId; var position = BLL.PositionService.GetPositionById(this.hdPositionId.Text); if (position != null) { this.txtPositionName.Text = position.PositionName; } } } } } }
/// <summary> /// 单位下拉框选择 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void drpUnit_SelectedIndexChanged(object sender, EventArgs e) { this.drpTeamGroup.Items.Clear(); this.drpPerson.Items.Clear(); if (this.drpUnit.SelectedValue != BLL.Const._Null) { BLL.TeamGroupService.InitTeamGroupProjectUnitDropDownList(this.drpTeamGroup, this.ProjectId, this.drpUnit.SelectedValue, true); BLL.PersonService.InitPersonByProjectUnitDropDownList(this.drpPerson, this.ProjectId, this.drpUnit.SelectedValue, true); this.drpTeamGroup.SelectedValue = BLL.Const._Null; this.drpPerson.SelectedValue = BLL.Const._Null; } else { Funs.FineUIPleaseSelect(this.drpTeamGroup); Funs.FineUIPleaseSelect(this.drpPerson); this.drpTeamGroup.SelectedValue = BLL.Const._Null; this.drpPerson.SelectedValue = BLL.Const._Null; } }
/// <summary> /// 初始化下拉框 /// </summary> private void InitDropDownList() { this.drpUnit.DataTextField = "UnitName"; this.drpUnit.DataValueField = "UnitId"; this.drpUnit.DataSource = BLL.UnitService.GetUnitByProjectIdList(this.ProjectId); this.drpUnit.DataBind(); Funs.FineUIPleaseSelect(this.drpUnit); this.drpSignMan.DataValueField = "UserId"; this.drpSignMan.DataTextField = "UserName"; this.drpSignMan.DataSource = BLL.UserService.GetProjectUserListByProjectId(this.CurrUser.LoginProjectId); this.drpSignMan.DataBind(); Funs.FineUIPleaseSelect(this.drpSignMan); this.drpApproveMan.DataValueField = "UserId"; this.drpApproveMan.DataTextField = "UserName"; this.drpApproveMan.DataSource = BLL.UserService.GetProjectUserListByProjectId(this.CurrUser.LoginProjectId); this.drpApproveMan.DataBind(); Funs.FineUIPleaseSelect(this.drpApproveMan); }
/// <summary> /// 加载页面 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { this.btnClose.OnClientClick = ActiveWindow.GetHideReference(); this.ProjectId = this.CurrUser.LoginProjectId; //加载管理规定类别下拉选项 this.ddlManageRuleTypeId.DataTextField = "ManageRuleTypeName"; this.ddlManageRuleTypeId.DataValueField = "ManageRuleTypeId"; this.ddlManageRuleTypeId.DataSource = BLL.ManageRuleTypeService.GetManageRuleTypeList(); ddlManageRuleTypeId.DataBind(); Funs.FineUIPleaseSelect(this.ddlManageRuleTypeId); if (Request.Params["type"] == "see") //查看 { this.btnSave.Hidden = true; } this.ManageRuleId = Request.Params["ManagerRuleId"]; if (!string.IsNullOrEmpty(this.ManageRuleId)) { var managerRule = BLL.ActionPlan_ManagerRuleService.GetManagerRuleById(this.ManageRuleId); if (managerRule != null) { this.ProjectId = managerRule.ProjectId; this.txtManageRuleCode.Text = BLL.CodeRecordsService.ReturnCodeByDataId(this.ManageRuleId); this.txtManageRuleName.Text = managerRule.ManageRuleName; if (!string.IsNullOrEmpty(managerRule.ManageRuleTypeId)) { this.ddlManageRuleTypeId.SelectedValue = managerRule.ManageRuleTypeId; } //this.txtVersionNo.Text = managerRule.VersionNo; this.txtRemark.Text = managerRule.Remark; this.txtSeeFile.Text = HttpUtility.HtmlDecode(managerRule.SeeFile); } } ///初始化审核菜单 this.ctlAuditFlow.MenuId = BLL.Const.ActionPlan_ManagerRuleMenuId; this.ctlAuditFlow.DataId = this.ManageRuleId; this.ctlAuditFlow.ProjectId = this.ProjectId; this.ctlAuditFlow.UnitId = this.CurrUser.UnitId; } }
/// <summary> /// 初始化下拉框 /// </summary> private void InitDropDownList() { this.drpAccidentTypeId.DataValueField = "AccidentTypeId"; this.drpAccidentTypeId.DataTextField = "AccidentTypeName"; this.drpAccidentTypeId.DataSource = BLL.AccidentTypeService.GetAccidentTypeList(); this.drpAccidentTypeId.DataBind(); Funs.FineUIPleaseSelect(this.drpAccidentTypeId); this.drpWorkAreaId.DataValueField = "WorkAreaId"; this.drpWorkAreaId.DataTextField = "WorkAreaName"; this.drpWorkAreaId.DataSource = BLL.WorkAreaService.GetWorkAreaByProjectList(this.ProjectId); this.drpWorkAreaId.DataBind(); Funs.FineUIPleaseSelect(this.drpWorkAreaId); this.drpPersonId.DataValueField = "PersonId"; this.drpPersonId.DataTextField = "PersonName"; this.drpPersonId.DataSource = BLL.PersonService.GetPersonList(this.ProjectId); this.drpPersonId.DataBind(); Funs.FineUIPleaseSelect(this.drpPersonId); BLL.ConstValue.InitConstValueDropDownList(this.drpInjury, ConstValue.Group_Accident, true); }
/// <summary> /// 加载页面 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { ////权限按钮方法 this.GetButtonPower(); this.btnMenuDelete.ConfirmText = String.Format("你确定要删除选中的 <b><script>{0}</script></b> 行数据吗?", Grid1.GetSelectedCountReference()); ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); this.drpCheckMan.DataTextField = "UserName"; this.drpCheckMan.DataValueField = "UserId"; this.drpCheckMan.DataSource = (from x in Funs.DB.View_Inspection_Registration join y in Funs.DB.Sys_User on x.CheckManId equals y.UserId where x.ProjectId == this.CurrUser.LoginProjectId select y).Distinct().ToList(); this.drpCheckMan.DataBind(); Funs.FineUIPleaseSelect(this.drpCheckMan); GetRecords(); // 绑定表格 BindGrid(); } }
/// <summary> /// 加载页面 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { btnClose.OnClientClick = ActiveWindow.GetHideReference(); this.RegisterTypesId = Request.QueryString["RegisterTypesId"]; Funs.FineUIPleaseSelect(this.drpGroupType); if (!string.IsNullOrEmpty(this.RegisterTypesId)) { Model.HSSE_Hazard_HazardRegisterTypes title = BLL.HSSE_Hazard_HazardRegisterTypesService.GetTitleByRegisterTypesId(this.RegisterTypesId); if (title != null) { this.txtRegisterTypesName.Text = title.RegisterTypesName; if (!string.IsNullOrEmpty(title.GroupType)) { this.drpGroupType.SelectedValue = title.GroupType; } this.txtTypeCode.Text = title.TypeCode; this.txtRemark.Text = title.Remark; } } } }
/// <summary> /// 加载页面 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { this.btnClose.OnClientClick = ActiveWindow.GetHideReference(); this.ProjectId = this.CurrUser.LoginProjectId; this.drpCheckTypeCode.DataValueField = "CheckTypeCode"; this.drpCheckTypeCode.DataTextField = "CheckTypeContent"; this.drpCheckTypeCode.DataSource = BLL.CheckTypeSetService.GetCheckTypeSetList(); this.drpCheckTypeCode.DataBind(); Funs.FineUIPleaseSelect(this.drpCheckTypeCode); this.drpViolationRule.DataValueField = "ViolationRuleId"; this.drpViolationRule.DataTextField = "ViolationRule"; this.drpViolationRule.DataSource = ViolationRuleService.GetViolationRuleList(); this.drpViolationRule.DataBind(); Funs.FineUIPleaseSelect(this.drpViolationRule); this.ManageCheckId = Request.Params["ManageCheckId"]; if (!string.IsNullOrEmpty(this.ManageCheckId)) { Model.Administrative_ManageCheck manageCheck = BLL.ManageCheckService.GetManageCheckById(this.ManageCheckId); if (manageCheck != null) { this.ProjectId = manageCheck.ProjectId; this.Grid1.DataSource = BLL.CheckTypeSetService.GetCheckTypeSetsBySupCheckTypeCode(manageCheck.CheckTypeCode, ManageCheckId); this.Grid1.PageIndex = 0; this.Grid1.DataBind(); if (Grid1.Rows.Count > 0) { this.Grid1.Hidden = false; } this.txtManageCheckCode.Text = BLL.CodeRecordsService.ReturnCodeByDataId(this.ManageCheckId); if (manageCheck.CheckTypeCode != null) { this.drpCheckTypeCode.SelectedValue = manageCheck.CheckTypeCode; } this.txtSupplyCheck.Text = manageCheck.SupplyCheck; this.drpIsSupplyCheck.SelectedValue = Convert.ToString(manageCheck.IsSupplyCheck); this.drpViolationRule.SelectedValue = Convert.ToString(manageCheck.ViolationRule); this.txtCheckPerson.Text = manageCheck.CheckPerson; if (manageCheck.CheckTime != null) { this.txtCheckTime.Text = string.Format("{0:yyyy-MM-dd}", manageCheck.CheckTime); } this.txtVerifyPerson.Text = manageCheck.VerifyPerson; if (manageCheck.VerifyTime != null) { this.txtVerifyTime.Text = string.Format("{0:yyyy-MM-dd}", manageCheck.VerifyTime); } } } else { ////自动生成编码 this.txtManageCheckCode.Text = BLL.CodeRecordsService.ReturnCodeByMenuIdProjectId(BLL.Const.ManageCheckMenuId, this.ProjectId, this.CurrUser.UnitId); this.txtCheckTime.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now); this.txtVerifyTime.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now); } ///初始化审核菜单 this.ctlAuditFlow.MenuId = BLL.Const.ManageCheckMenuId; this.ctlAuditFlow.DataId = this.ManageCheckId; this.ctlAuditFlow.ProjectId = this.ProjectId; this.ctlAuditFlow.UnitId = this.CurrUser.UnitId; } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { ////自动生成编码 this.txtRectifyNoticesCode.Text = BLL.CodeRecordsService.ReturnCodeByMenuIdProjectId(BLL.Const.ProjectRectifyNoticesMenuId, this.ProjectId, this.CurrUser.UnitId); //受检单位 BLL.UnitService.InitUnitByProjectIdUnitTypeDropDownList(this.drpUnitId, this.CurrUser.LoginProjectId, Const.ProjectUnitType_2, false); //区域 BLL.WorkAreaService.InitWorkAreaDropDownList(this.drpWorkAreaId, this.CurrUser.LoginProjectId, true); ///安全经理 BLL.UserService.InitFlowOperateControlUserDropDownList(this.drpSignPerson, this.CurrUser.LoginProjectId, BLL.CommonService.GetIsThisUnitId(), true); ///检察人员 BLL.UserService.InitFlowOperateControlUserDropDownList(this.drpCheckPerson, this.CurrUser.LoginProjectId, BLL.CommonService.GetIsThisUnitId(), true); RectifyNoticesId = Request.Params["RectifyNoticesId"]; if (!string.IsNullOrEmpty(RectifyNoticesId)) { this.hdRectifyNoticesId.Text = RectifyNoticesId; Model.Check_RectifyNotices RectifyNotices = RectifyNoticesService.GetRectifyNoticesById(RectifyNoticesId); if (!string.IsNullOrEmpty(RectifyNotices.UnitId)) { this.drpUnitId.SelectedValue = RectifyNotices.UnitId; } if (!string.IsNullOrEmpty(RectifyNotices.WorkAreaId)) { this.drpWorkAreaId.SelectedValue = RectifyNotices.WorkAreaId; } if (!string.IsNullOrEmpty(RectifyNotices.CheckManIds)) { this.drpCheckPerson.SelectedValueArray = RectifyNotices.CheckManIds.Split(','); } this.txtRectifyNoticesCode.Text = RectifyNotices.RectifyNoticesCode; this.txtCompleteDate.Text = RectifyNotices.CompleteDate.ToString(); if (!string.IsNullOrEmpty(RectifyNotices.HiddenHazardType)) { this.drpHiddenHazardType.SelectedValue = RectifyNotices.HiddenHazardType; } if (!string.IsNullOrEmpty(RectifyNotices.States)) { State = RectifyNotices.States; } else { State = "0"; this.next1.Hidden = true; this.next2.Hidden = true; this.next3.Hidden = true; this.next4.Hidden = true; } if (State == "0") { this.next1.Hidden = true; this.next2.Hidden = true; this.next3.Hidden = true; this.next4.Hidden = true; } if (State == "1") { this.next.Hidden = true; this.next2.Hidden = true; this.next3.Hidden = true; this.next4.Hidden = true; this.Itemcontent.Hidden = true; this.btnSure.Hidden = true; BLL.UserService.InitUserProjectIdUnitIdDropDownList(this.drpDutyPerson, this.CurrUser.LoginProjectId, this.drpUnitId.SelectedValue, true); //接收人 BLL.UserService.InitFlowOperateControlUserDropDownList(this.drpProfessionalEngineer, this.CurrUser.LoginProjectId, BLL.CommonService.GetIsThisUnitId(), true); //专业工程师 BLL.UserService.InitFlowOperateControlUserDropDownList(this.drpConstructionManager, this.CurrUser.LoginProjectId, BLL.CommonService.GetIsThisUnitId(), true); //施工经理 BLL.UserService.InitFlowOperateControlUserDropDownList(this.drpProjectManager, this.CurrUser.LoginProjectId, BLL.CommonService.GetIsThisUnitId(), true); //项目经理 } else if (State == "2") { this.next.Hidden = true; this.next1.Hidden = true; this.next3.Hidden = true; this.next4.Hidden = true; this.after.Hidden = false; this.txtWrongContent.Readonly = true; this.txtRequirement.Readonly = true; this.txtLimitTime.Readonly = true; BLL.UserService.InitUserProjectIdUnitIdDropDownList(this.drpUnitHeadManId, this.CurrUser.LoginProjectId, this.drpUnitId.SelectedValue, true);//施工单位负责人 } else if (State == "3") { this.next.Hidden = true; this.next1.Hidden = true; this.next2.Hidden = true; this.next4.Hidden = true; this.Itemcontent.Hidden = true; this.btnSure.Hidden = true; BLL.UserService.InitUserProjectIdUnitIdDropDownList(this.drpSignPerson1, this.CurrUser.LoginProjectId, this.drpUnitId.SelectedValue, true);//复查人 } else if (State == "4") { this.next.Hidden = true; this.next1.Hidden = true; this.next2.Hidden = true; this.next3.Hidden = true; this.end.Hidden = false; this.after.Hidden = false; this.txtWrongContent.Readonly = true; this.txtRequirement.Readonly = true; this.txtLimitTime.Readonly = true; this.txtRectifyResults.Readonly = true; Funs.FineUIPleaseSelect(drpIsRectify); } else if (State == "5") { this.next.Hidden = true; this.next1.Hidden = true; this.next2.Hidden = true; this.next3.Hidden = true; this.Itemcontent.Hidden = true; } } else { this.txtCompleteDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now); State = "0"; this.next1.Hidden = true; this.next2.Hidden = true; this.next3.Hidden = true; this.next3.Hidden = true; this.next4.Hidden = true; } BindGrid(); } }
/// <summary> /// 加载页面 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { this.ProjectId = this.CurrUser.LoginProjectId; this.btnClose.OnClientClick = ActiveWindow.GetHideReference(); BLL.UserService.InitUserDropDownList(this.drpSignMan, this.CurrUser.LoginProjectId, true); BLL.UnitService.InitUnitDropDownList(this.drpUnit, this.ProjectId, true); Funs.FineUIPleaseSelect(this.drpTeamGroup); Funs.FineUIPleaseSelect(this.drpPerson); BLL.UserService.InitUserDropDownList(this.drpApproveMan, this.CurrUser.LoginProjectId, true); BLL.ConstValue.InitConstValueDropDownList(this.drpRewardType, BLL.ConstValue.Group_RewardType, true); BindGrid(string.Empty); this.IncentiveNoticeId = Request.Params["IncentiveNoticeId"]; this.txtCurrency.Text = "人民币"; if (!string.IsNullOrEmpty(this.IncentiveNoticeId)) { Model.Check_IncentiveNotice incentiveNotice = BLL.IncentiveNoticeService.GetIncentiveNoticeById(this.IncentiveNoticeId); if (incentiveNotice != null) { this.ProjectId = incentiveNotice.ProjectId; this.txtIncentiveNoticeCode.Text = CodeRecordsService.ReturnCodeByDataId(this.IncentiveNoticeId); if (!string.IsNullOrEmpty(incentiveNotice.UnitId)) { this.drpUnit.SelectedValue = incentiveNotice.UnitId; BLL.TeamGroupService.InitTeamGroupProjectUnitDropDownList(this.drpTeamGroup, this.ProjectId, incentiveNotice.UnitId, true); if (!string.IsNullOrEmpty(incentiveNotice.TeamGroupId)) { this.drpTeamGroup.SelectedValue = incentiveNotice.TeamGroupId; } BLL.PersonService.InitPersonByProjectUnitDropDownList(this.drpPerson, this.ProjectId, incentiveNotice.UnitId, true); if (!string.IsNullOrEmpty(incentiveNotice.PersonId)) { this.drpPerson.SelectedValue = incentiveNotice.PersonId; } } this.txtIncentiveDate.Text = string.Format("{0:yyyy-MM-dd}", incentiveNotice.IncentiveDate); this.txtBasicItem.Text = incentiveNotice.BasicItem; if (!string.IsNullOrEmpty(incentiveNotice.RewardType)) { this.drpRewardType.SelectedValue = incentiveNotice.RewardType; } if (incentiveNotice.IncentiveMoney.HasValue) { this.txtPayMoney.Text = Convert.ToString(incentiveNotice.IncentiveMoney); this.rbtnIncentiveWay1.Checked = true; this.txtBig.Text = Funs.NumericCapitalization(Funs.GetNewDecimalOrZero(this.txtPayMoney.Text));//转换大写 } if (!string.IsNullOrEmpty(incentiveNotice.TitleReward)) { this.txtTitleReward.Text = incentiveNotice.TitleReward; this.rbtnIncentiveWay2.Checked = true; } if (!string.IsNullOrEmpty(incentiveNotice.MattleReward)) { this.txtMattleReward.Text = incentiveNotice.MattleReward; this.rbtnIncentiveWay3.Checked = true; } this.AttachUrl = incentiveNotice.AttachUrl; this.divFile.InnerHtml = BLL.UploadAttachmentService.ShowAttachment("../", this.AttachUrl); this.txtFileContents.Text = HttpUtility.HtmlDecode(incentiveNotice.FileContents); if (!string.IsNullOrEmpty(incentiveNotice.SignMan)) { this.drpSignMan.SelectedValue = incentiveNotice.SignMan; } if (!string.IsNullOrEmpty(incentiveNotice.ApproveMan)) { this.drpApproveMan.SelectedValue = incentiveNotice.ApproveMan; } if (!string.IsNullOrEmpty(incentiveNotice.Currency)) { this.txtCurrency.Text = incentiveNotice.Currency; } } } else { this.drpSignMan.SelectedValue = this.CurrUser.UserId; this.txtIncentiveDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now); var codeTemplateRule = BLL.ProjectData_CodeTemplateRuleService.GetProjectData_CodeTemplateRuleByMenuIdProjectId(BLL.Const.ProjectIncentiveNoticeMenuId, this.ProjectId); if (codeTemplateRule != null) { this.txtFileContents.Text = HttpUtility.HtmlDecode(codeTemplateRule.Template); } ////自动生成编码 this.txtIncentiveNoticeCode.Text = BLL.CodeRecordsService.ReturnCodeByMenuIdProjectId(BLL.Const.ProjectIncentiveNoticeMenuId, this.ProjectId, this.CurrUser.UnitId); } ///初始化审核菜单 this.ctlAuditFlow.MenuId = BLL.Const.ProjectIncentiveNoticeMenuId; this.ctlAuditFlow.DataId = this.IncentiveNoticeId; this.ctlAuditFlow.ProjectId = this.ProjectId; this.ctlAuditFlow.UnitId = this.CurrUser.UnitId; } }