Пример #1
0
    private void BindCom()
    {
        string    TypeFlag = "5";
        string    Code     = "2";
        DataTable dt       = null;

        Code = "3";
        dt   = CodePublicTypeBus.GetCodePublicByCode(TypeFlag, Code);//绑定颜色
        if (dt.Rows.Count > 0)
        {
            this.sel_ColorID.DataTextField = "TypeName";
            sel_ColorID.DataValueField     = "ID";
            sel_ColorID.DataSource         = dt;
            sel_ColorID.DataBind();
        }
        sel_ColorID.Items.Insert(0, new ListItem("--请选择--", ""));
    }
Пример #2
0
    private void BindCustCreditGrade()
    {
        DataTable dt = CodePublicTypeBus.GetCodeTypeInfo(ConstUtil.CUST_TYPE_CUST, ConstUtil.CUST_INFO_CREDITGRADE);

        if (dt.Rows.Count > 0)
        {
            ddlCreditGrade.DataTextField  = "TypeName";
            ddlCreditGrade.DataValueField = "ID";
            ddlCreditGrade.DataSource     = dt;
            ddlCreditGrade.DataBind();
        }
        ListItem Item = new ListItem();

        Item.Value = "0";
        Item.Text  = "--请选择--";
        ddlCreditGrade.Items.Insert(0, Item);
    }
Пример #3
0
    private void BindCustCarryType()
    {
        DataTable dt = CodePublicTypeBus.GetCodeTypeInfo(ConstUtil.SELL_TYPE_SELL, ConstUtil.SELL_TYPE_CARRYTYPE);

        if (dt.Rows.Count > 0)
        {
            ddlCarryType.DataTextField  = "TypeName";
            ddlCarryType.DataValueField = "ID";
            ddlCarryType.DataSource     = dt;
            ddlCarryType.DataBind();
        }
        ListItem Item = new ListItem();

        Item.Value = "0";
        Item.Text  = "--请选择--";
        ddlCarryType.Items.Insert(0, Item);
    }
Пример #4
0
    private void BindCustCountry()
    {
        DataTable dt = CodePublicTypeBus.GetCodeTypeInfo(ConstUtil.CODE_TYPE_HUMAN, ConstUtil.CODE_TYPE_COUNTRY);

        if (dt.Rows.Count > 0)
        {
            ddlCountry.DataTextField  = "TypeName";
            ddlCountry.DataValueField = "ID";
            ddlCountry.DataSource     = dt;
            ddlCountry.DataBind();
        }
        ListItem Item = new ListItem();

        Item.Value = "0";
        Item.Text  = "--请选择--";
        ddlCountry.Items.Insert(0, Item);
    }
Пример #5
0
    private void BindLinkManLinkType()
    {
        DataTable dt = CodePublicTypeBus.GetCodeTypeInfo(ConstUtil.CUST_TYPE_CUST, ConstUtil.CUST_LINK_LINKTYPE);

        if (dt.Rows.Count > 0)
        {
            ddlLinkType.DataTextField  = "TypeName";
            ddlLinkType.DataValueField = "ID";
            ddlLinkType.DataSource     = dt;
            ddlLinkType.DataBind();
        }
        ListItem Item = new ListItem();

        Item.Value = "0";
        Item.Text  = "--请选择--";
        ddlLinkType.Items.Insert(0, Item);
    }
Пример #6
0
    /// <summary>
    /// 所在区域
    /// </summary>
    private void BindSel()
    {
        string    TypeFlag = "4";  //客户
        string    TypeCode = "12"; //区域
        DataTable dt       = CodePublicTypeBus.GetCodePublicByCode(TypeFlag, TypeCode);

        if (dt.Rows.Count > 0)
        {
            this.sel_BillType.DataTextField = "TypeName";
            sel_BillType.DataValueField     = "ID";
            sel_BillType.DataSource         = dt;
            sel_BillType.DataBind();
            ListItem Item = new ListItem();
            Item.Value = "";
            Item.Text  = "--请选择--";
            sel_BillType.Items.Insert(0, Item);
        }
    }
