WorkFlowSelectDoc1.aspx.cs
上传用户:tiancihang
上传日期:2014-03-12
资源大小:21387k
文件大小:2k
- 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_WorkFlowSelectDoc1 : System.Web.UI.Page
- {
- protected void Page_Load(object sender, EventArgs e)
- {
- if (!IsPostBack)
- {
- DataView dv = new DataView();
- EtongWord EWord = new EtongWord();
- dv = EWord.GetAllFName();
- for (int i = 0; i < dv.Table.Rows.Count; i++)
- {
- ListItem Lst = new ListItem();
- Lst.Text = dv.Table.Rows[i][1].ToString();
- Lst.Value = dv.Table.Rows[i][0].ToString();
- lbDoc.Items.Add(Lst);
- }
- try
- {
- int strM = Convert.ToInt32(Request.QueryString["StrM"]);
- if (strM > -1)
- {
- EWord.ActID = strM;
- dv =EWord.GetFNameByActID();
- for (int k = 0; k < dv.Table.Rows.Count; k++)
- {
- ListItem lstk = new ListItem();
- lstk.Text = dv.Table.Rows[k][1].ToString();
- lstk.Value = dv.Table.Rows[k][0].ToString();
- LstDoc.Items.Add(lstk);
- }
- }
- }
- catch
- {
- }
- }
- }
- protected void ImgOK_Click(object sender, ImageClickEventArgs e)
- {
- string RetSelectValue = "";
- RetSelectValue = HSelectedValue.Value + "|" + HSelectedText.Value;
- this.ClientScript.RegisterStartupScript(this.GetType(), "", "window.returnValue='" + RetSelectValue + "';window.close();", true);
- }
- }