当前位置: 首页>>代码示例>>C#>>正文


C# System.Collections.ObjectModel.ObservableCollection.Count方法代码示例

本文整理汇总了C#中System.Collections.ObjectModel.System.Collections.ObjectModel.ObservableCollection.Count方法的典型用法代码示例。如果您正苦于以下问题:C# System.Collections.ObjectModel.ObservableCollection.Count方法的具体用法?C# System.Collections.ObjectModel.ObservableCollection.Count怎么用?C# System.Collections.ObjectModel.ObservableCollection.Count使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在System.Collections.ObjectModel.System.Collections.ObjectModel.ObservableCollection的用法示例。


在下文中一共展示了System.Collections.ObjectModel.ObservableCollection.Count方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: LoadData

        private void LoadData()
        {
            loadbar.Start();
            int pageCount = 0;
            string filter = "";
            System.Collections.ObjectModel.ObservableCollection<object> paras = new System.Collections.ObjectModel.ObservableCollection<object>();

            TextBox txtDepID = Utility.FindChildControl<TextBox>(expander, "txtDepCode");
            if (txtDepID != null)
            {
                if (!string.IsNullOrEmpty(txtDepID.Text))
                {
                    if (!string.IsNullOrEmpty(filter))
                    {
                        filter += " and ";
                    }
                    //filter += "[email protected]" + paras.Count().ToString();
                    filter += " @" + paras.Count().ToString() + ".Contains(DEPARTMENTCODE)";
                    paras.Add(txtDepID.Text.Trim());
                }
            }
            TextBox txtDepName = Utility.FindChildControl<TextBox>(expander, "txtDepName");
            if (txtDepName != null)
            {
                if (!string.IsNullOrEmpty(txtDepName.Text))
                {
                    if (!string.IsNullOrEmpty(filter))
                    {
                        filter += " and ";
                    }
                    //  filter += "[email protected]" + paras.Count().ToString();
                    filter += " @" + paras.Count().ToString() + ".Contains(DEPARTMENTNAME)";
                    paras.Add(txtDepName.Text.Trim());
                }
            }
            ComboBox txtDepType = Utility.FindChildControl<ComboBox>(expander, "cbxDepType");
            if (txtDepType != null)
            {
                if (txtDepType.SelectedIndex > 0)
                {
                    if (!string.IsNullOrEmpty((txtDepType.SelectedItem as T_SYS_DICTIONARY).DICTIONARYID))
                    {
                        if (!string.IsNullOrEmpty(filter))
                        {
                            filter += " and ";
                        }
                        filter += "[email protected]" + paras.Count().ToString();
                        // paras.Add(txtDepType.SelectedValue.Trim());
                        paras.Add((txtDepType.SelectedItem as T_SYS_DICTIONARY).DICTIONARYVALUE.ToString());
                    }
                }
            }
            svc.DepartmentDictionaryPagingAsync(dataPager.PageIndex, dataPager.PageSize, "DEPARTMENTCODE", filter,
                paras, pageCount, SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID, Checkstate);
        }
开发者ID:JuRogn,项目名称:OA,代码行数:55,代码来源:DepartmentDictionary.xaml.cs

示例2: LoadData

        private void LoadData()
        {
            loadbar.Start();
            int pageCount = 0;
            string filter = "";
            System.Collections.ObjectModel.ObservableCollection<string> paras = new System.Collections.ObjectModel.ObservableCollection<string>();

            if (!string.IsNullOrEmpty(txtEmpName.Text))
            {

                // filter += "[email protected]" + paras.Count().ToString();
                filter += " @" + paras.Count().ToString() + ".Contains(EMPLOYEECNAME)";
                paras.Add(txtEmpName.Text.Trim());
            }
            if (!string.IsNullOrEmpty(txtEmpCode.Text))
            {
                if (!string.IsNullOrEmpty(filter))
                {
                    filter += " and ";
                }
             
                filter += " @" + paras.Count().ToString() + ".Contains(EMPLOYEECODE)";
                paras.Add(txtEmpCode.Text.Trim());
            }
            string sType = treeOrganization.sType, sValue = treeOrganization.sValue;
            client.GetEmployeeViewsPagingAsync(dataPager.PageIndex, dataPager.PageSize, "EMPLOYEECNAME", filter,
                paras, pageCount, sType, sValue, SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID);
        }
