Example #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            int id = Common.TypeHelper.ObjectToInt(Request["id"], 0);
            if (id > 0)
            {
                Model.InfoModel m = dal.GetModel(id);
                this.hidvid.Value  = m.Id.ToString();
                this.txtTitle.Text = m.Title;
                this.txtNotes.Text = m.Notes;
            }

            this.infoList.DataSource = dal.GetList("");
            this.infoList.DataBind();
        }
    }
Example #2
0
    protected void Bind()
    {
        Db.InfoDal dal = new Db.InfoDal();

        this.infoList.DataSource = dal.GetList("");
        this.infoList.DataBind();

        Db.DictConfigDal Dictdal = new Db.DictConfigDal();

        //this.DictionaryList.DataSource = Dictdal.GetList(" and bid=1");
        //this.DictionaryList.DataBind();

        TITLE = WebFramework.GeneralMethodBase.GetKeyConfig(10).Val;
        this.txtTITLE.Text = TITLE;
        txtStart_Time.Text = DateTime.Parse(WebFramework.GeneralMethodBase.GetKeyConfig(8).Val).ToString("yyyy年MM月dd日 HH时mm分ss秒");
        txtEnd_Time.Text   = DateTime.Parse(WebFramework.GeneralMethodBase.GetKeyConfig(9).Val).ToString("yyyy年MM月dd日 HH时mm分ss秒");
        this.IsTest.Text   = WebFramework.GeneralMethodBase.GetKeyConfig(3).States == 1 ? "是" : "否";
    }