Exemplo n.º 1
0
        private void GetUserByUserID(string userid)
        {
            User user = null;

            using (AdministratorBLL adminBll = new AdministratorBLL())
            {
                user = adminBll.GetUserByUserID(userid);
            }

            if (user != null)
            {
                this.txtUSER_ID.EditValue     = user.USER_ID;
                this.txtUSER_NAME.EditValue   = user.USER_NAME;
                this.txtWARE_ID.EditValue     = user.WARE_ID;
                this.txtLOGIN.EditValue       = user.LOGIN;
                this.txtPWD.EditValue         = user.PWD;
                this.txtEMPLOYEE_ID.EditValue = user.EMPLOYEE_ID;
                this.lueDefaultRole.EditValue = user.ROLE_ID;

                this.txtREMARK.EditValue   = user.REMARK;
                this.txtEMAIL.EditValue    = user.EMAIL;
                this.txtCOMP_ID.EditValue  = user.COMP_ID;
                this.icbREC_STAT.EditValue = user.REC_STAT;

                this.GetUserRoleList(user.USER_ID);

                GridView view = (GridView)this.grdRole.Views[0];
                UiUtility.RemoveActiveRow(view);
            }
        }
Exemplo n.º 2
0
        private void GetPartyProductList(string partyid)
        {
            try
            {
                using (PartyBLL partyBll = new PartyBLL())
                {
                    this.dtbPartyProduct = partyBll.GetProductList(partyid);
                }

                this.grdProductList.DataSource = this.dtbPartyProduct;

                GridView view = (GridView)this.grdProductList.Views[0];
                UiUtility.RemoveActiveRow(view);
            }
            catch (Exception ex)
            {
                XtraMessageBox.Show(this, ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1);
            }
        }