Web/Admin/Job/Add.aspx.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Maticsoft.Common;
using cosmos.Web.UI;
namespace cosmos.Web.Admin.Job
{
public partial class Add : ManagePage
{
protected void Page_Load(object sender, EventArgs e)
{
}
//添加招聘
protected void btnSave_Click(object sender, EventArgs e)
{
string strErr = "";
if (this.txtJName.Text.Trim().Length == 0)
{
strErr += "岗位职称不能为空!\\n";
}
if (this.txtJSum.Text.Trim().Length == 0)
{
strErr += "招聘人数不能为空!\\n";
}
if (this.txtJAddress.Text.Trim().Length == 0)
{
strErr += "工作地点不能为空!\\n";
}
if (!PageValidate.IsDateTime(txtStartTimes.Text))
{
strErr += "招聘时间格式错误!\\n";
}
if (!PageValidate.IsDateTime(txtEndTimes.Text))
{
strErr += "结束时间格式错误!\\n";
}
if (!PageValidate.IsNumber(txtHits.Text))
{
strErr += "点击数格式错误!\\n";
}
if (strErr != "")
{
MessageBox.Show(this, strErr);
return;
}
string JName = this.txtJName.Text;
string JSum = this.txtJSum.Text;
string JAddress = this.txtJAddress.Text;
DateTime StartTimes = DateTime.Parse(this.txtStartTimes.Text);
DateTime EndTimes = DateTime.Parse(this.txtEndTimes.Text);
string JWage = cosmos.Common.Utils.ToHtml(this.ckeditor.Text);
string JRequire = cosmos.Common.Utils.ToHtml(this.ckeditor1.Text);
int IsLock = Convert.ToInt32(rblIsLock.SelectedValue);
后面还有 31 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。