Exemple #1
0
    protected void ImageButton1_Click(object sender, EventArgs e)
    {
        //判断工作流名称是否唯一性
        if (ZWL.Common.PublicMethod.IFExists("WorkFlowName", "ERPWorkFlow", 0, this.TextBox1.Text) == false)
        {
            ZWL.Common.MessageBox.Show(this, "该工作流名称已经存在!");
            return;
        }

        ZWL.BLL.ERPWorkFlow Model = new ZWL.BLL.ERPWorkFlow();
        Model.FormName     = this.DropDownList1.SelectedItem.Text;
        Model.GuiDangType  = this.DropDownList2.SelectedItem.Text;
        Model.JianJie      = this.TextBox3.Text;
        Model.TimeStr      = DateTime.Now;
        Model.UserList     = this.TextBox2.Text;
        Model.UserName     = ZWL.Common.PublicMethod.GetSessionValue("UserName");
        Model.WorkFlowName = this.TextBox1.Text;
        Model.Add();

        //写系统日志
        ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi();
        MyRiZhi.UserName    = ZWL.Common.PublicMethod.GetSessionValue("UserName");
        MyRiZhi.DoSomething = "用户添加工作流程信息(" + this.TextBox1.Text + ")";
        MyRiZhi.IpStr       = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
        MyRiZhi.Add();

        ZWL.Common.MessageBox.ShowAndRedirect(this, "工作流程添加成功!", "WorkFlowManage.aspx");
    }
Exemple #2
0
    public void DataBindToGridview()
    {
        GVData.PageSize  = AspNetPager1.PageSize;
        GVData.PageIndex = AspNetPager1.CurrentPageIndex - 1;
        ZWL.BLL.ERPWorkFlow MyModel = new ZWL.BLL.ERPWorkFlow();
        DataSet             ds      = MyModel.GetList("FormName Like '%" + this.TextBox1.Text + "%'  and WorkFlowName like '%" + this.TextBox2.Text.Trim() + "%' order by ID desc");

        GVData.DataSource = ds;
        GVData.DataBind();
        AspNetPager1.RecordCount = ds.Tables[0].Rows.Count;
    }
Exemple #3
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;
     }
 }
Exemple #4
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;
        }
    }