Ejemplo n.º 1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ZWL.Common.PublicMethod.CheckSession();
            //绑定页面数据
            ZWL.BLL.ERPAnPai Model = new ZWL.BLL.ERPAnPai();
            Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
            this.TextBox1.Text = Model.TitleStr;
            this.TxtContent.Text = Model.ContentStr;
            this.TextBox5.Text = Model.TypeStr;

            this.TextBox2.Text = Model.TimeStart.ToString().Split(' ')[0];
            this.DropDownList1.SelectedValue = DateTime.Parse(Model.TimeStart.ToString()).Hour.ToString("D2");
            this.DropDownList2.SelectedValue = DateTime.Parse(Model.TimeStart.ToString()).Minute.ToString("D2");

            this.TextBox3.Text = Model.TimeEnd.ToString().Split(' ')[0];
            this.DropDownList3.SelectedValue = DateTime.Parse(Model.TimeEnd.ToString()).Hour.ToString("D2");
            this.DropDownList4.SelectedValue = DateTime.Parse(Model.TimeEnd.ToString()).Minute.ToString("D2");

            this.TextBox4.Text = Model.TimeTiXing.ToString().Split(' ')[0];

            this.txtIFShare.Text = Model.GongXiangWho;
        }
    }
Ejemplo n.º 2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ZWL.Common.PublicMethod.CheckSession();
            //绑定页面数据
            ZWL.BLL.ERPAnPai Model = new ZWL.BLL.ERPAnPai();
            Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
            this.TextBox1.Text   = Model.TitleStr;
            this.TxtContent.Text = Model.ContentStr;
            this.TextBox5.Text   = Model.TypeStr;

            this.TextBox2.Text = Model.TimeStart.Value.ToString("yyyy-MM-dd");
            this.DropDownList1.SelectedValue = DateTime.Parse(Model.TimeStart.ToString()).Hour.ToString("D2");
            this.DropDownList2.SelectedValue = DateTime.Parse(Model.TimeStart.ToString()).Minute.ToString("D2");

            this.TextBox3.Text = Model.TimeEnd.Value.ToString("yyyy-MM-dd");
            this.DropDownList3.SelectedValue = DateTime.Parse(Model.TimeEnd.ToString()).Hour.ToString("D2");
            this.DropDownList4.SelectedValue = DateTime.Parse(Model.TimeEnd.ToString()).Minute.ToString("D2");

            this.TextBox4.Text = Model.TimeTiXing.Value.ToString("yyyy-MM-dd");
            this.DropDownList5.SelectedValue = DateTime.Parse(Model.TimeTiXing.ToString()).Hour.ToString("D2");
            this.DropDownList6.SelectedValue = DateTime.Parse(Model.TimeTiXing.ToString()).Minute.ToString("D2");

            this.txtIFShare.Text = Model.GongXiangWho;
        }
    }
Ejemplo n.º 3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         ZWL.Common.PublicMethod.CheckSession();
         //绑定页面数据
         ZWL.BLL.ERPAnPai Model = new ZWL.BLL.ERPAnPai();
         Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
         this.Label1.Text = Model.TitleStr;
         this.Label6.Text = Model.ContentStr;
         this.Label5.Text = Model.TypeStr;
         this.Label7.Text = Model.GongXiangWho;
         this.Label2.Text = Model.TimeStart.ToString();
         this.Label3.Text = Model.TimeEnd.ToString();
         this.Label4.Text = Model.TimeTiXing.ToString().Split(' ')[0];
     }
 }
Ejemplo n.º 4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         ZWL.Common.PublicMethod.CheckSession();
         //绑定页面数据
         ZWL.BLL.ERPAnPai Model = new ZWL.BLL.ERPAnPai();
         Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
         this.Label1.Text = Model.TitleStr;
         this.Label6.Text = Model.ContentStr;
         this.Label5.Text = Model.TypeStr;
         this.Label7.Text = Model.GongXiangWho;
         this.Label2.Text = Model.TimeStart.ToString();
         this.Label3.Text = Model.TimeEnd.ToString();
         this.Label4.Text = Model.TimeTiXing.ToString();
     }
 }
Ejemplo n.º 5
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         ZWL.Common.PublicMethod.CheckSession();
         this.txtCustomName.Text = Request.QueryString["CustomName"].ToString();
         try
         {
             ZWL.BLL.ERPAnPai Model = new ZWL.BLL.ERPAnPai();
             Model.GetModel(int.Parse(Request.QueryString["RiChengID"].ToString()));
             this.txtLinkTitle.Text = Model.TitleStr;
             this.txtLinkType.Text  = Model.TypeStr;
             this.txtLinkTime.Text  = Model.TimeStart.ToString();
         }
         catch
         { }
     }
 }