protected void Page_Load(object sender, EventArgs e)
 {
     strResource_Class       = Rc.Common.Config.Resource_ClassConst.云资源;
     strResource_Type        = ddlResource_Type.SelectedValue;
     strGradeTerm            = ddlGradeTerm.SelectedValue;
     strSubject              = ddlSubject.SelectedValue;
     strResource_Version     = ddlResource_Version.SelectedValue;
     FileSyncExecRecord_Type = Request.QueryString["FileSyncExecRecord_Type"].Filter();
     if (!IsPostBack)
     {
         DataTable dt       = new DataTable();
         string    strWhere = string.Empty;
         //教材版本
         strWhere = " D_Type='3' order by d_order";
         dt       = new Rc.BLL.Resources.BLL_Common_Dict().GetList(strWhere).Tables[0];
         Rc.Cloud.Web.Common.pfunction.SetDdl(ddlResource_Version, dt, "D_Name", "Common_Dict_ID", "请选择");
         //文档类型
         strWhere = string.Format(" D_Type='1' AND Common_Dict_ID!='{0}' order by d_order", Rc.Common.Config.Resource_TypeConst.属性生成的目录);
         dt       = new Rc.BLL.Resources.BLL_Common_Dict().GetList(strWhere).Tables[0];
         Rc.Cloud.Web.Common.pfunction.SetDdl(ddlResource_Type, dt, "D_Name", "Common_Dict_ID", "请选择");
         //年级学期
         strWhere = " D_Type='6' order by d_order";
         dt       = new Rc.BLL.Resources.BLL_Common_Dict().GetList(strWhere).Tables[0];
         Rc.Cloud.Web.Common.pfunction.SetDdl(ddlGradeTerm, dt, "D_Name", "Common_Dict_ID", "请选择");
         //学科
         strWhere = " D_Type='7' order by d_order";
         dt       = new Rc.BLL.Resources.BLL_Common_Dict().GetList(strWhere).Tables[0];
         Rc.Cloud.Web.Common.pfunction.SetDdl(ddlSubject, dt, "D_Name", "Common_Dict_ID", "请选择");
     }
 }
Esempio n. 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            TestPaper_FrameDetail_Id = Request["TestPaper_FrameDetail_Id"].Filter();
            TestPaper_Frame_Id       = Request["TestPaper_Frame_Id"].Filter();
            type = Request["type"].Filter();
            if (!IsPostBack)
            {
                InitInfo();
                DataTable dt       = new DataTable();
                string    strWhere = string.Empty;

                //教材版本
                strWhere = " D_Type='24' order by d_order";
                dt       = new Rc.BLL.Resources.BLL_Common_Dict().GetList(strWhere).Tables[0];
                Rc.Cloud.Web.Common.pfunction.SetDdl(ddlTestQuestionType_Web, dt, "D_Name", "Common_Dict_ID", "-请选择-");
                if (!string.IsNullOrEmpty(type))
                {
                    LoadData();
                }
                else
                {
                    string Sql = "select isnull(max(TestQuestions_Num),0)+1 from TestPaper_FrameDetail where TestPaper_Frame_Id='" + TestPaper_Frame_Id + "'";
                    object i   = Rc.Common.DBUtility.DbHelperSQL.GetSingle(Sql);
                    this.txtSort.Text = i.ToString();
                }
            }
        }
Esempio n. 3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     //string strWebSitePath = ConfigurationManager.AppSettings["SynMediaWebSiteUrl"].ToString();
     //Response.Redirect(strWebSitePath + "AuthApi/AudioVideo/AudioVideoListMgr.aspx");
     //Module_Id = "10401000";
     if (!IsPostBack)
     {
         DataTable dt       = new DataTable();
         string    strWhere = string.Empty;
         //教材版本
         strWhere = " D_Type='3' order by d_order";
         dt       = new Rc.BLL.Resources.BLL_Common_Dict().GetList(strWhere).Tables[0];
         Rc.Cloud.Web.Common.pfunction.SetDdl(ddlResource_Version, dt, "D_Name", "Common_Dict_ID", "--教材版本--");
         //入学年份
         int years = DateTime.Now.Year;
         Rc.Cloud.Web.Common.pfunction.SetDdlStartSchoolYear(ddlYear, years - 5, years + 1, true, "入学年份");
         //年级学期
         strWhere = " D_Type='6' order by d_order";
         dt       = new Rc.BLL.Resources.BLL_Common_Dict().GetList(strWhere).Tables[0];
         Rc.Cloud.Web.Common.pfunction.SetDdl(ddlGradeTerm, dt, "D_Name", "Common_Dict_ID", "--年级学期--");
         //学科
         strWhere = " D_Type='7' order by d_order";
         dt       = new Rc.BLL.Resources.BLL_Common_Dict().GetList(strWhere).Tables[0];
         Rc.Cloud.Web.Common.pfunction.SetDdl(ddlSubject, dt, "D_Name", "Common_Dict_ID", "--学科--");
     }
 }
