protected void Page_Load(object sender, EventArgs e) { appid = Request.QueryString["appid"]; tabid = Request.QueryString["tabid"]; typeid = Request.QueryString["typeid"]; title = string.Empty; RoadFlow.Platform.WorkFlowArchives BWFA = new RoadFlow.Platform.WorkFlowArchives(); RoadFlow.Platform.WorkFlow BWF = new RoadFlow.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 Show() { string id = Request.QueryString["id"]; if (!id.IsGuid()) { return(View()); } var archives = new RoadFlow.Platform.WorkFlowArchives().Get(id.ToGuid()); if (archives == null) { return(View()); } return(View(archives)); }
public string Query() { string str1 = this.Request.Form["sidx"]; string str2 = this.Request.Form["sord"]; string str3 = this.Request.Form["Title"]; string str4 = this.Request.Form["FlowID"]; string str5 = this.Request.Form["Date1"]; string str6 = this.Request.Form["Date2"]; RoadFlow.Platform.WorkFlowArchives workFlowArchives = new RoadFlow.Platform.WorkFlowArchives(); RoadFlow.Platform.WorkFlow workFlow = new RoadFlow.Platform.WorkFlow(); int pageSize1 = Tools.GetPageSize(); int pageNumber1 = Tools.GetPageNumber(); string str7 = (str1.IsNullOrEmpty() ? "WriteTime" : str1) + " " + (str2.IsNullOrEmpty() ? "asc" : str2); long num; ref long local = ref num;
protected void Page_Load(object sender, EventArgs e) { string id = Request.QueryString["id"]; if (!id.IsGuid()) { Contents = "无内容"; return; } var archives = new RoadFlow.Platform.WorkFlowArchives().Get(id.ToGuid()); if (archives != null) { Contents = archives.Contents; Comments = archives.Comments; } else { Contents = "无内容"; } }
public ActionResult List(FormCollection collection) { string appid = Request.QueryString["appid"]; string tabid = Request.QueryString["tabid"]; string typeid = Request.QueryString["typeid"]; string title = string.Empty; RoadFlow.Platform.WorkFlowArchives BWFA = new RoadFlow.Platform.WorkFlowArchives(); RoadFlow.Platform.WorkFlow BWF = new RoadFlow.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)); }