Exemplo n.º 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     strLocalPhsicalPath = "E:\\Document\\Upload\\{0}\\";
     strLocalPhsicalPath = string.Format(strLocalPhsicalPath, txtFolder.Text.Trim());
     Response.Write(strLocalPhsicalPath);
     if (!IsPostBack)
     {
         DataTable dt       = new DataTable();
         string    strWhere = string.Empty;
         //入学年份
         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='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='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", "--学科--");
     }
 }
Exemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Module_Id = "90300100";
            UserFun   = new Rc.Cloud.BLL.BLL_clsAuth().GetUserFunc(loginUser.SysUser_ID, clsUtility.ReDoStr(loginUser.SysRole_IDs, ','), Module_Id);
            SetSearchP();
            ReturnUrl = strPageName + "?" + Rc.Cloud.Web.Common.pfunction.getPageParam();
            //if (Rc.Common.ConfigHelper.GetConfigString("SysName") != "内容生产管理平台")
            //{
            //    btnAdd.Visible = false;
            //}
            btnAdd.Visible = UserFun.Add;
            if (!IsPostBack)
            {
                DataTable ddlDType = new DataTable();

                StringBuilder condition = new StringBuilder();

                if (loginUser.SysUser_ID != Rc.Common.Config.Consts.AdminID)
                {
                    //非级管理员按类型排除加载数据(教材版本,年级学期,学科,前端题型)
                    condition.AppendFormat("  Common_Dict_ID in ('{0}','{1}','{2}','{3}')"
                                           , "74958B74-D2A4-4ACD-BB4E-F48C59329F40"
                                           , "722CE025-A876-4880-AAC1-5E416F3BDB1E"
                                           , "934A3541-116E-438C-B9BA-4176368FCD9B"
                                           , "3EF9506E-4C4B-407E-AA5D-451E0B20F0DI");
                }
                else
                {
                    condition.AppendFormat(" D_Type='{0}'", 0);
                }
                ddlDType = new Rc.BLL.Resources.BLL_Common_Dict().GetList(condition.ToString()).Tables[0];
                Rc.Cloud.Web.Common.pfunction.SetDdl(ddlD_Type, ddlDType, "D_Name", "D_Value", false);
                SetSearchO();
            }
        }
Exemplo n.º 3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Module_Id = "90300100";
            SetActionType();
            if (!IsPostBack)
            {
                DataTable     ddlDType  = new DataTable();
                StringBuilder condition = new StringBuilder();
                if (loginUser.SysUser_ID != Rc.Common.Config.Consts.AdminID)
                {
                    //非级管理员按类型排除加载数据(教材版本,年级学期,学科,前端题型)
                    condition.AppendFormat("  Common_Dict_ID in ('{0}','{1}','{2}','{3}')"
                                           , "74958B74-D2A4-4ACD-BB4E-F48C59329F40"
                                           , "722CE025-A876-4880-AAC1-5E416F3BDB1E"
                                           , "934A3541-116E-438C-B9BA-4176368FCD9B"
                                           , "3EF9506E-4C4B-407E-AA5D-451E0B20F0DI");
                }
                else
                {
                    condition.AppendFormat(" D_Type='{0}'", 0);
                }
                ddlDType = new Rc.BLL.Resources.BLL_Common_Dict().GetList(condition.ToString()).Tables[0];
                Rc.Cloud.Web.Common.pfunction.SetDdl(ddlD_Type, ddlDType, "D_Name", "D_Value", false);

                //如果是修改,则绑定页面信息
                BindSysCommon_Dict();
            }
        }
Exemplo n.º 4
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();
        }
Exemplo n.º 5
0
        private void isit_Load()
        {
            string        strWhere = string.Empty;
            StringBuilder html     = new StringBuilder();
            DataTable     dt       = new DataTable();

            strWhere = " D_Type='7' order by d_order";
            dt       = new Rc.BLL.Resources.BLL_Common_Dict().GetList(strWhere).Tables[0];
            int num = 0;

            foreach (DataRow row in dt.Rows)
            {
                num++;
                html.AppendFormat("<li><div class='name'><a href='javascript:void(0)' id='datetype" + num + "' value='" + row["Common_Dict_ID"] + "'>" + row["d_name"] + "</a></div></li>");
            }
            km_html = html.ToString();
        }
Exemplo n.º 6
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 (strResource_Class == string.Empty || strResource_Type == string.Empty)
     {
         Rc.Common.StrUtility.clsUtility.ErrorDispose(3, false);
     }
     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 = GetTreeHtml();
     }
 }