Beispiel #1
0
        void client_GetTravleSolutionSetBySolutionIDCompleted(object sender, GetTravleSolutionSetBySolutionIDCompletedEventArgs e)
        {
            RefreshUI(RefreshedTypes.HideProgressBar);
            if (!e.Cancelled)
            {
                if (e.Error == null)
                {
                    
                    if (e.Result.Count() >0)
                    {
                        IsEdit = true;//z设置为修改
                        issuanceExtOrgObj.Clear();
                        ListSet = e.Result.ToList();
                        foreach (var h in ListSet)
                        {
                            object obj = new object();
                            SMT.SaaS.FrameworkUI.OrganizationControl.ExtOrgObj extOrgObj = new SMT.SaaS.FrameworkUI.OrganizationControl.ExtOrgObj();
                                                        
                            T_HR_COMPANY tmp = new T_HR_COMPANY();
                            tmp.COMPANYID = h.COMPANYID;
                            tmp.CNAME = Utility.GetCompanyName(tmp.COMPANYID);
                            obj = tmp;
                            
                            
                            extOrgObj.ObjectInstance = obj;
                            issuanceExtOrgObj.Add(extOrgObj);
                        }
                        BindData();
                    }
                }

            }
        }
Beispiel #2
0
        void client_GetTravleSolutionSetBySolutionIDCompleted(object sender, GetTravleSolutionSetBySolutionIDCompletedEventArgs e)
        {
            RefreshUI(RefreshedTypes.HideProgressBar);
            if (!e.Cancelled)
            {
                if (e.Error == null)
                {
                    if (e.Result.Count() > 0)
                    {
                        IsEdit = true;//z设置为修改
                        issuanceExtOrgObj.Clear();
                        ListSet = e.Result.ToList();
                        foreach (var h in ListSet)
                        {
                            object obj = new object();
                            SMT.SaaS.FrameworkUI.OrganizationControl.ExtOrgObj extOrgObj = new SMT.SaaS.FrameworkUI.OrganizationControl.ExtOrgObj();

                            T_HR_COMPANY tmp = new T_HR_COMPANY();
                            tmp.COMPANYID = h.COMPANYID;
                            tmp.CNAME     = Utility.GetCompanyName(tmp.COMPANYID);
                            obj           = tmp;


                            extOrgObj.ObjectInstance = obj;
                            issuanceExtOrgObj.Add(extOrgObj);
                        }
                        BindData();
                    }
                }
            }
        }
Beispiel #3
0
        void client_GetTravleSolutionSetBySolutionIDCompleted(object sender, GetTravleSolutionSetBySolutionIDCompletedEventArgs e)
        {
            
            if (!e.Cancelled)
            {
                if (e.Error == null)
                {

                    if (e.Result.Count() > 0)
                    {
                        ListAppSolution = e.Result.ToList();

                        foreach (var h in ListAppSolution)
                        {
                            var ents = from ent in ListCompany
                                       where ent.COMPANYID == h.COMPANYID
                                       select ent;
                            SecondCompany.Items.Add(ents.FirstOrDefault());
                            FirstComany.Items.Remove(ents.FirstOrDefault());
                        }
                        
                    }
                }

            }
        }