Esempio n. 1
0
        private string callback       = "";      //回调

        protected void Page_Load(object sender, EventArgs e)
        {
            filesize       = LYRequest.GetInt("filesize", 1024);
            filetype       = LYRequest.GetString("filetype", "image");
            tofilepath     = LYRequest.GetString("filepath", "/UpLoads/");
            recievetxtname = LYRequest.GetString("recievetxtname", "");
            ismultifile    = LYRequest.GetInt("ismultifile", 0);
            callback       = LYRequest.GetString("callback", "");

            int type = LYRequest.GetInt("type", 0);

            if (!IsPostBack)
            {
                if (!chkLogin(type))
                {
                    return;
                }

                if (recievetxtname == "")
                {
                    Lbl_Tip.Text        = "缺少参数recievetxtname";
                    File_Upload.Visible = false;
                    Btn_Submit.Visible  = false;
                }
            }
        }
Esempio n. 2
0
        private void BindList()
        {
            strWhere = " 1=1 ";
            #region __________Where语句__________
            if (typeid > 0)
            {
                strWhere += " and N_Type=" + typeid;
            }
            if (SearchName != "")
            {
                strWhere += " and (C_Title like '%" + SearchName + "%')";
            }
            if (teachername != "")
            {
                strWhere += " and (C_Tearcher like '%" + teachername + "%')";
            }
            if (starttime != "")
            {
                strWhere += " and (DT_StartDate>='" + starttime + "')";
            }
            if (endtime != "")
            {
                strWhere += " and (DT_StartDate<='" + endtime + "')";
            }
            #endregion

            rpt_List.PageLink    = "statvote.aspx?Search=Yes&pagesize=" + pagesize + "&TypeId=" + typeid + "&starttime=" + starttime + "&endtime=" + endtime + "&SearchName=" + Utils.UrlEncode(SearchName) + "&teachername=" + Utils.UrlEncode(teachername);
            rpt_List.PageSize    = pagesize;
            rpt_List.CurrentPage = LYRequest.GetInt("page", 1);

            DataSet ds = mw_getlistbypage.GetDataSet_NoCache("mw_votecourse", "*", strWhere, "", "Id DESC", "Id", rpt_List.CurrentPage, rpt_List.PageSize, 1);

            rpt_List.RecordCount = Convert.ToInt32(ds.Tables[0].Rows[0][0]);
            JBind.BindList(rpt_List, ds.Tables[1]);
        }
Esempio n. 3
0
        private void BindList()
        {
            #region __________Where语句__________

            strWhere = "  1=1";
            if (SearchName != "")
            {
                strWhere += " and (name like '%" + SearchName + "%')";
            }
            if (brand != "")
            {
                strWhere += " and (brand='" + brand + "')";
            }
            if (protype != "")
            {
                strWhere += " and (protype='" + protype + "')";
            }
            #endregion

            rpt_List.PageLink    = "appplatform.aspx?Search=Yes&SearchName=" + Utils.UrlEncode(SearchName) + "&brand=" + Utils.UrlEncode(brand) + "&protype=" + Utils.UrlEncode(protype);
            rpt_List.PageSize    = 20;
            rpt_List.CurrentPage = LYRequest.GetInt("page", 1);

            DataSet ds = MW.BLL.mw_getlistbypage.GetDataSet_NoCache("mw_appplatform", "*", strWhere, "", "ID DESC", "ID", rpt_List.CurrentPage, rpt_List.PageSize, 1);

            rpt_List.RecordCount = Convert.ToInt32(ds.Tables[0].Rows[0][0]);
            JBind.BindList(rpt_List, ds.Tables[1]);
        }
