示例#1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         ZWL.Common.PublicMethod.CheckSession();
         ZWL.BLL.ERPWorkFlow MyModel = new ZWL.BLL.ERPWorkFlow();
         MyModel.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
         this.Label1.Text = MyModel.WorkFlowName;
         this.Label2.Text = MyModel.FormName;
         this.Label3.Text = MyModel.UserList;
         this.Label4.Text = MyModel.GuiDangType;
         this.Label5.Text = MyModel.TimeStr.ToString();
         this.Label6.Text = MyModel.UserName;
         this.Label7.Text = MyModel.JianJie;
     }
 }
示例#2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ZWL.Common.PublicMethod.CheckSession();
            //绑定表单、归档类型
            ZWL.DBUtility.DbHelperSQL.BindDropDownList("select FormName from ERPForm", this.DropDownList1, "FormName", "FormName");
            ZWL.Common.PublicMethod.BindDDL(this.DropDownList2, ZWL.DBUtility.DbHelperSQL.GetSHSL("select top 1 FormTypeList from ERPFormType"));

            ZWL.BLL.ERPWorkFlow MyModel = new ZWL.BLL.ERPWorkFlow();
            MyModel.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
            DropDownList1.SelectedValue = MyModel.FormName;
            DropDownList2.SelectedValue = MyModel.GuiDangType;
            this.TextBox3.Text          = MyModel.JianJie;
            this.TextBox2.Text          = MyModel.UserList;
            this.TextBox1.Text          = MyModel.WorkFlowName;
        }
    }