예제 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            _dotuoi = ConvertUtility.ToString(Request.QueryString["dt"]);
            _monhoc = ConvertUtility.ToString(Request.QueryString["mh"]);
            _coso   = ConvertUtility.ToString(Request.QueryString["cs"]);

            if (!IsPostBack)
            {
                dropFilterMonHoc.DataSource     = MonhocDB.GetAll();
                dropFilterMonHoc.DataTextField  = "Monhoc_Name";
                dropFilterMonHoc.DataValueField = "Monhoc_ID";
                dropFilterMonHoc.DataBind();
                dropFilterMonHoc.Items.Insert(0, new ListItem("Chọn môn học", ""));

                dropFilterCoso.DataSource     = CosoDB.GetAll();
                dropFilterCoso.DataTextField  = "Coso_Name";
                dropFilterCoso.DataValueField = "Coso_ID";
                dropFilterCoso.DataBind();
                dropFilterCoso.Items.Insert(0, new ListItem("Chọn cơ sở", ""));

                MiscUtility.SetSelected(dropFilterDoTuoi.Items, _dotuoi);
                MiscUtility.SetSelected(dropFilterMonHoc.Items, _monhoc);
                MiscUtility.SetSelected(dropFilterCoso.Items, _coso);
            }
        }
예제 #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            _contentid = ConvertUtility.ToInt32(Request.QueryString["contentid"]);

            //mydealInfo = MydealItemDB.GetInfo(_contentid);

            if (!IsPostBack)
            {
                ZoneUtility.LoadZonesByParentID(dropLopHoc.Items, ConvertUtility.ToInt32(SettingDB.GetValue(AppEnv.CMS_ZoneKhoaHoc + AppEnv.GetLanguage())));
                dropLopHoc.Items.Insert(0, new ListItem("Lựa chọn lớp học", "0"));

                chklMonHoc.DataSource     = MonhocDB.GetAll();
                chklMonHoc.DataTextField  = "Monhoc_Name";
                chklMonHoc.DataValueField = "Monhoc_ID";
                chklMonHoc.DataBind();

                chklCoso.DataSource     = CosoDB.GetAll();
                chklCoso.DataTextField  = "Coso_Name";
                chklCoso.DataValueField = "Coso_ID";
                chklCoso.DataBind();

                chkVisible.Checked = true;
            }
            lblStatusUpdate.Text = string.Empty;
        }
예제 #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            _dotuoi    = ConvertUtility.ToString(Request.QueryString["dt"]);
            _monhoc    = ConvertUtility.ToString(Request.QueryString["mh"]);
            _coso      = ConvertUtility.ToString(Request.QueryString["cs"]);
            _lophoc    = ConvertUtility.ToString(Request.QueryString["lh"]);
            _khoahocid = ConvertUtility.ToInt32(Request.QueryString["khoahocid"]);

            if (!IsPostBack)
            {
                MiscUtility.FillIndex(dropDay, 1, 31, DateTime.Now.Day);
                MiscUtility.FillIndex(dropMonth, 1, 12, DateTime.Now.Month);
                MiscUtility.FillIndex(dropYear, 1950, DateTime.Now.Year, DateTime.Now.Year);

                dropFilterMonHoc.DataSource     = MonhocDB.GetAll();
                dropFilterMonHoc.DataTextField  = "Monhoc_Name";
                dropFilterMonHoc.DataValueField = "Monhoc_ID";
                dropFilterMonHoc.DataBind();
                dropFilterMonHoc.Items.Insert(0, new ListItem("Chọn môn học", ""));

                dropFilterCoso.DataSource     = CosoDB.GetAll();
                dropFilterCoso.DataTextField  = "Coso_Name";
                dropFilterCoso.DataValueField = "Coso_ID";
                dropFilterCoso.DataBind();
                dropFilterCoso.Items.Insert(0, new ListItem("Chọn cơ sở", ""));

                ZoneUtility.LoadZonesByParentID(dropFilterLopHoc.Items, ConvertUtility.ToInt32(SettingDB.GetValue(AppEnv.CMS_ZoneKhoaHoc + AppEnv.GetLanguage())));
                dropFilterLopHoc.Items.Insert(0, new ListItem("Chọn lớp học", ""));

                MiscUtility.SetSelected(dropFilterDoTuoi.Items, _dotuoi);
                MiscUtility.SetSelected(dropFilterMonHoc.Items, _monhoc);
                MiscUtility.SetSelected(dropFilterLopHoc.Items, _lophoc);
                MiscUtility.SetSelected(dropFilterCoso.Items, _coso);
            }
        }
예제 #4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                var dt = DataHelper.GetDataFromTable("SELECT * FROM KhoaHocSolart");
                dtgClass.DataSource = dt;
                dtgClass.DataBind();

                dropCoso.DataSource     = CosoDB.GetAll();
                dropCoso.DataTextField  = "Coso_Name";
                dropCoso.DataValueField = "Coso_ID";
                dropCoso.DataBind();
            }
        }
예제 #5
0
 protected override void OnPreRender(EventArgs e)
 {
     base.OnPreRender(e);
     dtgData.DataSource = CosoDB.GetAll();
     dtgData.DataBind();
 }