Esempio n. 4
0
        private void BindList()
        {
            #region __________Where语句__________

            string strWhere = "  1=1";

            //if (SearchName != "")
            //{
            //    strWhere += " and (PlanName like '%" + SearchName + "%')";
            //}
            //if (starttime != "")
            //{
            //    strWhere += " and (BeginTime>='" + starttime + "')";
            //}
            //if (endtime != "")
            //{
            //    strWhere += " and (BeginTime<='" + endtime + "')";
            //}
            //if (userid > 0)
            //{
            //    strWhere += " and dbo.inArray(" + userid + ",BelongTo)>0";
            //}
            #endregion

            rpt_List.PageLink    = "trainingplanslist.aspx?Search=Yes";
            rpt_List.PageSize    = 15;
            rpt_List.CurrentPage = LYRequest.GetInt("page", 1);

            DataSet ds = MW.BLL.mw_getlistbypage.GetDataSet_NoCache("TECH_TRAIN_COURSE", "*", strWhere, "", "ID DESC", "ID", rpt_List.CurrentPage, rpt_List.PageSize, 1);

            rpt_List.RecordCount = Convert.ToInt32(ds.Tables[0].Rows[0][0]);
            JBind.BindList(rpt_List, ds.Tables[1]);
        }
Esempio n. 5
0
        private void BindList()
        {
            strWhere = "1=1";
            #region __________Where语句__________
            if (typeid != "")
            {
                strWhere = "  TypeId ='" + typeid + "'";
            }
            else
            {
                strWhere = "  TypeId ='" + PageID + "'";
            }

            if (SearchName != "")
            {
                //strWhere += " and (title like '%" + SearchName + "%')";
            }
            #endregion

            rpt_List.PageLink    = "gglist.aspx?Search=Yes&pageid=" + PageID + "&TypeId=" + typeid + "&SearchName=" + Utils.UrlEncode(SearchName);
            rpt_List.PageSize    = 15;
            rpt_List.CurrentPage = LYRequest.GetInt("page", 1);

            DataSet ds = MW.BLL.mw_getlistbypage.GetDataSet_NoCache("mw_article", "*", strWhere, "", "ID DESC", "ID", rpt_List.CurrentPage, rpt_List.PageSize, 1);

            rpt_List.RecordCount = Convert.ToInt32(ds.Tables[0].Rows[0][0]);
            JBind.BindList(rpt_List, ds.Tables[1]);
        }
Esempio n. 6
0
 protected void Page_Load(object sender, EventArgs e)
 {
     Id       = MW.Common.LYRequest.GetInt("id", 0);
     parentid = LYRequest.GetInt("parentid", 0);
     if (!IsPostBack)
     {
         InitData();
     }
 }
Esempio n. 7
0
 protected void Page_Load(object sender, EventArgs e)
 {
     typeid = LYRequest.GetString("typeid");
     if (!IsPostBack)
     {
         LoadInit();
     }
     BindData();
 }
