void ServiceClient_GetUserByIDCompleted(object sender, GetUserByIDCompletedEventArgs e) { if (!e.Cancelled) { if (e.Result != null) { tmpUser = e.Result; tmpUserID = tmpUser.SYSUSERID; LoadData(); } } }
void ServiceClient_GetUserByIDCompleted(object sender, GetUserByIDCompletedEventArgs e) { if (!e.Cancelled) { if (e.Result != null) { tmpUser = e.Result; tmpUserID = tmpUser.SYSUSERID; LoadData(); } } }
// Get By ID private void GetUserByIDCompleted(object sender, GetUserByIDCompletedEventArgs getUserByIDCompletedEventArgs) { userModel = getUserByIDCompletedEventArgs.Result; RunOnUiThread(() => { username.Text = userModel.Username; password.Text = userModel.Password; firstName.Text = userModel.FirstName; lastName.Text = userModel.LastName; admin.Checked = userModel.IsAdmin; }); }
void ServiceClient_GetUserByIDCompleted(object sender, GetUserByIDCompletedEventArgs e) { if (!e.Cancelled) { if (e.Result != null) { tmpUser = e.Result; tmpUserID = tmpUser.SYSUSERID; this.tblName.Text = tmpUser.EMPLOYEENAME; this.tblUserName.Text = tmpUser.USERNAME; this.tblremark.Text = tmpUser.REMARK; this.tblcode.Text = tmpUser.EMPLOYEECODE; StrAddStaffList.Add(tmpUser.EMPLOYEEID); PersonClient.GetEmployeeDetailByIDsAsync(StrAddStaffList); } } }
void ServiceClient_GetUserByIDCompleted(object sender, GetUserByIDCompletedEventArgs e) { if (!e.Cancelled) { if (e.Result != null) { tmpUser = e.Result; tmpUserID = tmpUser.SYSUSERID; this.tblName.Text = tmpUser.EMPLOYEENAME; this.tblUserName.Text = tmpUser.USERNAME; this.tblremark.Text = tmpUser.REMARK; this.tblcode.Text = tmpUser.EMPLOYEECODE; StrAddStaffList.Add(tmpUser.EMPLOYEEID); PersonClient.GetEmployeeDetailByIDsAsync(StrAddStaffList); } } }
void ServiceClent_GetUserByIDCompleted(object sender, GetUserByIDCompletedEventArgs e) { if (!e.Cancelled) { if (e.Result != null) { sysUser = e.Result as T_SYS_USER; this.tblemployeename.Text = sysUser.EMPLOYEENAME; this.txtUserName.Text = sysUser.USERNAME; this.txtPassword.Password = SMT.SaaS.FrameworkUI.Common.Utility.Decrypt(sysUser.PASSWORD); this.txtConfirmpwd.Password = SMT.SaaS.FrameworkUI.Common.Utility.Decrypt(sysUser.PASSWORD); this.txtRemark.Text = sysUser.REMARK == null ? "": sysUser.REMARK; if (!string.IsNullOrEmpty(sysUser.OWNERCOMPANYID)) { GetCompanyNameByCompanyID(sysUser.OWNERCOMPANYID); } if (sysUser.ISMANGER == 1) { this.rbtIsAutoyes.IsChecked = true; } else { this.rbtIsAutono.IsChecked = true; } if (sysUser.ISFLOWMANAGER == "1") { this.rbtflow.IsChecked = true; } else { this.rbtflowno.IsChecked = true; } if (sysUser.ISENGINEMANAGER == "1") { this.rbtengine.IsChecked = true; } else { this.rbtengineno.IsChecked = true; } } } }
void ServiceClent_GetUserByIDCompleted(object sender, GetUserByIDCompletedEventArgs e) { if (!e.Cancelled) { if (e.Result != null) { sysUser = e.Result as T_SYS_USER; this.tblemployeename.Text = sysUser.EMPLOYEENAME; this.txtUserName.Text = sysUser.USERNAME; this.txtPassword.Password = SMT.SaaS.FrameworkUI.Common.Utility.Decrypt(sysUser.PASSWORD); this.txtConfirmpwd.Password = SMT.SaaS.FrameworkUI.Common.Utility.Decrypt(sysUser.PASSWORD); this.txtRemark.Text = sysUser.REMARK==null ? "": sysUser.REMARK ; if (!string.IsNullOrEmpty(sysUser.OWNERCOMPANYID)) { GetCompanyNameByCompanyID(sysUser.OWNERCOMPANYID); } if (sysUser.ISMANGER == 1) { this.rbtIsAutoyes.IsChecked = true; } else { this.rbtIsAutono.IsChecked = true; } if (sysUser.ISFLOWMANAGER == "1") { this.rbtflow.IsChecked = true; } else { this.rbtflowno.IsChecked = true; } if (sysUser.ISENGINEMANAGER == "1") { this.rbtengine.IsChecked = true; } else { this.rbtengineno.IsChecked = true; } } } }
// Creator private void GetCreatorCompleted(object sender, GetUserByIDCompletedEventArgs getUserByIDCompletedEventArgs) { userCreator = getUserByIDCompletedEventArgs.Result; RunOnUiThread(() => creator.Text = userCreator.Username); }