Esempio n. 4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     Two_WayChecklist_Id = Request["Two_WayChecklist_Id"].Filter();
     if (!IsPostBack)
     {
         DataTable dt       = new DataTable();
         string    strWhere = string.Empty;
         //教材版本
         strWhere = " D_Type='3' order by d_order";
         dt       = new Rc.BLL.Resources.BLL_Common_Dict().GetList(strWhere).Tables[0];
         Rc.Cloud.Web.Common.pfunction.SetDdl(ddlResource_Version, dt, "D_Name", "Common_Dict_ID", "--教材版本--");
         //入学年份
         int years = DateTime.Now.Year;
         Rc.Cloud.Web.Common.pfunction.SetDdlStartSchoolYear(ddlYear, years - 5, years + 1, true, "入学年份");
         //年级学期
         strWhere = " D_Type='6' order by d_order";
         dt       = new Rc.BLL.Resources.BLL_Common_Dict().GetList(strWhere).Tables[0];
         Rc.Cloud.Web.Common.pfunction.SetDdl(ddlGradeTerm, dt, "D_Name", "Common_Dict_ID", "--年级学期--");
         //学科
         strWhere = " D_Type='7' order by d_order";
         dt       = new Rc.BLL.Resources.BLL_Common_Dict().GetList(strWhere).Tables[0];
         Rc.Cloud.Web.Common.pfunction.SetDdl(ddlSubject, dt, "D_Name", "Common_Dict_ID", "--学科--");
         if (!string.IsNullOrEmpty(Two_WayChecklist_Id))
         {
             LoadData();
         }
     }
 }
Esempio n. 5
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         UserList = Request["UserList"].Filter();
         DataTable dt       = new DataTable();
         string    strWhere = string.Empty;
         //教材版本
         strWhere = " D_Type='3' order by d_order";
         dt       = new Rc.BLL.Resources.BLL_Common_Dict().GetList(strWhere).Tables[0];
         Rc.Cloud.Web.Common.pfunction.SetDdl(ddlResource_Version, dt, "D_Name", "Common_Dict_ID", "教材版本");
         //文档类型
         strWhere = string.Format(" D_Type='1' AND Common_Dict_ID!='{0}' order by d_order", Rc.Common.Config.Resource_TypeConst.属性生成的目录);
         dt       = new Rc.BLL.Resources.BLL_Common_Dict().GetList(strWhere).Tables[0];
         Rc.Cloud.Web.Common.pfunction.SetDdl(ddlResource_Type, dt, "D_Name", "Common_Dict_ID", "文档类型");
         //年级学期
         strWhere = " D_Type='6' order by d_order";
         dt       = new Rc.BLL.Resources.BLL_Common_Dict().GetList(strWhere).Tables[0];
         Rc.Cloud.Web.Common.pfunction.SetDdl(ddlGradeTerm, dt, "D_Name", "Common_Dict_ID", "年级学期");
         //学科
         strWhere = " D_Type='7' order by d_order";
         dt       = new Rc.BLL.Resources.BLL_Common_Dict().GetList(strWhere).Tables[0];
         Rc.Cloud.Web.Common.pfunction.SetDdl(ddlSubjects, dt, "D_Name", "Common_Dict_ID", "学科");
     }
 }