Esempio n. 8
0
        private void BindData()
        {
            #region __________Where语句__________

            string strWhere = "  1=1";
            //strWhere += " and EndTime>='" + DateTime.Now + "' and BeginTime<='" + DateTime.Now + "'";
            if (typeid != "")
            {
                strWhere += " and PRO_TYPE='" + typeid + "'";
            }
            strWhere += " and ApplierID='" + (CurrentUser != null?CurrentUser.ID:"") + "' ";
            #endregion
            rpt_List.ShowPagenation = false;
            rpt_List.PageLink       = "";
            rpt_List.PageSize       = 100;
            rpt_List.CurrentPage    = LYRequest.GetInt("page", 1);

            /*SELECT p.`NAME`,p.DAYS,p.YEAR_VALUE,p.PLAN_WEEK,p.USER_TYPE,p.USER_ID,a.ApplyTime
             * FROM mw_applyplans AS a INNER JOIN mw_trainingplans AS p ON a.ApplyPlanID = p.ID
             * WHERE p.USER_TYPE = 'teacher'*/
            string table = "mw_applyplans AS a INNER JOIN mw_TrainingPlans AS p ON a.ApplyPlanID = p.ID";

            DataSet ds = MW.BLL.mw_getlistbypage.GetDataSet_NoCache(table, "p.ID,p.`NAME`,p.DAYS,p.YEAR_VALUE,p.PLAN_WEEK,p.USER_TYPE,p.UNAME,a.ApplyTime", strWhere, "", "ApplyTime DESC", "ID", rpt_List.CurrentPage, rpt_List.PageSize, 0);
            if (ds != null && ds.Tables[0] != null && ds.Tables[0].Rows.Count > 0)
            {
                DataView dv = ds.Tables[0].DefaultView;
                dv.Sort = "ApplyTime desc";
                DataTable tmptb = dv.ToTable(true, new string[] { "ID", "NAME", "DAYS", "YEAR_VALUE", "PLAN_WEEK" });
                DataTable DT    = new DataTable();
                DT.Columns.Add("ID");
                DT.Columns.Add("PlanName");
                DT.Columns.Add("Teacher");
                DT.Columns.Add("BeginTime");
                DT.Columns.Add("days");
                foreach (DataRow row in tmptb.Rows)
                {
                    var dr = DT.NewRow();
                    dr["ID"]        = row["ID"];
                    dr["PlanName"]  = BaseUi.GetLang(row["NAME"].ToString());
                    dr["days"]      = row["DAYS"];
                    dr["BeginTime"] = row["YEAR_VALUE"] + " 第" + row["PLAN_WEEK"] + "周";
                    dv.RowFilter    = "(ID='" + row["ID"] + "' and USER_TYPE='teacher')";
                    var ts = dv.ToTable();
                    {
                        var sb = new System.Text.StringBuilder();
                        foreach (DataRow item in ts.Rows) //因为所查询的名字可能有多行
                        {
                            sb.Append(item["UNAME"] + " ,");
                        }
                        dr["Teacher"] = sb.ToString().Trim(',');
                    }
                    DT.Rows.Add(dr);
                }
                JBind.BindList(rpt_List, DT);
            }
            //rpt_List.RecordCount = Convert.ToInt32(ds.Tables[0].Rows[0][0]);
        }
Esempio n. 9
0
 protected void Page_Load(object sender, EventArgs e)
 {
     sysid = LYRequest.GetInt("sysid", 0);
     id    = LYRequest.GetInt("id", 0);
     if (!IsPostBack)
     {
         InitData();
     }
 }
Esempio n. 10
0
        private string loadTopMenu()
        {
            //Log.SetLog("BaseUi:" + BaseUi.roled + "=" + JSession.Get("roled") + " -uid:" + BaseUi.uid + "=" + JSession.Get("uid"));
            //Log.SetLog("loadLeft roled:" + BaseUi.roled);
            StringBuilder sb       = new StringBuilder();
            var           list     = MW.BLL.B_ecan_app.inance.GetMenus(BaseUi.roled.Split(','), BaseUi.homeurl);
            string        litmp    = "<li {0}><a href=\"{1}\">{2}</a></li>";
            var           pagename = MW.BLL.B_ecan_app.inance.GetlevelCode(LYRequest.GetPageName().ToLower());

            //Log.SetLog(pagename+"=="+LYRequest.GetPageName().ToLower());
            foreach (EcanMenus app in list)
            {
                //if(app.submenu==null||(app.submenu.Count==0&&app.menu.APP_CODE!="home")) continue;
                M_ecan_app mapp = null;
                if (app.menu.FUN_CODE != "")
                {
                    mapp = app.menu;
                }
                else
                {
                    foreach (var sub in app.submenu)
                    {
                        if (sub.submenus != null && sub.submenus.Count > 0)
                        {
                            mapp = sub;
                            break;
                        }
                        if (string.IsNullOrEmpty(sub.FUN_CODE))
                        {
                            continue;
                        }
                        mapp = sub;
                        break;
                    }
                }

                string url = GetAppUrl(mapp);
                if (pagename == "")
                {
                    pagename = levelCode;
                }
                else
                {
                    JCookie.WriteCookie("levelCode", pagename, 0.5);
                }

                string active = app.menu.LEVEL_CODE.Equals(pagename) ? "class=\"active\"" : "";
                if (url != "")
                {
                    sb.AppendFormat(litmp, active, url, BaseUi.GetLang(app.menu.APP_NAME));
                }
            }
            litTopMenu.Text = sb.ToString();
            //调用左边
            litLeftMenu.Text = loadLeftMenu(pagename);
            return("");
        }