Пример #7
0
    private void BindContactHistoryLinkReason()
    {
        DataTable dt = CodePublicTypeBus.GetCodeTypeInfo(ConstUtil.CUST_TYPE_CUST, ConstUtil.CUST_CONTACT_LINKREASONID);

        if (dt.Rows.Count > 0)
        {
            ddlLinkReasonID.DataTextField  = "TypeName";
            ddlLinkReasonID.DataValueField = "ID";
            ddlLinkReasonID.DataSource     = dt;
            ddlLinkReasonID.DataBind();
        }
        else
        {
            ListItem Item = new ListItem();
            Item.Value = "";
            Item.Text  = "--请选择--";
            ddlLinkReasonID.Items.Insert(0, Item);
        }
    }
Пример #8
0
    private void BindCodeType()
    {
        //分类标识未设置时,不进行绑定
        if (string.IsNullOrEmpty(this.TypeFlag))
        {
            return;
        }
        //查询分类标识信息
        DataTable dt = CodePublicTypeBus.GetCodeTypeInfo(this.TypeFlag, this.TypeCode);

        //分类标识存在时绑定数据
        if (dt != null && dt.Rows.Count > 0)
        {
            //设置列表项的文本内容的数据源字段
            ddlCodeType.DataTextField = "TypeName";
            //设置列表项的提供值的数据源字段。
            ddlCodeType.DataValueField = "ID";
            //设置列表项的数据源
            ddlCodeType.DataSource = dt;
            //绑定列表的数据源
            ddlCodeType.DataBind();

            //设置选中项
            if (!string.IsNullOrEmpty(_selectedValue))
            {
                ddlCodeType.SelectedValue = _selectedValue;
            }
            //
            ddlCodeType.Enabled = this.Enabled;
        }
        //如果需要添加一空选项时
        if (this.IsInsertSelect)
        {
            //添加一请选择选项
            ListItem Item = new ListItem(ConstUtil.CODE_TYPE_INSERT_TEXT, ConstUtil.CODE_TYPE_INSERT_VALUE);
            ddlCodeType.Items.Insert(0, Item);
        }
    }
Пример #9
0
    /// <summary>
    /// 加载树
    /// </summary>
    private void BindTree()
    {
        DataTable dt = CodePublicTypeBus.GetCodePublicByTypeLabel(this.hf_typeflag.Value);

        if (dt != null && dt.Rows.Count > 0)
        {
            TreeNode node = new TreeNode();
            node.Text        = "类别列表";
            node.NavigateUrl = "#";
            foreach (DataRow row in dt.Rows)//.GetEnumerator())
            {
                TreeNode node2 = new TreeNode();
                node2.Value       = row["TypeCode"].ToString();
                node2.Text        = row["TypeName"].ToString();
                node2.NavigateUrl = "#";
                node.ChildNodes.Add(node2);
            }

            TreeView1.Nodes.Add(node);
            TreeView1.ShowCheckBoxes = TreeNodeTypes.All;
            TreeView1.Attributes.Add("onclick", "OnTreeNodeChecked()");
        }
    }
