JobAdd.aspx.cs

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

using HRManager.BusinessLogicLayer;
using HRManager.DataAccessHelper;

public partial class JobAdd : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
            InitData();
    }

    /// <summary>
    /// “提交”按钮单击事件
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void ButtonSubmit_Click(object sender, EventArgs e)
    {
        Hashtable htJob = new Hashtable();

        //所在城市ID
        htJob.Add("JobCityId", DropDownListCity.SelectedValue);

        //所属类别ID
        htJob.Add("JobTypeId", DropDownListJobType.SelectedValue);

        //职位名称
        htJob.Add("JobName", SqlStringConstructor.GetQuotedString(TextBoxName.Text));

        //职责描述
        string htmlResponsibility = System.Web.HttpUtility.HtmlEncode(TextBoxResponsibility.Text);
        htmlResponsibility = htmlResponsibility.Replace(((char)13).ToString(), "<br>");	//将"\t"替换为回车"<br>"
        htJob.Add("Responsibility", SqlStringConstructor.GetQuotedString(htmlResponsibility));

        //要求
        string htmlRequirement = System.Web.HttpUtility.HtmlEncode(TextBoxRequirement.Text);
        htmlRequirement = htmlRequirement.Replace(((char)13).ToString(), "<br>");	//将"\t"替换为回车"<br>"
        htJob.Add("Requirement", SqlStringConstructor.GetQuotedString(htmlRequirement));

        //是否紧急
        int isUrgent = 0;
        if (CheckBoxIsUrgent.Checked)
            isUrgent = 1;
        htJob.Add("IsUrgent", isUrgent);

        Job.Add(htJob);
    }

    /// <summary>
后面还有 24 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。