Esempio n. 11
0
 protected void Page_Load(object sender, EventArgs e)
 {
     SearchName = MW.Common.LYRequest.GetString("SearchName", true);
     sysid      = LYRequest.GetInt("sysid", 0);
     if (!IsPostBack)
     {
         InitData();
         BindList();
     }
 }
Esempio n. 12
0
        private string loadLeftMenu(string levescode)
        {
            StringBuilder sb   = new StringBuilder();
            var           list = MW.BLL.B_ecan_app.inance.GetMenus(BaseUi.roled.Split(','), BaseUi.homeurl).FirstOrDefault(e => e.menu.LEVEL_CODE == levescode);

            //Log.SetLog("list:" + (list == null) + " =" + levescode);
            if (list == null)
            {
                list = MW.BLL.B_ecan_app.inance.GetMenus(BaseUi.roled.Split(','), BaseUi.homeurl)[0];
            }
            if (list != null)
            {
                var sublist = list.submenu;
                //Log.SetSucLog("list.submenu:"+sublist.Count);
                var subCode = MW.BLL.B_ecan_app.inance.GetlevelCode(LYRequest.GetPageName(), 2);
                if (subCode == "")
                {
                    subCode = sublevelCode;
                }
                else
                {
                    JCookie.WriteCookie("sublevelCode", subCode, 0.5);
                }
                string litmp = "<li {0}><a href=\"{1}\">{2}</a></li>";
                foreach (M_ecan_app app in sublist)
                {
                    string active = app.LEVEL_CODE.Equals(subCode) ? "class=\"active\"" : "";
                    string url    = GetAppUrl(app);
                    //Log.SetSucLog("app.submenus:" + (app.submenus==null));
                    if (app.submenus != null && app.submenus.Count == 0)
                    {
                        //一级
                        sb.AppendFormat(litmp, active, url, BaseUi.GetLang(app.APP_NAME));
                    }
                    else
                    {
                        string        txt   = "<li class=\"subMenu\"><div>" + BaseUi.GetLang(app.APP_NAME) + "</div><ul class=\"listMenu\">";
                        StringBuilder sbsub = new StringBuilder();
                        foreach (M_ecan_app sub in app.submenus)
                        {
                            active = sub.LEVEL_CODE.Equals(subCode) ? "class=\"active\"" : "";
                            url    = BaseUi.CtxPath + "/techc/" + sub.APP_CODE + "/" + sub.FUN_CODE;
                            if (app.APP_NAME.Contains("mw."))
                            {
                                url = BaseUi.CtxPath + "/mw/" + sub.APP_CODE + "/" + sub.FUN_CODE;
                            }
                            sbsub.AppendFormat(litmp, active, url, BaseUi.GetLang(sub.APP_NAME));
                        }
                        sb.Append(txt).Append(sbsub.ToString()).Append("</ul></li>");
                    }
                }
                // Log.SetSucLog("left:"+sb.ToString());
            }
            return(sb.ToString());
        }
Esempio n. 13
0
 protected void Page_Load(object sender, EventArgs e)
 {
     sysid  = LYRequest.GetInt("VoteId", 0);
     voteid = LYRequest.GetInt("id", 0);
     if (!IsPostBack)
     {
         litNum.Text             = bll.GetSum(voteid, sysid).ToString();
         rpt_List.ShowPagenation = false;
         JBind.BindList(rpt_List, CreateTB(voteid, sysid));
     }
 }
Esempio n. 14
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack && base.Request["VoteId"] != null && base.Request["id"] != null)
            {
                int sysid  = LYRequest.GetInt("voteid", 0);
                int voteid = LYRequest.GetInt("id", 0);

                rpt_List.ShowPagenation = false;
                JBind.BindList(rpt_List, CreateTB(voteid, sysid));
                litNum.Text = bll.GetSum(voteid, sysid).ToString();
            }
        }
