Beispiel #1
0
 void ServiceClient_GetUserByIDCompleted(object sender, GetUserByIDCompletedEventArgs e)
 {
     if (!e.Cancelled)
     {
         if (e.Result != null)
         {
             tmpUser   = e.Result;
             tmpUserID = tmpUser.SYSUSERID;
             LoadData();
         }
     }
 }
Beispiel #2
0
        void ServiceClient_GetUserByIDCompleted(object sender, GetUserByIDCompletedEventArgs e)
        {
            if (!e.Cancelled)
            {
                if (e.Result != null)
                {
                    tmpUser = e.Result;
                    tmpUserID = tmpUser.SYSUSERID;
                    LoadData();

                }
            }
        }
Beispiel #3
0
        // 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;
            });
        }
Beispiel #4
0
 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);
         }
     }
 }
Beispiel #5
0
 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);
         }
     }
 }
Beispiel #6
0
 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;
             }
         }
     }
 }
Beispiel #7
0
 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);
 }