Esempio n. 1
0
        public MainPage()
        {
            InitializeComponent();

            this.Loaded                   += new RoutedEventHandler(MainPage_Loaded);
            HeaderMenu.HBHome.Click       += new RoutedEventHandler(HBHome_Click);
            HeaderMenu.HBFullScreen.Click += new RoutedEventHandler(HBFullScreen_Click);


            HeaderMenu.SetUserNameAndDepartmentName(SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeName,
                                                    SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.UserPosts[0].PostName,
                                                    SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.UserPosts[0].DepartmentName,
                                                    SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.UserPosts[0].CompanyName);
            HideWaitingControl();
        }
Esempio n. 2
0
        void MainPage_Loaded(object sender, RoutedEventArgs e)
        {
            HeaderMenu.SetUserNameAndDepartmentName(SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeName,
                                                    SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.UserPosts[0].PostName,
                                                    SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.UserPosts[0].DepartmentName,
                                                    SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.UserPosts[0].CompanyName);

            System.Windows.Controls.Window.Parent      = windowParent;
            System.Windows.Controls.Window.TaskBar     = new StackPanel();
            System.Windows.Controls.Window.Wrapper     = this;
            System.Windows.Controls.Window.IsShowtitle = false;

            /*
             * Test
             */
            //SMT.Saas.Tools.PersonnelWS.PersonnelServiceClient a = new Saas.Tools.PersonnelWS.PersonnelServiceClient();
            //System.Collections.ObjectModel.ObservableCollection<object> paras = new System.Collections.ObjectModel.ObservableCollection<object>();
            //int pageCount = 0;
            //string abc = "@0.Contains(Mobile) or  @1.Contains(Tel) or  @2.Contains(EmployeeCNName) or  @3.Contains(PostName) or  @4.Contains(DepartMentName)";
            //paras.Add("刘映");
            //paras.Add("刘映");
            //paras.Add("刘映");
            //paras.Add("刘映");
            //paras.Add("刘映");
            //a.GetEmployeeListMobileAsync(1, 20, "EmployeeCNName", abc, paras, pageCount, "bbac270b-120d-4b6d-bc72-22fa6476ec9f", false);
            //a.GetEmployeeListMobileCompleted += (oo, ee) =>
            //    {
            //        IEnumerable<SMT.Saas.Tools.PersonnelWS.V_MOBILEEMPLOYEE> list;
            //        list = ee.Result.ToList().Distinct();
            //    };
            //SMT.Saas.Tools.SalaryWS.SalaryServiceClient a = new Saas.Tools.SalaryWS.SalaryServiceClient();
            //SMT.Saas.Tools.SalaryWS.T_HR_CUSTOMGUERDONARCHIVE custom = new Saas.Tools.SalaryWS.T_HR_CUSTOMGUERDONARCHIVE
            //{
            //    CUSTOMGUERDONARCHIVEID = "aeb0e17b-e650-45c8-9380-f3e569c71778",
            //    SUM = decimal.Parse("5555555"),
            //    REMARK = "6666666666"
            //};
            //custom.T_HR_SALARYARCHIVE = new SMT.Saas.Tools.SalaryWS.T_HR_SALARYARCHIVE();
            //custom.T_HR_SALARYARCHIVE.SALARYARCHIVEID="b355b0b8-be24-4ab7-8258-0c8646597a45";
            //a.CustomGuerdonArchiveUpdateAsync(custom);
            //ObservableCollection<SMT.Saas.Tools.PersonnelWS.V_EMPLOYEEPOSTFORFB> list = new ObservableCollection<Saas.Tools.PersonnelWS.V_EMPLOYEEPOSTFORFB>();
            //SMT.Saas.Tools.PersonnelWS.V_EMPLOYEEPOSTFORFB employee = new Saas.Tools.PersonnelWS.V_EMPLOYEEPOSTFORFB
            //{
            //    OWNERID = "27f547f7-bae4-4df4-ae03-07b579afcae0",
            //    OWNERPOSTID = "c51a4e93-265d-45a0-aa16-3c9f0ebf27d8",
            //    PERSONBUDGETAPPLYDETAILID = "022edac5-f060-4d41-a510-defaf6955230"
            //};
            //SMT.Saas.Tools.PersonnelWS.V_EMPLOYEEPOSTFORFB employee1 = new Saas.Tools.PersonnelWS.V_EMPLOYEEPOSTFORFB
            //{
            //    OWNERID = "eb732bab-8589-43a9-b51a-f13d72b056cc",
            //    OWNERPOSTID = "782541c5-86f9-4658-947d-61d264554640",
            //    PERSONBUDGETAPPLYDETAILID = "022edac5-f060-4d41-a510-defaf6955230"
            //};
            //SMT.Saas.Tools.PersonnelWS.V_EMPLOYEEPOSTFORFB employee2 = new Saas.Tools.PersonnelWS.V_EMPLOYEEPOSTFORFB
            //{
            //    OWNERID = "0a9cfa23-acff-49fb-9b6d-3d3eac7608ca",
            //    OWNERPOSTID = "dd9048f5-0125-4e0b-8e79-9f6ef1c39dd5",
            //    PERSONBUDGETAPPLYDETAILID = "022edac5-f060-4d41-a510-defaf6955230"
            //};
            //list.Add(employee);
            //////list.Add(employee1);
            //////list.Add(employee2);
            //ObservableCollection<SMT.Saas.Tools.PersonnelWS.V_EMPLOYEEPOSTFORFB> listResult = new ObservableCollection<Saas.Tools.PersonnelWS.V_EMPLOYEEPOSTFORFB>();

            //a.GetEmployeeListForFBAsync(list);
            //a.GetEmployeeListForFBCompleted += (obj, eve) =>
            //    {
            //        listResult = eve.Result;
            //        string rer = "";
            //    };
        }