protected void Page_Load(object sender, EventArgs e) { appid = Request.QueryString["appid"]; tabid = Request.QueryString["tabid"]; typeid = Request.QueryString["typeid"]; title = string.Empty; MyCreek.Platform.WorkFlowArchives BWFA = new MyCreek.Platform.WorkFlowArchives(); MyCreek.Platform.WorkFlow BWF = new MyCreek.Platform.WorkFlow(); if (IsPostBack) { title = Request.Form["Title1"]; } else { title = Request.QueryString["Title"]; } string query = string.Format("&appid={0}&tabid={1}&Title={2}&typeid={3}", Request.QueryString["appid"], Request.QueryString["tabid"], title.UrlEncode(), typeid ); query1 = string.Format("{0}&pagesize={1}&pagenumber={2}", query, Request.QueryString["pagesize"], Request.QueryString["pagenumber"]); string pager; Dt = BWFA.GetPagerData(out pager, query, title, BWF.GetFlowIDFromType(typeid.ToGuid())); this.Pager.Text = pager; }
public ActionResult List(FormCollection collection) { string appid = Request.QueryString["appid"]; string tabid = Request.QueryString["tabid"]; string typeid = Request.QueryString["typeid"]; string title = string.Empty; MyCreek.Platform.WorkFlowArchives BWFA = new MyCreek.Platform.WorkFlowArchives(); MyCreek.Platform.WorkFlow BWF = new MyCreek.Platform.WorkFlow(); if (collection != null) { title = Request.Form["Title"]; } else { title = Request.QueryString["Title"]; } string query = string.Format("&appid={0}&tabid={1}&Title={2}&typeid={3}", Request.QueryString["appid"], Request.QueryString["tabid"], title.UrlEncode(), typeid ); string query1 = string.Format("{0}&pagesize={1}&pagenumber={2}", query, Request.QueryString["pagesize"], Request.QueryString["pagenumber"]); string pager; System.Data.DataTable Dt = BWFA.GetPagerData(out pager, query, title, BWF.GetFlowIDFromType(typeid.ToGuid())); ViewBag.Pager = pager; ViewBag.Title1 = title; ViewBag.appid = appid; ViewBag.tabid = tabid; ViewBag.typeid = typeid; ViewBag.Query1 = query1; return(View(Dt)); }