Пример #10
0
    /// <summary>
    /// 绑定所有下拉框
    /// </summary>
    private void BindCom()
    {
        TypeFlag = "5";
        Code     = "2";
        DataTable dt = null;

        dt = CodePublicTypeBus.GetCodePublicByCode(TypeFlag, Code);//绑定等级
        if (dt.Rows.Count > 0)
        {
            this.sel_GradeID.DataTextField = "TypeName";
            sel_GradeID.DataValueField     = "ID";
            sel_GradeID.DataSource         = dt;
            sel_GradeID.DataBind();
        }
        sel_GradeID.Items.Insert(0, new ListItem("--请选择--", "0"));
        Code = "1";
        dt   = CodePublicTypeBus.GetCodePublicByCode(TypeFlag, Code);//绑定品牌
        if (dt.Rows.Count > 0)
        {
            this.sel_Brand.DataTextField = "TypeName";
            sel_Brand.DataValueField     = "ID";
            sel_Brand.DataSource         = dt;
            sel_Brand.DataBind();
        }
        sel_Brand.Items.Insert(0, new ListItem("--请选择--", "0"));
        Code = "3";
        dt   = CodePublicTypeBus.GetCodePublicByCode(TypeFlag, Code);//绑定颜色
        if (dt.Rows.Count > 0)
        {
            this.sel_ColorID.DataTextField = "TypeName";
            sel_ColorID.DataValueField     = "ID";
            sel_ColorID.DataSource         = dt;
            sel_ColorID.DataBind();
        }
        sel_ColorID.Items.Insert(0, new ListItem("--请选择--", "0"));
        dt = CodeReasonFeeBus.GetCodeUnitType();//绑定单位
        if (dt.Rows.Count > 0)
        {
            this.sel_UnitID.DataTextField = "CodeName";
            sel_UnitID.DataValueField     = "ID";
            sel_UnitID.DataSource         = dt;
            sel_UnitID.DataBind();
        }
        Code = "5";
        dt   = CodePublicTypeBus.GetCodePublicByCode(TypeFlag, Code);//绑定材质
        if (dt.Rows.Count > 0)
        {
            this.sel_Material.DataTextField = "TypeName";
            sel_Material.DataValueField     = "ID";
            sel_Material.DataSource         = dt;
            sel_Material.DataBind();
        }
        sel_Material.Items.Insert(0, new ListItem("--请选择--", "0"));
        StorageModel model    = new StorageModel();
        UserInfoUtil userInfo = (UserInfoUtil)SessionUtil.Session["UserInfo"];

        model.CompanyCD = userInfo.CompanyCD;
        DataTable dt_Stor = StorageBus.GetStorageListBycondition(model);//绑定仓库

        if (dt_Stor.Rows.Count > 0)
        {
            sel_StorageID.DataSource     = dt_Stor;
            sel_StorageID.DataTextField  = "StorageName";
            sel_StorageID.DataValueField = "ID";
            sel_StorageID.DataBind();
        }
        //DataTable dt_BindUnit =new DataTable();
        //dt_BindUnit = ProductInfoBus.GetUnitGroupList(this.txtUnitGroup.Value);
    }