开发者ID:JuRogn,项目名称:OA,代码行数:28,代码来源:PersonControl.xaml.cs

示例3: GetData

        //加载数据
        private void GetData()
        {
            int pageCount = 0;
            string filter = "";    //查询过滤条件
            string StrStart = "";
            string StrEnd = "";
            StrStart = DateStart.Text.ToString();
            StrEnd = DateEnd.Text.ToString();
            DateTime DtStart = new DateTime();
            DateTime DtEnd = new DateTime();
            ObservableCollection<object> paras = new System.Collections.ObjectModel.ObservableCollection<object>();   //参数值     

            if (!string.IsNullOrEmpty(StrStart) && !string.IsNullOrEmpty(StrEnd))
            {
                DtStart = System.Convert.ToDateTime(StrStart);
                DtEnd = System.Convert.ToDateTime(StrEnd + " 23:59:59");
                if (DtStart > DtEnd)
                {
                    Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("WARING"), Utility.GetResourceStr("ERRORSTARTDATEGTENDDATE"));
                    return;
                }
                else
                {
                    if (!string.IsNullOrEmpty(filter))
                    {
                        filter += " and ";
                    }
                    filter += "RequireMaster.CREATEDATE >[email protected]" + paras.Count().ToString();//开始时间
                    paras.Add(DtStart);
                    filter += " and ";
                    filter += "RequireMaster.CREATEDATE <[email protected]" + paras.Count().ToString();//结束时间
                    paras.Add(DtEnd);
                }
            }

            paras.Add(DateStart.Text);
            paras.Add(DateEnd.Text);
            SMT.SaaS.OA.UI.SmtOACommonAdminService.LoginUserInfo loginInfo = new SMT.SaaS.OA.UI.SmtOACommonAdminService.LoginUserInfo();
            loginInfo.companyID = Common.CurrentLoginUserInfo.UserPosts[0].CompanyID;
            loginInfo.userID = Common.CurrentLoginUserInfo.EmployeeID;
            RefreshUI(RefreshedTypes.ShowProgressBar);
            _VM.Get_ESurveyCheckedAsync(dataPager.PageIndex, dataPager.PageSize, "RequireMaster.CREATEDATE", "", paras, pageCount, Common.CurrentLoginUserInfo.UserPosts[0].CompanyID, Common.CurrentLoginUserInfo.EmployeeID, checkState);

        }
开发者ID:JuRogn,项目名称:OA,代码行数:45,代码来源:EmployeeSurvey_sel.xaml.cs

示例4: EditData

        public void EditData()
        {
            int pageCount = 0;
            string filter = "";
            System.Collections.ObjectModel.ObservableCollection<string> paras = new System.Collections.ObjectModel.ObservableCollection<string>();

            filter += "[email protected]" + paras.Count().ToString();
            paras.Add("4");

            filter += " and [email protected]" + paras.Count().ToString();
            paras.Add(SMT.SaaS.FrameworkUI.Common.Utility.Encrypt(oldpwd.Password));

            filter += " and [email protected]" + paras.Count().ToString();
            paras.Add(SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID);

            loadbar.Start();

            client.GetSystemParamSetPagingAsync(1, 20, "PARAMETERNAME", filter, paras, pageCount, SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID);

        }
开发者ID:JuRogn,项目名称:OA,代码行数:20,代码来源:SalaryPasswordSet.xaml.cs

示例5: LoadData

        private void LoadData()
        {
            int pageCount = 0;
            string filter = "";
            System.Collections.ObjectModel.ObservableCollection<object> paras = new System.Collections.ObjectModel.ObservableCollection<object>();

            filter += "[email protected]" + paras.Count().ToString();
            // paras.Add(Checkstate);
            paras.Add(Convert.ToInt32(CheckStates.Approved).ToString());

            TextBox txtEmpName = Utility.FindChildControl<TextBox>(expander, "txtEmpName");
            if (!string.IsNullOrEmpty(txtEmpName.Text))
            {
                if (!string.IsNullOrEmpty(filter))
                {
                    filter += " and ";
                }
                filter += "[email protected]" + paras.Count().ToString();
                paras.Add(txtEmpName.Text.Trim());
            }

            client.EmployeeEvectionReportPagingAsync(dataPager.PageIndex, dataPager.PageSize, "EMPLOYEECODE", filter, paras, pageCount);
            loadbar.Start();
        }
