示例#1
0
        private void BindProcessType()
        {
            ddlProcessType.Items.Clear();
            ProcessTypeBLL bll = new ProcessTypeBLL();

            ddlProcessType.DataSource = bll.GetProcessType();
            ddlProcessType.DataBind();
        }
示例#2
0
        private void BindProcess()
        {
            //DataTable dt = DBManager.GetProcessType();
            ProcessTypeBLL          bll     = new ProcessTypeBLL();
            IList <ProcessTypeInfo> ptfList = bll.GetProcessType();

            ddlProcess.DataSource     = ptfList;
            ddlProcess.DataTextField  = "ProcessType";
            ddlProcess.DataValueField = "ID";
            ddlProcess.DataBind();

            ddlProcess.Items.Insert(0, new ListItem("选择", ""));
        }
示例#3
0
 /// <summary>
 /// 取得流程信息
 /// </summary>
 /// <returns></returns>
 private string GetProcess(HttpContext context)
 {
     try
     {
         ProcessTypeBLL          bll      = new ProcessTypeBLL();
         IList <ProcessTypeInfo> procList = bll.GetProcessType();
         DataTable dt   = DataTableExtension.ToDataTable <ProcessTypeInfo>(procList);
         string    Id   = context.Request.Form["id"];
         string    text = context.Request.Form["text"];
         return(EasyUIJsonConvert.GetComboBoxJson(dt, Id, text));
     }
     catch (Exception ex)
     {
         DBManager.RecoreErrorProfile(ex, "RuleDesignHandler.GetProcess", DBManager.GetCurrentUserAD());
         return("Fail");
     }
 }
示例#4
0
        private void LoadProcessInfo()
        {
            ProcessTypeBLL          bll     = new ProcessTypeBLL();
            IList <ProcessTypeInfo> ptiList = bll.GetProcessType();

            ddlProcessType.Items.Clear();
            if (ptiList != null)
            {
                foreach (ProcessTypeInfo info in ptiList)
                {
                    ListItem li = new ListItem();
                    li.Value = info.ID.ToString();
                    li.Text  = info.ProcessType;
                    ddlProcessType.Items.Add(li);
                }
                ProcessID = ddlProcessType.SelectedValue;
            }
        }
示例#5
0
        private void BindProcessType(string processID)
        {
            ddlProcessType.Items.Clear();
            ProcessTypeBLL          bll         = new ProcessTypeBLL();
            IList <ProcessTypeInfo> processList = bll.GetProcessType();

            foreach (var item in processList)
            {
                if (item.ID.Trim() == processID)
                {
                    ListItem listitem = new ListItem(item.ProcessType, item.ID);

                    ddlProcessType.Items.Add(listitem);
                }
            }
            //ddlProcessType.DataSource = bll.GetProcessType();
            //ddlProcessType.DataBind();
        }
示例#6
0
        public static IList <ProcessTypeInfo> GetDeptListByEmployeeCode(string loginName)
        {
            List <ProcessTypeInfo> ptiList = new List <ProcessTypeInfo>();

            BFEmployee         bfemployee = new BFEmployee();
            EmployeeAdditional userInfo   = bfemployee.GetEmployeeAdditionalByLoginName(loginName);

            ProcessTypeBLL          bll = new ProcessTypeBLL();
            IList <ProcessTypeInfo> processTypeInfoList = bll.GetProcessType();

            foreach (var item in processTypeInfoList)
            {
                if (BFFunctionPermissions.IsDepartmentRightByEmployeeCode(userInfo.EmployeeCode, item.ID.Trim(), "公司流程筛选", "BPM", "无代码平台"))
                {
                    ptiList.Add(item);
                }
            }
            return(ptiList);
        }