Пример #11
0
    /// <summary>
    /// 设置招聘目标
    /// </summary>
    /// <param name="dtGoal">招聘目标信息</param>
    private void InitGoalInfo(DataTable dtGoal)
    {
        //定义保存招聘目标的变量
        StringBuilder sbGoalInfo = new StringBuilder();

        //招聘目标存在时,设置招聘目标
        if (dtGoal != null && dtGoal.Rows.Count > 0)
        {
            for (int i = 0; i < dtGoal.Rows.Count; i++)
            {
                //插入行开始标识
                sbGoalInfo.AppendLine("<tr>");
                //选择框
                sbGoalInfo.AppendLine("<td class='tdColInputCenter' ><input type='checkbox' id='tblRectGoalDetailInfo_chkSelect_" + (i + 1).ToString() + "'>");
                //部门ID
                sbGoalInfo.AppendLine("<input type='hidden' id='hidDeptID_" + (i + 1).ToString() + "' value='"
                                      + GetSafeData.ValidateDataRow_String(dtGoal.Rows[i], "ApplyDept") + "'></td>");
                //部门
                sbGoalInfo.AppendLine("<td class='tdColInput'><input type='text' maxlength = '10' value='"
                                      + GetSafeData.ValidateDataRow_String(dtGoal.Rows[i], "DeptName") + "' class='tdinput' id='DeptrtName_" + (i + 1).ToString() + "' onclick=\"alertdiv('DeptrtName_" + (i + 1).ToString() + ",hidDeptID_" + (i + 1).ToString() + "');\"></td>");

                //岗位
                //sbGoalInfo.AppendLine("<td class='tdColInput'><input type='text' maxlength = '50' value='"
                //            + GetSafeData.ValidateDataRow_String(dtGoal.Rows[i], "PositionTitle") + "' class='tdinput' id='txtPositionTitle_" + (i + 1).ToString() + "'></td>");

                sbGoalInfo.AppendLine("<td class='tdColInput'><input type=\"hidden\" id=\"DeptQuarter" + (i + 1).ToString() + "Hidden\"  value='"
                                      + GetSafeData.ValidateDataRow_String(dtGoal.Rows[i], "PositionID") + "'/> <input id=\"DeptQuarter" + (i + 1).ToString() + "\" type=\"text\"  reado     maxlength =\"30\" class=\"tdinput\"       onclick =\"treeveiwPopUp.show()\" readonly=\"readonly\"  value='" + GetSafeData.ValidateDataRow_String(dtGoal.Rows[i], "PositionTitle") + "'/></td>");

                //objTD.innerHTML = "<input type=\"hidden\" id=\"DeptQuarter" + (i + 1).ToString() + "Hidden\"  value='"
                //            + GetSafeData.ValidateDataRow_String(dtGoal.Rows[i], "PositionID") + "'/> <input id=\"DeptQuarter" + (i + 1).ToString() + "\" type=\"text\"  reado     maxlength =\"30\" class=\"tdinput\"       onclick =\"treeveiwPopUp.show()\" readonly=\"readonly\"  value='"    + GetSafeData.ValidateDataRow_String(dtGoal.Rows[i], "PositionTitle") + "'/> ";


                //人员数量
                sbGoalInfo.AppendLine("<td class='tdColInput'><input type='text' maxlength = '3' value='"
                                      + GetSafeData.ValidateDataRow_String(dtGoal.Rows[i], "PersonCount") + "' class='tdinput' id='txtPersonCount_" + (i + 1).ToString() + "'  onchange='GetRequireNum();'></td>");
                //性别
                sbGoalInfo.AppendLine("<td class='tdColInputCenter'>"
                                      + InitSexDropDownList("ddlSex_" + (i + 1).ToString(), GetSafeData.ValidateDataRow_String(dtGoal.Rows[i], "Sex")) + "</td>");
                //年龄
                sbGoalInfo.AppendLine("<td class='tdColInput'><input type='text' maxlength = '25' value='"
                                      + GetSafeData.ValidateDataRow_String(dtGoal.Rows[i], "Age") + "' class='tdinput' id='txtAge_" + (i + 1).ToString() + "'></td>");

                sbGoalInfo.AppendLine("<td class='tdColInput'><select class='tdinput'id='txtWorkAge_" + (i + 1).ToString() + "'>" + GetWorkAge(GetSafeData.ValidateDataRow_String(dtGoal.Rows[i], "WorkAge")) + "</select></td>");

                //学历
                sbGoalInfo.AppendLine("<td class='tdColInputCenter'>" +
                                      CodePublicTypeBus.CreateSelectInputControlString(ConstUtil.CODE_TYPE_HUMAN, ConstUtil.CODE_TYPE_CULTURE
                                                                                       , "ddlCultureLevel_" + (i + 1).ToString(), "tdinput", true, GetSafeData.GetStringFromInt(dtGoal.Rows[i], "CultureLevel"))
                                      + "</td>");
                //专业
                sbGoalInfo.AppendLine("<td class='tdColInputCenter'>" +
                                      CodePublicTypeBus.CreateSelectInputControlString(ConstUtil.CODE_TYPE_HUMAN, ConstUtil.CODE_TYPE_PROFESSIONAL
                                                                                       , "ddlProfessional_" + (i + 1).ToString(), "tdinput", true, GetSafeData.GetStringFromInt(dtGoal.Rows[i], "Professional"))
                                      + "</td>");
                //要求
                sbGoalInfo.AppendLine("<td class='tdColInput'><input type='text' maxlength = '500' value='"
                                      + GetSafeData.ValidateDataRow_String(dtGoal.Rows[i], "Requisition") + "' class='tdinput' id='txtRequisition_" + (i + 1).ToString() + "'></td>");
                //计划完成时间
                sbGoalInfo.AppendLine("<td class='tdColInputCenter'><input type='text' readonly maxlength = '10' value='"
                                      + GetSafeData.GetStringFromDateTime(dtGoal.Rows[i], "CompleteDate", "yyyy-MM-dd")
                                      + "' class='tdinput' id='txtCompleteDate_" + (i + 1).ToString() + "' onclick=\"WdatePicker({dateFmt:'yyyy-MM-dd',el:$dp.$('txtCompleteDate_" + (i + 1).ToString() + "')})\"></td>");

                //插入行结束标识
                sbGoalInfo.AppendLine("</tr>");
            }
        }

        //招聘目标设置到DIV中表示
        divRectGoalDetail.InnerHtml = CreateGoalTable() + sbGoalInfo.ToString() + EndTable();
    }