Esempio n. 6
0
 protected void Page_Load(object sender, EventArgs e)
 {
     this.Title        = "资源所属区域维护";
     Module_Id         = "10400200";
     strResource_Class = Rc.Common.Config.Resource_ClassConst.云资源;
     if (!IsPostBack)
     {
         DataTable dt = new DataTable();
         //省
         dt = new Rc.BLL.Resources.BLL_Regional_Dict().GetList("D_PartentID=''  ORDER BY CONVERT(INT,D_Code)").Tables[0];
         pfunction.SetDdl(ddlProvince, dt, "D_Name", "Regional_Dict_Id", "省份");
         string strWhere = string.Empty;
         //教材版本
         strWhere = " D_Type='3' order by d_order";
         dt       = new Rc.BLL.Resources.BLL_Common_Dict().GetList(strWhere).Tables[0];
         Rc.Cloud.Web.Common.pfunction.SetDdl(ddlResource_Version, dt, "D_Name", "Common_Dict_ID", "请选择");
         //文档类型
         strWhere = string.Format(" D_Type='1' AND Common_Dict_ID!='{0}' order by d_order", Rc.Common.Config.Resource_TypeConst.属性生成的目录);
         dt       = new Rc.BLL.Resources.BLL_Common_Dict().GetList(strWhere).Tables[0];
         Rc.Cloud.Web.Common.pfunction.SetDdl(ddlResource_Type, dt, "D_Name", "Common_Dict_ID", "请选择");
         //年级学期
         strWhere = " D_Type='6' order by d_order";
         dt       = new Rc.BLL.Resources.BLL_Common_Dict().GetList(strWhere).Tables[0];
         Rc.Cloud.Web.Common.pfunction.SetDdl(ddlGradeTerm, dt, "D_Name", "Common_Dict_ID", "请选择");
         //学科
         strWhere = " D_Type='7' order by d_order";
         dt       = new Rc.BLL.Resources.BLL_Common_Dict().GetList(strWhere).Tables[0];
         Rc.Cloud.Web.Common.pfunction.SetDdl(ddlSubject, dt, "D_Name", "Common_Dict_ID", "请选择");
         //年份
         pfunction.SetDdlYear(ddlParticularYear, DateTime.Now.Year - 5, DateTime.Now.Year + 2, true);
     }
     StaticUserFun = new Rc.Cloud.BLL.BLL_clsAuth().GetUserFunc(loginUser.SysUser_ID, clsUtility.ReDoStr(loginUser.SysRole_IDs, ','), Module_Id);
 }
Esempio n. 7
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Module_Id           = "30100200";
            userId              = loginUser.SysUser_ID;
            strResource_Class   = Rc.Common.Config.Resource_ClassConst.云资源;
            strGradeTerm        = ddlGradeTerm.SelectedValue;
            strSubject          = ddlSubject.SelectedValue;
            strResource_Version = ddlResource_Version.SelectedValue;
            if (!IsPostBack)
            {
                DataTable dt       = new DataTable();
                string    strWhere = string.Empty;
                //教材版本
                strWhere = " D_Type='3' order by d_order";
                dt       = new Rc.BLL.Resources.BLL_Common_Dict().GetList(strWhere).Tables[0];
                Rc.Cloud.Web.Common.pfunction.SetDdl(ddlResource_Version, dt, "D_Name", "Common_Dict_ID", "请选择");

                //年级学期
                strWhere = " D_Type='6' order by d_order";
                dt       = new Rc.BLL.Resources.BLL_Common_Dict().GetList(strWhere).Tables[0];
                Rc.Cloud.Web.Common.pfunction.SetDdl(ddlGradeTerm, dt, "D_Name", "Common_Dict_ID", "请选择");
                //学科
                strWhere = " D_Type='7' order by d_order";
                dt       = new Rc.BLL.Resources.BLL_Common_Dict().GetList(strWhere).Tables[0];
                Rc.Cloud.Web.Common.pfunction.SetDdl(ddlSubject, dt, "D_Name", "Common_Dict_ID", "请选择");
            }
        }