Esempio n. 15
0
 protected void Page_Load(object sender, EventArgs e)
 {
     sysid  = LYRequest.GetInt("VoteId", 0);
     voteid = LYRequest.GetInt("id", 0);
     if (!IsPostBack)
     {
         string code = "";
         string time = "";
         string sta  = tableOne(voteid, sysid, ref code, ref time);
         ExportExcelFile(sta, "vwac_survey_" + voteid + "_" + time + "_" + code);
     }
 }
Esempio n. 16
0
 protected void Page_Load(object sender, EventArgs e)
 {
     sysid = LYRequest.GetInt("sysid", 0);
     id    = LYRequest.GetInt("id", 0);
     if (!IsPostBack)
     {
         string path = Utils.GetMapPath(MW.BasePage.GetWebPath + "/mw/onlinesurvey/" + id + ".html");
         this.Label3.Text = "引用相对路径: /uploads/文件名 ,若图像|视频等不显示,请参照修改路径";
         InitData(path);
         hidid.Value = id.ToString();
     }
 }
Esempio n. 17
0
        protected void Page_Load(object sender, EventArgs e)
        {
            SearchName = LYRequest.GetString("SearchName", true);
            typeid     = LYRequest.GetString("typeid");


            if (!IsPostBack)
            {
                InitData();
                BindList();
            }
        }
Esempio n. 18
0
 protected void Page_Load(object sender, EventArgs e)
 {
     SearchName  = MW.Common.LYRequest.GetString("SearchName", true);
     teachername = MW.Common.LYRequest.GetString("teachername", true);
     starttime   = MW.Common.LYRequest.GetString("starttime");
     endtime     = MW.Common.LYRequest.GetString("endtime");
     typeid      = LYRequest.GetInt("typeid", 0);
     pagesize    = LYRequest.GetInt("pagesize", 20);
     if (!IsPostBack)
     {
         InitData();
         BindList();
     }
 }
Esempio n. 19
0
        private void BindData()
        {
            #region __________Where语句__________

            string strWhere = "  1=1";
            //strWhere += " and EndTime>='" + DateTime.Now + "' and BeginTime<='" + DateTime.Now + "'";
            if (typeid != "")
            {
                strWhere += " and PRO_TYPE='" + typeid + "'";
            }
            #endregion
            rpt_List.ShowPagenation = false;
            rpt_List.PageLink       = "";
            rpt_List.PageSize       = 100;
            rpt_List.CurrentPage    = LYRequest.GetInt("page", 1);

            DataSet ds = MW.BLL.mw_getlistbypage.GetDataSet_NoCache("mw_TrainingPlans", "ID,NAME,DAYS,YEAR_VALUE,PLAN_WEEK,USER_TYPE,UNAME", strWhere, "", "YEAR_VALUE DESC,PLAN_WEEK DESC", "ID", rpt_List.CurrentPage, rpt_List.PageSize, 0);
            if (ds != null && ds.Tables[0] != null && ds.Tables[0].Rows.Count > 0)
            {
                DataView  dv    = ds.Tables[0].DefaultView;
                DataTable tmptb = dv.ToTable(true, new string[] { "ID" });
                DataTable DT    = new DataTable();
                DT.Columns.Add("ID");
                DT.Columns.Add("PlanName");
                DT.Columns.Add("Teacher");
                DT.Columns.Add("BeginTime");
                DT.Columns.Add("days");
                foreach (DataRow rowt in tmptb.Rows)
                {
                    var     dr  = DT.NewRow();
                    DataRow row = ds.Tables[0].Select("ID='" + rowt["ID"] + "'")[0];
                    dr["ID"]        = row["ID"];
                    dr["PlanName"]  = BaseUi.GetLang(row["NAME"].ToString());
                    dr["days"]      = row["DAYS"];
                    dr["BeginTime"] = row["YEAR_VALUE"] + " 第" + row["PLAN_WEEK"] + "周";
                    dv.RowFilter    = "(ID='" + row["ID"] + "' and USER_TYPE='teacher')";
                    var ts = dv.ToTable();
                    {
                        var sb = new System.Text.StringBuilder();
                        foreach (DataRow item in ts.Rows) //因为所查询的名字可能有多行
                        {
                            sb.Append(item["UNAME"] + " ");
                        }
                        dr["Teacher"] = sb.ToString();
                    }
                    DT.Rows.Add(dr);
                }
                JBind.BindList(rpt_List, DT);
            }
        }
