public override void FormOnLoad()
 {
     customerService      = new CustomerService(DbLinks["CRMDBLink"].DbType, SecretHelper.AESDecrypt(DbLinks["CRMDBLink"].DbLink));
     customerClassService = new CustomerClassService(DbLinks["CRMDBLink"].DbType, SecretHelper.AESDecrypt(DbLinks["CRMDBLink"].DbLink));
     this.DataGridViewOnLoad(dgvCustomer);
     BindData(true);
 }
Exemplo n.º 2
0
 public override void FormOnLoad()
 {
     customerService      = new CustomerService(DbLinks["CRMDBLink"].DbType, SecretHelper.AESDecrypt(DbLinks["CRMDBLink"].DbLink));
     customerClassService = new CustomerClassService(DbLinks["CRMDBLink"].DbType, SecretHelper.AESDecrypt(DbLinks["CRMDBLink"].DbLink));
     linkMainService      = new LinkManService(DbLinks["CRMDBLink"].DbType, SecretHelper.AESDecrypt(DbLinks["CRMDBLink"].DbLink));
     BindTree(true);
     BindCategory();
     this.Text = "新增用户";
     if (!string.IsNullOrEmpty(currentCustomerId))
     {
         this.btnSaveContine.Visible = false;
         this.Text = "编辑用户 - " + currentCustomerName;
         BindEditData();
     }
 }