开发者ID:JuRogn,项目名称:OA,代码行数:24,代码来源:EvectionReport.xaml.cs

示例6: GetData

        //加载数据
        private void GetData(string checkState)
        {
            string filter = "";    //查询过滤条件
            ObservableCollection<object> paras = new System.Collections.ObjectModel.ObservableCollection<object>();   //查询过滤条件   
            RefreshUI(RefreshedTypes.ShowProgressBar);
            if (!string.IsNullOrEmpty(filter))
            {
                filter += " and ";
            }
            filter += "OWNERID == @" + paras.Count().ToString();
            paras.Add(strOwnerID);

            decimal dCheckStates = 0, dIsRepaied = 1;
            decimal.TryParse(checkState, out dCheckStates);
            client.GetBorrowApplyMasterListForRepayAsync(SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID, dIsRepaied, dCheckStates, filter, paras);
        }
开发者ID:JuRogn,项目名称:OA,代码行数:17,代码来源:BorrowApp_sel.xaml.cs

示例7: LoadData

        private void LoadData()
        {
            int pageCount = 0;
            string filter = "";
            System.Collections.ObjectModel.ObservableCollection<object> paras = new System.Collections.ObjectModel.ObservableCollection<object>();

            filter += "[email protected]" + paras.Count().ToString();
            paras.Add(PostID);

            //TextBox txtEmpName = Utility.FindChildControl<TextBox Style="{StaticResource TextBoxStyle}">(expander, "txtEmpName");
            //if (!string.IsNullOrEmpty(txtEmpName.Text))
            //{
            //    if (!string.IsNullOrEmpty(filter))
            //    {
            //        filter += " and ";
            //    }
            //    filter += "[email protected]" + paras.Count().ToString();
            //    paras.Add(txtEmpName.Text.Trim());
            //}

            client.RelationPostPagingAsync(dataPager.PageIndex, dataPager.PageSize, "T_HR_POST.POSTID", filter, paras, pageCount);
            loadbar.Stop();
            
        }
开发者ID:JuRogn,项目名称:OA,代码行数:24,代码来源:RelationPost.xaml.cs

示例8: LoadData

        public void LoadData()
        {
            loadbar.Start();
            int pageCount = 0;
            string filter = "";
            int sType = -1;
            string sValue = "";
            System.Collections.ObjectModel.ObservableCollection<string> paras = new System.Collections.ObjectModel.ObservableCollection<string>();

            string selectedType = treeOrganization.sType;
            if (!string.IsNullOrEmpty(selectedType))
            {
                switch (selectedType)
                {
                    case "Company":
                        sType = 0;
                        break;
                    case "Department":
                        sType = 1;
                        break;
                    case "Post":
                        sType = 2;
                        break;
                }
                sValue = treeOrganization.sValue;
            }
            else
            {
                loadbar.Stop();
                //if (frist) frist = false;  else  Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), "PLEASESELECT");
                return;
            }

            DatePicker dpStartDate = Utility.FindChildControl<DatePicker>(expander, "dpStartDate");
            DatePicker dpEndDate = Utility.FindChildControl<DatePicker>(expander, "dpEndDate");

            string StartDate = string.Empty;
            string EndDate = string.Empty;

            if (dpStartDate != null)
            {
                StartDate = dpStartDate.Text;
            }
            if (dpEndDate != null)
            {
                EndDate = dpEndDate.Text;
            }

            string strState = "";
            if (Checkstate != Convert.ToInt32(CheckStates.All).ToString())
            {
                strState = Checkstate;
            }

            TextBox txtEmpName = Utility.FindChildControl<TextBox>(expander, "txtEmpName");
            TextBox txtEmpCode = Utility.FindChildControl<TextBox>(expander, "txtEmpCode");

            if (!string.IsNullOrEmpty(txtEmpCode.Text.Trim()))
            {
                filter += "[email protected]" + paras.Count().ToString();
                paras.Add(txtEmpCode.Text.Trim());
            }
            if (!string.IsNullOrEmpty(txtEmpName.Text.Trim()))
            {
                if (!string.IsNullOrEmpty(filter))
                {
                    filter += " and ";
                }
                filter += "[email protected]" + paras.Count().ToString();
                paras.Add(txtEmpName.Text.Trim());
            }

            //client.GetCustomGuerdonSetPagingAsync(dataPager.PageIndex, dataPager.PageSize, "GUERDONNAME", filter, paras, pageCount, strState, SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID);
            client.GetComplainRecordPagingAsync(dataPager.PageIndex, dataPager.PageSize, "T_HR_KPIRECORD.UPDATEDATE", filter, paras, pageCount, sType, sValue, SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID, StartDate, EndDate, strState);
            //loadbar.Stop();
        }