Esempio n. 20
0
        protected void Page_Load(object sender, EventArgs e)
        {
            int    page   = LYRequest.GetInt("page", 1);
            string typeid = LYRequest.GetString("typeid");

            if (typeid == "")
            {
                typeid = "XW";
            }
            if (base.Request["cmd"] != null && base.Request["cmd"] == "list")
            {
                BindData(page, typeid);
            }
        }
Esempio n. 21
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Id       = MW.Common.LYRequest.GetInt("id", 0);
            sysid    = LYRequest.GetInt("sysid", 0);
            parentid = LYRequest.GetInt("parentid", 0);
//#warning BasePage.IsPermissions(1)
//            if (!BasePage.IsPermissions(42))
//            {
//                MessageBox.JSLoad(this, "alert('没有权限!!');reloadDlg();");
//                return;
//            }
            if (!IsPostBack)
            {
                InitData();
            }
        }
Esempio n. 22
0
 protected void Page_Load(object sender, EventArgs e)
 {
     Id   = MW.Common.LYRequest.GetString("id");
     type = LYRequest.GetInt("type", 0);
     if (base.Request["cmd"] != null && base.Request["cmd"] == "bm")
     {
         Baoming();
     }
     else
     {
         if (!IsPostBack)
         {
             LoadInit();
         }
     }
 }
Esempio n. 23
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack && base.Request["VoteId"] != null && base.Request["id"] != null)
            {
                int sysid  = LYRequest.GetInt("voteid", 0);
                int voteid = LYRequest.GetInt("id", 0);

                if (!bllcourse.GetStartDate(voteid))
                {
                    Response.Redirect("statreporttmp.aspx?voteid=" + sysid + "&id=" + voteid);
                    Response.End();
                }
                rpt_List.ShowPagenation = false;
                JBind.BindList(rpt_List, CreateTB(voteid, sysid));
                litNum.Text = bllcourse.GetStartDate(voteid) ? bll.GetSum(voteid, sysid).ToString() : bll.GetSum(voteid, sysid).ToString();
            }
        }
Esempio n. 24
0
        private void BindList()
        {
            StringBuilder builder = new StringBuilder(" 1=1  ");

            if (!string.IsNullOrEmpty(this.UserName))
            {
                builder.Append(string.Format(" and C_Title like '%{0}%'", this.UserName));
            }
            rptCustomer.PageLink    = string.Format(MW.BasePage.GetAdminPath + "vwsurvey/_VoteDialog.aspx?hidCtl={0}&txtCtl={1}&UserName={2}&parentDlg={3}", base.Request.QueryString["hidCtl"], base.Request.QueryString["txtCtl"], UserName, parentDlg);
            rptCustomer.PageSize    = 10;
            rptCustomer.CurrentPage = LYRequest.GetInt("page", 1);

            DataSet ds = MW.BLL.mw_getlistbypage.GetDataSet_NoCache("mw_votesystem", "N_SysId,C_Title", builder.ToString(), "", "N_SysId DESC", "N_SysId", rptCustomer.CurrentPage, rptCustomer.PageSize, 1);

            rptCustomer.RecordCount = Convert.ToInt32(ds.Tables[0].Rows[0][0]);
            JBind.BindList(rptCustomer, ds.Tables[1]);
        }
Esempio n. 25
0
        protected void Page_Load(object sender, EventArgs e)
        {
            sysid  = LYRequest.GetInt("VoteId", 0);
            voteid = LYRequest.GetInt("id", 0);
            if (!new B_Votecourse().GetStartDate(voteid))
            {
                Response.Redirect("statresulttmp.aspx?VoteId=" + sysid + "&id=" + voteid);
                Response.End();
            }

            if (!IsPostBack)
            {
                litNum.Text             = bll.GetSum(voteid, sysid).ToString();
                rpt_List.ShowPagenation = false;
                JBind.BindList(rpt_List, CreateTB(voteid, sysid));
            }
        }
