Beispiel #1
0
    //绑定执行数据库环节详细信息
    private void BindDataBaseProcessInfo(int JobID)
    {
        EWF_Task_JobBLL             job     = new EWF_Task_JobBLL(JobID);
        EWF_Flow_ProcessDataBaseBLL process = new EWF_Flow_ProcessDataBaseBLL(job.Model.CurrentProcess);

        this.lbl_DSN.Text           = process.Model.DSN;
        this.lbl_StoreProcName.Text = process.Model.StoreProcName;
        this.gv_List_ParamList.BindGrid <EWF_Flow_DataBaseParam>(process.GetParamsList());
    }
    private void BindData()
    {
        EWF_Flow_ProcessDataBaseBLL bll = new EWF_Flow_ProcessDataBaseBLL((Guid)ViewState["ProcessID"]);

        this.lb_ID.Text = ViewState["ProcessID"].ToString();

        #region 绑定基本信息
        tbx_Name.Text        = bll.Model.Name;
        tbx_Description.Text = bll.Model.Description;
        ddl_DefaultNextProcess.SelectedValue = bll.Model.DefaultNextProcess.ToString();
        tbx_Sort.Text = bll.Model.Sort.ToString();

        tbx_DSN.Text           = bll.Model.DSN;
        tbx_StoreProcName.Text = bll.Model.StoreProcName;
        #endregion
    }
    private void Update()
    {
        EWF_Flow_ProcessDataBaseBLL bll = new EWF_Flow_ProcessDataBaseBLL((Guid)ViewState["ProcessID"]);

        if (!string.IsNullOrEmpty(ddl_DefaultNextProcess.SelectedValue))
        {
            bll.Model.DefaultNextProcess = new Guid(ddl_DefaultNextProcess.SelectedValue);
        }
        bll.Model.Description = tbx_Description.Text;
        bll.Model.Sort        = int.Parse(tbx_Sort.Text);

        bll.Model.DSN           = tbx_DSN.Text;
        bll.Model.Name          = tbx_Name.Text;
        bll.Model.StoreProcName = tbx_StoreProcName.Text;
        bll.Update();
    }
    private void BindGrid()
    {
        EWF_Flow_ProcessDataBaseBLL bll = new EWF_Flow_ProcessDataBaseBLL((Guid)ViewState["ProcessID"]);

        gv_List.BindGrid <EWF_Flow_DataBaseParam>(bll.GetParamsList());
    }
    private void Update()
    {
        EWF_Flow_ProcessDataBaseBLL bll = new EWF_Flow_ProcessDataBaseBLL((Guid)ViewState["ProcessID"]);

        if (!string.IsNullOrEmpty(ddl_DefaultNextProcess.SelectedValue)) bll.Model.DefaultNextProcess = new Guid(ddl_DefaultNextProcess.SelectedValue);
        bll.Model.Description = tbx_Description.Text;
        bll.Model.Sort = int.Parse(tbx_Sort.Text);

        bll.Model.DSN = tbx_DSN.Text;
        bll.Model.Name = tbx_Name.Text;
        bll.Model.StoreProcName = tbx_StoreProcName.Text;
        bll.Update();
    }
 private void BindGrid()
 {
     EWF_Flow_ProcessDataBaseBLL bll = new EWF_Flow_ProcessDataBaseBLL((Guid)ViewState["ProcessID"]);
     gv_List.BindGrid<EWF_Flow_DataBaseParam>(bll.GetParamsList());
 }
    private void BindData()
    {
        EWF_Flow_ProcessDataBaseBLL bll = new EWF_Flow_ProcessDataBaseBLL((Guid)ViewState["ProcessID"]);

        this.lb_ID.Text = ViewState["ProcessID"].ToString();

        #region 绑定基本信息
        tbx_Name.Text = bll.Model.Name;
        tbx_Description.Text = bll.Model.Description;
        ddl_DefaultNextProcess.SelectedValue = bll.Model.DefaultNextProcess.ToString();
        tbx_Sort.Text = bll.Model.Sort.ToString();

        tbx_DSN.Text = bll.Model.DSN;
        tbx_StoreProcName.Text = bll.Model.StoreProcName;
        #endregion
    }
    //绑定执行数据库环节详细信息
    private void BindDataBaseProcessInfo(int JobID)
    {
        EWF_Task_JobBLL job = new EWF_Task_JobBLL(JobID);
        EWF_Flow_ProcessDataBaseBLL process = new EWF_Flow_ProcessDataBaseBLL(job.Model.CurrentProcess);

        this.lbl_DSN.Text = process.Model.DSN;
        this.lbl_StoreProcName.Text = process.Model.StoreProcName;
        this.gv_List_ParamList.BindGrid<EWF_Flow_DataBaseParam>(process.GetParamsList());
    }