开发者ID:JuRogn,项目名称:OA,代码行数:76,代码来源:ComplainFlow.xaml.cs

示例9: LoadData

        private void LoadData()
        {
            //ServiceClient.GetSysRoleByTypeAsync(this.txtSearchSystemType.Text.Trim());
            string filter = "";    //查询过滤条件
            int pageCount = 0;
            ObservableCollection<object> paras = new System.Collections.ObjectModel.ObservableCollection<object>();   //参数值
            ComboBox cbxSystemType = Utility.FindChildControl<ComboBox>(expander, "cbxSystemType");
            TextBox RoleName = Utility.FindChildControl<TextBox>(expander, "TxtRoleName");
            T_SYS_DICTIONARY dict = cbxSystemType.SelectedItem as T_SYS_DICTIONARY;
            string StrRoleName = "";
            StrRoleName = RoleName.Text;


            if (!string.IsNullOrEmpty(StrRoleName))
            {
                if (!string.IsNullOrEmpty(filter))
                {
                    filter += " and ";
                }

                //filter += " @" + paras.Count().ToString() + ".Contains(ROLENAME)";//类型名称
                //filter += "ROLENAME  ^@" + paras.Count().ToString();//类型名称
                filter += " @" + paras.Count().ToString() + ".Contains(ROLENAME)";
                paras.Add(StrRoleName);
            }
            //if (!string.IsNullOrEmpty(txtEmpCode.Text.Trim()))
            //{
            //    //filter += "[email protected]" + paras.Count().ToString();
            //    filter += " @" + paras.Count().ToString() + ".Contains(EMPLOYEECODE)";
            //    paras.Add(txtEmpCode.Text.Trim());
            //}


            string systype = "";
            if (dict != null)
                systype = dict.DICTIONARYVALUE == null ? "" : dict.DICTIONARYVALUE.GetValueOrDefault().ToString();
            if (!string.IsNullOrEmpty(systype))
            {
                if (!string.IsNullOrEmpty(filter))
                {
                    filter += " and ";
                }
                filter += "SYSTEMTYPE [email protected]" + paras.Count().ToString();//类型名称
                paras.Add(systype);
            }
            string sType = "", sValue = "";
            
            if (string.IsNullOrEmpty(filter))
            {
                //默认为自己公司的角色
                filter += "OWNERCOMPANYID [email protected]" + paras.Count().ToString();//类型名称
                paras.Add(Common.CurrentLoginUserInfo.UserPosts[0].CompanyID);
            }

            loadbar.Start();
            SMT.Saas.Tools.PermissionWS.LoginUserInfo loginUserInfo = new SMT.Saas.Tools.PermissionWS.LoginUserInfo();
            loginUserInfo.companyID = Common.CurrentLoginUserInfo.UserPosts[0].CompanyID;
            loginUserInfo.userID = Common.CurrentLoginUserInfo.EmployeeID;

            //permClient.GetSysRoleInfosPagingByCompanyIDsAsync(dataPager.PageIndex, dataPager.PageSize, "CREATEDATE", filter, paras, pageCount, loginUserInfo, null);
            permClient.GetRoleInfosByUserAsync(dataPager.PageIndex, dataPager.PageSize, "CREATEDATE", filter, paras, pageCount, checkState, loginUserInfo);

        }
开发者ID:JuRogn,项目名称:OA,代码行数:63,代码来源:UserRoleManagement.xaml.cs