Esempio n. 8
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (FloginUser.UserIdentity == "G" || FloginUser.UserIdentity == "C")
            {
                //dlSubject.Visible = false;
            }
            if (!IsPostBack)
            {
                DataTable dt       = new DataTable();
                string    strWhere = string.Empty;
                //学科
                strWhere = " D_Type='7' order by d_order";
                dt       = new Rc.BLL.Resources.BLL_Common_Dict().GetList(strWhere).Tables[0];
                Rc.Cloud.Web.Common.pfunction.SetDdl(ddlSubject, dt, "D_Name", "Common_Dict_ID", "--请选择--");

                init_load();
            }
            //object obj =  Rc.Common.DataCache.GetCache(FloginUser.UserId);
            //if (obj!=null)
            //{
            //    txtEmail.Text = obj.ToString();
            //}

            //object obj = Rc.Common.StrUtility.CookieClass.GetCookie("LanUrl_" + FloginUser.UserId);
            //if (obj != null)
            //{
            //    txtEmail.Text = Server.UrlDecode(obj.ToString());
            //}
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            userId                = Request["userId"].Filter();
            userIdentity          = Request["userIdentity"].Filter();
            folderId              = Request["folderId"].Filter();
            isBack                = Request["isBack"].Filter();
            hiduserId.Value       = userId;
            hiduserIdentity.Value = userIdentity;
            hidfolderId.Value     = folderId;

            strResource_Class   = Request["Resource_Class"].Filter();
            strGradeTerm        = Request["GradeTerm"].Filter();
            strResource_Version = Request["Resource_Version"].Filter();
            strSubject          = Request["Subject"].Filter();

            if (string.IsNullOrEmpty(isBack))
            {
                btnBack.Visible = false;
            }

            if (!IsPostBack)
            {
                DataTable dt       = new DataTable();
                string    strWhere = string.Empty;
                //资源类别
                ddlResource_Class.Items.Clear();
                ddlResource_Class.Items.Add(new ListItem("云资源", Rc.Common.Config.Resource_ClassConst.云资源));
                if (userIdentity == "T")
                {
                    ddlResource_Class.Items.Add(new ListItem("自有资源", Rc.Common.Config.Resource_ClassConst.自有资源));
                }
                ddlResource_Class.SelectedValue = strResource_Class;
                if (userIdentity == "A")
                {
                    ddlResource_Class.Style.Add("display", "none");
                }

                //年级学期
                strWhere = " D_Type='6' order by d_order";
                dt       = new Rc.BLL.Resources.BLL_Common_Dict().GetList(strWhere).Tables[0];
                Rc.Cloud.Web.Common.pfunction.SetDdl(ddlGradeTerm, dt, "D_Name", "Common_Dict_ID", "年级学期");
                ddlGradeTerm.SelectedValue = strGradeTerm;

                //教材版本
                strWhere = " D_Type='3' order by d_order";
                dt       = new Rc.BLL.Resources.BLL_Common_Dict().GetList(strWhere).Tables[0];
                Rc.Cloud.Web.Common.pfunction.SetDdl(ddlResource_Version, dt, "D_Name", "Common_Dict_ID", "教材版本");
                ddlResource_Version.SelectedValue = strResource_Version;

                //学科
                strWhere = " D_Type='7' order by d_order";
                dt       = new Rc.BLL.Resources.BLL_Common_Dict().GetList(strWhere).Tables[0];
                Rc.Cloud.Web.Common.pfunction.SetDdl(ddlSubject, dt, "D_Name", "Common_Dict_ID", "学科");
                ddlSubject.SelectedValue = strSubject;
            }
        }
Esempio n. 10
0
        private void isit_load()
        {
            DataTable dt = new DataTable();

            //省
            dt = new Rc.BLL.Resources.BLL_Regional_Dict().GetList("D_PartentID=''  ORDER BY CONVERT(INT,D_Code)").Tables[0];
            pfunction.SetDdl(ddlProvince, dt, "D_Name", "Regional_Dict_Id", "省份");

            string        strWhere = string.Empty;
            StringBuilder html     = new StringBuilder();
            //年份
            int intYear = DateTime.Now.Year;

            html.Append("<li><a href='##' class='active' ajax-value=''>全部</a></li>");
            for (int i = intYear - 5; i <= intYear + 1; i++)
            {
                html.AppendFormat(" <li><a href='##' ajax-value='{0}'>{0}</a></li>", i);
            }
            ddlYear.Text = html.ToString();
            html.Clear();
            //教材版本
            strWhere = " D_Type='3' order by d_order";
            dt       = new Rc.BLL.Resources.BLL_Common_Dict().GetList(strWhere).Tables[0];
            html.Append("<li><a href='##' class='active' ajax-value=''>全部</a></li>");
            foreach (DataRow row in dt.Rows)
            {
                html.Append(" <li><a href='##' ajax-value='" + row["Common_Dict_ID"] + "'>" + row["D_Name"] + "</a></li>");
            }
            ddlVersion.Text = html.ToString();
            html.Clear();
            //年级学期
            strWhere = " D_Type='6' order by d_order";
            dt       = new Rc.BLL.Resources.BLL_Common_Dict().GetList(strWhere).Tables[0];

            html.Append("<li><a href='##' class='active' ajax-value=''>全部</a></li>");
            foreach (DataRow row in dt.Rows)
            {
                html.Append(" <li><a href='##' ajax-value='" + row["Common_Dict_ID"] + "'>" + row["D_Name"] + "</a></li>");
            }
            ddlGradeTerm.Text = html.ToString();
            html.Clear();
            //学科
            strWhere = " D_Type='7' order by d_order";
            dt       = new Rc.BLL.Resources.BLL_Common_Dict().GetList(strWhere).Tables[0];
            html.Append("<li><a href='##' class='active' ajax-value=''>全部</a></li>");
            foreach (DataRow row in dt.Rows)
            {
                html.Append(" <li><a href='##' ajax-value='" + row["Common_Dict_ID"] + "'>" + row["D_Name"] + "</a></li>");
            }
            ddlSubject.Text = html.ToString();
            html.Clear();
        }
