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


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

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


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

示例1: GetData

 //加载数据
 private void GetData(int pageIndex, string checkState)
 {
     int pageCount = 0;
     ObservableCollection<object> paras = new System.Collections.ObjectModel.ObservableCollection<object>();   //查询过滤条件             
     paras.Add(dtiStartDate.DateTimeValue);
     paras.Add(dtiEndDate.DateTimeValue);
     vehicleManager.GetCanUseVehicleUseAppInfoListAsync(pageIndex, dataPager.PageSize, "UPDATEDATE", "", paras, pageCount, Common.CurrentLoginUserInfo.UserPosts[0].CompanyID, Common.CurrentLoginUserInfo.EmployeeID);
 }
开发者ID:JuRogn,项目名称:OA,代码行数:9,代码来源:VehicleUseAppForm_sel.xaml.cs

示例2: GetData

 //加载数据
 private void GetData(int pageIndex, string checkState)
 {
     int pageCount = 0;
     ObservableCollection<object> paras = new System.Collections.ObjectModel.ObservableCollection<object>();   //查询过滤条件  
    
     paras.Add(DateTime.Parse(DateStart.Text));
     paras.Add(DateTime.Parse(DateEnd.Text));
     paras.Add((cmbVehicleInfo.SelectedItem as T_OA_VEHICLE).ASSETID);
     _VM.Get_VMAppCheckedAsync(pageIndex, dataPager.PageSize, "UPDATEDATE", "", paras, pageCount, Common.CurrentLoginUserInfo.UserPosts[0].CompanyID, Common.CurrentLoginUserInfo.EmployeeID, "2");
 }
开发者ID:JuRogn,项目名称:OA,代码行数:11,代码来源:MaintenanceApp_sel.xaml.cs

示例3: 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

示例4: GetData

        //加载数据
        private void GetData(int pageIndex, string checkState)
        {
            if (cmbVehicleInfo != null && cmbVehicleInfo.Items.Count > 0)
            {
                int pageCount = 0;
                ObservableCollection<object> paras = new System.Collections.ObjectModel.ObservableCollection<object>();   //参数值     
                paras.Add((cmbVehicleInfo.SelectionBoxItem as T_OA_VEHICLE).ASSETID);
                paras.Add(dtiStartDate.DateTimeValue);

                SMT.SaaS.OA.UI.SmtOACommonAdminService.LoginUserInfo loginInfo = new SMT.SaaS.OA.UI.SmtOACommonAdminService.LoginUserInfo();
                vehicleManager.Gets_VDCheckedAsync(pageIndex, dataPager.PageSize, "CREATEDATE", "", paras, pageCount, loginInfo);
            }
        }
开发者ID:JuRogn,项目名称:OA,代码行数:14,代码来源:VehicleDispatchForm_sel.xaml.cs

示例5: GetData

        //加载数据
        private void GetData(int pageIndex, string checkState)
        {         
                int pageCount = 0;
                ObservableCollection<object> paras = new System.Collections.ObjectModel.ObservableCollection<object>();   //参数值     

                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;
                _VM.Get_SSurveyCheckedAsync(pageIndex, dataPager.PageSize, "RequireMaster.CREATEDATE", "", paras, pageCount, Common.CurrentLoginUserInfo.UserPosts[0].CompanyID, Common.CurrentLoginUserInfo.EmployeeID, "2");
           
        }
开发者ID:JuRogn,项目名称:OA,代码行数:14,代码来源:Satisfaction_sel.xaml.cs

示例6: LinePatternViewer

        public void LinePatternViewer()
        {
            LPMainWindow main_win = null;
            try
            {
                Document theDoc = this.ActiveUIDocument.Document;
                System.Collections.ObjectModel.ObservableCollection<LinePattern> data =
                    new System.Collections.ObjectModel.ObservableCollection<LinePattern>();

                //Collect all line pattern elements
                FilteredElementCollector collector = new FilteredElementCollector(theDoc);
                IList<Element> linepatternelements = collector.WherePasses(new ElementClassFilter(typeof(LinePatternElement))).ToElements();
                foreach (LinePatternElement lpe in linepatternelements)
                {
                    data.Add(lpe.GetLinePattern());
                }
                //start main window
                main_win = new LinePatternMacro.LPMainWindow(data);
                System.Windows.Interop.WindowInteropHelper x = new System.Windows.Interop.WindowInteropHelper(main_win);
                x.Owner = Process.GetCurrentProcess().MainWindowHandle;
                main_win.ShowDialog();
            }
            catch (Exception err)
            {
                Debug.WriteLine(new string('*', 100));
                Debug.WriteLine(err.ToString());
                Debug.WriteLine(new string('*', 100));
                if (main_win != null && main_win.IsActive)
                    main_win.Close();
            }
        }