Esempio n. 26
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (base.Request["action"] != null && base.Request["action"] == "set")
     {
         SetTmpCode();
     }
     else
     {
         id              = LYRequest.GetString("id");
         hideid.Value    = MW.Common.LYRequest.GetString("hidCtl");
         hideradio.Value = MW.Common.LYRequest.GetString("txtCtl");
         if (!IsPostBack)
         {
             InitData();
             BindList();
         }
     }
 }
Esempio n. 27
0
        protected void Page_Load(object sender, EventArgs e)
        {
            sysid  = LYRequest.GetInt("VoteId", 0);
            voteid = LYRequest.GetInt("id", 0);
            if (!new B_Votecourse().GetStartDate(voteid))
            {
                Response.Redirect("voteexporttmp.aspx?VoteId=" + sysid + "&id=" + voteid);
                Response.End();
            }

            if (!IsPostBack)
            {
                string code = "";
                string time = "";
                string sta  = tableOne(voteid, sysid, ref code, ref time);
                ExportExcelFile(sta, "vwac_survey_" + voteid + "_" + time + "_" + code);
            }
        }
Esempio n. 28
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Id    = LYRequest.GetInt("id", 0);
            subid = LYRequest.GetInt("subid", 0);
            ntype = LYRequest.GetInt("type", 0);
            sysid = MW.Common.LYRequest.GetInt("sysid", 0);
//#warning BasePage.IsPermissions(1)
//            if (!BasePage.IsPermissions(42))
//            {
//                MessageBox.JSLoad(this, "alert('没有权限!!');reloadDlg();");
//                return;
//            }
            if (!IsPostBack)
            {
                EnableDropList(subid);
                BindRule();
                InitData();
            }
        }
Esempio n. 29
0
        private void BindList()
        {
            #region __________Where语句__________

            strWhere = "  1=1";
            //if (SearchName != "")
            //{
            //    strWhere += " and (PlanName like '%" + SearchName + "%')";
            //}
            #endregion
            rpt_List.PageLink    = string.Format("coursedetail.aspx?hidCtl={0}&txtCtl={1}&UserName={2}", base.Request.QueryString["hidCtl"], base.Request.QueryString["txtCtl"], C_course);
            rpt_List.PageSize    = 7;
            rpt_List.CurrentPage = LYRequest.GetInt("page", 1);

            DataSet ds = MW.BLL.mw_getlistbypage.GetDataSet_NoCache("TECH_TRAIN_COURSE", "ID,NAME", strWhere, "", "ID DESC", "ID", rpt_List.CurrentPage, rpt_List.PageSize, 1);

            rpt_List.RecordCount = Convert.ToInt32(ds.Tables[0].Rows[0][0]);
            JBind.BindList(rpt_List, ds.Tables[1]);
        }
Esempio n. 30
0
        private void BindList()
        {
            #region __________Where语句__________

            strWhere = "  N_SysId=" + sysid;
            if (SearchName != "")
            {
                strWhere += " and (C_SubTitle like '%" + SearchName + "%')";
            }
            #endregion

            rpt_List.PageLink    = "voteunit.aspx?Search=Yes&sysid=" + sysid + "&SearchName=" + Utils.UrlEncode(SearchName);
            rpt_List.PageSize    = 15;
            rpt_List.CurrentPage = LYRequest.GetInt("page", 1);

            DataSet ds = MW.BLL.mw_getlistbypage.GetDataSet_NoCache("mw_voteunit", "*", strWhere, "", "N_SubId DESC", "N_SubId", rpt_List.CurrentPage, rpt_List.PageSize, 1);

            rpt_List.RecordCount = Convert.ToInt32(ds.Tables[0].Rows[0][0]);
            JBind.BindList(rpt_List, ds.Tables[1]);
        }