Esempio n. 11
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         DataTable dt       = new DataTable();
         string    strWhere = string.Empty;
         //年级类型
         strWhere = " D_Type='9' order by d_order";
         dt       = new Rc.BLL.Resources.BLL_Common_Dict().GetList(strWhere).Tables[0];
         Rc.Cloud.Web.Common.pfunction.SetDdl(ddlGradeType, dt, "D_Name", "Common_Dict_ID", "-请选择-");
         //入学年份
         int years = DateTime.Now.Year;
         Rc.Cloud.Web.Common.pfunction.SetDdlStartSchoolYear(ddlStartSchoolYear, years - 5, years + 1, false, "-请选择-");
         ddlStartSchoolYear.SelectedValue = years.ToString();
     }
 }
Esempio n. 12
0
 protected void Page_Load(object sender, EventArgs e)
 {
     AudioVideoBookId = Request.QueryString["AudioVideoBookId"].ToString().Filter();
     if (!IsPostBack)
     {
         BLL_SysUserTask bll_sysusertask = new BLL_SysUserTask();
         DataTable       dt       = new DataTable();
         string          strWhere = string.Empty;
         //if (loginUser.SysUser_ID == Consts.AdminID || loginUser.SysUser_ID == Consts.CAdminID)
         //{
         //教材版本
         strWhere = " D_Type='3' order by d_order";
         dt       = new Rc.BLL.Resources.BLL_Common_Dict().GetList(strWhere).Tables[0];
         Rc.Cloud.Web.Common.pfunction.SetDdl(ddlResource_Version, dt, "D_Name", "Common_Dict_ID", "--请选择--");
         //入学年份
         int years = DateTime.Now.Year;
         Rc.Cloud.Web.Common.pfunction.SetDdlStartSchoolYear(ddlYear, years - 5, years + 1, true);
         //年级学期
         strWhere = " D_Type='6' order by d_order";
         dt       = new Rc.BLL.Resources.BLL_Common_Dict().GetList(strWhere).Tables[0];
         Rc.Cloud.Web.Common.pfunction.SetDdl(ddlGradeTerm, dt, "D_Name", "Common_Dict_ID", "--请选择--");
         //学科
         strWhere = " D_Type='7' order by d_order";
         dt       = new Rc.BLL.Resources.BLL_Common_Dict().GetList(strWhere).Tables[0];
         Rc.Cloud.Web.Common.pfunction.SetDdl(ddlSubject, dt, "D_Name", "Common_Dict_ID", "--请选择--");
         //}
         //else
         //{
         //    ddlYear.Items.Clear();
         //    DataTable dtTask = bll_sysusertask.GetList("SysUser_ID='" + loginUser.SysUser_ID + "' and TaskType='NF' order by TaskId ").Tables[0];
         //    ListItem item = null;
         //    item = new ListItem("--请选择--", "-1");//请选择
         //    ddlYear.Items.Add(item);
         //    for (int i = 0; i < dtTask.Rows.Count; i++)
         //    {
         //        ddlYear.Items.Add(new ListItem(dtTask.Rows[i]["TaskId"].ToString(), dtTask.Rows[i]["TaskId"].ToString()));
         //    }
         //    Rc.Cloud.Web.Common.pfunction.SetDdl(ddlGradeTerm, bll_sysusertask.GetList("SysUser_ID='" + loginUser.SysUser_ID + "' and TaskType='NJXQ' order by TaskName").Tables[0], "TaskName", "TaskId", "--请选择--");
         //    Rc.Cloud.Web.Common.pfunction.SetDdl(ddlSubject, bll_sysusertask.GetList("SysUser_ID='" + loginUser.SysUser_ID + "' and TaskType='XK' order by TaskName").Tables[0], "TaskName", "TaskId", "--请选择--");
         //    Rc.Cloud.Web.Common.pfunction.SetDdl(ddlResource_Version, bll_sysusertask.GetList("SysUser_ID='" + loginUser.SysUser_ID + "' and TaskType='JCBB' order by TaskName").Tables[0], "TaskName", "TaskId", "--请选择--");
         //}
         if (!string.IsNullOrEmpty(AudioVideoBookId))
         {
             loadData();
         }
     }
 }
