Beispiel #1
0
        void client_GetEmpOrgInfoByIDCompleted(object sender, GetEmpOrgInfoByIDCompletedEventArgs e)
        {
            try
            {
                if (e.Error != null || e.Result == null)
                {
                    Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message));
                }
                else
                {
                    SMT.Saas.Tools.PersonnelWS.V_EMPLOYEEVIEW employeeView = e.Result;
                    string strOrgName = employeeView.POSTNAME + " - " + employeeView.DEPARTMENTNAME + " - " + employeeView.COMPANYNAME;
                    if (!string.IsNullOrWhiteSpace(strOrgName))
                    {
                        strOrgName = EmployeeCheck.T_HR_EMPLOYEE.EMPLOYEECNAME + " - " + strOrgName;
                    }

                    //T_HR_EMPLOYEE ent = new T_HR_EMPLOYEE();
                    //ent.EMPLOYEEID = employeeView.EMPLOYEEID;
                    //ent.EMPLOYEECODE = employeeView.EMPLOYEECODE;
                    //ent.OWNERID = employeeView.OWNERID;
                    //ent.OWNERPOSTID = employeeView.OWNERPOSTID;
                    //ent.OWNERDEPARTMENTID = employeeView.OWNERDEPARTMENTID;
                    //ent.OWNERCOMPANYID = employeeView.OWNERCOMPANYID;

                    lkEmployeeName.TxtLookUp.Text = strOrgName;
                    //lkEmployeeName.DataContext = ent;
                }
            }
            catch (Exception ex)
            {
                Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message + ex.Message));
            }
        }
Beispiel #2
0
        void client_GetEmpOrgInfoByIDCompleted(object sender, GetEmpOrgInfoByIDCompletedEventArgs e)
        {
            try
            {
                if (e.Error != null || e.Result == null)
                {
                    Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message));
                }
                else
                {
                    SMT.Saas.Tools.PersonnelWS.V_EMPLOYEEVIEW employeeView = e.Result;
                    string strOrgName = employeeView.POSTNAME + " - " + employeeView.DEPARTMENTNAME + " - " + employeeView.COMPANYNAME;
                    if (!string.IsNullOrWhiteSpace(strOrgName))
                    {
                        strOrgName = EmployeeCheck.T_HR_EMPLOYEE.EMPLOYEECNAME + " - " + strOrgName;
                    }

                    //T_HR_EMPLOYEE ent = new T_HR_EMPLOYEE();
                    //ent.EMPLOYEEID = employeeView.EMPLOYEEID;
                    //ent.EMPLOYEECODE = employeeView.EMPLOYEECODE;
                    //ent.OWNERID = employeeView.OWNERID;
                    //ent.OWNERPOSTID = employeeView.OWNERPOSTID;
                    //ent.OWNERDEPARTMENTID = employeeView.OWNERDEPARTMENTID;
                    //ent.OWNERCOMPANYID = employeeView.OWNERCOMPANYID;

                    lkEmployeeName.TxtLookUp.Text = strOrgName;
                    //lkEmployeeName.DataContext = ent;
                }
            }
            catch (Exception ex)
            {
                Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message + ex.Message));
            }
        }