Beispiel #1
0
 public void SaveInfo()
 {
     if (UserID.IsNull())
     {
         objUserRule.InsertUser(UserTypeCID, CurrentUser.AccountTypeID, chkIsSuper.Checked, txtNickName.Text, txtJobNo.Text, txtUserName.Text, txtAccount.Text, txtPassword.Text, txtEmail.Text, chkIsSuper.Checked ? false : chkIsAdmin.Checked);
         MessageDialog("新增成功", "../../ServiceLayer/User/SuperUserList.aspx");
     }
     else
     {
         objUserRule.UpdateSuppportUser(txtNickName.Text, txtJobNo.Text, txtUserName.Text, txtAccount.Text, chkIsApprove.Checked, txtEmail.Text, UserID);
         MessageDialog("修改成功", "../../ServiceLayer/User/SuperUserList.aspx");
     }
 }
Beispiel #2
0
 public void SaveInfo()
 {
     if (UserID.IsNull())
     {
         string Password = txtPassword.Text.IsNullOrWhiteSpace() ? "7777777" : txtPassword.Text;
         string userID   = objUserRule.InsertUser(dropUserTypeCID.SelectValueInt, CurrentUser.AccountTypeID, false, txtNickName.Text, txtJobNo.Text, txtUserName.Text, txtAccount.Text, Password, txtEmail.Text);
         objUserRule.UpdateUserRole(userID, chkRoleList.SelectValueString, chkRoleList.SelectNoValueString);
         MessageDialog("新增成功", "UserList.aspx");
     }
     else
     {
         objUserRule.UpdateSuppportUser(txtNickName.Text, txtJobNo.Text, txtUserName.Text, txtAccount.Text, true, txtEmail.Text, UserID);
         objUserRule.UpdateUserRole(UserID, chkRoleList.SelectValueString, chkRoleList.SelectNoValueString);
         MessageDialog("修改成功", "UserList.aspx");
     }
 }