Ejemplo n.º 1
0
        /// <summary>
        /// 绑定规则表
        /// </summary>
        private void BindRuleTable()
        {
            ddlSelectID.Items.Clear();
            ProcessRuleBLL bll = new ProcessRuleBLL();

            if (ddlProcessType.Items.Count > 0 && ddlGroup.Items.Count > 0)
            {
                IList <ApproveRuleGroupInfo> argiList = bll.GetApproveTableByProcessID(ddlProcessType.SelectedValue, ddlGroup.SelectedValue);
                gvRuleList.DataSource = argiList;
                gvRuleList.DataBind();

                //绑定下拉框
                if (argiList != null)
                {
                    foreach (ApproveRuleGroupInfo info in argiList)
                    {
                        ListItem li = new ListItem();
                        li.Text  = info.OrderNo.ToString();
                        li.Value = info.OrderNo.ToString();
                        ddlSelectID.Items.Add(li);
                    }
                }
            }
        }