FormDesignManager.aspx.cs
上传用户:simon2hong
上传日期:2021-11-18
资源大小:16746k
文件大小:3k
- using System;
- using System.Data;
- using System.Configuration;
- using System.Collections.Generic;
- 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;
- public partial class WorkFlow_FormDesignManager : System.Web.UI.Page
- {
- /// <summary>
- /// 模板
- /// </summary>
- Model.FlowBaseFormContent MR = new Model.FlowBaseFormContent();
- /// <summary>
- /// 业务
- /// </summary>
- BLL.FlowBaseFormContent BR = new BLL.FlowBaseFormContent();
- protected void Page_Load(object sender, EventArgs e)
- {
- LoginLogic.MatchLoad("../", "WorkFlow_FormDesignManager");
- if (!IsPostBack)
- {
- MyDataBind();
- }
- }
- protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
- {
- for (int i = 0; i < GridView1.Rows.Count; i++)
- {
- //首先判断是否是数据行
- if (e.Row.RowType == DataControlRowType.DataRow)
- {
- //当鼠标停留时更改背景色
- e.Row.Attributes.Add("onmouseover", "c=this.style.backgroundColor;this.style.backgroundColor='#F0F0F0'");
- //当鼠标移开时还原背景色
- e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor=c");
- }
- }
- }
- /// <summary>
- /// 操作
- /// </summary>
- /// <returns></returns>
- public string GuiDingShiJian()
- {
- string Rtstr = "人事";
-
- string Id = Eval("LCLX").ToString();
- Rtstr = EnumGet.GetFlowBaseTypeName(int.Parse(Id));
- return Rtstr;
- }
- /// <summary>
- /// 操作
- /// </summary>
- /// <returns></returns>
- public string CaoZuo()
- {
- string Id = Eval("Id").ToString();
- string Rtstr = "<a href='FormDesignEdit.aspx?id=" + Id + "'>编辑表单名称</a> ";
- Rtstr += "<a href='Design/FormDesigner.aspx?id=" + Id + "' target='_blank'>表单智能设计器</a> ";
- Rtstr += "<a href='WebBrowserFlowForm.aspx?id=" + Id + "' target='_blank'>预览</a> ";
- return Rtstr;
- }
- /// <summary>
- /// 获取信息
- /// </summary>
- /// <param name="pidx">页号</param>
- public void MyDataBind()
- {
- List<Model.FlowBaseFormContent> LRData = BR.GetList();
- if (LRData.Count == 0)
- {
- Model.FlowBaseFormContent MR = new Model.FlowBaseFormContent();
- LRData.Add(MR);
- }
- GridView1.DataSource = LRData;
- GridView1.DataBind();
- }
- }