private void BindTemplateTree() { DataTable dt = DeptQuarterBus.GetQuarterDescrible(); //根节点 TreeNode rootNode = new TreeNode(); rootNode.Text = " <img src=\"../../../Images/DeptMage.jpg\" border=\"0\"/> <span style=\"font-size:14px;height:28px\"> 职位说明书模板库 </span>"; // rootNode.Value = "0"; if (dt != null && dt.Rows.Count > 0) { DataRow[] rows = dt.Select("1=1"); if (rows.Length > 0) { TreeNode childNode = null; for (int i = 0; i < rows.Length; i++) { childNode = new TreeNode(); childNode.Value = rows[i]["ID"].ToString(); childNode.Text = "<img src=\"../../../Images/DeptMage.jpg\" border=\"0\"/><span style=\"font-size:12px;font-color:#006699;\"> " + rows[i]["QuterName"].ToString() + " </span>"; childNode.NavigateUrl = "DeptQueryInfo.aspx?ModuleID=2011104&&Sign=1&&QuarterID=" + rows[i]["ID"].ToString(); rootNode.ChildNodes.Add(childNode); } } } trTemplate.Nodes.Add(rootNode); }
/// <summary> /// 类名:DeptQuarter_Info /// 描述:岗位设置 /// /// 作者:吴志强 /// 创建时间:2009/04/13 /// 最后修改时间:2009/04/13 /// </summary> /// protected void Page_Load(object sender, EventArgs e) { //编号初期处理 //页面初期设值 if (!IsPostBack) { UserInfoUtil userInfo = (UserInfoUtil)SessionUtil.Session["UserInfo"]; divCompany.InnerHtml = userInfo.CompanyName; codeRule.CodingType = ConstUtil.CODING_RULE_TYPE_ZERO; codeRule.ItemTypeID = ConstUtil.CODING_BASE_ITEM_QUARTER; //岗位分类 ddlQuarterType.TypeFlag = ConstUtil.CODE_TYPE_HUMAN; ddlQuarterType.TypeCode = ConstUtil.CODE_TYPE_QUARTER; ddlQuarterType.IsInsertSelect = true; //岗位级别 ddlQuarterLevel.TypeFlag = ConstUtil.CODE_TYPE_HUMAN; ddlQuarterLevel.TypeCode = ConstUtil.CODE_TYPE_QUARTER_LEVEL; ddlQuarterLevel.IsInsertSelect = true; QuterModelSelect.DataValueField = "ID"; QuterModelSelect.DataTextField = "QuterName"; QuterModelSelect.DataSource = DeptQuarterBus.GetQuarterDescrible(); QuterModelSelect.DataBind(); ListItem Item = new ListItem(ConstUtil.CODE_TYPE_INSERT_TEXT, ConstUtil.CODE_TYPE_INSERT_VALUE); QuterModelSelect.Items.Insert(0, Item); QuterModelSelect.SelectedValue = "0"; txtDeptName.Attributes["readonly"] = "readonly"; txtSuperQuarterName.Attributes["readonly"] = "readonly"; } }
protected void Page_Load(object sender, EventArgs e) { //页面初期表示 if (!IsPostBack) { //显示工资项列表 //InitSalaryInfo(); //岗位初期 DataTable dtQuarter = DeptQuarterBus.GetQuarterInfoWithCompanyCD(); ddlQuarter.DataSource = dtQuarter; ddlQuarter.DataValueField = "ID"; ddlQuarter.DataTextField = "QuarterName"; ddlQuarter.DataBind(); //添加一请选择选项 ListItem Item = new ListItem(ConstUtil.CODE_TYPE_INSERT_TEXT, ConstUtil.CODE_TYPE_INSERT_VALUE); ddlQuarter.Items.Insert(0, Item); DataTable dtTaxInfo = InputPersonTrueIncomeTaxBus.PersonTaxInfo(); StringBuilder message = new StringBuilder(); if (dtTaxInfo != null || dtTaxInfo.Rows.Count > 1) { //遍历个人所得税的所有信息 for (int i = 0; i < dtTaxInfo.Rows.Count; i++) { string MinMoney = GetSafeData.GetStringFromDecimal(dtTaxInfo.Rows[i], "MinMoney"); string MaxMoney = GetSafeData.GetStringFromDecimal(dtTaxInfo.Rows[i], "MaxMoney"); string TaxPercent = GetSafeData.GetStringFromDecimal(dtTaxInfo.Rows[i], "TaxPercent"); string MinusMoney = GetSafeData.GetStringFromDecimal(dtTaxInfo.Rows[i], "MinusMoney"); message.AppendLine(MinMoney + "," + MaxMoney + "," + TaxPercent + "," + MinusMoney + "@"); } } hidTaxInfo.Value = message.ToString(); } }
/// <summary> /// 类名:InputFloatSalary /// 描述:浮动工资录入 /// /// 作者:吴志强 /// 创建时间:2009/05/13 /// 最后修改时间:2009/05/13 /// </summary> /// protected void Page_Load(object sender, EventArgs e) { //页面初期表示 if (!IsPostBack) { //岗位初期 DataTable dtData = DeptQuarterBus.GetQuarterInfoWithCompanyCD(); ddlQuarter.DataSource = dtData; ddlQuarter.DataValueField = "ID"; ddlQuarter.DataTextField = "QuarterName"; ddlQuarter.DataBind(); //添加一请选择选项 ListItem Item = new ListItem(ConstUtil.CODE_TYPE_INSERT_TEXT, ConstUtil.CODE_TYPE_INSERT_VALUE); ddlQuarter.Items.Insert(0, Item); //计件项目 //dtData = PieceworkItemBus.GetPieceworkItemInfo(true); //ddlPiecework.DataSource = dtData; //ddlPiecework.DataValueField = "ItemNo"; //ddlPiecework.DataTextField = "ItemName"; //ddlPiecework.DataBind(); //ddlPiecework.Items.Insert(0, Item); //ddlNewPiecework.DataSource = dtData; //ddlNewPiecework.DataValueField = "ItemNo"; //ddlNewPiecework.DataTextField = "ItemName"; //ddlNewPiecework.DataBind(); //ddlNewPiecework.Items.Insert(0, Item); //ddlNewPiecework.Attributes.Add("onchange", "ChangeItemNo();"); //计时项目 //dtData = TimeItemBus.GetTimeItemInfo(true); //ddlTime.DataSource = dtData; //ddlTime.DataValueField = "TimeNo"; //ddlTime.DataTextField = "TimeName"; //ddlTime.DataBind(); //ddlTime.Items.Insert(0, Item); //ddlNewTime.DataSource = dtData; //ddlNewTime.DataValueField = "TimeNo"; //ddlNewTime.DataTextField = "TimeName"; //ddlNewTime.DataBind(); //ddlNewTime.Items.Insert(0, Item); //ddlNewTime.Attributes.Add("onchange", "ChangeItemNo();"); //提成项目 //dtData = CommissionItemBus.GetCommissionItemInfo(true); //ddlCommission.DataSource = dtData; //ddlCommission.DataValueField = "ItemNo"; //ddlCommission.DataTextField = "ItemName"; //ddlCommission.DataBind(); //ddlCommission.Items.Insert(0, Item); //ddlNewCommission.DataSource = dtData; //ddlNewCommission.DataValueField = "ItemNo"; //ddlNewCommission.DataTextField = "ItemName"; //ddlNewCommission.DataBind(); //ddlNewCommission.Items.Insert(0, Item); //ddlNewCommission.Attributes.Add("onchange", "ChangeItemNo();"); } }
/// <summary> /// 绑定岗位 /// </summary> private void BinddQuarters() { DataTable dtQuarter = DeptQuarterBus.GetQuarterInfoWithCompanyCD(); ddlSearchQuarter.DataSource = dtQuarter; ddlSearchQuarter.DataValueField = "ID"; ddlSearchQuarter.DataTextField = "QuarterName"; ddlSearchQuarter.DataBind(); ddlSearchQuarter.Items.Add(new System.Web.UI.WebControls.ListItem("--请选择--", "0")); ddlSearchQuarter.SelectedValue = "0"; }
private void ReadTemplate() { QuterModelSelect.Items.Clear(); QuterModelSelect.DataValueField = "ID"; QuterModelSelect.DataTextField = "QuterName"; QuterModelSelect.DataSource = DeptQuarterBus.GetQuarterDescrible(); QuterModelSelect.DataBind(); ListItem Item = new ListItem(ConstUtil.CODE_TYPE_INSERT_TEXT, ConstUtil.CODE_TYPE_INSERT_VALUE); QuterModelSelect.Items.Insert(0, Item); QuterModelSelect.SelectedIndex = 0; }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { QuterModelSelect.DataValueField = "ID"; QuterModelSelect.DataTextField = "QuterName"; QuterModelSelect.DataSource = DeptQuarterBus.GetQuarterDescrible(); QuterModelSelect.DataBind(); ListItem Item = new ListItem(ConstUtil.CODE_TYPE_INSERT_TEXT, ConstUtil.CODE_TYPE_INSERT_VALUE); QuterModelSelect.Items.Insert(0, Item); QuterModelSelect.SelectedIndex = 0; } }
/// <summary> /// 类名:SelectEmployeeInfo /// 描述:选择人员列表 /// /// 作者:吴志强 /// 创建时间:2009/04/27 /// 最后修改时间:2009/04/27 /// </summary> /// protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { //获取岗位列表数据 ddlQuarter.DataSource = DeptQuarterBus.GetQuarterInfoWithCompanyCD(); ddlQuarter.DataValueField = "ID"; ddlQuarter.DataTextField = "QuarterName"; ddlQuarter.DataBind(); ddlQuarter.Items.Insert(0, new ListItem(ConstUtil.CODE_TYPE_INSERT_TEXT, ConstUtil.CODE_TYPE_INSERT_VALUE)); //岗位职等 ddlAdminLevel.TypeFlag = ConstUtil.CODE_TYPE_HUMAN; ddlAdminLevel.TypeCode = ConstUtil.CODE_TYPE_QUARTER_ADMIN; ddlAdminLevel.IsInsertSelect = true; } }
/// <summary> /// 类名:SalaryStandard /// 描述:工资标准设置 /// /// 作者:吴志强 /// 创建时间:2009/05/07 /// 最后修改时间:2009/05/07 /// </summary> /// protected void Page_Load(object sender, EventArgs e) { //页面初期表示设置 if (!IsPostBack) { ListItem Item = new ListItem(ConstUtil.CODE_TYPE_INSERT_TEXT, ConstUtil.CODE_TYPE_INSERT_VALUE); //岗位 DataTable dtQuarter = DeptQuarterBus.GetQuarterInfoWithCompanyCD(); ddlQuarter.DataSource = dtQuarter; ddlQuarter.DataValueField = "ID"; ddlQuarter.DataTextField = "QuarterName"; ddlQuarter.DataBind(); ddlQuarter.Items.Add(Item); ddlQuarter.SelectedValue = ConstUtil.CODE_TYPE_INSERT_VALUE; ddlSearchQuarter.DataSource = dtQuarter; ddlSearchQuarter.DataValueField = "ID"; ddlSearchQuarter.DataTextField = "QuarterName"; ddlSearchQuarter.DataBind(); //添加一请选择选项 //ddlSearchQuarter.Items.Insert(0, Item); ddlSearchQuarter.Items.Add(Item); ddlSearchQuarter.SelectedValue = ""; //岗位职等 ctQuaterAdmin.TypeFlag = ConstUtil.CODE_TYPE_HUMAN; ctQuaterAdmin.TypeCode = ConstUtil.CODE_TYPE_QUARTER_ADMIN; ctQuaterAdmin.IsInsertSelect = true; //ctQuaterAdmin.Items.Add(Item); //ctQuaterAdmin.SelectedValue = ConstUtil.CODE_TYPE_INSERT_VALUE; ctSearchQuaterAdmin.TypeFlag = ConstUtil.CODE_TYPE_HUMAN; ctSearchQuaterAdmin.TypeCode = ConstUtil.CODE_TYPE_QUARTER_ADMIN; ctSearchQuaterAdmin.IsInsertSelect = true; //工资项 DataTable dtSalary = SalaryItemBus.GetSalaryItemInfo(true); ddlSalaryItem.DataSource = dtSalary; ddlSalaryItem.DataValueField = "ItemNo"; ddlSalaryItem.DataTextField = "ItemName"; ddlSalaryItem.DataBind(); ddlSalaryItem.Items.Add(Item); ddlSalaryItem.SelectedValue = ConstUtil.CODE_TYPE_INSERT_VALUE; } }
/// <summary> /// 类名:InputInsuEmployee /// 描述:社会保险录入 /// /// 作者:吴志强 /// 创建时间:2009/05/12 /// 最后修改时间:2009/05/12 /// </summary> /// protected void Page_Load(object sender, EventArgs e) { //页面初期表示 if (!IsPostBack) { //显示工资项列表 //InitSalaryInfo(); //岗位初期 DataTable dtQuarter = DeptQuarterBus.GetQuarterInfoWithCompanyCD(); ddlQuarter.DataSource = dtQuarter; ddlQuarter.DataValueField = "ID"; ddlQuarter.DataTextField = "QuarterName"; ddlQuarter.DataBind(); //添加一请选择选项 ListItem Item = new ListItem(ConstUtil.CODE_TYPE_INSERT_TEXT, ConstUtil.CODE_TYPE_INSERT_VALUE); ddlQuarter.Items.Insert(0, Item); } }
/// <summary> /// 类名:RectCheckTemplate_Info /// 描述:面试考评模板表 /// /// 作者:吴志强 /// 创建时间:2009/04/16 /// 最后修改时间:2009/04/16 /// </summary> /// protected void Page_Load(object sender, EventArgs e) { //页面初期表示 if (!IsPostBack) { //新建面试模板的模块ID hidModuleID.Value = ConstUtil.MODULE_ID_HUMAN_RECTCHECKTEMPLATE_EDIT; //岗位信息 DataTable dtQuarter = DeptQuarterBus.GetQuarterInfoWithCompanyCD(); ddlQuarter.DataSource = dtQuarter; ddlQuarter.DataValueField = "ID"; ddlQuarter.DataTextField = "QuarterName"; ddlQuarter.DataBind(); ddlQuarter.Items.Insert(0 , new ListItem(ConstUtil.CODE_TYPE_INSERT_TEXT, ConstUtil.CODE_TYPE_INSERT_VALUE)); //获取请求参数 string requestParam = Request.QueryString.ToString(); //从列表过来时 int firstIndex = requestParam.IndexOf("&"); //返回回来时 if (firstIndex > 0) { //获取是否查询的标识 string flag = Request.QueryString["Flag"]; //点击查询时,设置查询的条件,并执行查询 if ("1".Equals(flag)) { //考试编号 txtTemplateNo.Value = Request.QueryString["TemplateNo"]; //主题 txtTitle.Value = Request.QueryString["Title"]; //考试地点 ddlQuarter.SelectedValue = Request.QueryString["QuarterID"]; //获取当前页 string pageIndex = Request.QueryString["PageIndex"]; //获取每页显示记录数 string pageCount = Request.QueryString["PageCount"]; //执行查询 ClientScript.RegisterStartupScript(this.GetType(), "SearchTrainingAsse" , "<script language=javascript>this.pageCount = parseInt(" + pageCount + ");DoSearch('" + pageIndex + "');</script>"); } } } }
/// <summary> /// 类名:SelectReserveInfo /// 描述:选择人才储备处理 /// /// 作者:吴志强 /// 创建时间:2009/04/21 /// 最后修改时间:2009/04/21 /// </summary> /// protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { //获取应聘岗位列表数据 ddlQuarter.DataSource = DeptQuarterBus.GetQuarterInfoWithCompanyCD(); ddlQuarter.DataValueField = "ID"; ddlQuarter.DataTextField = "QuarterName"; ddlQuarter.DataBind(); ddlQuarter.Items.Insert(0, new ListItem(ConstUtil.CODE_TYPE_INSERT_TEXT, ConstUtil.CODE_TYPE_INSERT_VALUE)); //学历 ddlCulture.TypeFlag = ConstUtil.CODE_TYPE_HUMAN; ddlCulture.TypeCode = ConstUtil.CODE_TYPE_CULTURE; ddlCulture.IsInsertSelect = true; //专业 ddlProfessional.TypeFlag = ConstUtil.CODE_TYPE_HUMAN; ddlProfessional.TypeCode = ConstUtil.CODE_TYPE_PROFESSIONAL; ddlProfessional.IsInsertSelect = true; } }
/// <summary> /// 类名:MoveApply_Edit /// 描述:新建离职申请单 /// /// 作者:吴志强 /// 创建时间:2009/04/22 /// 最后修改时间:2009/04/22 /// </summary> /// #region Page_Load protected void Page_Load(object sender, EventArgs e) { //页面初期表示设置 if (!IsPostBack) { #region 新建、修改共通处理 //目前岗位 DataTable dtQuarter = DeptQuarterBus.GetQuarterInfoWithCompanyCD(); ddlNowQuarter.DataSource = dtQuarter; ddlNowQuarter.DataValueField = "ID"; ddlNowQuarter.DataTextField = "QuarterName"; ddlNowQuarter.DataBind(); //模板列表模块ID hidModuleID.Value = ConstUtil.MODULE_ID_HUMAN_MOVEAPPLY_INFO; FlowEmplApply.BillTypeFlag = ConstUtil.CODING_TYPE_HUMAN; FlowEmplApply.BillTypeCode = ConstUtil.CODING_HUMAN_ITEM_MOVEAPPLY; //获取请求参数 string requestParam = Request.QueryString.ToString(); //通过参数个数来判断是否从菜单过来 int firstIndex = requestParam.IndexOf("&"); //从列表过来时 if (firstIndex > 0) { //返回按钮可见 btnBack.Visible = true; //获取列表的查询条件 string searchCondition = requestParam.Substring(firstIndex); //设置检索条件 hidSearchCondition.Value = searchCondition; } else { //返回按钮不可见 btnBack.Visible = false; } #endregion //获取ID string ID = Request.QueryString["ID"]; //ID为空时,为新建模式 if (string.IsNullOrEmpty(ID)) { #region 新建时初期处理 //编号初期处理 codeRule.CodingType = ConstUtil.CODING_TYPE_HUMAN; codeRule.ItemTypeID = ConstUtil.CODING_HUMAN_ITEM_MOVEAPPLY; //设置编号不可见 divCodeNo.Attributes.Add("style", "display:none;"); //自动生成编号的控件设置为可见 divCodeRule.Attributes.Add("style", "display:block;"); //设置ID hidIdentityID.Value = "0"; //申请日期 txtApplyDate.Text = DateTime.Now.ToString("yyyy-MM-dd"); //申请人 UserInfoUtil userInfo = (UserInfoUtil)SessionUtil.Session["UserInfo"]; UserApply.Text = userInfo.EmployeeName; hidUserApply.Value = userInfo.EmployeeID.ToString(); //目前部门 DeptNow.Text = userInfo.DeptName; hidDeptNow.Value = userInfo.DeptID.ToString(); //目前岗位 #endregion } else { #region 修改时初期处理 //设置标题 divTitle.InnerText = "离职申请单"; //获取并设置面试记录信息 //InitMoveApplyInfo(ID); //设置编辑模式 //hidIdentityID.Value = ID; #endregion } } }
protected void imbEdit_Click(object sender, System.Web.UI.ImageClickEventArgs e) { hidEditFlag.Value = "UPDATE"; string quterID = hidquarterID.Value; DataTable dtDeptInfo = DeptQuarterBus.GetDeptQuarterInfoWithID(quterID); if (dtDeptInfo.Rows.Count > 0) { txtDeptID.Value = dtDeptInfo.Rows[0]["DeptID"] == null ? "" : dtDeptInfo.Rows[0]["DeptID"].ToString(); txtDisplayCode.Value = dtDeptInfo.Rows[0]["QuarterNo"] == null ? "" : dtDeptInfo.Rows[0]["QuarterNo"].ToString(); txtDisplayCode.Disabled = true; txtDeptName.Text = dtDeptInfo.Rows[0]["DeptName"] == null ? "" : dtDeptInfo.Rows[0]["DeptName"].ToString(); txtSuperQuarterName.Text = dtDeptInfo.Rows[0]["SuperQuarterName"] == null ? "" : dtDeptInfo.Rows[0]["SuperQuarterName"].ToString(); //上级岗位 txtQuarterName.Text = dtDeptInfo.Rows[0]["QuarterName"] == null ? "" : dtDeptInfo.Rows[0]["QuarterName"].ToString(); //岗位名称 txtPYShort.Text = dtDeptInfo.Rows[0]["PYShort"] == null ? "" : dtDeptInfo.Rows[0]["PYShort"].ToString(); //拼音代码 ddlKeyFlag.SelectedValue = dtDeptInfo.Rows[0]["KeyFlag"] == null ? "" : dtDeptInfo.Rows[0]["KeyFlag"].ToString(); //是否关键岗位 ddlQuarterType.SelectedValue = dtDeptInfo.Rows[0]["TypeID"] == null ? "" : dtDeptInfo.Rows[0]["TypeID"].ToString(); //岗位分类 ddlQuarterLevel.SelectedValue = dtDeptInfo.Rows[0]["LevelID"] == null ? "" : dtDeptInfo.Rows[0]["LevelID"].ToString(); //岗位级别 txtDescription.Text = dtDeptInfo.Rows[0]["Description"] == null ? "" : dtDeptInfo.Rows[0]["Description"].ToString(); //描述信息 ddlUsedStatus.SelectedValue = dtDeptInfo.Rows[0]["UsedStatus"] == null ? "" : dtDeptInfo.Rows[0]["UsedStatus"].ToString(); //启用状态 string attachment = dtDeptInfo.Rows[0]["Attachment"] == null ? "" : dtDeptInfo.Rows[0]["Attachment"].ToString(); //附件 hidaddd.Value = attachment; hfAttachment.Value = dtDeptInfo.Rows[0]["Attachment"] == null ? "" : dtDeptInfo.Rows[0]["Attachment"].ToString(); //启用状态 string resumeUrl = hfAttachment.Value; int j = resumeUrl.LastIndexOf("\\") + 1; spanAttachmentName.InnerHtml = resumeUrl.Substring(j, resumeUrl.Length - j); hfPageAttachment.Value = dtDeptInfo.Rows[0]["Attachment"] == null ? "" : dtDeptInfo.Rows[0]["Attachment"].ToString(); //启用状态 txtDuty.Text = dtDeptInfo.Rows[0]["Duty"] == null ? "" : dtDeptInfo.Rows[0]["Duty"].ToString(); //岗位职责 txtDutyRequire.Text = dtDeptInfo.Rows[0]["DutyRequire"] == null ? "" : dtDeptInfo.Rows[0]["DutyRequire"].ToString(); //任职资格 FCKeditor1.Value = dtDeptInfo.Rows[0]["QuterContent"] == null ? "" : dtDeptInfo.Rows[0]["QuterContent"].ToString(); //任职资格 DataTable dtSet = DeptQuarterBus.GetQuarterModelSet(txtDeptID.Value, txtDisplayCode.Value); if (dtSet.Rows.Count > 0) { DataTable dtMUbIAO = GetNewDataTable(dtSet, "ModuleID='1001'", "TypeID asc"); if (dtMUbIAO.Rows.Count > 0) { chMMubiao.Checked = true; for (int a = 0; a < dtMUbIAO.Rows.Count; a++) { string mubiao = dtMUbIAO.Rows[a]["TypeID"] == null ? "" : dtMUbIAO.Rows[a]["TypeID"].ToString(); if (mubiao == "1") { chMRi.Checked = true; } else if (mubiao == "2") { chMZhou.Checked = true; } else if (mubiao == "3") { chMYue.Checked = true; } else if (mubiao == "4") { chMJi.Checked = true; } else if (mubiao == "5") { chMNian.Checked = true; } } } else { chMMubiao.Checked = false; chMRi.Checked = false; chMZhou.Checked = false; chMYue.Checked = false; chMJi.Checked = false; chMNian.Checked = false; } DataTable dtRenwu = GetNewDataTable(dtSet, "ModuleID='1011'", "TypeID asc"); if (dtRenwu.Rows.Count > 0) { chRRenWu.Checked = true; for (int a = 0; a < dtRenwu.Rows.Count; a++) { string mubiao = dtRenwu.Rows[a]["TypeID"] == null ? "" : dtRenwu.Rows[a]["TypeID"].ToString(); if (mubiao == "1") { chRGEren.Checked = true; } else if (mubiao == "2") { chRZhipai.Checked = true; } } } else { chRGEren.Checked = false; chRRenWu.Checked = false; chRZhipai.Checked = false; } DataTable dtrIZHI = GetNewDataTable(dtSet, "ModuleID='1021'", "TypeID asc"); if (dtrIZHI.Rows.Count > 0) { chGgongzuo.Checked = true; } else { chGgongzuo.Checked = false; } DataTable dtRICHENG = GetNewDataTable(dtSet, "ModuleID='10411'", "TypeID asc"); if (dtRICHENG.Rows.Count > 0) { chCricheng.Checked = true; } else { chCricheng.Checked = false; } } this.Page.ClientScript.RegisterStartupScript(this.GetType(), " ", " <script> readAfter(); </script> "); } }
/// <summary> /// 类名:EmployeeWork_Info /// 描述:在职人员列表 /// /// 作者:吴志强 /// 创建时间:2009/03/19 /// 最后修改时间:2009/03/19 /// </summary> /// protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { btnImport.Attributes["onclick"] = "return IfExp();"; //行政等级 分类标识 //ddlAdminLevel.TypeFlag = ConstUtil.CODE_TYPE_HUMAN; //ddlAdminLevel.TypeCode = ConstUtil.CODE_TYPE_QUARTER_LEVEL; ////添加请选择选项 //ddlAdminLevel.IsInsertSelect = true; hidSysteDate.Value = DateTime.Now.ToString("yyyy-MM-dd"); //岗位 分类标识 DataTable dtQuarter = DeptQuarterBus.GetQuarterInfoWithCompanyCD(); ddlQuarter_ddlCodeType.DataSource = dtQuarter; ddlQuarter_ddlCodeType.DataValueField = "ID"; ddlQuarter_ddlCodeType.DataTextField = "QuarterName"; ddlQuarter_ddlCodeType.DataBind(); ListItem Item = new ListItem(ConstUtil.CODE_TYPE_INSERT_TEXT, ConstUtil.CODE_TYPE_INSERT_VALUE); ddlQuarter_ddlCodeType.Items.Insert(0, Item); //职称 分类标识 ddlPosition.TypeFlag = ConstUtil.CODE_TYPE_HUMAN; ddlPosition.TypeCode = ConstUtil.CODE_TYPE_POSITION; //添加请选择选项 ddlPosition.IsInsertSelect = true; //模块ID hidModuleID.Value = ConstUtil.MODULE_ID_HUMAN_EMPLOYEE_ADD; //获取请求参数 string requestParam = Request.QueryString.ToString(); //从列表过来时 int firstIndex = requestParam.IndexOf("&"); //返回回来时 if (firstIndex > 0) { //获取是否查询的标识 string flag = Request.QueryString["Flag"]; //点击查询时,设置查询的条件,并执行查询 if ("1".Equals(flag)) { //编号 txtEmployeeNo.Value = Request.QueryString["EmployeeNo"]; //工号 txtEmployeeNum.Value = Request.QueryString["EmployeeNum"]; //身份证 txtPYShort.Value = Request.QueryString["PYShort"]; //姓名 txtEmployeeName.Value = Request.QueryString["EmployeeName"]; //工种 //ddlContractKind.Value = Request.QueryString["ContractKind"]; //行政等级 //ddlAdminLevel.SelectedValue = Request.QueryString["AdminLevel"]; //岗位 ddlQuarter_ddlCodeType.SelectedValue = Request.QueryString["QuarterID"]; //职称 ddlPosition.SelectedValue = Request.QueryString["PositionID"]; //入职时间 txtStartDate.Value = Request.QueryString["StartDate"]; txtEnterEndDate.Value = Request.QueryString["EnterEndDate"]; //获取当前页 string pageIndex = Request.QueryString["PageIndex"]; //获取每页显示记录数 string pageCount = Request.QueryString["PageCount"]; //执行查询 ClientScript.RegisterStartupScript(this.GetType(), "DoSearch" , "<script language=javascript>this.pageCount = parseInt(" + pageCount + ");SearchEmployeeWork('" + pageIndex + "');</script>"); } } } }
/// <summary> /// 类名:RectCheckTemplate_Edit /// 描述:新建面试评测模板 /// /// 作者:吴志强 /// 创建时间:2009/04/16 /// 最后修改时间:2009/04/16 /// </summary> /// #region Page_Load protected void Page_Load(object sender, EventArgs e) { //页面初期表示 if (!IsPostBack) { #region 新建、修改共通处理 //岗位设置 DataTable dtQuarter = DeptQuarterBus.GetQuarterInfoWithCompanyCD(); ddlQuarter.DataSource = dtQuarter; ddlQuarter.DataValueField = "ID"; ddlQuarter.DataTextField = "QuarterName"; ddlQuarter.DataBind(); //模板列表模块ID hidModuleID.Value = ConstUtil.MODULE_ID_HUMAN_RECTCHECKTEMPLATE_INFO; //获取请求参数 string requestParam = Request.QueryString.ToString(); //通过参数个数来判断是否从菜单过来 int firstIndex = requestParam.IndexOf("&"); //从列表过来时 if (firstIndex > 0) { //返回按钮可见 btnBack.Visible = true; //获取列表的查询条件 string searchCondition = requestParam.Substring(firstIndex); //设置检索条件 hidSearchCondition.Value = searchCondition; } else { //返回按钮不可见 btnBack.Visible = false; } #endregion //获取模板ID string templateID = Request.QueryString["TemplateID"]; //模板ID为空时,为新建模式 if (string.IsNullOrEmpty(templateID)) { #region 新建时初期处理 //编号初期处理 codeRule.CodingType = ConstUtil.CODING_TYPE_HUMAN; codeRule.ItemTypeID = ConstUtil.CODING_HUMAN_ITEM_CHECKTEMPLATE; //设置编号不可见 divCodeNo.Attributes.Add("style", "display:none;"); //自动生成编号的控件设置为可见 divCodeRule.Attributes.Add("style", "display:block;"); //设置编辑模式 hidEditFlag.Value = ConstUtil.EDIT_FLAG_INSERT; //要素信息结果 divElemDetail.InnerHtml = CreateElemTable() + EndTable(); #endregion } else { #region 修改时初期处理 //设置标题 divTitle.InnerText = "面试评测模板"; //获取并设置模板信息 InitTemplateInfo(templateID); //设置编辑模式 hidEditFlag.Value = ConstUtil.EDIT_FLAG_UPDATE; #endregion } } }
/// <summary> /// 类名:EmployeeInfo_Add /// 描述:人员信息处理 /// /// 作者:吴志强 /// 创建时间:2009/03/10 /// 最后修改时间:2009/03/10 /// </summary> /// #region Page_Load protected void Page_Load(object sender, EventArgs e) { //页面初期表示处理 if (!IsPostBack) { //获取系统当前日期 //hdSystemDate.Value = DateTime.Now.ToString("yyyy-MM-dd"); #region 分类初期表示 hidSysteDate.Value = DateTime.Now.ToString("yyyy-MM-dd"); //职称 分类标识 ddlPosition.TypeFlag = ConstUtil.CODE_TYPE_HUMAN; ddlPosition.TypeCode = ConstUtil.CODE_TYPE_POSITION; ddlPosition.IsInsertSelect = true; //岗位 DataTable dtQuarter = DeptQuarterBus.GetQuarterInfoWithCompanyCD(); ddlQuarter_ddlCodeType.DataSource = dtQuarter; ddlQuarter_ddlCodeType.DataValueField = "ID"; ddlQuarter_ddlCodeType.DataTextField = "QuarterName"; ddlQuarter_ddlCodeType.DataBind(); ListItem Item = new ListItem(); Item.Value = "0"; Item.Text = "--请选择--"; ddlQuarter_ddlCodeType.Items.Insert(0, Item); //婚姻状况 ddlMarriage.TypeFlag = ConstUtil.CODE_TYPE_HUMAN; ddlMarriage.TypeCode = ConstUtil.CODE_TYPE_MARRIAGE; ddlMarriage.IsInsertSelect = true; //学历 ddlCulture.TypeFlag = ConstUtil.CODE_TYPE_HUMAN; ddlCulture.TypeCode = ConstUtil.CODE_TYPE_CULTURE; ddlCulture.IsInsertSelect = true; //专业 ddlProfessional.TypeFlag = ConstUtil.CODE_TYPE_HUMAN; ddlProfessional.TypeCode = ConstUtil.CODE_TYPE_PROFESSIONAL; ddlProfessional.IsInsertSelect = true; //政治面貌 ddlLandscape.TypeFlag = ConstUtil.CODE_TYPE_HUMAN; ddlLandscape.TypeCode = ConstUtil.CODE_TYPE_LANDSACAPE; ddlLandscape.IsInsertSelect = true; //宗教信仰 ddlReligion.TypeFlag = ConstUtil.CODE_TYPE_HUMAN; ddlReligion.TypeCode = ConstUtil.CODE_TYPE_RELIGION; ddlReligion.IsInsertSelect = true; //民族 ddlNational.TypeFlag = ConstUtil.CODE_TYPE_HUMAN; ddlNational.TypeCode = ConstUtil.CODE_TYPE_NATIONAL; ddlNational.IsInsertSelect = true; //国籍 ddlCountry.TypeFlag = ConstUtil.CODE_TYPE_HUMAN; ddlCountry.TypeCode = ConstUtil.CODE_TYPE_COUNTRY; ddlCountry.IsInsertSelect = true; //外语语种1 ddlLanguage1.TypeFlag = ConstUtil.CODE_TYPE_HUMAN; ddlLanguage1.TypeCode = ConstUtil.CODE_TYPE_LANGUAGE; ddlLanguage1.IsInsertSelect = true; //外语语种2 ddlLanguage2.TypeFlag = ConstUtil.CODE_TYPE_HUMAN; ddlLanguage2.TypeCode = ConstUtil.CODE_TYPE_LANGUAGE; ddlLanguage2.IsInsertSelect = true; //外语语种3 ddlLanguage3.TypeFlag = ConstUtil.CODE_TYPE_HUMAN; ddlLanguage3.TypeCode = ConstUtil.CODE_TYPE_LANGUAGE; ddlLanguage3.IsInsertSelect = true; //岗位职等 ddlAdminLevelID.TypeFlag = ConstUtil.CODE_TYPE_HUMAN; ddlAdminLevelID.TypeCode = ConstUtil.CODE_TYPE_QUARTER_ADMIN; ddlAdminLevelID.IsInsertSelect = true; #endregion #region 返回页面以及查询条件处理 //模板列表模块ID hidWorkModuleID.Value = ConstUtil.MODULE_ID_HUMAN_EMPLOYEE_WORK; //在职人员 hidLeaveModuleID.Value = ConstUtil.MODULE_ID_HUMAN_EMPLOYEE_LEAVE; //离职人员 hidReserveModuleID.Value = ConstUtil.MODULE_ID_HUMAN_EMPLOYEE_RESERVE; //人才储备 hidInterviewModuleID.Value = ConstUtil.MODULE_ID_HUMAN_RECTINTERVIEW_EDIT; //面试 hidWaitModuleID.Value = ConstUtil.MODULE_ID_HUMAN_EMPLOYEE_ENTER; //待入职 hidInitSysModuleID.Value = ConstUtil.MODULE_ID_INIT_SYSTEM; //系统管理初始化向导 hidInitHumanModuleID.Value = ConstUtil.MODULE_ID_INIT_HUMAN; //人力资源初始化向导 //获取请求参数 string requestParam = Request.QueryString.ToString(); //通过参数个数来判断是否从菜单过来 int firstIndex = requestParam.IndexOf("&"); //从列表过来时 if (firstIndex > 0) { //返回按钮可见 btnBack.Visible = true; //获取列表的查询条件 string searchCondition = requestParam.Substring(firstIndex); //string SearchType = Request.QueryString["type"]; //if (SearchType != "Continue") //{ //迁移页面 hidFromPage.Value = Request.QueryString["FromPage"]; //去除参数 searchCondition = searchCondition.Replace("&ModuleID=" + ConstUtil.MODULE_ID_HUMAN_EMPLOYEE_ADD, string.Empty); searchCondition = searchCondition.Replace("&type=Continue", string.Empty); searchCondition = searchCondition.Replace("&FromPage=" + hidFromPage.Value, string.Empty); //设置检索条件 hidSearchCondition.Value = searchCondition; //} //else //{ //} } else { //返回按钮不可见 btnBack.Visible = false; } //if (Request.QueryString["type"] != null) //{ // //返回按钮不可见 // btnBack.Visible = false; //} #endregion #region 页面内容初期设置 //获取人员编号 string employeeID = Request.QueryString["ID"];//张? hidEmployeeID.Value = employeeID; string SearchType = Request.QueryString["type"]; //编号初期处理 codruleEmployNo.CodingType = ConstUtil.CODING_RULE_TYPE_ZERO; codruleEmployNo.ItemTypeID = ConstUtil.CODING_RULE_EMPLOYEE_NO; //employeeID = "38"; //人员编号为空,为新建模式 if (string.IsNullOrEmpty(employeeID) || SearchType == "Continue") { //编号初期处理 //codruleEmployNo.CodingType = ConstUtil.CODING_RULE_TYPE_ZERO; //codruleEmployNo.ItemTypeID = ConstUtil.CODING_RULE_EMPLOYEE_NO; //设置人员编号不可见 divEmployeeNo.Attributes.Add("style", "display:none;"); //自动生成编号的控件设置为可见 divCodeRule.Attributes.Add("style", "display:block;"); //创建人 UserInfoUtil userInfo = (UserInfoUtil)SessionUtil.Session["UserInfo"]; ////设置用户名 //txtCreateUserName.Text = userInfo.EmployeeName; ////创建日期 //txtCreateDate.Text = DateTime.Now.ToString("yyyy-MM-dd"); //工作履历表格 divWorkInfo.InnerHtml = CreateWorkTable() + EndTable(); //学习履历表格 divStudyInfo.InnerHtml = CreateStudyTable() + EndTable(); //技能信息表格 divSkillInfo.InnerHtml = CreateSkillTable() + EndTable(); //设置编辑模式 hidEditFlag.Value = ConstUtil.EDIT_FLAG_INSERT; } else { //设置标题 divTitle.InnerText = "人员档案"; //获取并设置人员信息 InitEmployeeInfo(employeeID); //设置编辑模式 hidEditFlag.Value = ConstUtil.EDIT_FLAG_UPDATE; } #endregion } }
/// <summary> /// 类名:HumanManager_WaitEnter /// 描述:待入职 /// /// 作者:吴志强 /// 创建时间:2009/04/29 /// 最后修改时间:2009/04/29 /// </summary> /// protected void Page_Load(object sender, EventArgs e) { //页面初期表示 if (!IsPostBack) { #region 拉列表初期设置 //学历 ddlCulture.TypeFlag = ConstUtil.CODE_TYPE_HUMAN; ddlCulture.TypeCode = ConstUtil.CODE_TYPE_CULTURE; //添加请选择选项 ddlCulture.IsInsertSelect = true; //岗位 分类标识 DataTable dtQuarter = DeptQuarterBus.GetQuarterInfoWithCompanyCD(); ddlQuarter.DataSource = dtQuarter; ddlQuarter.DataValueField = "ID"; ddlQuarter.DataTextField = "QuarterName"; ddlQuarter.DataBind(); ListItem Item = new ListItem(ConstUtil.CODE_TYPE_INSERT_TEXT, ConstUtil.CODE_TYPE_INSERT_VALUE); ddlQuarter.Items.Insert(0, Item); //入职岗位 分类标识 ddlEnterQuarter.DataSource = dtQuarter; ddlEnterQuarter.DataValueField = "ID"; ddlEnterQuarter.DataTextField = "QuarterName"; ddlEnterQuarter.DataBind(); //行政等级 //ddlEnterAdminLevel.TypeFlag = ConstUtil.CODE_TYPE_HUMAN; //ddlEnterAdminLevel.TypeCode = ConstUtil.CODE_TYPE_ADMIN_LEVEL; //ddlEnterAdminLevel.IsInsertSelect = true; //岗位职等 ddlEnterQuarterLevel.TypeFlag = ConstUtil.CODE_TYPE_HUMAN; ddlEnterQuarterLevel.TypeCode = ConstUtil.CODE_TYPE_QUARTER_ADMIN; //ddlEnterQuarterLevel.IsInsertSelect = true; //职称 ddlEnterPosition.TypeFlag = ConstUtil.CODE_TYPE_HUMAN; ddlEnterPosition.TypeCode = ConstUtil.CODE_TYPE_POSITION; ddlEnterPosition.IsInsertSelect = true; //ddlEnterPosition.IsInsertSelect = true; //设置系统时间 txtSystemDate.Value = DateTime.Now.ToString("yyyy-MM-dd"); #endregion //模块ID设置 hidContractModuleID.Value = ConstUtil.MODULE_ID_HUMAN_EMPLOYEE_CONTRACT_EDIT; //新建人员 hidEmplyModuleID.Value = ConstUtil.MODULE_ID_HUMAN_EMPLOYEE_ADD; #region 初始查询设置 //获取请求参数 string requestParam = Request.QueryString.ToString(); //从列表过来时 int firstIndex = requestParam.IndexOf("&"); //返回回来时 if (firstIndex > 0) { //获取是否查询的标识 string flag = Request.QueryString["Flag"]; //点击查询时,设置查询的条件,并执行查询 if ("1".Equals(flag)) { //编号 txtEmployeeNo.Text = Request.QueryString["EmployeeNo"]; //姓名 txtEmployeeName.Text = Request.QueryString["EmployeeName"]; //性别 ddlSex.SelectedValue = Request.QueryString["Sex"]; //学历 ddlCulture.SelectedValue = Request.QueryString["CultureID"]; //毕业院校 txtSchoolName.Text = Request.QueryString["SchoolName"]; //岗位 ddlQuarter.SelectedValue = Request.QueryString["QuarterID"]; //获取当前页 string pageIndex = Request.QueryString["PageIndex"]; //获取每页显示记录数 string pageCount = Request.QueryString["PageCount"]; //执行查询 ClientScript.RegisterStartupScript(this.GetType(), "DoSearch" , "<script language=javascript>this.pageCount = parseInt(" + pageCount + ");DoSearch('" + pageIndex + "');</script>"); } } #endregion } }
/// <summary> /// 类名:RectInterview_Info /// 描述:面试记录列表处理 /// /// 作者:吴志强 /// 创建时间:2009/04/20 /// 最后修改时间:2009/04/20 /// </summary> /// protected void Page_Load(object sender, EventArgs e) { //页面初期表示 if (!IsPostBack) { ddlRectPlan.Items.Clear(); ddlRectPlan.DataSource = RectInterviewBus.GetRectPlanInfo(); ddlRectPlan.DataValueField = "PlanNo"; ddlRectPlan.DataTextField = "Title"; ddlRectPlan.DataBind(); ddlRectPlan.Items.Insert(0, new ListItem("--请选择--", "")); ddlRectPlan.SelectedIndex = 0; //获取应聘岗位列表数据 ddlQuarter.DataSource = DeptQuarterBus.GetQuarterInfoWithCompanyCD(); ddlQuarter.DataValueField = "ID"; ddlQuarter.DataTextField = "QuarterName"; ddlQuarter.DataBind(); ddlQuarter.Items.Insert(0, new ListItem(ConstUtil.CODE_TYPE_INSERT_TEXT, ConstUtil.CODE_TYPE_INSERT_VALUE)); //新建模块ID hidModuleID.Value = ConstUtil.MODULE_ID_HUMAN_RECTINTERVIEW_EDIT; //获取请求参数 string requestParam = Request.QueryString.ToString(); //从列表过来时 int firstIndex = requestParam.IndexOf("&"); //返回回来时 if (firstIndex > 0) { ////获取是否查询的标识 //string flag = Request.QueryString["Flag"]; ////点击查询时,设置查询的条件,并执行查询 //if ("1".Equals(flag)) //{ // //面试记录编号 // txtRectInterviewNo.Text = Request.QueryString["InterviewNo"]; // //初试面试日期 // txtInterviewDate.Text = Request.QueryString["InterviewDate"]; // txtInterviewToDate.Text = Request.QueryString["InterviewToDate"]; // //复试面试日期 // txtCheckStartDate.Text = Request.QueryString["CheckStartDate"]; // txtCheckEndDate.Text = Request.QueryString["CheckEndDate"]; // //应聘岗位 // ddlQuarter.SelectedValue = Request.QueryString["QuarterID"]; // //姓名 // UserTxtStaffName.Text = Request.QueryString["StaffNameDisPlay"]; // //hidStaffName.Value = Request.QueryString["StaffName"]; // //招聘方式 // ddlRectType.SelectedValue = Request.QueryString["RectType"]; // //初试结果 // ddlInterviewResult.SelectedValue = Request.QueryString["InterviewResult"]; // //复试结果 // ddlFinalResult.SelectedValue = Request.QueryString["FinalResult"]; // //获取当前页 // string pageIndex = Request.QueryString["PageIndex"]; // //获取每页显示记录数 // string pageCount = Request.QueryString["PageCount"]; // //排序 // string OrderBy = Request.QueryString["OrderBy"]; // //执行查询 // ClientScript.RegisterStartupScript(this.GetType(), "SearchRectInterview" // , "<script language=javascript>this.pageCount = parseInt(" + pageCount // + ");this.OrderBy = \"" + OrderBy + "\";DoSearch('" + pageIndex + "');</script>"); //} } } }
protected void GettEMPLATE(string ID) { DataTable DT = DeptQuarterBus.selectQuarterDescrible(ID); if (DT.Rows.Count > 0) { FCKeditor1.Value = DT.Rows[0]["QuterContent"].ToString(); txtTmpleateName.Text = DT.Rows[0]["QuterName"].ToString(); DataTable dtSet = DeptQuarterBus.selectQuarterSet(ID); if (dtSet.Rows.Count > 0) { DataTable dtMUbIAO = GetNewDataTable(dtSet, "ModuleID='1001'", "TypeID asc"); if (dtMUbIAO.Rows.Count > 0) { chMMubiao.Checked = true; for (int a = 0; a < dtMUbIAO.Rows.Count; a++) { string mubiao = dtMUbIAO.Rows[a]["TypeID"] == null ? "" : dtMUbIAO.Rows[a]["TypeID"].ToString(); if (mubiao == "1") { chMRi.Checked = true; } else if (mubiao == "2") { chMZhou.Checked = true; } else if (mubiao == "3") { chMYue.Checked = true; } else if (mubiao == "4") { chMJi.Checked = true; } else if (mubiao == "5") { chMNian.Checked = true; } } } else { chMMubiao.Checked = false; chMRi.Checked = false; chMZhou.Checked = false; chMYue.Checked = false; chMJi.Checked = false; chMNian.Checked = false; } DataTable dtRenwu = GetNewDataTable(dtSet, "ModuleID='1011'", "TypeID asc"); if (dtRenwu.Rows.Count > 0) { chRRenWu.Checked = true; for (int a = 0; a < dtRenwu.Rows.Count; a++) { string mubiao = dtRenwu.Rows[a]["TypeID"] == null ? "" : dtRenwu.Rows[a]["TypeID"].ToString(); if (mubiao == "1") { chRGEren.Checked = true; } else if (mubiao == "2") { chRZhipai.Checked = true; } } } else { chRGEren.Checked = false; chRRenWu.Checked = false; chRZhipai.Checked = false; } DataTable dtrIZHI = GetNewDataTable(dtSet, "ModuleID='1021'", "TypeID asc"); if (dtrIZHI.Rows.Count > 0) { chGgongzuo.Checked = true; } else { chGgongzuo.Checked = false; } DataTable dtRICHENG = GetNewDataTable(dtSet, "ModuleID='10411'", "TypeID asc"); if (dtRICHENG.Rows.Count > 0) { chCricheng.Checked = true; } else { chCricheng.Checked = false; } } } else { FCKeditor1.Value = ""; } this.Page.ClientScript.RegisterStartupScript(this.GetType(), " ", " <script> readAfter2(); </script> "); }
/// <summary> /// 类名:EmployeeShift_Edit /// 描述:新建调职 /// /// 作者:吴志强 /// 创建时间:2009/04/24 /// 最后修改时间:2009/04/24 /// </summary> /// protected void Page_Load(object sender, EventArgs e) { //页面初期表示设置 if (!IsPostBack) { #region 新建、修改共通处理 //获取申请单数据 DataTable dtApply = EmplApplyNotifyBus.GetApplyInfo(); ddlApply.DataSource = dtApply; ddlApply.DataValueField = "EmplApplyNo"; ddlApply.DataTextField = "Title"; ddlApply.DataBind(); ddlApply.Attributes.Add("onchange", "DoApplyChange();"); //添加一请选择选项 ListItem Item = new ListItem(ConstUtil.CODE_TYPE_INSERT_TEXT, ConstUtil.CODE_TYPE_INSERT_VALUE); ddlApply.Items.Insert(0, Item); //调至岗位 DataTable dtQuarter = DeptQuarterBus.GetQuarterInfoWithCompanyCD(); ddlNewQuarter.DataSource = dtQuarter; ddlNewQuarter.DataValueField = "ID"; ddlNewQuarter.DataTextField = "QuarterName"; ddlNewQuarter.DataBind(); //调入岗位职等 ctNewQuaterAdmin.TypeFlag = ConstUtil.CODE_TYPE_HUMAN; ctNewQuaterAdmin.TypeCode = ConstUtil.CODE_TYPE_QUARTER_ADMIN; //获取申请单数据 //模板列表模块ID hidListModuleID.Value = ConstUtil.MODULE_ID_HUMAN_EMPLOYEE_SHIFT_INFO; hidFastModuleID.Value = ConstUtil.MODULE_ID_HUMAN_FAST_SHIFT; //获取请求参数 string requestParam = Request.QueryString.ToString(); //通过参数个数来判断是否从菜单过来 int firstIndex = requestParam.IndexOf("&"); //从列表过来时 if (firstIndex > 0) { //返回按钮可见 btnBack.Visible = true; //获取列表的查询条件 string searchCondition = requestParam.Substring(firstIndex); //去除参数 searchCondition = searchCondition.Replace("&ModuleID=" + ConstUtil.MODULE_ID_HUMAN_EMPLOYEE_SHIFT_EDIT, string.Empty); //设置检索条件 hidSearchCondition.Value = searchCondition; //迁移页面 hidFromPage.Value = Request.QueryString["FromPage"]; } else { //返回按钮不可见 btnBack.Visible = false; } #endregion //获取ID string ID = Request.QueryString["ID"]; //ID为空时,为新建模式 if (string.IsNullOrEmpty(ID)) { #region 新建时初期处理 //编号初期处理 codeRule.CodingType = ConstUtil.CODING_TYPE_HUMAN; codeRule.ItemTypeID = ConstUtil.CODING_HUMAN_ITEM_SHIFT; //设置编号不可见 divCodeNo.Attributes.Add("style", "display:none;"); //自动生成编号的控件设置为可见 divCodeRule.Attributes.Add("style", "display:block;"); //设置ID hidIdentityID.Value = string.Empty; //制单日期 txtCreateDate.Text = DateTime.Now.ToString("yyyy-MM-dd"); //创建人姓名 UserCreator.Text = ((UserInfoUtil)SessionUtil.Session["UserInfo"]).EmployeeName.ToString(); //创建人ID txtCreator.Value = ((UserInfoUtil)SessionUtil.Session["UserInfo"]).EmployeeID.ToString(); //获取员工ID string employeeID = Request.QueryString["EmployeeID"]; //快速调职页面迁移过来时 if (!string.IsNullOrEmpty(employeeID)) { //设置员工信息 InitEmployeInfo(employeeID); } #endregion } else { #region 修改时初期处理 //设置标题 divTitle.InnerText = "调职单"; //自动生成编号的控件设置不可见 divCodeRule.Attributes.Add("style", "display:none;"); //编号设置为可见 divCodeNo.Attributes.Add("style", "display:block;"); divCodeNo.Attributes.Add("style", "width:60%;"); //获取并设置信息 InitNotifyInfo(ID); //设置编辑模式 hidIdentityID.Value = ID; #endregion } } }
protected void imbSave_Click(object sender, System.Web.UI.ImageClickEventArgs e) { string EditFlag = hidEditFlag.Value.Trim(); //定义Model变量 DeptQuarterModel model = new DeptQuarterModel(); //编辑标识 model.EditFlag = EditFlag; string codeRules = string.Empty; //获取编号 string quarterNo = string.Empty; if (!EditFlag.Equals("INSERT")) { //quarterNo = txtDisplayCode.Value.Trim(); quarterNo = hfdNo.Value; } else { //获取编码规则ID codeRules = codeRule.GetCodeRuleID(); //手工输入的时候 if (codeRules == string.Empty) { quarterNo = codeRule.GetDisplaycode(); } } //新建时 if (ConstUtil.EDIT_FLAG_INSERT.Equals(model.EditFlag)) { //编号为空时,通过编码规则编号获取编号 if (string.IsNullOrEmpty(quarterNo)) { //获取编码规则编号 string codeRuleID = codeRule.GetCodeRuleID(); //通过编码规则代码获取编号 quarterNo = ItemCodingRuleBus.GetCodeValue(codeRuleID, ConstUtil.CODING_RULE_TABLE_DEPTQUARTER , ConstUtil.CODING_RULE_COLUMN_DEPTQUARTER_NO); } //判断是否存在 bool isAlready = PrimekeyVerifyBus.CheckCodeUniq(ConstUtil.CODING_RULE_TABLE_DEPTQUARTER , ConstUtil.CODING_RULE_COLUMN_DEPTQUARTER_NO, quarterNo); //存在的场合 if (!isAlready) { lblErrorMes.Visible = true; lblErrorMes.Text = "该编号已被使用,请输入未使用的编号!"; return; } else { lblErrorMes.Visible = false; lblErrorMes.Text = " "; } } //设置岗位编号 model.QuarterNo = quarterNo; //所属机构 model.DeptID = txtDeptID.Value.Trim(); //上级岗位 model.SuperQuarterID = hidSuperQuarter.Value.Trim(); //岗位名称 model.QuarterName = txtQuarterName.Text.Trim(); //拼音代码 model.PYShort = txtPYShort.Text.Trim(); //是否关键岗位 model.KeyFlag = ddlKeyFlag.SelectedValue; //岗位分类 model.TypeID = ddlQuarterType.SelectedValue; //岗位级别 model.LevelID = ddlQuarterLevel.SelectedValue; //描述信息 model.Description = txtDescription.Text.Trim();; //启用状态 model.UsedStatus = ddlUsedStatus.SelectedValue; //附件 model.Attachment = hfAttachment.Value.Trim(); model.PageAttachment = hfPageAttachment.Value.Trim(); //岗位职责 model.Duty = txtDuty.Text.Trim(); //任职资格 model.DutyRequire = txtDutyRequire.Text.Trim(); // model.QuterContent = FCKeditor1.Value; bool isSucce = DeptQuarterBus.SaveDeptQuarterInfo(model); //保存成功时 if (isSucce) { UserInfoUtil userInfo = (UserInfoUtil)SessionUtil.Session["UserInfo"]; //设置公司代码 IList <QuterModuleSetModel> QuterModuleSetList = new List <QuterModuleSetModel>(); if (chMMubiao.Checked) { if (chMRi.Checked) { QuterModuleSetModel dchMRi = new QuterModuleSetModel(); dchMRi.CompanyCD = userInfo.CompanyCD; dchMRi.Sign = "2"; dchMRi.ModuleID = "1001"; dchMRi.QuarterNo = model.QuarterNo; dchMRi.DeptID = model.DeptID; dchMRi.TypeID = "1"; QuterModuleSetList.Add(dchMRi); } if (this.chMZhou.Checked) { QuterModuleSetModel dMZhou = new QuterModuleSetModel(); dMZhou.CompanyCD = userInfo.CompanyCD; dMZhou.Sign = "2"; dMZhou.ModuleID = "1001"; dMZhou.QuarterNo = model.QuarterNo; dMZhou.DeptID = model.DeptID; dMZhou.TypeID = "2"; QuterModuleSetList.Add(dMZhou); } if (this.chMYue.Checked) { QuterModuleSetModel dMYue = new QuterModuleSetModel(); dMYue.CompanyCD = userInfo.CompanyCD; dMYue.Sign = "2"; dMYue.ModuleID = "1001"; dMYue.QuarterNo = model.QuarterNo; dMYue.DeptID = model.DeptID; dMYue.TypeID = "3"; QuterModuleSetList.Add(dMYue); } if (this.chMJi.Checked) { QuterModuleSetModel dMJi = new QuterModuleSetModel(); dMJi.CompanyCD = userInfo.CompanyCD; dMJi.Sign = "2"; dMJi.ModuleID = "1001"; dMJi.QuarterNo = model.QuarterNo; dMJi.DeptID = model.DeptID; dMJi.TypeID = "4"; QuterModuleSetList.Add(dMJi); } if (this.chMNian.Checked) { QuterModuleSetModel dMNian = new QuterModuleSetModel(); dMNian.CompanyCD = userInfo.CompanyCD; dMNian.Sign = "2"; dMNian.ModuleID = "1001"; dMNian.QuarterNo = model.QuarterNo; dMNian.DeptID = model.DeptID; dMNian.TypeID = "5"; QuterModuleSetList.Add(dMNian); } } if (chRRenWu.Checked) { if (chRGEren.Checked) { QuterModuleSetModel dchGEren = new QuterModuleSetModel(); dchGEren.CompanyCD = userInfo.CompanyCD; dchGEren.Sign = "2"; dchGEren.ModuleID = "1011"; dchGEren.QuarterNo = model.QuarterNo; dchGEren.DeptID = model.DeptID; dchGEren.TypeID = "1"; QuterModuleSetList.Add(dchGEren); } if (this.chRZhipai.Checked) { QuterModuleSetModel dMZhipai = new QuterModuleSetModel(); dMZhipai.CompanyCD = userInfo.CompanyCD; dMZhipai.Sign = "2"; dMZhipai.ModuleID = "1011"; dMZhipai.QuarterNo = model.QuarterNo; dMZhipai.DeptID = model.DeptID; dMZhipai.TypeID = "2"; QuterModuleSetList.Add(dMZhipai); } } QuterModuleSetModel ModelchGgongzuo = new QuterModuleSetModel(); ModelchGgongzuo.CompanyCD = userInfo.CompanyCD; ModelchGgongzuo.Sign = "2"; if (chGgongzuo.Checked) { ModelchGgongzuo.ModuleID = "1021"; ModelchGgongzuo.QuarterNo = model.QuarterNo; ModelchGgongzuo.DeptID = model.DeptID; } QuterModuleSetList.Add(ModelchGgongzuo); QuterModuleSetModel ModelchCricheng = new QuterModuleSetModel(); ModelchCricheng.CompanyCD = userInfo.CompanyCD; ModelchCricheng.Sign = "2"; if (chCricheng.Checked) { ModelchCricheng.ModuleID = "10411"; ModelchCricheng.QuarterNo = model.QuarterNo; ModelchCricheng.DeptID = model.DeptID; } QuterModuleSetList.Add(ModelchCricheng); if (DeptQuarterBus.SaveQuarterSet(QuterModuleSetList)) { lblErrorMes.Visible = true; lblErrorMes.Text = "保存成功!"; hidEditFlag.Value = ConstUtil.EDIT_FLAG_UPDATE; txtDisplayCode.Value = model.QuarterNo; txtDisplayCode.Disabled = true; hidDeptInfo.Value = model.DeptID; this.Page.ClientScript.RegisterStartupScript(this.GetType(), " ", " <script> SaveAfter(); </script> "); } else { lblErrorMes.Visible = true; lblErrorMes.Text = "保存失败!"; } } //保存未成功时 else { lblErrorMes.Visible = true; lblErrorMes.Text = "保存失败!"; } }
protected void QuterModelSelect_SelectedIndexChanged(object sender, EventArgs e) { if (QuterModelSelect.SelectedValue == "") { ClearInput(); return; } DataTable DT = DeptQuarterBus.selectQuarterDescrible(QuterModelSelect.SelectedValue); if (DT.Rows.Count > 0) { FCKeditor1.Value = DT.Rows[0]["QuterContent"].ToString(); txtName.Text = DT.Rows[0]["QuterName"].ToString(); DataTable dtSet = DeptQuarterBus.selectQuarterSet(QuterModelSelect.SelectedValue); if (dtSet.Rows.Count > 0) { DataTable dtMUbIAO = GetNewDataTable(dtSet, "ModuleID='1001'", "TypeID asc"); if (dtMUbIAO.Rows.Count > 0) { chMMubiao.Checked = true; for (int a = 0; a < dtMUbIAO.Rows.Count; a++) { string mubiao = dtMUbIAO.Rows[a]["TypeID"] == null ? "" : dtMUbIAO.Rows[a]["TypeID"].ToString(); if (mubiao == "1") { chMRi.Checked = true; } else if (mubiao == "2") { chMZhou.Checked = true; } else if (mubiao == "3") { chMYue.Checked = true; } else if (mubiao == "4") { chMJi.Checked = true; } else if (mubiao == "5") { chMNian.Checked = true; } } } else { chMMubiao.Checked = false; chMRi.Checked = false; chMZhou.Checked = false; chMYue.Checked = false; chMJi.Checked = false; chMNian.Checked = false; } DataTable dtRenwu = GetNewDataTable(dtSet, "ModuleID='1011'", "TypeID asc"); if (dtRenwu.Rows.Count > 0) { chRRenWu.Checked = true; for (int a = 0; a < dtRenwu.Rows.Count; a++) { string mubiao = dtRenwu.Rows[a]["TypeID"] == null ? "" : dtRenwu.Rows[a]["TypeID"].ToString(); if (mubiao == "1") { chRGEren.Checked = true; } else if (mubiao == "2") { chRZhipai.Checked = true; } } } else { chRGEren.Checked = false; chRRenWu.Checked = false; chRZhipai.Checked = false; } DataTable dtrIZHI = GetNewDataTable(dtSet, "ModuleID='1021'", "TypeID asc"); if (dtrIZHI.Rows.Count > 0) { chGgongzuo.Checked = true; } else { chGgongzuo.Checked = false; } DataTable dtRICHENG = GetNewDataTable(dtSet, "ModuleID='10411'", "TypeID asc"); if (dtRICHENG.Rows.Count > 0) { chCricheng.Checked = true; } else { chCricheng.Checked = false; } } } else { FCKeditor1.Value = ""; } //this.Page.ClientScript.RegisterStartupScript(this.GetType(), " ", " <script> readssAfter(); </script> "); }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { if (Request.QueryString["ShowType"] != null && Request.QueryString["OprtType"] != null) { ShowType = Request.QueryString["ShowType"].Trim().ToString(); OprtType = Request.QueryString["OprtType"].Trim().ToString(); } UserInfoUtil userInfo = (UserInfoUtil)SessionUtil.Session["UserInfo"]; codeRule.CodingType = ConstUtil.CODING_RULE_TYPE_ZERO; codeRule.ItemTypeID = ConstUtil.CODING_BASE_ITEM_QUARTER; //岗位分类 ddlQuarterType.TypeFlag = ConstUtil.CODE_TYPE_HUMAN; ddlQuarterType.TypeCode = ConstUtil.CODE_TYPE_QUARTER; ddlQuarterType.IsInsertSelect = true; //岗位级别 ddlQuarterLevel.TypeFlag = ConstUtil.CODE_TYPE_HUMAN; ddlQuarterLevel.TypeCode = ConstUtil.CODE_TYPE_QUARTER_LEVEL; ddlQuarterLevel.IsInsertSelect = true; BindTree(); BindTemplateTree(); } ddlQuarterLevel.Enabled = false; ddlQuarterType.Enabled = false; if (Request.QueryString["QuarterID"] != null) { hidEditFlag.Value = "UPDATE"; string quterID = Request.QueryString["QuarterID"].ToString(); if (Request.QueryString["Sign"].ToString() == "1") { GettEMPLATE(quterID); } else { DataTable dtDeptInfo = DeptQuarterBus.GetDeptQuarterInfoWithID(quterID); if (dtDeptInfo.Rows.Count > 0) { txtDeptID.Value = dtDeptInfo.Rows[0]["DeptID"] == null ? "" : dtDeptInfo.Rows[0]["DeptID"].ToString(); txtDisplayCode.Value = dtDeptInfo.Rows[0]["QuarterNo"] == null ? "" : dtDeptInfo.Rows[0]["QuarterNo"].ToString(); txtDisplayCode.Disabled = true; txtDeptName.Text = dtDeptInfo.Rows[0]["DeptName"] == null ? "" : dtDeptInfo.Rows[0]["DeptName"].ToString(); txtSuperQuarterName.Text = dtDeptInfo.Rows[0]["SuperQuarterName"] == null ? "" : dtDeptInfo.Rows[0]["SuperQuarterName"].ToString(); //上级岗位 txtQuarterName.Text = dtDeptInfo.Rows[0]["QuarterName"] == null ? "" : dtDeptInfo.Rows[0]["QuarterName"].ToString(); //岗位名称 txtPYShort.Text = dtDeptInfo.Rows[0]["PYShort"] == null ? "" : dtDeptInfo.Rows[0]["PYShort"].ToString(); //拼音代码 ddlKeyFlag.SelectedValue = dtDeptInfo.Rows[0]["KeyFlag"] == null ? "" : dtDeptInfo.Rows[0]["KeyFlag"].ToString(); //是否关键岗位 ddlQuarterType.SelectedValue = dtDeptInfo.Rows[0]["TypeID"] == null ? "" : dtDeptInfo.Rows[0]["TypeID"].ToString(); //岗位分类 ddlQuarterLevel.SelectedValue = dtDeptInfo.Rows[0]["LevelID"] == null ? "" : dtDeptInfo.Rows[0]["LevelID"].ToString(); //岗位级别 txtDescription.Text = dtDeptInfo.Rows[0]["Description"] == null ? "" : dtDeptInfo.Rows[0]["Description"].ToString(); //描述信息 ddlUsedStatus.SelectedValue = dtDeptInfo.Rows[0]["UsedStatus"] == null ? "" : dtDeptInfo.Rows[0]["UsedStatus"].ToString(); //启用状态 string attachment = dtDeptInfo.Rows[0]["Attachment"] == null ? "" : dtDeptInfo.Rows[0]["Attachment"].ToString(); //附件 hidaddd.Value = attachment; hfAttachment.Value = dtDeptInfo.Rows[0]["Attachment"] == null ? "" : dtDeptInfo.Rows[0]["Attachment"].ToString(); //启用状态 hfPageAttachment.Value = dtDeptInfo.Rows[0]["Attachment"] == null ? "" : dtDeptInfo.Rows[0]["Attachment"].ToString(); //启用状态 txtDuty.Text = dtDeptInfo.Rows[0]["Duty"] == null ? "" : dtDeptInfo.Rows[0]["Duty"].ToString(); //岗位职责 txtDutyRequire.Text = dtDeptInfo.Rows[0]["DutyRequire"] == null ? "" : dtDeptInfo.Rows[0]["DutyRequire"].ToString(); //任职资格 FCKeditor1.Value = dtDeptInfo.Rows[0]["QuterContent"] == null ? "" : dtDeptInfo.Rows[0]["QuterContent"].ToString(); //任职资格 DataTable dtSet = DeptQuarterBus.GetQuarterModelSet(txtDeptID.Value, txtDisplayCode.Value); if (dtSet.Rows.Count > 0) { DataTable dtMUbIAO = GetNewDataTable(dtSet, "ModuleID='1001'", "TypeID asc"); if (dtMUbIAO.Rows.Count > 0) { chMMubiao.Checked = true; for (int a = 0; a < dtMUbIAO.Rows.Count; a++) { string mubiao = dtMUbIAO.Rows[a]["TypeID"] == null ? "" : dtMUbIAO.Rows[a]["TypeID"].ToString(); if (mubiao == "1") { chMRi.Checked = true; } else if (mubiao == "2") { chMZhou.Checked = true; } else if (mubiao == "3") { chMYue.Checked = true; } else if (mubiao == "4") { chMJi.Checked = true; } else if (mubiao == "5") { chMNian.Checked = true; } } } else { chMMubiao.Checked = false; chMRi.Checked = false; chMZhou.Checked = false; chMYue.Checked = false; chMJi.Checked = false; chMNian.Checked = false; } DataTable dtRenwu = GetNewDataTable(dtSet, "ModuleID='1011'", "TypeID asc"); if (dtRenwu.Rows.Count > 0) { chRRenWu.Checked = true; for (int a = 0; a < dtRenwu.Rows.Count; a++) { string mubiao = dtRenwu.Rows[a]["TypeID"] == null ? "" : dtRenwu.Rows[a]["TypeID"].ToString(); if (mubiao == "1") { chRGEren.Checked = true; } else if (mubiao == "2") { chRZhipai.Checked = true; } } } else { chRGEren.Checked = false; chRRenWu.Checked = false; chRZhipai.Checked = false; } DataTable dtrIZHI = GetNewDataTable(dtSet, "ModuleID='1021'", "TypeID asc"); if (dtrIZHI.Rows.Count > 0) { chGgongzuo.Checked = true; } else { chGgongzuo.Checked = false; } DataTable dtRICHENG = GetNewDataTable(dtSet, "ModuleID='10411'", "TypeID asc"); if (dtRICHENG.Rows.Count > 0) { chCricheng.Checked = true; } else { chCricheng.Checked = false; } } this.Page.ClientScript.RegisterStartupScript(this.GetType(), " ", " <script> readAfter(); </script> "); } } } }
/// <summary> /// 类名:RectInterview_Edit /// 描述:新建面试维护处理 /// /// 作者:吴志强 /// 创建时间:2009/04/02 /// 最后修改时间:2009/04/02 /// </summary> /// #region Page_Load protected void Page_Load(object sender, EventArgs e) { //页面初期表示设置 if (!IsPostBack) { #region 新建、修改共通处理 //获取招聘活动列表数据 ddlRectPlan.Items.Clear(); ddlRectPlan.DataSource = RectInterviewBus.GetRectPlanInfo(); ddlRectPlan.DataValueField = "PlanNo"; ddlRectPlan.DataTextField = "Title"; ddlRectPlan.DataBind(); ddlRectPlan.Items.Insert(0, new ListItem("--请选择-- ", "")); ddlRectPlan.SelectedIndex = 0; ddlRectPlan.Attributes.Add("onchange", "InitQuterInfo();"); //获取消息渠道列表数据 //ddlInfoFrom.DataSource = RectInterviewBus.GetProxyInfo(); //ddlInfoFrom.DataValueField = "ID"; //ddlInfoFrom.DataTextField = "ProxyCompanyName"; //ddlInfoFrom.DataBind(); //获取应聘岗位列表数据 ddlQuarter.DataSource = DeptQuarterBus.GetQuarterInfoWithCompanyCD(); ddlQuarter.DataValueField = "ID"; ddlQuarter.DataTextField = "QuarterName"; ddlQuarter.DataBind(); ddlQuarter.SelectedIndex = 0; //ddlQuarter.Items.Insert(0, new ListItem(ConstUtil.CODE_TYPE_INSERT_TEXT, ConstUtil.CODE_TYPE_INSERT_VALUE)); ddlQuarter.Attributes.Add("onchange", "InitTemplateInfo();"); ddlTemplate.Attributes.Add("onchange", "InitInterviewElem();"); //面试方式 ddlInterviewType.TypeFlag = ConstUtil.CODE_TYPE_HUMAN; ddlInterviewType.TypeCode = ConstUtil.CODE_TYPE_INTERVIEW; ddlInterviewType.IsInsertSelect = true; ddlCheckType.TypeFlag = ConstUtil.CODE_TYPE_HUMAN; ddlCheckType.TypeCode = ConstUtil.CODE_TYPE_INTERVIEW; ddlCheckType.IsInsertSelect = true; //模板列表模块ID hidModuleID.Value = ConstUtil.MODULE_ID_HUMAN_RECTINTERVIEW_INFO; hidEmployeeModuleID.Value = ConstUtil.MODULE_ID_HUMAN_EMPLOYEE_ADD; FlowRectApply.BillTypeFlag = ConstUtil.BILL_TYPEFLAG_HUMAN; FlowRectApply.BillTypeCode = ConstUtil.BILL_TYPECODE_HUMAN_RECT_INTERVIEW; //获取请求参数 string requestParam = Request.QueryString.ToString(); //通过参数个数来判断是否从菜单过来 int firstIndex = requestParam.IndexOf("&"); //从列表过来时 if (firstIndex > 0) { //返回按钮可见 btnBack.Visible = true; //获取列表的查询条件 string searchCondition = requestParam.Substring(firstIndex); hidIsliebiao.Value = "1"; //设置检索条件 hidSearchCondition.Value = searchCondition; } else { //返回按钮不可见 btnBack.Visible = false; } #endregion //获取面试记录ID string interviewID = Request.QueryString["ID"]; if (Request.QueryString["isLieBiao"] != null) { hidIsliebiao.Value = "1"; } //模板ID为空时,为新建模式 if (string.IsNullOrEmpty(interviewID)) { #region 新建时初期处理 this.hidIsSearch.Value = "1"; //编号初期处理 codeRule.CodingType = ConstUtil.CODING_TYPE_HUMAN; codeRule.ItemTypeID = ConstUtil.CODING_HUMAN_ITEM_INTERVIEW; //设置编号不可见 divCodeNo.Attributes.Add("style", "display:none;"); //自动生成编号的控件设置为可见 divCodeRule.Attributes.Add("style", "display:block;"); //设置编辑模式 hidInterviewID.Value = string.Empty; //生成表格 divElemScoreDetail.InnerHtml = CreateElemScoreTable() + EndTable(); // txtInterviewDate.Text = DateTime.Now.ToString("yyyy-MM-dd"); #endregion } else { #region 修改时初期处理 //设置标题 this.hidIsSearch.Value = "2"; divTitle.InnerText = "面试记录"; //获取并设置面试记录信息 InitInterviewInfo(interviewID); //设置编辑模式 hidInterviewID.Value = interviewID; #endregion } } }