WorkFlowSelectTable.aspx.cs
上传用户:tiancihang
上传日期:2014-03-12
资源大小:21387k
文件大小:3k
- using System;
- using System.Data;
- using System.Configuration;
- using System.Collections;
- using System.Web;
- using System.Web.Security;
- using System.Web.UI;
- using System.Web.UI.WebControls;
- using System.Web.UI.WebControls.WebParts;
- using System.Web.UI.HtmlControls;
- using com.etong.DAL.FC;
- public partial class Workflow_WorkFlowSelectTable : System.Web.UI.Page
- {
- protected void Page_Load(object sender, EventArgs e)
- {
- Response.Buffer = true;
- Response.ExpiresAbsolute = System.DateTime.Now;
- Response.Expires = 0;
- Response.CacheControl = "no-cache";
- if (!IsPostBack)
- {
- DataView dv = new DataView();
- if (Request.QueryString["StrN"] == "E")
- {
- EtongFlyChouWF EFlyWF = new EtongFlyChouWF();
- dv = EFlyWF.GetWFDataTable("1");
- lbTable.DataTextField = "showName";
- lbTable.DataValueField = "dtID";
- }
- else
- {
- int iWFID,iMode;
- try
- {
- iWFID = Convert.ToInt32(Request.QueryString["StrM"]);
- }
- catch
- {
- iWFID = -1;
- this.ClientScript.RegisterStartupScript(this.GetType(), "", "alert('系统提示:接口参数错误!');window.close();", true);
- return;
- }
- try
- {
- iMode = Convert.ToInt32(Request.QueryString["strT"]);
- }
- catch
- {
- iMode = -1;
- this.ClientScript.RegisterStartupScript(this.GetType(), "", "alert('系统提示:接口参数错误!');window.close();", true);
- return;
- }
- EtongFlyChouWF EFlyWF = new EtongFlyChouWF();
- dv = EFlyWF.GetParentAcivity(iWFID,iMode);
- lbTable.DataTextField = "ActName";
- lbTable.DataValueField = "ActivityID";
- }
- lbTable.DataSource = dv;
- lbTable.DataBind();
- if (Request.QueryString["StrN"] == "E")
- {
- }
- else
- {
- if (lbTable.Items.Count < 1)
- {
- ListItem Lst = new ListItem();
- Lst.Text = "起始";
- Lst.Value = "-1";
- lbTable.Items.Add(Lst);
- }
- }
- }
- }
- protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
- {
- string RetSelectValue="";
- RetSelectValue = txt_RoleID.Value + "|" + TB_UserRole.Value;
- this.ClientScript.RegisterStartupScript(this.GetType(), "", "window.returnValue='" + RetSelectValue + "';window.close();", true);
- }
- }