Пример #12
0
    private void InitGoalInfo(DataTable dtGoal)
    {
        //定义保存招聘目标的变量
        StringBuilder sbGoalInfo = new StringBuilder();

        //招聘目标存在时,设置招聘目标
        if (dtGoal != null && dtGoal.Rows.Count > 0)
        {
            for (int i = 0; i < dtGoal.Rows.Count; i++)
            {
                //插入行开始标识
                sbGoalInfo.AppendLine("<tr>");
                //选择框
                sbGoalInfo.AppendLine("<td class='tdColInput'><input type='checkbox' id='tblRectGoalDetailInfo_chkSelect_" + (i + 1).ToString() + "'>");
                //岗位
                sbGoalInfo.AppendLine("<td class='tdColInput'><input type=\"hidden\" id=\"DeptQuarter" + (i + 1).ToString() + "Hidden\"  value='"
                                      + GetSafeData.ValidateDataRow_String(dtGoal.Rows[i], "JobID") + "'/> <input id=\"DeptQuarter" + (i + 1).ToString() + "\" type=\"text\"  reado     maxlength =\"30\" class=\"tdinput\"       onclick =\"treeveiwPopUp.show()\" readonly=\"readonly\"  value='" + GetSafeData.ValidateDataRow_String(dtGoal.Rows[i], "JobName") + "'/></td>");
                //职务说明
                sbGoalInfo.AppendLine("<td class='tdColInput'><input type='text' maxlength = '100' size='10' class='tdinput'  id='txtJobDescripe_" + (i + 1).ToString() + "'  value='"
                                      + GetSafeData.ValidateDataRow_String(dtGoal.Rows[i], "JobDescripe") + "'  ondblclick ='alertContent(this.id)' ></td>");
                //需求人数
                sbGoalInfo.AppendLine("<td class='tdColInput'><input type='text' maxlength = '3' value='"
                                      + GetSafeData.ValidateDataRow_String(dtGoal.Rows[i], "RectCount") + "' class='tdinput' id='txtPersonCount_" + (i + 1).ToString() + "' onchange='GetRequireNum();'></td>");
                //最迟上岗时间
                sbGoalInfo.AppendLine("<td class='tdColInputCenter'><input type='text' readonly maxlength = '10' value='"
                                      + GetSafeData.GetStringFromDateTime(dtGoal.Rows[i], "UsedDate", "yyyy-MM-dd")
                                      + "' class='tdinput' id='txtUsedDate_" + (i + 1).ToString() + "' onclick=\"J.calendar.get();\"></td>");
                //工作地点
                sbGoalInfo.AppendLine("<td class='tdColInput'><input type='text' maxlength = '100' size='10' class='tdinput'  id='txtWorkPlace_" + (i + 1).ToString() + "'   value='"
                                      + GetSafeData.ValidateDataRow_String(dtGoal.Rows[i], "WorkPlace") + "'  ondblclick   ='alertContent(this.id)'></td>");
                //工作性质
                sbGoalInfo.AppendLine("<td class='tdColInput'>"
                                      + InitWorkNatureDropDownList("ddlWorkNature_" + (i + 1).ToString(), GetSafeData.ValidateDataRow_String(dtGoal.Rows[i], "WorkNature")) + "</td>");
                //性别
                sbGoalInfo.AppendLine("<td class='tdColInputCenter'>"
                                      + InitSexDropDownList("ddlSex_" + (i + 1).ToString(), GetSafeData.ValidateDataRow_String(dtGoal.Rows[i], "Sex")) + "</td>");


                //起始年龄
                sbGoalInfo.AppendLine("<td class='tdColInput'><input  type='text' maxlength = '3' size='3' class='tdinput' id='txtMinAge_" + (i + 1).ToString() + "' onkeydown='Numeric_OnKeyDown();'  value='" + GetSafeData.ValidateDataRow_String(dtGoal.Rows[i], "MinAge") + "'></td>");
                //截止年龄
                sbGoalInfo.AppendLine("<td class='tdColInput'><input  type='text' maxlength = '3' size='3' class='tdinput' id='txtMaxAge_" + (i + 1).ToString() + "' onkeydown='Numeric_OnKeyDown();'  value='" + GetSafeData.ValidateDataRow_String(dtGoal.Rows[i], "MaxAge") + "'></td>");

                //专业
                sbGoalInfo.AppendLine("<td class='tdColInputCenter'>" +
                                      CodePublicTypeBus.CreateSelectInputControlString(ConstUtil.CODE_TYPE_HUMAN, ConstUtil.CODE_TYPE_PROFESSIONAL
                                                                                       , "ddlProfessional_" + (i + 1).ToString(), "tdinput", true, GetSafeData.GetStringFromInt(dtGoal.Rows[i], "Professional"))
                                      + "</td>");

                //学历
                sbGoalInfo.AppendLine("<td class='tdColInputCenter'>" +
                                      CodePublicTypeBus.CreateSelectInputControlString(ConstUtil.CODE_TYPE_HUMAN, ConstUtil.CODE_TYPE_CULTURE
                                                                                       , "ddlCultureLevel_" + (i + 1).ToString(), "tdinput", true, GetSafeData.GetStringFromInt(dtGoal.Rows[i], "CultureLevel"))
                                      + "</td>");

                //工作年限
                sbGoalInfo.AppendLine("<td class='tdColInput'>"
                                      + InitWorkAgeDropDownList("ddlWorkAge_" + (i + 1).ToString(), GetSafeData.ValidateDataRow_String(dtGoal.Rows[i], "WorkAge")) + "</td>");


                //工作要求
                sbGoalInfo.AppendLine("<td class='tdColInput'><input type='text' maxlength = '1000' value='"
                                      + GetSafeData.ValidateDataRow_String(dtGoal.Rows[i], "WorkNeeds") + "' class='tdinput' id='txtRequisition_" + (i + 1).ToString() + "' ondblclick   ='alertContent(this.id)'  ></td>");

                //其他要求
                sbGoalInfo.AppendLine("<td class='tdColInput'><input type='text' maxlength = '1000' value='"
                                      + GetSafeData.ValidateDataRow_String(dtGoal.Rows[i], "OtherAbility") + "' class='tdinput' id='txtOtherAbility_" + (i + 1).ToString() + "' title='" + GetSafeData.ValidateDataRow_String(dtGoal.Rows[i], "OtherAbility") + "' ondblclick   ='alertContent(this.id)' ></td>");
                //其他要求
                sbGoalInfo.AppendLine("<td class='tdColInput'  title='" + GetSafeData.ValidateDataRow_String(dtGoal.Rows[i], "SalaryNote") + "'  ><input type='text' maxlength = '1000'      value='"
                                      + GetSafeData.ValidateDataRow_String(dtGoal.Rows[i], "SalaryNote") + "' class='tdinput' id='txtSalaryNote_" + (i + 1).ToString() + "' ondblclick   ='alertContent(this.id)' ></td>");
                //插入行结束标识
                sbGoalInfo.AppendLine("</tr>");
            }
        }

        //招聘目标设置到DIV中表示
        divRectGoalDetail.InnerHtml = CreateGoalTable() + sbGoalInfo.ToString() + EndTable();
    }