示例10: PlayPlaylist

 private void PlayPlaylist()
 {
     var str = this.SelectedEntries.Select((t) => new Track
     {
         Id = t.TrackId
     });
     var selectedTracks = new System.Collections.ObjectModel.ObservableCollection<Track>(str);
     if (selectedTracks != null && selectedTracks.Count() > 0)
     {
         this.m_playerManager.PlayTracks(selectedTracks, PlayerMode.Song);
     }
     else
     {
         var tr = this.Entries.Select((t) => new Track
         {
             Id = t.TrackId
         });
         var tracks = new System.Collections.ObjectModel.ObservableCollection<Track>(tr);
         if (tracks != null && tracks.Count() > 0)
         {
             this.m_playerManager.PlayTracks(tracks, PlayerMode.Playlist);
         }
     }
 }
开发者ID:uwe-e,项目名称:BSE.Tunes,代码行数:24,代码来源:PlaylistDetailPageViewModel.cs

示例11: LoadData

 private void LoadData()
 {
     int pageCount = 0;
     string filter = "";    //查询过滤条件
     ObservableCollection<object> paras = new System.Collections.ObjectModel.ObservableCollection<object>();   //参数值  
     if (!string.IsNullOrEmpty(txtTitle.Text.Trim()))
     {
         filter += "ISSUANCETITLE ^@" + paras.Count().ToString();
         paras.Add(txtTitle.Text.Trim());
     }
     //if (!string.IsNullOrEmpty(txtContent.Text.Trim()))
     //{
     //    if (!string.IsNullOrEmpty(filter))
     //    {
     //        filter += " and ";
     //    }
     //    filter += "CONTENT ^@" + paras.Count().ToString();
     //    paras.Add(txtContent.Text.Trim());
     //}
     SMT.SaaS.OA.UI.SmtOACommonAdminService.LoginUserInfo loginUserInfo = new SMT.SaaS.OA.UI.SmtOACommonAdminService.LoginUserInfo();
     if (string.IsNullOrEmpty(loginUserInfo.companyID))
     {
         Utility.GetLoginUserInfo(loginUserInfo);
     }
     loginUserInfo.companyID = Common.CurrentLoginUserInfo.UserPosts[0].CompanyID;
     loginUserInfo.userID = Common.CurrentLoginUserInfo.EmployeeID;
     loadbar.Start();
     client.GetIssunaceListPagingAsync(dataPager.PageIndex, dataPager.PageSize, "CREATEDATE descending", filter, paras, pageCount, checkState, loginUserInfo);
 }
开发者ID:JuRogn,项目名称:OA,代码行数:29,代码来源:FrmHouseInfoIssurance.xaml.cs

示例12: LoadData

        private void LoadData()
        {
            loadbar.Start();
            int pageCount = 0;
            string filter = "";
            string strState = "";
            if (Checkstate != Convert.ToInt32(CheckStates.All).ToString())
            {
                strState = Checkstate;
            }
            System.Collections.ObjectModel.ObservableCollection<object> paras = new System.Collections.ObjectModel.ObservableCollection<object>();

            //if (Checkstate != Convert.ToInt32(CheckStates.All).ToString())
            //{
            //    filter += "[email protected]" + paras.Count().ToString();
            //    paras.Add(Convert.ToInt32(Checkstate).ToString());
            //}

            TextBox txtEmpName = Utility.FindChildControl<TextBox>(expander, "txtEmpName");
            if (txtEmpName != null)
            {
                if (!string.IsNullOrEmpty(txtEmpName.Text))
                {
                    if (!string.IsNullOrEmpty(filter))
                    {
                        filter += " and ";
                    }
                    //filter += "[email protected]" + paras.Count().ToString();
                    filter += " @" + paras.Count().ToString() + ".Contains(T_HR_EMPLOYEE.EMPLOYEECNAME)";
                    paras.Add(txtEmpName.Text.Trim());

                }
            }
            //if (Checkstate != Convert.ToInt32(CheckStates.All).ToString())
            //    {
            //        if (!string.IsNullOrEmpty(filter))
            //        {
            //            filter += " and ";
            //        }
            //        filter += "[email protected]" + paras.Count().ToString();
            //        paras.Add(Checkstate);
            //    }
            client.EmployeeContractPagingAsync(dataPager.PageIndex, dataPager.PageSize, "T_HR_EMPLOYEE.EMPLOYEECODE", filter, paras,
                pageCount, strState, SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID);
        }