开发者ID:kfpopeye,项目名称:LinePatternViewerWpfControl,代码行数:31,代码来源:macro.cs

示例7: 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

示例8: 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

示例9: 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

示例10: 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

示例11: 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

示例12: 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

示例13: LoadDocTypeInfos

        void LoadDocTypeInfos()
        { 
            int pageCount = 0;
            string filter = "";    //查询过滤条件
            string StrName = "";
            string StrRecord = "";
            string StrStart = "";
            string StrEnd = "";
            string StrTypeFlag = ""; //文档类型
            StrStart = dpStart.Text.ToString();
            StrEnd = dpEnd.Text.ToString();
            DateTime DtStart = new DateTime();
            DateTime DtEnd = new DateTime();
            StrRecord = this.cbxIsSave.SelectedIndex.ToString();
            StrName = this.txtDocType.Text.Trim().ToString();
            switch (this.cbxIsSave.SelectedIndex)
            { 
                case 0:
                    break;
                case 1:
                    StrTypeFlag ="1";
                    break;
                case 2:
                    StrTypeFlag ="0";
                    break;
            }
            ObservableCollection<object> paras = new System.Collections.ObjectModel.ObservableCollection<object>();   //参数值
            
            if (!string.IsNullOrEmpty(StrStart) && string.IsNullOrEmpty(StrEnd))
            {
                
                //Utility.ShowCustomMessage(MessageTypes.Caution, Utility.GetResourceStr("WARING"), Utility.GetResourceStr("ENDTIMENOTNULL"));
                ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ENDTIMENOTNULL"),
                   Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
                return;
            }
            if (string.IsNullOrEmpty(StrStart) && !string.IsNullOrEmpty(StrEnd))
            {

                //Utility.ShowCustomMessage(MessageTypes.Caution, Utility.GetResourceStr("WARING"), Utility.GetResourceStr("MEETINGSTARTTIMENOTNULL"));
                ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("STARTTIMENOTNULL"),
                   Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
                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.Caution, Utility.GetResourceStr("WARING"), Utility.GetResourceStr("ERRORSTARTDATEGTENDDATE"));
                    ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERRORSTARTDATEGTENDDATE"),
                   Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
                    
                    return;
                }
                else
                {
                    if (!string.IsNullOrEmpty(filter))
                    {
                        filter += " and ";
                    }
                    filter += "CREATEDATE >[email protected]" + paras.Count().ToString();//开始时间
                    paras.Add(DtStart);
                    filter += " and ";
                    filter += "CREATEDATE <[email protected]" + paras.Count().ToString();//结束时间
                    paras.Add(DtEnd);
                }
            }
            //if (!string.IsNullOrEmpty(StrStart) && !string.IsNullOrEmpty(StrEnd))
            //{
            //    DtStart = System.Convert.ToDateTime(StrStart);
            //    DtEnd = System.Convert.ToDateTime(StrEnd);
            //    if (DtStart > DtEnd)
            //    {
            //        //MessageBox.Show("开始时间不能大于结束时间");
            //        Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("WARING"), Utility.GetResourceStr("MEETINGSTARTTIMENOTNULL"));
            //        return;
            //    }
            //    else
            //    {
                    
            //    }
            //}
            
            if (!string.IsNullOrEmpty(StrName))
            {
                if (!string.IsNullOrEmpty(filter))
                {
                    filter += " and ";
                }
                filter += "SENDDOCTYPE ^@" + paras.Count().ToString();//类型名称
                paras.Add(StrName);
            }
            if(!string.IsNullOrEmpty(StrTypeFlag))
            {
                if (!string.IsNullOrEmpty(filter))
                {
                    filter += " and ";
                }
//.........这里部分代码省略.........
开发者ID:JuRogn,项目名称:OA,代码行数:101,代码来源:DocTypeManagement.xaml.cs

示例14: BindEmployeeList

        /// <summary>
        /// 绑定员工列表
        /// </summary>
        private void BindEmployeeList()
        {
            int pageSize = 0, pageIndex = 0, pageCount = 0;
            string filter = string.Empty, strMsg = string.Empty;
            System.Collections.ObjectModel.ObservableCollection<string> paras = new System.Collections.ObjectModel.ObservableCollection<string>();

            if (!string.IsNullOrEmpty(txtEmpName.Text.Trim()))
            {
                if (!string.IsNullOrEmpty(filter))
                {
                    filter += " and ";
                }
                filter += " @" + paras.Count().ToString() + ".Contains(EMPLOYEECNAME)";
                paras.Add(txtEmpName.Text.Trim());
            }

            string sType = "", sValue = "";
            //2012-9-13
            //不需要选择机构就可进行查询,于是注释
          //  GetOrgInfoByChecked(ref sType, ref sValue, ref strMsg);

            if (!string.IsNullOrWhiteSpace(strMsg))
            {
                Utility.ShowCustomMessage(MessageTypes.Caution, Utility.GetResourceStr("CAUTION"), strMsg);
                return;
            }

            //不分页
            pageIndex = 1;
            pageSize = 999999;

            PersonnelWS.PersonnelServiceClient clientPers = new PersonnelWS.PersonnelServiceClient();
            Employeestate statetmp = cbxEmployeeState.SelectedItem as Employeestate;
            if (statetmp != null)
            {
                if (statetmp.Value == "1")
                {
                    clientPers.GetLeaveEmployeeViewsPagingCompleted += new EventHandler<PersonnelWS.GetLeaveEmployeeViewsPagingCompletedEventArgs>(clientPers_GetLeaveEmployeeViewsPagingCompleted);
                    
                    clientPers.GetLeaveEmployeeViewsPagingAsync(pageIndex, pageSize, "EMPLOYEECNAME",
                filter, paras, pageCount, sType, sValue, SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID);
                }
                else
                {
                    clientPers.GetEmployeeViewsPagingCompleted += new EventHandler<PersonnelWS.GetEmployeeViewsPagingCompletedEventArgs>(clientPers_GetEmployeeViewsPagingCompleted);
                    clientPers.GetEmployeeViewsPagingAsync(pageIndex, pageSize, "EMPLOYEECNAME",
                        filter, paras, pageCount, sType, sValue, SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID);
                }
            }
            else
            {
                clientPers.GetEmployeeViewsPagingCompleted += new EventHandler<PersonnelWS.GetEmployeeViewsPagingCompletedEventArgs>(clientPers_GetEmployeeViewsPagingCompleted);
                clientPers.GetEmployeeViewsPagingAsync(pageIndex, pageSize, "EMPLOYEECNAME",
                    filter, paras, pageCount, sType, sValue, SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID);
            }
        }
开发者ID:JuRogn,项目名称:OA,代码行数:59,代码来源:OrganizationLookup.xaml.cs

示例15: BindGrid

        /// <summary>
        /// 根据查询条件,调用WCF服务获取数据,以便加载数据列表
        /// </summary>
        private void BindGrid()
        {
            string filter = "";
            System.Collections.ObjectModel.ObservableCollection<object> paras = new System.Collections.ObjectModel.ObservableCollection<object>();

            if (lkEmpName.DataContext != null)
            {
                SMT.Saas.Tools.PersonnelWS.T_HR_EMPLOYEE ent = lkEmpName.DataContext as SMT.Saas.Tools.PersonnelWS.T_HR_EMPLOYEE;

                if (!string.IsNullOrEmpty(ent.EMPLOYEEID))
                {
                    paras.Add(ent.EMPLOYEECNAME);
                }
            }
            string strAttendanceSolutionID = string.Empty, strAssignedObjectType = string.Empty, strSortKey = string.Empty, strOwnerID = string.Empty, strCheckState = string.Empty;
            int pageIndex = 0, pageSize = 0, pageCount = 0;

            strOwnerID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID;
            strSortKey = " NOATTENDCARDEMPLOYEESID ";
            CheckInputFilter(ref strAttendanceSolutionID, ref strAssignedObjectType, ref strCheckState);
            pageIndex = dataPager.PageIndex;
            pageSize = dataPager.PageSize;
            if (strCheckState == Convert.ToInt32(CheckStates.All).ToString()) strCheckState = "";

            //clientAtt.GetNoAttendCardEmployeesPagingAsync(strOwnerID, strCheckState, strAttendanceSolutionID, strAssignedObjectType, strSortKey, pageIndex, pageSize, pageCount);
            clientAtt.GetNoAttendCardEmployeesPagingAsync(dataPager.PageIndex, dataPager.PageSize, "STARTDATE", filter, paras, pageCount, Checkstate, SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID);
            loadbar.Start();
        }
开发者ID:JuRogn,项目名称:OA,代码行数:31,代码来源:NoAttendCardEmployees.xaml.cs


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