Web/Admin/Job/Edit.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 cosmos.Web.UI;

namespace cosmos.Web.Admin.Job
{
    public partial class Edit : ManagePage
    {
        public int Id;

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!int.TryParse(Request.Params["id"] as string, out this.Id))
            {
                JscriptMsg(350, 230, "错误提示", "<b>出现错误!</b>您要修改的信息不存在或参数不正确。", "back", "Error");
                return;
            }
            if (!Page.IsPostBack)
            {
                ShowInfo(this.Id);
            }
        }

        #region 赋值操作
        private void ShowInfo(int Id)
        {
            cosmos.BLL.JobInfo bll = new cosmos.BLL.JobInfo();
            cosmos.Model.JobInfo model = bll.GetModel(Id);
            this.txtJName.Text = model.JName;
            this.txtJSum.Text = model.JSum;
            this.txtJAddress.Text = model.JAddress;
            this.txtStartTimes.Text =string.Format("{0:d}", model.StartTimes);
            this.txtEndTimes.Text = string.Format("{0:d}", model.EndTimes);
            this.ckeditor.Text = cosmos.Common.Utils.ToTxt(model.JWage);
            this.ckeditor1.Text = cosmos.Common.Utils.ToTxt(model.JRequire);
            if (model.IsLock == 1)
            {
                rblIsLock.Items[0].Selected = true;
            }

            if (model.IsLock == 1)
            {
                rblIsLock.Items[1].Selected = true;
            }
            this.txtHits.Text = model.Hits.ToString();
        }
        #endregion

        //编辑操作
        protected void btnSave_Click(object sender, EventArgs e)
        {
            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);
后面还有 34 行代码,购买后查看完整代码

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

AI 解读 AI

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

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