Пример #13
0
    /// <summary>
    /// 设置人员工作履历以及学习履历
    /// </summary>
    /// <param name="employModel">人员信息</param>
    private void InitHistoryInfo(EmployeeInfoModel employModel)
    {
        //获取技能信息
        DataTable dtHistory = employModel.HistoryInfo;
        //定义保存工作履历详细信息变量
        StringBuilder sbWorkInfo = new StringBuilder();
        //定义保存学习履历详细信息变量
        StringBuilder sbStudyInfo = new StringBuilder();

        //技能信息存在时,设置技能信息
        if (dtHistory != null && dtHistory.Rows.Count > 0)
        {
            //工作履历记录数
            int workCount = 1;
            //学习履历记录数
            int studyCount = 1;
            //遍历所有技能信息
            for (int i = 0; i < dtHistory.Rows.Count; i++)
            {
                //区分
                string flag = GetSafeData.ValidateDataRow_String(dtHistory.Rows[i], "Flag");
                //工作履历
                if (ConstUtil.HUMAN_HISTORY_WORK.Equals(flag))
                {
                    //插入行开始标识
                    sbWorkInfo.AppendLine("<tr>");
                    //选择框
                    sbWorkInfo.AppendLine("<td class='tdColInputCenter'><input type='checkbox' id='tblWorkHistory_chkSelect_" + workCount.ToString() + "'></td>");
                    //开始时间
                    sbWorkInfo.AppendLine("<td class='tdColInput'><input type='text' maxlength = '10' value='"
                                          + GetSafeData.GetStringFromDateTime(dtHistory.Rows[i], "StartDate", "yyyy-MM-dd")
                                          + "' class='tdinput' readonly id='txtWorkStart_" + workCount.ToString() + "' onclick=\"WdatePicker({dateFmt:'yyyy-MM-dd',el:$dp.$('txtWorkStart_" + workCount.ToString() + "')})\"></td>");
                    //结束时间
                    sbWorkInfo.AppendLine("<td class='tdColInput'><input type='text' maxlength = '10' value='"
                                          + GetSafeData.GetStringFromDateTime(dtHistory.Rows[i], "EndDate", "yyyy-MM-dd")
                                          + "' class='tdinput' readonly id='txtWorkEnd_" + workCount.ToString() + "' onclick=\"WdatePicker({dateFmt:'yyyy-MM-dd',el:$dp.$('txtWorkEnd_" + workCount.ToString() + "')})\"></td>");
                    //工作单位
                    sbWorkInfo.AppendLine("<td class='tdColInput'><input type='text' maxlength = '50' value='"
                                          + GetSafeData.ValidateDataRow_String(dtHistory.Rows[i], "Company") + "' class='tdinput' id='txtWorkCompany_" + workCount.ToString() + "'></td>");
                    //所在部门
                    sbWorkInfo.AppendLine("<td class='tdColInput'><input type='text' maxlength = '50' value='"
                                          + GetSafeData.ValidateDataRow_String(dtHistory.Rows[i], "Department") + "' class='tdinput' id='txtWorkDept_" + workCount.ToString() + "'></td>");
                    //工作内容
                    sbWorkInfo.AppendLine("<td class='tdColInput'><input type='text' maxlength = '50' value='"
                                          + GetSafeData.ValidateDataRow_String(dtHistory.Rows[i], "WorkContent") + "' class='tdinput' id='txtWorkContent_" + workCount.ToString() + "'></td>");
                    //离职原因
                    sbWorkInfo.AppendLine("<td class='tdColInput'><input type='text' maxlength = '50' value='"
                                          + GetSafeData.ValidateDataRow_String(dtHistory.Rows[i], "LeaveReason") + "' class='tdinput' id='txtLeaveReason_" + workCount.ToString() + "'></td>");
                    //插入行结束标识
                    sbWorkInfo.AppendLine("</tr>");
                    //增长工作履历数
                    workCount++;
                }
                //学习履历
                else if (ConstUtil.HUMAN_HISTORY_STUDY.Equals(flag))
                {
                    //插入行开始标识
                    sbStudyInfo.AppendLine("<tr>");
                    //选择框
                    sbStudyInfo.AppendLine("<td class='tdColInputCenter'><input type='checkbox' id='tblStudyHistory_chkSelect_" + studyCount.ToString() + "'></td>");
                    //开始时间
                    sbStudyInfo.AppendLine("<td class='tdColInput'><input type='text' maxlength = '10' value='"
                                           + GetSafeData.GetStringFromDateTime(dtHistory.Rows[i], "StartDate", "yyyy-MM-dd")
                                           + "' class='tdinput' readonly id='txtStudyStart_" + studyCount.ToString() + "' onclick=\"WdatePicker({dateFmt:'yyyy-MM-dd',el:$dp.$('txtStudyStart_" + studyCount.ToString() + "')})\"></td>");
                    //结束时间
                    sbStudyInfo.AppendLine("<td class='tdColInput'><input type='text' maxlength = '10' value='"
                                           + GetSafeData.GetStringFromDateTime(dtHistory.Rows[i], "EndDate", "yyyy-MM-dd")
                                           + "' class='tdinput' readonly id='txtStudyEnd_" + studyCount.ToString() + "' onclick=\"WdatePicker({dateFmt:'yyyy-MM-dd',el:$dp.$('txtStudyEnd_" + studyCount.ToString() + "')})\"></td>");
                    //学校名称
                    sbStudyInfo.AppendLine("<td class='tdColInput'><input type='text' maxlength = '50' value='"
                                           + GetSafeData.ValidateDataRow_String(dtHistory.Rows[i], "SchoolName") + "' class='tdinput' id='txtSchoolName_" + studyCount.ToString() + "'></td>");
                    //专业
                    sbStudyInfo.AppendLine("<td class='tdColInput'>" +
                                           CodePublicTypeBus.CreateSelectInputControlString(ConstUtil.CODE_TYPE_HUMAN, ConstUtil.CODE_TYPE_PROFESSIONAL
                                                                                            , "ddlProfessional_" + studyCount.ToString(), "tdinput", false, GetSafeData.GetStringFromInt(dtHistory.Rows[i], "Professional"))
                                           + "</td>");
                    //学历
                    sbStudyInfo.AppendLine("<td class='tdColInput'>" +
                                           CodePublicTypeBus.CreateSelectInputControlString(ConstUtil.CODE_TYPE_HUMAN, ConstUtil.CODE_TYPE_CULTURE
                                                                                            , "ddlCultureLevel_" + studyCount.ToString(), "tdinput", false, GetSafeData.GetStringFromInt(dtHistory.Rows[i], "CultureLevel"))
                                           + "</td>");
                    //插入行结束标识
                    sbStudyInfo.AppendLine("</tr>");
                    //增长学习履历数
                    studyCount++;
                }
            }
        }
        //工作履历设置到DIV中表示
        divWorkInfo.InnerHtml = CreateWorkTable() + sbWorkInfo.ToString() + EndTable();
        //学习履历设置到DIV中表示
        divStudyInfo.InnerHtml = CreateStudyTable() + sbStudyInfo.ToString() + EndTable();
    }