public ActionResult CompletedList(FormCollection collection) { MyCreek.Platform.WorkFlowTask bworkFlowTask = new MyCreek.Platform.WorkFlowTask(); MyCreek.Platform.WorkFlow bworkFlow = new MyCreek.Platform.WorkFlow(); string title = ""; string flowid = ""; string sender = ""; string date1 = ""; string date2 = ""; if (collection != null) { title = Request.Form["Title"]; flowid = Request.Form["FlowID"]; sender = Request.Form["SenderID"]; date1 = Request.Form["Date1"]; date2 = Request.Form["Date2"]; } else { title = Request.QueryString["title"]; flowid = Request.QueryString["flowid"]; sender = Request.QueryString["sender"]; date1 = Request.QueryString["date1"]; date2 = Request.QueryString["date2"]; } ViewBag.title = title; ViewBag.flowid = flowid; ViewBag.sender = sender; ViewBag.date1 = date1; ViewBag.date2 = date2; string query2 = string.Format("&appid={0}&tabid={1}&title={2}&flowid={3}&sender={4}&date1={5}&date2={6}", Request.QueryString["appid"], Request.QueryString["tabid"], title.UrlEncode(), flowid, sender, date1, date2 ); string query = string.Format("{0}&pagesize={1}&pagenumber={2}", query2, Request.QueryString["pagesize"], Request.QueryString["pagenumber"] ); string pager; var taskList = bworkFlowTask.GetTasks(MyCreek.Platform.Users.CurrentUserID, out pager, query2, title, flowid, sender, date1, date2, 1); ViewBag.pager = pager; ViewBag.flowOptions = bworkFlow.GetOptions(flowid); ViewBag.query = query; return(View(taskList)); }
protected void Page_Load(object sender1, EventArgs e) { string title = ""; string flowid = ""; string sender = ""; string date1 = ""; string date2 = ""; if (IsPostBack) { title = Request.Form["Title1"]; flowid = Request.Form["FlowID"]; sender = Request.Form["SenderID"]; date1 = Request.Form["Date1"]; date2 = Request.Form["Date2"]; } else { title = Request.QueryString["title"]; flowid = Request.QueryString["flowid"]; sender = Request.QueryString["sender"]; date1 = Request.QueryString["date1"]; date2 = Request.QueryString["date2"]; } query = string.Format("&appid={0}&tabid={1}&title={2}&flowid={3}&sender={4}&date1={5}&date2={6}", Request.QueryString["appid"], Request.QueryString["tabid"], title.UrlEncode(), flowid, sender, date1, date2); string pager; taskList = bworkFlowTask.GetTasks(MyCreek.Platform.Users.CurrentUserID, out pager, query, title, flowid, sender, date1, date2); //var flows = new MyCreek.Platform.AppLibrary().GetAll(); //System.Text.StringBuilder sb = new System.Text.StringBuilder("<table>"); //sb.Append("<thead class='mygrid1'>"); //sb.Append("<tr>"); //sb.Append("<th width='33%'>应用名称</th><th width='33%'>地址</th><th width='33%'>类型</th>"); //sb.Append("</tr>"); //sb.Append("</thead><tbody>"); //foreach (var flow in flows) //{ // sb.Append("<tr>"); // sb.Append("<td value='" + flow.ID + "' " + (("," + flowid + ",").Contains(flow.ID.ToString()) ? "isselected='1'" : "") + ">" + flow.Title + "</td>"); // sb.Append("<td>" + flow.Note + "</td>"); // sb.Append("<td>" + flow.Height + "</td>"); // sb.Append("</tr>"); //} //sb.Append("</tbody></table>"); this.flowOptions.Text = bworkFlow.GetOptions(flowid); this.Pager.Text = pager; }
protected void Page_Load(object sender1, EventArgs e) { string title = ""; string flowid = ""; string sender = ""; string date1 = ""; string date2 = ""; if (IsPostBack) { title = Request.Form["Title1"]; flowid = Request.Form["FlowID"]; sender = Request.Form["SenderID"]; date1 = Request.Form["Date1"]; date2 = Request.Form["Date2"]; } else { title = Request.QueryString["title"]; flowid = Request.QueryString["flowid"]; sender = Request.QueryString["sender"]; date1 = Request.QueryString["date1"]; date2 = Request.QueryString["date2"]; } string query2 = string.Format("&appid={0}&tabid={1}&title={2}&flowid={3}&sender={4}&date1={5}&date2={6}", Request.QueryString["appid"], Request.QueryString["tabid"], title.UrlEncode(), flowid, sender, date1, date2 ); query = string.Format("{0}&pagesize={1}&pagenumber={2}", query2, Request.QueryString["pagesize"], Request.QueryString["pagenumber"] ); string pager; taskList = bworkFlowTask.GetTasks(MyCreek.Platform.Users.CurrentUserID, out pager, query2, title, flowid, sender, date1, date2, 1); this.Pager.Text = pager; this.flowOptions.Text = bworkFlow.GetOptions(flowid); }