Esempio n. 13
0
        protected void Page_Load(object sender, EventArgs e)
        {
            TestPaper_Frame_Id       = Request["TestPaper_Frame_Id"].Filter();       //试卷结构Id
            TestPaper_FrameDetail_Id = Request["TestPaper_FrameDetail_Id"].Filter(); //试卷结构明细Id

            TestPaper_FrameDetail_Name = Request["TestPaper_FrameDetail_Name"].Filter();
            if (!IsPostBack)
            {
                if (!string.IsNullOrEmpty(TestPaper_Frame_Id))
                {
                    frame = new BLL_TestPaper_Frame().GetModel(TestPaper_Frame_Id);
                    if (frame != null)
                    {
                        Resource_Version = frame.Resource_Version;
                        Year             = frame.ParticularYear.ToString();
                        GradeTerm        = frame.GradeTerm;
                        Subject          = frame.Subject;
                        ltlName.Text     = "正在给试卷结构【" + frame.TestPaper_Frame_Name + "】-【" + TestPaper_FrameDetail_Name + "】导入试题";
                    }
                }

                DataTable dt       = new DataTable();
                string    strWhere = string.Empty;
                //教材版本
                strWhere = " D_Type='3' order by d_order";
                dt       = new Rc.BLL.Resources.BLL_Common_Dict().GetList(strWhere).Tables[0];
                Rc.Cloud.Web.Common.pfunction.SetDdl(ddlResource_Version, dt, "D_Name", "Common_Dict_ID", "教材版本");
                //入学年份
                int years = DateTime.Now.Year;
                Rc.Cloud.Web.Common.pfunction.SetDdlStartSchoolYear(ddlYear, years - 5, years + 1, true, "入学年份");
                //年级学期
                strWhere = " D_Type='6' order by d_order";
                dt       = new Rc.BLL.Resources.BLL_Common_Dict().GetList(strWhere).Tables[0];
                Rc.Cloud.Web.Common.pfunction.SetDdl(ddlGradeTerm, dt, "D_Name", "Common_Dict_ID", "年级学期");
                //学科
                strWhere = " D_Type='7' order by d_order";
                dt       = new Rc.BLL.Resources.BLL_Common_Dict().GetList(strWhere).Tables[0];
                Rc.Cloud.Web.Common.pfunction.SetDdl(ddlSubject, dt, "D_Name", "Common_Dict_ID", "学科");
                if (!string.IsNullOrEmpty(Year) && !string.IsNullOrEmpty(GradeTerm) && !string.IsNullOrEmpty(Resource_Version) && !string.IsNullOrEmpty(Subject))
                {
                    ddlYear.SelectedValue             = Year;
                    ddlGradeTerm.SelectedValue        = GradeTerm;
                    ddlResource_Version.SelectedValue = Resource_Version;
                    ddlSubject.SelectedValue          = Subject;
                }
            }
        }
Esempio n. 14
0
 protected void Page_Load(object sender, EventArgs e)
 {
     Module_Id = "10200400";
     if (!IsPostBack)
     {
         DataTable dt       = new DataTable();
         string    strWhere = string.Empty;
         //学科
         strWhere = " D_Type='7' order by d_order";
         dt       = new Rc.BLL.Resources.BLL_Common_Dict().GetList(strWhere).Tables[0];
         Rc.Cloud.Web.Common.pfunction.SetDdl(ddlSubject, dt, "D_Name", "Common_Dict_ID", "选择学科");
         //职务
         strWhere = " D_Type='15' order by d_order";
         dt       = new Rc.BLL.Resources.BLL_Common_Dict().GetList(strWhere).Tables[0];
         Rc.Cloud.Web.Common.pfunction.SetDdl(ddlUserTitle, dt, "D_Name", "Common_Dict_ID", "选择职务");
     }
 }
        protected void Page_Load(object sender, EventArgs e)
        {
            Module_Id = "20300200";

            if (!IsPostBack)
            {
                DataTable dt       = new DataTable();
                string    strWhere = string.Empty;
                //年份
                Rc.Cloud.Web.Common.pfunction.SetDdlYear(ddlYear, DateTime.Now.Year - 5, DateTime.Now.Year + 2, true, "年份");

                //文档类型
                strWhere = string.Format(" D_Type='1' AND Common_Dict_ID!='{0}' order by d_order", Rc.Common.Config.Resource_TypeConst.属性生成的目录);
                dt       = new Rc.BLL.Resources.BLL_Common_Dict().GetList(strWhere).Tables[0];
                Rc.Cloud.Web.Common.pfunction.SetDdl(ddlResource_Type, dt, "D_Name", "Common_Dict_ID", "文档类型");
            }
        }