开发者ID:JuRogn,项目名称:OA,代码行数:45,代码来源:EmployeeContract.xaml.cs

示例13: GetData

        /// <summary>
        /// 获取数据 1
        /// </summary>
        /// <param name="pageIndex"></param>
        /// <param name="checkState"></param>
        private void GetData(int pageIndex, string checkState)
        {
            
            int pageCount = 0;
            string filter = "";    //查询过滤条件
            ObservableCollection<object> paras = new System.Collections.ObjectModel.ObservableCollection<object>();   //参数值          
            if (IsQuery)
            {
                string StrTitle = "";
                string StrContent = "";

                string StrStart = "";
                string StrEnd = "";
                StrStart = dpStart.Text.ToString();
                StrEnd = dpEnd.Text.ToString();
                DateTime DtStart = new DateTime();
                DateTime DtEnd = new DateTime();
                StrTitle = this.txtSurveysTITLE.Text.ToString().Trim();
                StrContent = this.txtSurveysContent.Text.ToString().Trim();

                if (!string.IsNullOrEmpty(StrStart) && string.IsNullOrEmpty(StrEnd))
                {

                    Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("WARING"), Utility.GetResourceStr("ENDTIMENOTNULL"));
                    //MessageBox.Show("结束时间不能为空");
                    return;
                }
                if (string.IsNullOrEmpty(StrStart) && !string.IsNullOrEmpty(StrEnd))
                {

                    Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("WARING"), Utility.GetResourceStr("MEETINGSTARTTIMENOTNULL"));
                    //MessageBox.Show("开始时间不能为空");
                    return;
                }
                if (!string.IsNullOrEmpty(StrStart) && !string.IsNullOrEmpty(StrEnd))
                {
                    DtStart = System.Convert.ToDateTime(StrStart);
                    DtEnd = System.Convert.ToDateTime(StrEnd + " 23:59:59");
                    if (DtStart > DtEnd)
                    {
                        Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("WARING"), Utility.GetResourceStr("ERRORSTARTDATEGTENDDATE"));
                        return;
                    }
                    else
                    {
                        if (!string.IsNullOrEmpty(filter))
                        {
                            filter += " and ";
                        }
                        filter += "OARequire.STARTDATE >[email protected]" + paras.Count().ToString();//开始时间
                        paras.Add(DtStart);
                        filter += " and ";
                        filter += "OARequire.STARTDATE <[email protected]" + paras.Count().ToString();//结束时间
                        paras.Add(DtEnd);
                    }
                }

                if (!string.IsNullOrEmpty(StrTitle))
                {
                    if (!string.IsNullOrEmpty(filter))
                    {
                        filter += " and ";
                    }
                    filter += "OARequire.SATISFACTIONTITLE ^@" + paras.Count().ToString();//类型名称
                    paras.Add(StrTitle);
                }
                if (!string.IsNullOrEmpty(StrContent))
                {
                    if (!string.IsNullOrEmpty(filter))
                    {
                        filter += " and ";
                    }
                    filter += "OARequire.CONTENT ^@" + paras.Count().ToString();//类型名称
                    paras.Add(StrContent);

                }
                //if (!string.IsNullOrEmpty(filter))
                //{
                //    filter += " and ";
                //}
                //filter += "OARequire.STARTDATE <[email protected]" + paras.Count().ToString();//类型名称
                //paras.Add(System.DateTime.Now);

            }
            loadbar.Start();
            client.Get_StaticfactionSurveyAppCheckedAsync(dataPager.PageIndex, dataPager.PageSize, "OARequire.UPDATEDATE descending", filter, paras, pageCount, Common.CurrentLoginUserInfo.UserPosts[0].CompanyID, Common.CurrentLoginUserInfo.EmployeeID, checkState, Common.CurrentLoginUserInfo.UserPosts[0].PostID, Common.CurrentLoginUserInfo.UserPosts[0].CompanyID, Common.CurrentLoginUserInfo.UserPosts[0].DepartmentID);
           
        }
