示例#1
0
 private void ShowInfo(string USER_CODE)
 {
     MyERP.BLL.SYS_USER   bll   = new MyERP.BLL.SYS_USER();
     MyERP.Model.SYS_USER model = bll.GetModel(USER_CODE);
     this.lblUSER_CODE.Text              = model.USER_CODE;
     this.lblCOMPANY_CODE.Text           = model.COMPANY_CODE;
     this.lblCOMPANY_NAME.Text           = model.COMPANY_NAME;
     this.lblUSER_NAME.Text              = model.USER_NAME;
     this.lblSTOCK_CODE.Text             = model.STOCK_CODE;
     this.lblSTOCK_NAME.Text             = model.STOCK_NAME;
     this.lblDEPARTMENT_CODE.Text        = model.DEPARTMENT_CODE;
     this.lblDEPARTMENT_NAME.Text        = model.DEPARTMENT_NAME;
     this.lbldepartment.Text             = model.department;
     this.lblPARENT_DEPARTMENT_CODE.Text = model.PARENT_DEPARTMENT_CODE;
     this.lblPPRICE_SHOW.Text            = model.PPRICE_SHOW?"是":"否";
     this.lblPASSWORD.Text       = model.PASSWORD;
     this.lblDescription.Text    = model.Description;
     this.lblEmployeeCode.Text   = model.EmployeeCode;
     this.lblAllowUsed.Text      = model.AllowUsed;
     this.lblisLicenceAudit.Text = model.isLicenceAudit;
     this.lblUserType.Text       = model.UserType;
     this.lblLastEdit.Text       = model.LastEdit.ToString();
     this.lblAuditDate.Text      = model.AuditDate.ToString();
 }
示例#2
0
 private void ShowInfo(string USER_CODE)
 {
     MyERP.BLL.SYS_USER   bll   = new MyERP.BLL.SYS_USER();
     MyERP.Model.SYS_USER model = bll.GetModel(USER_CODE);
     this.lblUSER_CODE.Text              = model.USER_CODE;
     this.txtCOMPANY_CODE.Text           = model.COMPANY_CODE;
     this.txtCOMPANY_NAME.Text           = model.COMPANY_NAME;
     this.txtUSER_NAME.Text              = model.USER_NAME;
     this.txtSTOCK_CODE.Text             = model.STOCK_CODE;
     this.txtSTOCK_NAME.Text             = model.STOCK_NAME;
     this.txtDEPARTMENT_CODE.Text        = model.DEPARTMENT_CODE;
     this.txtDEPARTMENT_NAME.Text        = model.DEPARTMENT_NAME;
     this.txtdepartment.Text             = model.department;
     this.txtPARENT_DEPARTMENT_CODE.Text = model.PARENT_DEPARTMENT_CODE;
     this.chkPPRICE_SHOW.Checked         = model.PPRICE_SHOW;
     this.txtPASSWORD.Text       = model.PASSWORD;
     this.txtDescription.Text    = model.Description;
     this.txtEmployeeCode.Text   = model.EmployeeCode;
     this.txtAllowUsed.Text      = model.AllowUsed;
     this.txtisLicenceAudit.Text = model.isLicenceAudit;
     this.txtUserType.Text       = model.UserType;
     this.txtLastEdit.Text       = model.LastEdit.ToString();
     this.txtAuditDate.Text      = model.AuditDate.ToString();
 }