Esempio n. 16
0
 protected void Page_Load(object sender, EventArgs e)
 {
     ugroupId = Request.QueryString["ugroupId"].Filter();
     if (!IsPostBack)
     {
         DataTable dt       = new DataTable();
         string    strWhere = string.Empty;
         //年级类型
         strWhere = " D_Type='9' order by d_order";
         dt       = new Rc.BLL.Resources.BLL_Common_Dict().GetList(strWhere).Tables[0];
         Rc.Cloud.Web.Common.pfunction.SetDdl(ddlGradeType, dt, "D_Name", "Common_Dict_ID", "-无-");
         //入学年份
         int years = DateTime.Now.Year;
         Rc.Cloud.Web.Common.pfunction.SetDdlYear(ddlStartSchoolYear, years - 5, years + 1, true);
         LoadData();
     }
 }
Esempio n. 17
0
 protected void Page_Load(object sender, EventArgs e)
 {
     Module_Id = "10200100";
     SetSearchP();
     if (!IsPostBack)
     {
         DataTable dt       = new DataTable();
         string    strWhere = string.Empty;
         //学校
         //strWhere = " D_Type='8' order by d_order";
         //dt = new Rc.BLL.Resources.BLL_Common_Dict().GetList(strWhere).Tables[0];
         //Rc.Cloud.Web.Common.pfunction.SetDdl(ddlShoole, dt, "D_Name", "Common_Dict_ID", "请选择");
         //学科
         strWhere = " D_Type='7' order by d_order";
         dt       = new Rc.BLL.Resources.BLL_Common_Dict().GetList(strWhere).Tables[0];
         Rc.Cloud.Web.Common.pfunction.SetDdl(ddlSubject, dt, "D_Name", "Common_Dict_ID");
         SetSearchO();
         litContent.Text = GetHtmlList().ToString();
     }
 }
        protected string strResource_Version = string.Empty; //教材版本
        protected void Page_Load(object sender, EventArgs e)
        {
            Module_Id = "30100400";
            if (!IsPostBack)
            {
                DataTable dt       = new DataTable();
                string    strWhere = string.Empty;

                //教材版本
                strWhere = " D_Type='3' order by d_order";
                dt       = new Rc.BLL.Resources.BLL_Common_Dict().GetList(strWhere).Tables[0];
                Rc.Cloud.Web.Common.pfunction.SetDdl(ddlResource_Version, dt, "D_Name", "Common_Dict_ID", "教材版本");
                //年级学期
                strWhere = " D_Type='6' order by d_order";
                dt       = new Rc.BLL.Resources.BLL_Common_Dict().GetList(strWhere).Tables[0];
                Rc.Cloud.Web.Common.pfunction.SetDdl(ddlGradeTerm, dt, "D_Name", "Common_Dict_ID", "年级学期");
                //学科
                strWhere = " D_Type='7' order by d_order";
                dt       = new Rc.BLL.Resources.BLL_Common_Dict().GetList(strWhere).Tables[0];
                Rc.Cloud.Web.Common.pfunction.SetDdl(ddlSubject, dt, "D_Name", "Common_Dict_ID", "学科");
            }
        }
Esempio n. 19
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (FloginUser.UserPost == UserPost.备课组长.ToString() || FloginUser.UserPost == UserPost.普通老师.ToString())
            {
                //liCreateGrade.Visible = false;
            }
            ugroupId = Request.QueryString["ugroupId"].Filter();
            txtUserGroup_Id.Attributes.Add("readonly", "true");
            if (!IsPostBack)
            {
                DataTable dt       = new DataTable();
                string    strWhere = string.Empty;
                //年级类型
                strWhere = " D_Type='9' order by d_order";
                dt       = new Rc.BLL.Resources.BLL_Common_Dict().GetList(strWhere).Tables[0];
                Rc.Cloud.Web.Common.pfunction.SetDdl(ddlGradeType, dt, "D_Name", "Common_Dict_ID", "--请选择--");

                //入学年份
                int years = DateTime.Now.Year;
                Rc.Cloud.Web.Common.pfunction.SetDdlStartSchoolYear(ddlStartSchoolYear, years - 5, years + 1, false);
                LoadData();
            }
        }