开发者ID:JuRogn,项目名称:OA,代码行数:93,代码来源:Satisfactioning.xaml.cs

示例14: ServiceClent_GetUserByEmployeeIDCompleted

        void ServiceClent_GetUserByEmployeeIDCompleted(object sender, GetUserByEmployeeIDCompletedEventArgs 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.ISENGINEMANAGER == "1")
                    {
                        this.rbtengine.IsChecked = true;
                    }
                    else
                    {
                        this.rbtengineno.IsChecked = true;
                    }
                    if (sysUser.ISFLOWMANAGER == "1")
                    {
                        this.rbtflow.IsChecked = true;
                    }
                    else
                    {
                        this.rbtflowno.IsChecked = true;
                    }
                    if (sysUser.STATE == "0")
                    {
                        this.tblstate.Text = "禁用";
                        //this.tblstate.Foreground = SystemColors.
                        btnSet.Content = Utility.GetResourceStr("STARTUSING");
                        //FormToolBar1.btnOtherAction("/SMT.SaaS.FrameworkUI;Component/Images/ToolBar/ico_16_4424.png", Utility.GetResourceStr("STARTUSING")).Click += new RoutedEventHandler(SysUserSetIsActived_Click);
                    }
                    else
                    {
                        this.tblstate.Text = "正常";
                        btnSet.Content = Utility.GetResourceStr("FORBIDUSE");
                        //FormToolBar1.btnOtherAction("/SMT.SaaS.FrameworkUI;Component/Images/ToolBar/ico_16_4424.png", Utility.GetResourceStr("FORBIDUSE")).Click += new RoutedEventHandler(SysUserManagement_Click);
                    }

                    #region 获取用户薪资密码
                    int pageCount = 0;
                    string filter = "";
                    System.Collections.ObjectModel.ObservableCollection<string> paras = new System.Collections.ObjectModel.ObservableCollection<string>();
                    filter += "[email protected]" + paras.Count().ToString();
                    paras.Add("4");
                    filter += " and [email protected]" + paras.Count().ToString();
                    paras.Add(sysUser.EMPLOYEEID);
                    salaryClient.GetSystemParamSetPagingAsync(1, 20, "PARAMETERNAME", filter, paras, pageCount, sysUser.EMPLOYEEID);

                    #endregion
                }
            }
        }
开发者ID:JuRogn,项目名称:OA,代码行数:68,代码来源:SysUserForms.xaml.cs

示例15: LoadData

        private void LoadData()
        {
            loadbar.Start();//打开转动动画
            int pageCount = 0;
            string filter = ""; //查询过滤条件
            ObservableCollection<object> paras = new System.Collections.ObjectModel.ObservableCollection<object>();//参数值

            if (!string.IsNullOrEmpty(txtSYSTEMCODE.Text.Trim())) //系统类型
            {
                if (!string.IsNullOrEmpty(filter))
                {
                    filter += " and ";
                }
                filter += "SYSCODE ^@" + paras.Count().ToString();
                paras.Add(txtSYSTEMCODE.Text.Trim());
            }
            if (!string.IsNullOrEmpty(txtAGENTMODULE.Text.Trim()))//代理模块
            {
                if (!string.IsNullOrEmpty(filter))
                {
                    filter += " and ";
                }
                filter += "MODELCODE ^@" + paras.Count().ToString();
                paras.Add(txtAGENTMODULE.Text.Trim());
            }
            SMT.SaaS.OA.UI.SmtOACommonOfficeService.LoginUserInfo loginUserInfo = new SMT.SaaS.OA.UI.SmtOACommonOfficeService.LoginUserInfo();
            loginUserInfo.companyID = Common.CurrentLoginUserInfo.UserPosts[0].CompanyID;
            loginUserInfo.userID = Common.CurrentLoginUserInfo.EmployeeID;

            SoaChannel.GetAgentSetListByIdAsync(dpGrid.PageIndex, dpGrid.PageSize, "CREATEDATE", filter, paras, pageCount, loginUserInfo);
        }
开发者ID:JuRogn,项目名称:OA,代码行数:31,代码来源:ProxySettings.xaml.cs


注:本文中的System.Collections.ObjectModel.System.Collections.ObjectModel.ObservableCollection.Count方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。