コード例 #1
0
ファイル: OrganizationMNG.aspx.cs プロジェクト: zhangwxyc/BPM
        private void InitOrg()
        {
            OrganizationBLL          bll     = new OrganizationBLL();
            IList <OrganizationInfo> orgList = bll.GetOrgList();

            ddlOrg.Items.Clear();
            foreach (OrganizationInfo info in orgList)
            {
                ListItem li = new ListItem();
                li.Text  = info.OrgName;
                li.Value = info.ID.ToString();
                if (li.Value.Equals(OrgCode, StringComparison.OrdinalIgnoreCase))
                {
                    li.Selected = true;
                }
                ddlOrg.Items.Add(li);
            }

            //获取某个组织的信息
            OrganizationInfo orgInfo = bll.GetOrgByID(ddlOrg.SelectedValue);

            if (orgInfo != null)
            {
                txtOrderNo.Text = orgInfo.OrderNo.ToString();
                txtOrgCode.Text = orgInfo.OrgCode;
                txtOrgName.Text = orgInfo.OrgName;
            }
        }
コード例 #2
0
ファイル: OrgEdit.aspx.cs プロジェクト: zhangwxyc/BPM
        /// <summary>
        /// 初始化数据
        /// </summary>
        private void InitData()
        {
            if (action == "edit")
            {
                //获取某个组织的信息
                OrganizationBLL  bll  = new OrganizationBLL();
                OrganizationInfo info = bll.GetOrgByID(orgCode);

                if (info != null)
                {
                    txtOrderNo.Text = info.OrderNo.ToString();
                    txtOrgCode.Text = info.OrgCode;
                    txtOrgDesc.Text = info.OrgDescription;
                    txtOrgName.Text = info.OrgName;
                }
            }
        }
コード例 #3
0
        /// <summary>
        /// 显示角色名称
        /// </summary>
        void SetRoleName()
        {
            string roleCode = Server.UrlDecode(Request["rolecode"]);

            if (!String.IsNullOrEmpty(roleCode))
            {
                this.RoleCode = roleCode;
                RoleBLL          bll     = new RoleBLL();
                RoleInfo         info    = bll.GetRoleByRoleCode(RoleCode);
                OrganizationBLL  orgbll  = new OrganizationBLL();
                OrganizationInfo orginfo = orgbll.GetOrgByID(info.OrgID.ToString());

                hfRoleName.Text  = info.RoleName;
                Description.Text = info.Desciption;
                if (orginfo != null)
                {
                    lblOrg.Text = orginfo.OrgName;
                }
                lblProc.Text = info.ProcessType;
            }
        }