Esempio n. 20
0
 protected void Page_Load(object sender, EventArgs e)
 {
     TestPaper_Frame_Id = Request["TestPaper_Frame_Id"].Filter();
     Resource_Version   = Request["Resource_Version"].Filter();
     Year                 = Request["Year"].Filter();
     GradeTerm            = Request["GradeTerm"].Filter();
     Subject              = Request["Subject"].Filter();
     TestPaper_Frame_Name = Request["TestPaper_Frame_Name"].Filter();
     if (!IsPostBack)
     {
         ltlName.Text = "正在给试卷结构【" + Server.UrlDecode(TestPaper_Frame_Name) + "】关联试卷";
         DataTable dt       = new DataTable();
         string    strWhere = string.Empty;
         //教材版本
         strWhere = " D_Type='3' order by d_order";
         dt       = new Rc.BLL.Resources.BLL_Common_Dict().GetList(strWhere).Tables[0];
         Rc.Cloud.Web.Common.pfunction.SetDdl(ddlResource_Version, dt, "D_Name", "Common_Dict_ID", "教材版本");
         //入学年份
         int years = DateTime.Now.Year;
         Rc.Cloud.Web.Common.pfunction.SetDdlStartSchoolYear(ddlYear, years - 5, years + 1, true, "入学年份");
         //年级学期
         strWhere = " D_Type='6' order by d_order";
         dt       = new Rc.BLL.Resources.BLL_Common_Dict().GetList(strWhere).Tables[0];
         Rc.Cloud.Web.Common.pfunction.SetDdl(ddlGradeTerm, dt, "D_Name", "Common_Dict_ID", "年级学期");
         //学科
         strWhere = " D_Type='7' order by d_order";
         dt       = new Rc.BLL.Resources.BLL_Common_Dict().GetList(strWhere).Tables[0];
         Rc.Cloud.Web.Common.pfunction.SetDdl(ddlSubject, dt, "D_Name", "Common_Dict_ID", "学科");
         if (!string.IsNullOrEmpty(Year) && !string.IsNullOrEmpty(GradeTerm) && !string.IsNullOrEmpty(Resource_Version) && !string.IsNullOrEmpty(Subject))
         {
             ddlYear.SelectedValue             = Year;
             ddlGradeTerm.SelectedValue        = GradeTerm;
             ddlResource_Version.SelectedValue = Resource_Version;
             ddlSubject.SelectedValue          = Subject;
         }
     }
 }
Esempio n. 21
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Module_Id = "10101000";
            //
            if (!String.IsNullOrEmpty(Request["t"]))
            {
                t = Request["t"].ToString();
                if (Request["t"].ToString() == "1")
                {
                    Module_Id        = "10101000";
                    strResource_Type = Rc.Common.Config.Resource_TypeConst.ScienceWord类型文件;
                }
                else if (Request["t"].ToString() == "2")
                {
                    Module_Id        = "10102000";
                    strResource_Type = Rc.Common.Config.Resource_TypeConst.testPaper类型文件;
                }
                else if (Request["t"].ToString() == "3")
                {
                    Module_Id        = "10103000";
                    strResource_Type = Rc.Common.Config.Resource_TypeConst.testPaper类型文件;
                }
            }
            if (!String.IsNullOrEmpty(Request["s"]))
            {
                s = Request["s"].ToString();
                if (Request["s"].ToString() == "1")
                {
                    strResource_Class = Rc.Common.Config.Resource_ClassConst.云资源;
                }
                else if (Request["s"].ToString() == "2")
                {
                    strResource_Class = Rc.Common.Config.Resource_ClassConst.自有资源;
                }
            }

            if (!IsPostBack)
            {
                DataTable dt       = new DataTable();
                string    strWhere = string.Empty;
                //教材版本
                strWhere = " D_Type='3' order by d_order";
                dt       = new Rc.BLL.Resources.BLL_Common_Dict().GetList(strWhere).Tables[0];
                Rc.Cloud.Web.Common.pfunction.SetDdl(ddlResource_Version, dt, "D_Name", "Common_Dict_ID");
                //教案类型
                strWhere = " D_Type='5' order by d_order";
                dt       = new Rc.BLL.Resources.BLL_Common_Dict().GetList(strWhere).Tables[0];
                Rc.Cloud.Web.Common.pfunction.SetDdl(ddlLessonPlan_Type, dt, "D_Name", "Common_Dict_ID");
                //年级学期
                strWhere = " D_Type='6' order by d_order";
                dt       = new Rc.BLL.Resources.BLL_Common_Dict().GetList(strWhere).Tables[0];
                Rc.Cloud.Web.Common.pfunction.SetDdl(ddlGradeTerm, dt, "D_Name", "Common_Dict_ID");
                //学科
                strWhere = " D_Type='7' order by d_order";
                dt       = new Rc.BLL.Resources.BLL_Common_Dict().GetList(strWhere).Tables[0];
                Rc.Cloud.Web.Common.pfunction.SetDdl(ddlSubject, dt, "D_Name", "Common_Dict_ID");


                litTree.Text = GetResourceAttribute().ToString();
            }
            checkExistUserCatalog();
        }