private void LoadData() { loadbar.Start(); //打开转动动画 int pageCount = 0; string filter = ""; //查询过滤条件 ObservableCollection <object> paras = new System.Collections.ObjectModel.ObservableCollection <object>(); //参数值 T_SYS_DICTIONARY StrContractLevel = cbContractLevel.SelectedItem as T_SYS_DICTIONARY; //合同级别 if (!string.IsNullOrEmpty(txtSearchID.Text.Trim())) //合同编号 { filter += "contractApp.contractApp.CONTRACTCODE ^@" + paras.Count().ToString(); paras.Add(txtSearchID.Text.Trim()); } if (!string.IsNullOrEmpty(txtSearchType.Text.Trim()))//标题 { if (!string.IsNullOrEmpty(filter)) { filter += " and "; } filter += "contractApp.contractApp.CONTRACTTITLE ^@" + paras.Count().ToString(); paras.Add(txtSearchType.Text.Trim()); } if (this.cbContractLevel.SelectedIndex > 0) //级别 { filter += "contractApp.contractApp.CONTRACTLEVEL ^@" + paras.Count().ToString(); paras.Add(StrContractLevel.DICTIONARYVALUE.ToString()); } SMT.SaaS.OA.UI.SmtOADocumentAdminService.LoginUserInfo loginUserInfo = new SMT.SaaS.OA.UI.SmtOADocumentAdminService.LoginUserInfo(); loginUserInfo.companyID = Common.CurrentLoginUserInfo.UserPosts[0].CompanyID; loginUserInfo.userID = Common.CurrentLoginUserInfo.EmployeeID; caswsc.GetInquiryContractPrintingRecordAsync(dpGrid.PageIndex, dpGrid.PageSize, "contractApp.contractApp.CREATEDATE", filter, paras, pageCount, loginUserInfo); }
private void Initialize() { m_border = new Border(); getFolio(); double tres = 28.77; string ese = tres.ToString(); cities.Add(new City() { Codigo = "1", Forma = "Contado" }); cities.Add(new City() { Codigo = "2", Forma = "Crédito" }); DataContext = cities; tabla.Columns.Add("Id", typeof(string)); tabla.Columns.Add("Renglon", typeof(int)); tabla.Columns.Add("Codigo", typeof(string)); tabla.Columns.Add("Descripcion", typeof(string)); tabla.Columns.Add("Cantidad", typeof(string)); tabla.Columns.Add("Preciolista", typeof(string)); tabla.Columns.Add("Nivel", typeof(string)); tabla.Columns.Add("Precioventa", typeof(string)); tabla.Columns.Add("PrecioExtendido", typeof(string)); tabla.Columns.Add("Medida", typeof(string)); llenarConsulta(); }
private void LoadData() { int pageCount = 0; string filter = ""; //查询过滤条件 ObservableCollection <object> paras = new System.Collections.ObjectModel.ObservableCollection <object>(); //参数值 if (!string.IsNullOrEmpty(txtSearchType.Text.Trim())) { if (!string.IsNullOrEmpty(filter)) { filter += " and "; } filter += "T_OA_ARCHIVES.RECORDTYPE ^@" + paras.Count().ToString(); paras.Add(txtSearchType.Text.Trim()); } if (!string.IsNullOrEmpty(txtSearchTitle.Text.Trim())) { if (!string.IsNullOrEmpty(filter)) { filter += " and "; } filter += "T_OA_ARCHIVES.ARCHIVESTITLE ^@" + paras.Count().ToString(); paras.Add(txtSearchTitle.Text.Trim()); } loadbar.Start(); client.GetReturnListByUserIdAsync(dataPager.PageIndex, dataPager.PageSize, "CREATEDATE descending", filter, paras, pageCount, Common.CurrentLoginUserInfo.EmployeeID); }
private void LoadData() { int pageCount = 0; string filter = ""; //查询过滤条件 ObservableCollection <object> paras = new System.Collections.ObjectModel.ObservableCollection <object>(); //参数值 //filter += "licenseUser.CREATEUSERID==@" + paras.Count().ToString(); //paras.Add(Common.CurrentLoginUserInfo.EmployeeID); if (!string.IsNullOrEmpty(txtLicenseName.Text.Trim())) { if (!string.IsNullOrEmpty(filter)) { filter += " and "; } filter += "T_OA_LICENSEMASTER.LICENSENAME ^@" + paras.Count().ToString(); paras.Add(txtLicenseName.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.SmtOADocumentAdminService.LoginUserInfo loginUserInfo = new SMT.SaaS.OA.UI.SmtOADocumentAdminService.LoginUserInfo(); loginUserInfo.companyID = Common.CurrentLoginUserInfo.UserPosts[0].CompanyID; loginUserInfo.userID = Common.CurrentLoginUserInfo.EmployeeID; loadbar.Start(); client.GetLicenseBorrowListAsync(dataPager.PageIndex, dataPager.PageSize, "CREATEDATE descending", filter, paras, pageCount, checkState, loginUserInfo); }
private void LoadData() { loadbar.Start(); int pageCount = 0; string filter = ""; System.Collections.ObjectModel.ObservableCollection <string> paras = new System.Collections.ObjectModel.ObservableCollection <string>(); TextBox txtName = Utility.FindChildControl <TextBox>(expander, "txtName"); TextBox txtBlackIdCard = Utility.FindChildControl <TextBox>(expander, "txtBlackIdCard"); if (txtName != null && !string.IsNullOrEmpty(txtName.Text.Trim())) { // filter += "NAME==@" + paras.Count().ToString(); filter += " @" + paras.Count().ToString() + ".Contains(NAME)"; paras.Add(txtName.Text.Trim()); } if (txtBlackIdCard != null && !string.IsNullOrEmpty(txtBlackIdCard.Text.Trim())) { if (!string.IsNullOrEmpty(filter)) { filter += " and "; } //filter += "IDCARDNUMBER==@" + paras.Count().ToString(); filter += " @" + paras.Count().ToString() + ".Contains(IDCARDNUMBER)"; paras.Add(txtBlackIdCard.Text.Trim()); } client.GetBlackListPagingAsync(dataPager.PageIndex, dataPager.PageSize, "NAME", filter, paras, pageCount, SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID); }
private void LoadData() { int pageCount = 0; string filter = ""; //查询过滤条件 ObservableCollection <object> paras = new System.Collections.ObjectModel.ObservableCollection <object>(); //参数值 //TextBox txtOrgCode = Utility.FindChildControl<TextBox>(controlsToolkitTUV, "txtOrgCode"); //TextBox txtLicenseName = Utility.FindChildControl<TextBox>(controlsToolkitTUV, "txtLicenseName"); if (!string.IsNullOrEmpty(txtOrgCode.Text.Trim())) { filter += "T_OA_ORGANIZATION.ORGCODE ==@" + paras.Count().ToString(); paras.Add(txtOrgCode.Text.Trim()); } if (!string.IsNullOrEmpty(txtLicenseName.Text.Trim())) { if (!string.IsNullOrEmpty(filter)) { filter += " and "; } filter += "LICENSENAME ==@" + paras.Count().ToString(); paras.Add(txtLicenseName.Text); } if (!string.IsNullOrEmpty(filter)) { filter += " and "; } filter += "ISVALID==@" + paras.Count().ToString(); paras.Add("1"); loadbar.Start(); client.GetLicenseListPagingAsync(dataPager.PageIndex, dataPager.PageSize, "CREATEDATE descending", filter, paras, pageCount, Common.CurrentLoginUserInfo.EmployeeID); }
private void SearchButton_Click(object sender, RoutedEventArgs e) { string filter = " 1=1 "; int pageCount = 0; ObservableCollection <object> paras = new System.Collections.ObjectModel.ObservableCollection <object>(); //参数值 ComboBox cbxSystemType = Utility.FindChildControl <ComboBox>(expander, "cbxSystemType"); //T_SYS_DICTIONARY dict = cbxSystemType.SelectedItem as T_SYS_DICTIONARY; //string systype = dict == null ? "" : dict.DICTIONARYVALUE.GetValueOrDefault().ToString(); string parentid = ""; LookUp lkParentMenu = Utility.FindChildControl <LookUp>(expander, "lkParentMenu"); T_SYS_ENTITYMENU menu = lkParentMenu.DataContext as T_SYS_ENTITYMENU; if (!string.IsNullOrEmpty(StrSystemType)) { filter += " && SYSTEMTYPE ==@" + paras.Count().ToString(); paras.Add(StrSystemType); } if (menu != null) { parentid = menu.ENTITYMENUID; if (!string.IsNullOrEmpty(parentid)) { filter += " && T_SYS_ENTITYMENU2!=null && T_SYS_ENTITYMENU2.ENTITYMENUID ==@" + paras.Count().ToString(); paras.Add(parentid); } } SMT.Saas.Tools.PermissionWS.LoginUserInfo loginUserInfo = new SMT.Saas.Tools.PermissionWS.LoginUserInfo(); loginUserInfo.companyID = Common.CurrentLoginUserInfo.UserPosts[0].CompanyID; loginUserInfo.userID = Common.CurrentLoginUserInfo.EmployeeID; //loadbar.Start(); RefreshUI(RefreshedTypes.ShowProgressBar); client.GetSysMenuByTypePagingAsync(0, 500, "ORDERNUMBER", filter, paras, pageCount, loginUserInfo); }
private static System.Collections.ObjectModel.ObservableCollection <object> Get_e_15_Items() { System.Collections.ObjectModel.ObservableCollection <object> items = new System.Collections.ObjectModel.ObservableCollection <object>(); // e_16 element ListBoxItem e_16 = new ListBoxItem(); e_16.Name = "e_16"; e_16.Content = "Selection 1"; items.Add(e_16); // e_17 element ListBoxItem e_17 = new ListBoxItem(); e_17.Name = "e_17"; e_17.Content = "Selection 2"; items.Add(e_17); // e_18 element ListBoxItem e_18 = new ListBoxItem(); e_18.Name = "e_18"; e_18.Content = "Selection 3"; items.Add(e_18); // e_19 element ListBoxItem e_19 = new ListBoxItem(); e_19.Name = "e_19"; e_19.Content = "Selection 4"; items.Add(e_19); return(items); }
private void LoadData() { loadbar.Start(); //打开转动动画 int pageCount = 0; string filter = ""; //查询过滤条件 ObservableCollection <object> paras = new System.Collections.ObjectModel.ObservableCollection <object>(); //参数值 if (!string.IsNullOrEmpty(txtProvisionName.Text.Trim())) //福利发放名 { if (!string.IsNullOrEmpty(filter)) { filter += " and "; } filter += "welfareProvision.WELFAREDISTRIBUTETITLE ^@" + paras.Count().ToString(); paras.Add(txtProvisionName.Text.Trim()); } if (!string.IsNullOrEmpty(txtProvisionContent.Text.Trim()))//发放内容 { if (!string.IsNullOrEmpty(filter)) { filter += " and "; } filter += "welfareProvision.CONTENT ^@" + paras.Count().ToString(); paras.Add(txtProvisionContent.Text.Trim()); } SMT.SaaS.OA.UI.SmtOADocumentAdminService.LoginUserInfo loginUserInfo = new SMT.SaaS.OA.UI.SmtOADocumentAdminService.LoginUserInfo(); loginUserInfo.companyID = Common.CurrentLoginUserInfo.UserPosts[0].CompanyID; loginUserInfo.userID = Common.CurrentLoginUserInfo.EmployeeID; BenefitsAdministration.GetWelfarePaymentWithdrawalAsync(dpGrid.PageIndex, dpGrid.PageSize, "beingWithdrawn.CHECKSTATE", filter, paras, pageCount, checkState, loginUserInfo); }
void LoadPerFormace() { TextBox txtCname = Utility.FindChildControl <TextBox>(expander, "txtEmpName"); TextBox txtCode = Utility.FindChildControl <TextBox>(expander, "txtEmpCode"); int pageCount = 0; string filter = ""; System.Collections.ObjectModel.ObservableCollection <string> paras = new System.Collections.ObjectModel.ObservableCollection <string>(); if (!string.IsNullOrEmpty(txtCname.Text)) { filter = " EMPLOYEECNAME==@" + paras.Count(); paras.Add(txtCname.Text); } if (!string.IsNullOrEmpty(txtCode.Text)) { if (!string.IsNullOrEmpty(filter)) { filter += " and "; } filter += " EMPLOYEECODE==@" + paras.Count(); paras.Add(txtCode.Text); } if (!string.IsNullOrEmpty(filter)) { filter += " and "; } filter += " T_HR_PERFORMANCERECORD.T_HR_SUMPERFORMANCERECORD.SUMID==@" + paras.Count(); paras.Add(SumPerformance.SUMID); client.GetPerformanceEmployeeAllPagingAsync(dataPagerPerformance.PageIndex, dataPagerPerformance.PageSize, "EMPLOYEECNAME", filter, paras, pageCount, SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID); }
private void LoadData() { int pageCount = 0; string filter = ""; //查询过滤条件 ObservableCollection <object> paras = new System.Collections.ObjectModel.ObservableCollection <object>(); //参数值 if (!string.IsNullOrEmpty(txtOrgCode.Text.Trim())) { if (!string.IsNullOrEmpty(filter)) { filter += " and "; } filter += "ORGCODE ^@" + paras.Count().ToString(); paras.Add(txtOrgCode.Text.Trim()); } if (!string.IsNullOrEmpty(txtOrgName.Text.Trim())) { if (!string.IsNullOrEmpty(filter)) { filter += " and "; } filter += "ORGNAME ^@" + paras.Count().ToString(); paras.Add(txtOrgName.Text.Trim()); } SMT.SaaS.OA.UI.SmtOADocumentAdminService.LoginUserInfo loginUserInfo = new SMT.SaaS.OA.UI.SmtOADocumentAdminService.LoginUserInfo(); loginUserInfo.companyID = Common.CurrentLoginUserInfo.UserPosts[0].CompanyID; loginUserInfo.userID = Common.CurrentLoginUserInfo.EmployeeID; loadbar.Start(); client.GetOrganListAsync(dataPager.PageIndex, dataPager.PageSize, "CREATEDATE descending", filter, paras, pageCount, checkState, loginUserInfo); }
private void LoadData() { int pageCount = 0; string filter = ""; System.Collections.ObjectModel.ObservableCollection <object> paras = new System.Collections.ObjectModel.ObservableCollection <object>(); filter += "CHECKSTATE==@" + 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 += "EMPLOYEENAME==@" + paras.Count().ToString(); paras.Add(txtEmpName.Text.Trim()); } client.EmployeeEvectionReportPagingAsync(dataPager.PageIndex, dataPager.PageSize, "EMPLOYEECODE", filter, paras, pageCount); loadbar.Start(); }
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); }
private void RefreshParameters() { EditableParameters = new System.Collections.ObjectModel.ObservableCollection <ProviderParameter>(); var definition = DeploymentProvider; if (definition != null) { // our provider parameters are stored in config as a key value pair, but edited as an intermediate provider parameter with full metadata var providerParams = definition.ProviderParameters.Where(p => p.IsCredential == false).ToList(); foreach (var pa in providerParams) { if (SelectedItem?.Parameters.Exists(p => p.Key == pa.Key) == true) { pa.Value = SelectedItem.Parameters.FirstOrDefault(p => p.Key == pa.Key)?.Value; EditableParameters.Add(pa); } else { EditableParameters.Add(pa); } } var toRemove = SelectedItem.Parameters.ToList().Where(p => !providerParams.Any(pp => pp.Key == p.Key)); foreach (var r in toRemove) { SelectedItem.Parameters.Remove(r); } } }
public MainWindow() { InitializeComponent(); ObservableCollection <CatalogOfEffect> ltCatalogs = new System.Collections.ObjectModel.ObservableCollection <CatalogOfEffect>(); ltCatalogs.Add(new CatalogOfEffect() { Name = "淡入动效", Key = "AnimFadeIn" }); ltCatalogs.Add(new CatalogOfEffect() { Name = "淡出动效", Key = "AnimFadeOut" }); ltCatalogs.Add(new CatalogOfEffect() { Name = "翻转动效", Key = "AnimFlip" }); ltCatalogs.Add(new CatalogOfEffect() { Name = "爆炸动效", Key = "AnimExpo" }); this.LmxBinding.ItemsSource = ltCatalogs; this.Loaded += MainWindow_Loaded; this.Closing += MainWindow_Closing; }
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 += "T_HR_EMPLOYEE.EMPLOYEECNAME==@" + 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); }
private void LoadData() { loadbar.Start(); int pageCount = 0; string filter = ""; System.Collections.ObjectModel.ObservableCollection <object> paras = new System.Collections.ObjectModel.ObservableCollection <object>(); TextBox txtPostCode = Utility.FindChildControl <TextBox>(expander, "txtPostCode"); if (txtPostCode != null) { if (!string.IsNullOrEmpty(txtPostCode.Text)) { if (!string.IsNullOrEmpty(filter)) { filter += " and "; } //filter += "POSTCODE==@" + paras.Count().ToString(); filter += " @" + paras.Count().ToString() + ".Contains(POSTCODE)"; paras.Add(txtPostCode.Text.Trim()); } } TextBox txtPostName = Utility.FindChildControl <TextBox>(expander, "txtPostName"); if (txtPostName != null) { if (!string.IsNullOrEmpty(txtPostName.Text)) { if (!string.IsNullOrEmpty(filter)) { filter += " and "; } filter += " @" + paras.Count().ToString() + ".Contains(POSTNAME)"; paras.Add(txtPostName.Text.Trim()); } } //ComboBox cbxDepName = Utility.FindChildControl<ComboBox>(expander, "cbxDepName"); AutoCompleteComboBox acbDepName = Utility.FindChildControl <AutoCompleteComboBox>(expander, "acbDepName"); if (acbDepName != null) { if (acbDepName.SelectedItem != null) { T_HR_DEPARTMENTDICTIONARY ent = acbDepName.SelectedItem as T_HR_DEPARTMENTDICTIONARY; if (!string.IsNullOrEmpty(ent.DEPARTMENTDICTIONARYID)) { if (!string.IsNullOrEmpty(filter)) { filter += " and "; } filter += "T_HR_DEPARTMENTDICTIONARY.DEPARTMENTDICTIONARYID==@" + paras.Count().ToString(); paras.Add(ent.DEPARTMENTDICTIONARYID); } } } client.PostDictionaryPagingAsync(dataPager.PageIndex, dataPager.PageSize, "POSTCODE", filter, paras, pageCount, SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID, Checkstate); }
private static System.Collections.ObjectModel.ObservableCollection <object> Get_e_9_Items() { System.Collections.ObjectModel.ObservableCollection <object> items = new System.Collections.ObjectModel.ObservableCollection <object>(); // e_10 element TabItem e_10 = new TabItem(); e_10.Name = "e_10"; e_10.HorizontalContentAlignment = HorizontalAlignment.Stretch; e_10.Header = "Tab 1"; // e_11 element ListBox e_11 = new ListBox(); e_10.Content = e_11; e_11.Name = "e_11"; e_11.Height = 100F; Func <UIElement, UIElement> e_11_dtFunc = e_11_dtMethod; e_11.ItemTemplate = new DataTemplate(e_11_dtFunc); Binding binding_e_11_ItemsSource = new Binding("ComboBoxSource"); e_11.SetBinding(ListBox.ItemsSourceProperty, binding_e_11_ItemsSource); Binding binding_e_11_SelectedItem = new Binding("SelectedItem"); e_11.SetBinding(ListBox.SelectedItemProperty, binding_e_11_SelectedItem); items.Add(e_10); // e_13 element TabItem e_13 = new TabItem(); e_13.Name = "e_13"; e_13.Header = "Tab 2"; // e_14 element StackPanel e_14 = new StackPanel(); e_13.Content = e_14; e_14.Name = "e_14"; // e_15 element ListBox e_15 = new ListBox(); e_14.Children.Add(e_15); e_15.Name = "e_15"; e_15.Height = 100F; e_15.ItemsSource = Get_e_15_Items(); items.Add(e_13); // e_20 element TabItem e_20 = new TabItem(); e_20.Name = "e_20"; e_20.Content = "Tab 3 Content"; e_20.Header = "Tab 3"; items.Add(e_20); // e_21 element TabItem e_21 = new TabItem(); e_21.Name = "e_21"; e_21.Content = "Tab 4 Content"; e_21.Header = "Tab 4"; items.Add(e_21); return(items); }
/// <summary> /// 在画布上画网格 /// </summary> public void DrawGrid() { //移除所有网格 foreach (var l in lines) { this.BackCanvas.Children.Remove(l); } var w = double.IsNaN(this.BackCanvas.Width) ? this.BackCanvas.MinWidth : this.BackCanvas.Width; var h = double.IsNaN(this.BackCanvas.Height) ? this.BackCanvas.MinHeight : this.BackCanvas.Height; Helper.Config.ColumnCount = (int)(w / Helper.Config.GridSize.Width); //列数 Helper.Config.RowCount = (int)(h / Helper.Config.GridSize.Height); //行数 var vheight = Helper.Config.RowCount * Helper.Config.GridSize.Height; var hwidth = Helper.Config.ColumnCount * Helper.Config.GridSize.Width; var rectLeft = (w - hwidth) / 2; var rectTop = (h - vheight) / 2; //画列 for (double i = 0; i <= Helper.Config.ColumnCount; i++) { var l = new Line(); l.Width = 1; l.StrokeThickness = 1; l.Stroke = gridColor; l.StrokeDashArray.Add(2); var left = i * Helper.Config.GridSize.Width + rectLeft; l.SetValue(Canvas.LeftProperty, left); l.SetValue(Canvas.TopProperty, rectTop); l.Height = l.Y2 = vheight; l.SetValue(Canvas.ZIndexProperty, Helper.ShapZIndex.Grid.GetHashCode()); this.BackCanvas.Children.Add(l); lines.Add(l); } //画行 for (double i = 0; i <= Helper.Config.RowCount; i++) { var l = new Line(); l.Height = 1; l.StrokeThickness = 1; l.Stroke = gridColor; l.StrokeDashArray.Add(2); var top = i * Helper.Config.GridSize.Height + rectTop; l.SetValue(Canvas.TopProperty, top); l.SetValue(Canvas.LeftProperty, rectLeft); l.Width = l.X2 = hwidth; l.SetValue(Canvas.ZIndexProperty, Helper.ShapZIndex.Grid.GetHashCode()); this.BackCanvas.Children.Add(l); lines.Add(l); } ///网络距型 GridRect = new Rect(rectLeft, rectTop, hwidth, vheight); ResetPosition();//重新定位 }
private void LoadData() { loadbar.Start(); int pageCount = 0; string filter = ""; string strState = ""; System.Collections.ObjectModel.ObservableCollection <object> paras = new System.Collections.ObjectModel.ObservableCollection <object>(); if (Checkstate != Convert.ToInt32(CheckStates.All).ToString()) { strState = Checkstate; } //根据部门过滤 ComboBox cbxDepName = Utility.FindChildControl <ComboBox>(expander, "cbxDepName"); if (cbxDepName != null) { if (cbxDepName.SelectedIndex > 0) { T_HR_DEPARTMENT temp = cbxDepName.SelectedItem as T_HR_DEPARTMENT; filter += "T_HR_DEPARTMENT.DEPARTMENTID==@" + paras.Count().ToString(); paras.Add(temp.DEPARTMENTID); } } //根据公司过滤 ComboBox cbxCpyName = Utility.FindChildControl <ComboBox>(expander, "cbxCpyName"); if (cbxCpyName != null) { if (cbxCpyName.SelectedIndex > 0) { if (!string.IsNullOrEmpty(filter)) { filter += " and "; } T_HR_COMPANY temp = cbxCpyName.SelectedItem as T_HR_COMPANY; filter += " T_HR_DEPARTMENT.T_HR_COMPANY.COMPANYID==@" + paras.Count().ToString(); paras.Add(temp.COMPANYID); } } TextBox txtEmpName = Utility.FindChildControl <TextBox>(expander, "txtEmpName"); if (txtEmpName != null) { if (!string.IsNullOrEmpty(txtEmpName.Text)) { if (!string.IsNullOrEmpty(filter)) { filter += " and "; } //filter += "T_HR_POSTDICTIONARY.POSTNAME==@" + paras.Count().ToString(); filter += " @" + paras.Count().ToString() + ".Contains(T_HR_POSTDICTIONARY.POSTNAME)"; paras.Add(txtEmpName.Text.Trim()); } } client.PostPagingAsync(dataPager.PageIndex, dataPager.PageSize, "T_HR_DEPARTMENT.T_HR_DEPARTMENTDICTIONARY.DEPARTMENTNAME", filter, paras, pageCount, SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID, strState); }
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 += "DEPARTMENTCODE==@" + 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 += "DEPARTMENTNAME==@" + 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 += "DEPARTMENTTYPE==@" + 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); }
//加载数据 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); }
void LoadData() { loadbar.Start(); int pageCount = 0; string filter = ""; System.Collections.ObjectModel.ObservableCollection <string> paras = new System.Collections.ObjectModel.ObservableCollection <string>(); TextBox txtEmpName = Utility.FindChildControl <TextBox>(expander, "txtEmpName"); TextBox txtEmpCode = Utility.FindChildControl <TextBox>(expander, "txtEmpCode"); if (!string.IsNullOrEmpty(txtEmpCode.Text.Trim())) { //filter += "EMPLOYEECODE==@" + paras.Count().ToString(); filter += " @" + paras.Count().ToString() + ".Contains(EMPLOYEECODE)"; paras.Add(txtEmpCode.Text.Trim()); } 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 = ""; TreeViewItem selectedItem = treeOrganization.SelectedItem as TreeViewItem; if (selectedItem != null) { string IsTag = selectedItem.Tag.ToString(); switch (IsTag) { case "Company": OrganizationWS.T_HR_COMPANY company = selectedItem.DataContext as OrganizationWS.T_HR_COMPANY; sType = "Company"; sValue = company.COMPANYID; break; case "Department": OrganizationWS.T_HR_DEPARTMENT department = selectedItem.DataContext as OrganizationWS.T_HR_DEPARTMENT; sType = "Department"; sValue = department.DEPARTMENTID; break; case "Post": OrganizationWS.T_HR_POST post = selectedItem.DataContext as OrganizationWS.T_HR_POST; sType = "Post"; sValue = post.POSTID; break; } } // client.GetEmployeeViewsActivedPagingAsync(dataPager.PageIndex, dataPager.PageSize,"EMPLOYEECNAME", filter, paras, pageCount, sType, sValue,SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID); client.GetEmployeeViewsPagingAsync(dataPager.PageIndex, dataPager.PageSize, "EMPLOYEECNAME", filter, paras, pageCount, sType, sValue, SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID); }
void LoadData() { string filter = ""; System.Collections.ObjectModel.ObservableCollection <object> paras = new System.Collections.ObjectModel.ObservableCollection <object>(); if (StrCompanyIDsList.Count() > 0) { StrCompanyIDsList.ForEach(item => { if (!string.IsNullOrEmpty(filter)) { filter += " or "; filter += " OWNERCOMPANYID==@" + paras.Count().ToString(); paras.Add(item); } else { filter += " OWNERCOMPANYID==@" + paras.Count().ToString(); paras.Add(item); } }); } DateTime dtLandStart = new DateTime(); DateTime dtLandEnd = new DateTime(); DateTime.TryParse(nuYear.Value.ToString() + "-" + nuMonth.Value.ToString() + "-1", out dtLandStart); DateTime.TryParse(nuYear.Value.ToString() + "-" + nuMonth.Value + "-1", out dtLandEnd); dtLandEnd = dtLandEnd.AddMonths(1); loadbar.Start(); if (string.IsNullOrEmpty(ReportsType)) { personClient.GetEmployeeBasicInfosByCompanyAsync(StrCompanyIDsList, "COMPANYNAME,DEPARTMENTNAME", filter, paras, SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID, sType, dtLandStart, dtLandEnd); } else { loadbar.Stop(); } //switch (ReportsType) //{ // case "1": // break; // case "2": // //personClient.ExportEmployeeTructReportsAsync(StrCompanyIDsList, "CREATEDATE", filter, paras, SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID, sValue, System.DateTime.Now); // personClient.ExportEmployeeTructReportsAsync(StrCompanyIDsList, "CREATEDATE", filter, paras, SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID, sValue, dtLandStart, dtLandEnd); // break; // case "3": // personClient.ExportEmployeeCollectsReportsAsync("", filter, paras, SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID, sValue, dtLandStart, dtLandEnd); // break; // default: // personClient.GetEmployeeBasicInfosByCompanyAsync(StrCompanyIDsList, "COMPANYNAME,DEPARTMENTNAME", filter, paras, SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID, sType, dtLandStart, dtLandEnd); // //personClient.ExportEmployeeBasicInfosByCompanyReportsAsync(StrCompanyIDsList, "CREATEDATE", filter, paras, SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID, sType); // break; //} }
private void LoadData() { loadbar.Start(); //打开转动动画 int pageCount = 0; string filter = ""; //查询过滤条件 ObservableCollection <object> paras = new System.Collections.ObjectModel.ObservableCollection <object>(); //参数值 if (!string.IsNullOrEmpty(txtNoClaims.Text.Trim())) //报销单号 { if (!string.IsNullOrEmpty(filter)) { filter += " and "; } filter += "NoClaims =@" + paras.Count().ToString(); paras.Add(txtNoClaims.Text.Trim()); } if (!string.IsNullOrEmpty(SearchUserID))//出差人 { if (!string.IsNullOrEmpty(filter)) { filter += " and "; } filter += "Travelmanagement.OWNERID =@" + paras.Count().ToString(); paras.Add(SearchUserID); } //if (!string.IsNullOrEmpty(postId))//岗位ID //{ // if (!string.IsNullOrEmpty(filter)) // { // filter += " and "; // } // filter += "Travelmanagement.OWNERPOSTID =@" + paras.Count().ToString(); // paras.Add(postId); //} if (!string.IsNullOrEmpty(StartTime.Text.Trim()))//开始时间 { if (!string.IsNullOrEmpty(filter)) { filter += " and "; } filter += "Travelmanagement.CREATEDATE >=@" + paras.Count().ToString(); paras.Add(DateTime.Parse(StartTime.Text.Trim())); } if (!string.IsNullOrEmpty(EndTime.Text.Trim()))//结束时间 { if (!string.IsNullOrEmpty(filter)) { filter += " and "; } filter += "Travelmanagement.CREATEDATE <=@" + paras.Count().ToString(); paras.Add(DateTime.Parse(EndTime.Text.Trim())); } SMT.SaaS.OA.UI.SmtOAPersonOfficeService.LoginUserInfo loginUserInfo = new SMT.SaaS.OA.UI.SmtOAPersonOfficeService.LoginUserInfo(); loginUserInfo.companyID = Common.CurrentLoginUserInfo.UserPosts[0].CompanyID; loginUserInfo.userID = Common.CurrentLoginUserInfo.EmployeeID; Travelmanagement.GetTravelmanagementListByUserIdAsync(dpGrid.PageIndex, dpGrid.PageSize, "Travelmanagement.CREATEDATE descending", filter, paras, pageCount, checkState, loginUserInfo); }
//加载数据 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); }
private void LoadFristData() { loadbar.Start(); int pageCount = 0; itemsAll.Clear(); string filter = ""; int sType = 0; string sValue = ""; list = null; DateTime?starttimes; DateTime?endtimes = DateTime.Now.Date; System.Collections.ObjectModel.ObservableCollection <string> paras = new System.Collections.ObjectModel.ObservableCollection <string>(); string strState = Convert.ToInt32(CheckStates.Approved).ToString(); int year, month; year = DateTime.Now.Year; month = DateTime.Now.Month - 1; if (DateTime.Now.Month <= 1) { year = DateTime.Now.Year - 1; month = 12; } starttimes = new DateTime(year, month, 1); endtimes = new DateTime(year, month, DateTime.DaysInMonth(year, month)); sType = 0; sValue = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.UserPosts[0].CompanyID; filter += " EMPLOYEENAME.Contains(@" + paras.Count().ToString() + ")"; paras.Add(SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeName); if (!string.IsNullOrEmpty(userID)) { if (!string.IsNullOrEmpty(filter)) { filter += " and "; } filter += " PAYCONFIRM==@" + paras.Count().ToString(); paras.Add("2"); } if (!string.IsNullOrEmpty(userID)) { if (!string.IsNullOrEmpty(filter)) { filter += " and "; } //filter += "EMPLOYEEID==@" + paras.Count().ToString(); //paras.Add(userID); //filter += " OR EMPLOYEEID==@" + paras.Count().ToString(); //paras.Add(userID); //filter += " AND PAYCONFIRM==@" + paras.Count().ToString(); filter += " OWNERID==@" + paras.Count().ToString(); paras.Add(userID); } client.GetMenuSignAutoEmployeeSalaryRecordPagingsAsync(dataPager.PageIndex, dataPager.PageSize, "EMPLOYEESALARYRECORDID", filter, paras, pageCount, Convert.ToDateTime(starttimes), Convert.ToDateTime(endtimes), sType, sValue, strState, userID, "PAYSALARYHISTORY"); }
//加载数据 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.Sel_VCCheckedsAsync(pageIndex, dataPager.PageSize, "UPDATEDATE", "", paras, pageCount, Common.CurrentLoginUserInfo.EmployeeID, null, "2"); }
//加载数据 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"); }
/// <summary> /// Initializes a new instance of the <see cref="ViewModel" /> class. /// </summary> public ViewModel() { saveAsCommand = new DelegateCommand <object>(ExecuteSaveAsCommand); openCommand = new DelegateCommand <object>(ExecuteOpenCommand); closeCommand = new DelegateCommand <object>(ExecuteCloseCommand); backStageExitCommand = new DelegateCommand <object>(ExecuteBackStageExitCommand); onlineHelpCommand = new DelegateCommand <object>(ExecuteOnlineHelpCommand); inHelpGettingStartedCommand = new DelegateCommand <object>(ExecuteGettingStartedCommand); returnToEditorCommand = new DelegateCommand <object>(ExecuteReturnToEditorCommand); buttonCommand = new DelegateCommand <object>(ButtonCommandExecute); dropdownCommand = new DelegateCommand <object>(DropDownCommandExecute); ribbonComboBoxCommand = new DelegateCommand <object>(ExecuteRibbonComboBoxCommand); setEnableTouchCommand = new DelegateCommand <object>(ExecuteSetEnableTouchCommand); removeEnableTouchCommand = new DelegateCommand <object>(ExecuteRemoveEnableTouchCommand); openModelTabCommand = new DelegateCommand <object>(ExecuteOpenModelTabCommand); closeModelTabCommand = new DelegateCommand <object>(ExecuteCloseModelTabCommand); flowDirectionCommand = new DelegateCommand <object>(ExecuteFlowDirectionCommand); splashWindowLoadedCommand = new DelegateCommand <object>(ExecuteSplashWindowLoadedCommand); mainWindowClosedCommand = new DelegateCommand <object>(ExecuteMainWindowClosedCommand); ribbonDisableCommand = new DelegateCommand <object>(ExecuteRibbonDisableCommand); simpleButtonsBarIsEnableProperty = true; var items = new System.Collections.ObjectModel.ObservableCollection <Model>(); items.Add(getSlideItem("Tools WPF Controls", "")); items.Add(getSlideItem("Ribbon", "Our collection of Office 2007-style UI controls let you create Office-style menus, toolbars, window frames, etc. Bringing your application UI on par with industry standards and leaders has never been easier.")); items.Add(getSlideItem("DockingManager", "The docking manager provides VS.NET-style docked container support to your application. Dock panels can be docked, floated, auto-hidden, etc. Based on a proven VS.NET-style architecture, your end users can interact with it in a very intuitive fashion. The layout can be set up easily in code or in XAML.")); items.Add(getSlideItem("TabControlExt ", "The TabControlExt control provides a simple and intuitive interface for a tab-based navigation system. ")); items.Add(getSlideItem("Carousel", "The Carousel control provides a 3-D interface for displaying objects in a rich visual manner that allows users to quickly navigate through data visually. ")); items.Add(getSlideItem("Document Container", "If you missed the traditional multiple document interface (MDI) user interface in WPF, the MDI support in our document container framework comes to the rescue. You can also use the tabbed document interface (TDI) framework to build the latest VS 2010-style tabbed document interfaces.")); items.Add(getSlideItem("Skin Manager", "The skin manager is a great utility that allows you to apply a uniform skin on all the controls in your application for both Syncfusion and other WPF controls. There are also several built-in skins that provide multiple options for creating a very professional look and feel for your applications.")); items.Add(getSlideItem("TileView", "The TileView control acts as a container that holds a set of items to host information that can be maximized or minimized to provide an organized view of data.")); items.Add(getSlideItem("TreeViewAdv", "The TreeViewAdv control provides all the advanced capabilities that are missing in the framework version. Advanced features such as multiple columns, drag-and-drop, multi-node selection, and inline editing support are also available. It also has a feature for adding images, and it contains the built-in ability to perform item sorting on a tree view.")); items.Add(getSlideItem("Input Controls", "Such as ButtonAdv control is a basic button control that can be used to design complex forms and applications. ")); SlideItems = items; int[] sizes = new int[15] { 8, 9, 10, 11, 12, 14, 16, 18, 20, 22, 24, 28, 36, 48, 72 }; foreach (FontFamily fontFamily in Fonts.SystemFontFamilies) { FontFamilyList.Add(new Model() { FontFamily = fontFamily.ToString() }); } for (int i = 0; i < sizes.Length; i++) { FontSizeList.Add(new Model() { FontSize = sizes[i] }); } }
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 += "DEPARTMENTCODE==@" + 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 += "DEPARTMENTNAME==@" + 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 += "DEPARTMENTTYPE==@" + 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); }
//加载数据 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"); }
public void Save() { string filter = ""; System.Collections.ObjectModel.ObservableCollection <object> paras = new System.Collections.ObjectModel.ObservableCollection <object>(); filter += "MUSTSELECTED==@" + paras.Count().ToString(); paras.Add("1"); filter += " and CREATECOMPANYID==@" + paras.Count().ToString(); paras.Add(SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.UserPosts[0].CompanyID); client.SalarySolutionItemsAddAsync(filter, paras, savesid, SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID); FormType = FormTypes.Edit; }
//加载数据 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"); }
//加载数据 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); } }
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 += "T_HR_EMPLOYEE.EMPLOYEECNAME==@" + 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); }
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(); } }
//加载数据 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 >=@" + paras.Count().ToString();//开始时间 paras.Add(DtStart); filter += " and "; filter += "RequireMaster.CREATEDATE <=@" + 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); }
public void EditData() { int pageCount = 0; string filter = ""; System.Collections.ObjectModel.ObservableCollection<string> paras = new System.Collections.ObjectModel.ObservableCollection<string>(); filter += "MODELTYPE==@" + paras.Count().ToString(); paras.Add("4"); filter += " and PARAMETERVALUE==@" + paras.Count().ToString(); paras.Add(SMT.SaaS.FrameworkUI.Common.Utility.Encrypt(oldpwd.Password)); filter += " and OWNERID==@" + 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); }
private void LoadData() { int pageCount = 0; string filter = ""; System.Collections.ObjectModel.ObservableCollection<object> paras = new System.Collections.ObjectModel.ObservableCollection<object>(); filter += "CHECKSTATE==@" + 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 += "EMPLOYEENAME==@" + paras.Count().ToString(); paras.Add(txtEmpName.Text.Trim()); } client.EmployeeEvectionReportPagingAsync(dataPager.PageIndex, dataPager.PageSize, "EMPLOYEECODE", filter, paras, pageCount); loadbar.Start(); }
//加载数据 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); }
private void LoadData() { int pageCount = 0; string filter = ""; System.Collections.ObjectModel.ObservableCollection<object> paras = new System.Collections.ObjectModel.ObservableCollection<object>(); filter += "T_HR_POST.POSTID==@" + 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 += "CNAME==@" + paras.Count().ToString(); // paras.Add(txtEmpName.Text.Trim()); //} client.RelationPostPagingAsync(dataPager.PageIndex, dataPager.PageSize, "T_HR_POST.POSTID", filter, paras, pageCount); loadbar.Stop(); }
private void LoadData() { loadbar.Start();//打开转动动画 int pageCount = 0; string filter = ""; //查询过滤条件 ObservableCollection<object> paras = new System.Collections.ObjectModel.ObservableCollection<object>();//参数值 T_SYS_DICTIONARY StrContractLevel = cbContractLevel.SelectedItem as T_SYS_DICTIONARY;//合同级别 if (!string.IsNullOrEmpty(txtSearchID.Text.Trim())) //合同编号 { filter += "contractApp.contractApp.CONTRACTCODE ^@" + paras.Count().ToString(); paras.Add(txtSearchID.Text.Trim()); } if (!string.IsNullOrEmpty(txtSearchType.Text.Trim()))//标题 { if (!string.IsNullOrEmpty(filter)) { filter += " and "; } filter += "contractApp.contractApp.CONTRACTTITLE ^@" + paras.Count().ToString(); paras.Add(txtSearchType.Text.Trim()); } if (this.cbContractLevel.SelectedIndex > 0) //级别 { filter += "contractApp.contractApp.CONTRACTLEVEL ^@" + paras.Count().ToString(); paras.Add(StrContractLevel.DICTIONARYVALUE.ToString()); } SMT.SaaS.OA.UI.SmtOADocumentAdminService.LoginUserInfo loginUserInfo = new SMT.SaaS.OA.UI.SmtOADocumentAdminService.LoginUserInfo(); loginUserInfo.companyID = Common.CurrentLoginUserInfo.UserPosts[0].CompanyID; loginUserInfo.userID = Common.CurrentLoginUserInfo.EmployeeID; caswsc.GetInquiryContractPrintingRecordAsync(dpGrid.PageIndex, dpGrid.PageSize, "contractApp.contractApp.CREATEDATE", filter, paras, pageCount, loginUserInfo); }
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 += "CHECKSTATE==@" + 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 += "T_HR_EMPLOYEE.EMPLOYEENAME==@" + 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 += "CHECKSTATE==@" + 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); }
// 1e /// <summary> /// 读取列表信息 /// </summary> void LoadData() { loadbar.Start(); int pageCount = 0; string filter = "", sType = "", sValue = ""; System.Collections.ObjectModel.ObservableCollection<string> paras = new System.Collections.ObjectModel.ObservableCollection<string>(); if (myDetail) { // 1s 冉龙军 //filter += "APPRAISEEID==@" + paras.Count().ToString(); filter += "T_HR_KPIRECORD.APPRAISEEID==@" + paras.Count().ToString(); // 1e paras.Add(SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID); } else { TextBox txtEmpName = Utility.FindChildControl<TextBox>(expander, "txtEmpName"); TextBox txtEmpCode = Utility.FindChildControl<TextBox>(expander, "txtEmpCode"); if (!string.IsNullOrEmpty(txtEmpCode.Text.Trim())) { filter += "@" + paras.Count().ToString() + ".Contains(EMPLOYEECODE)"; ; paras.Add(txtEmpCode.Text.Trim()); } if (!string.IsNullOrEmpty(txtEmpName.Text.Trim())) { if (!string.IsNullOrEmpty(filter)) { filter += " and "; } filter += "@" + paras.Count().ToString() + ".Contains(EMPLOYEECNAME)"; ; paras.Add(txtEmpName.Text.Trim()); } sType = treeOrganization.sType; sValue = treeOrganization.sValue; if (string.IsNullOrEmpty(sType)) { loadbar.Stop(); 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; //} kpiClient.GetKPIRecordPagingAsync(dataPager.PageIndex, dataPager.PageSize, "T_HR_KPIRECORD.UPDATEDATE", filter, paras, pageCount, sType, sValue, SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID, StartDate, EndDate, strState); }
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); }
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 += "EMPLOYEECODE==@" + paras.Count().ToString(); paras.Add(txtEmpCode.Text.Trim()); } if (!string.IsNullOrEmpty(txtEmpName.Text.Trim())) { if (!string.IsNullOrEmpty(filter)) { filter += " and "; } filter += "EMPLOYEECNAME==@" + 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(); }
/// <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(); }
/// <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 >=@" + paras.Count().ToString();//开始时间 paras.Add(DtStart); filter += " and "; filter += "OARequire.STARTDATE <=@" + 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 <=@" + 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); }
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 >=@" + paras.Count().ToString();//开始时间 paras.Add(DtStart); filter += " and "; filter += "CREATEDATE <=@" + 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 "; } filter += "OPTFLAG ==@" + paras.Count().ToString();//类型名称 paras.Add(StrTypeFlag); } 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; loadbar.Start(); //client.GetLendingListByUserIdAsync(dataPager.PageIndex, dataPager.PageSize, "archivesLending.CREATEDATE", filter, paras, pageCount, checkState, loginUserInfo); start = DateTime.Now; BumfClient.GetDocTypeInfosListBySearchAsync(dataPager.PageIndex, dataPager.PageSize, "CREATEDATE descending", filter, paras, pageCount, loginUserInfo); }
private void LoadData() { loadbar.Start();//打开转动动画 int pageCount = 0; string filter = ""; //查询过滤条件 string StrStart = ""; string StrEnd = ""; ObservableCollection<object> paras = new System.Collections.ObjectModel.ObservableCollection<object>(); //参数值 if (!string.IsNullOrEmpty(txtProvisionName.Text.Trim()))//福利发放名 { if (!string.IsNullOrEmpty(filter)) { filter += " and "; } filter += "welfareProvision.WELFAREDISTRIBUTETITLE ^@" + paras.Count().ToString(); paras.Add(txtProvisionName.Text.Trim()); } StrStart = ReleaseTime.Text.ToString(); StrEnd = ReleaseEndTime.Text.ToString(); DateTime DtStart = new DateTime(); DateTime DtEnd = new DateTime(); if (!string.IsNullOrEmpty(StrStart) && !string.IsNullOrEmpty(StrEnd)) { DtStart = System.Convert.ToDateTime(StrStart); DtEnd = System.Convert.ToDateTime(StrEnd); if (DtStart > DtEnd) { Utility.ShowCustomMessage(MessageTypes.Caution, Utility.GetResourceStr("SEARCH"), Utility.GetResourceStr("STARTTIMENOTGREATENDTIME")); return; } else { if (!string.IsNullOrEmpty(filter)) { filter += " and "; } filter += "welfareProvision.DISTRIBUTEDATE >=@" + paras.Count().ToString(); paras.Add(DtStart); if (!string.IsNullOrEmpty(filter)) { filter += " and "; } filter += "welfareProvision.DISTRIBUTEDATE <=@" + paras.Count().ToString(); paras.Add(DtEnd); } } else { //开始时间不为空 结束时间为空 if (!string.IsNullOrEmpty(StrStart) && string.IsNullOrEmpty(StrEnd)) { if (!string.IsNullOrEmpty(filter)) { filter += " and "; } filter += "welfareProvision.DISTRIBUTEDATE <=@" + paras.Count().ToString(); paras.Add(DtStart); } //结束时间不为空 if (string.IsNullOrEmpty(StrStart) && !string.IsNullOrEmpty(StrEnd)) { if (!string.IsNullOrEmpty(filter)) { filter += " and "; } filter += "welfareProvision.DISTRIBUTEDATE >=@" + paras.Count().ToString(); paras.Add(DtEnd); } } SMT.SaaS.OA.UI.SmtOADocumentAdminService.LoginUserInfo loginUserInfo = new SMT.SaaS.OA.UI.SmtOADocumentAdminService.LoginUserInfo(); loginUserInfo.companyID = Common.CurrentLoginUserInfo.UserPosts[0].CompanyID; loginUserInfo.userID = Common.CurrentLoginUserInfo.EmployeeID; BenefitsAdministration.GetWelfareProvisionListByUserIdAsync(dpGrid.PageIndex, dpGrid.PageSize, "welfareProvision.CHECKSTATE", filter, paras, pageCount, checkState, loginUserInfo); }
private void LoadData() { int pageCount = 0; string filter = ""; //查询过滤条件 ObservableCollection<object> paras = new System.Collections.ObjectModel.ObservableCollection<object>(); //参数值 if (!string.IsNullOrEmpty(txtSearchType.Text.Trim())) { if (!string.IsNullOrEmpty(filter)) { filter += " and "; } filter += "T_OA_ARCHIVES.RECORDTYPE ^@" + paras.Count().ToString(); paras.Add(txtSearchType.Text.Trim()); } if (!string.IsNullOrEmpty(txtSearchTitle.Text.Trim())) { if (!string.IsNullOrEmpty(filter)) { filter += " and "; } filter += "T_OA_ARCHIVES.ARCHIVESTITLE ^@" + paras.Count().ToString(); paras.Add(txtSearchTitle.Text.Trim()); } loadbar.Start(); client.GetReturnListByUserIdAsync(dataPager.PageIndex, dataPager.PageSize, "CREATEDATE descending", filter, paras, pageCount, Common.CurrentLoginUserInfo.EmployeeID); }
/// <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); } }
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 += "EMPLOYEECODE==@" + 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 ==@" + paras.Count().ToString();//类型名称 paras.Add(systype); } string sType = "", sValue = ""; if (string.IsNullOrEmpty(filter)) { //默认为自己公司的角色 filter += "OWNERCOMPANYID ==@" + 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); }
private static System.Collections.ObjectModel.ObservableCollection<object> Get_e_5_Items() { System.Collections.ObjectModel.ObservableCollection<object> items = new System.Collections.ObjectModel.ObservableCollection<object>(); // e_6 element TabItem e_6 = new TabItem(); e_6.Name = "e_6"; e_6.HorizontalContentAlignment = HorizontalAlignment.Stretch; e_6.Header = "Tab 1"; // e_7 element ListBox e_7 = new ListBox(); e_6.Content = e_7; e_7.Name = "e_7"; e_7.Height = 100F; Func<UIElement, UIElement> e_7_dtFunc = e_7_dtMethod; e_7.ItemTemplate = new DataTemplate(e_7_dtFunc); Binding binding_e_7_ItemsSource = new Binding("ComboBoxSource"); e_7.SetBinding(ListBox.ItemsSourceProperty, binding_e_7_ItemsSource); Binding binding_e_7_SelectedItem = new Binding("SelectedItem"); e_7.SetBinding(ListBox.SelectedItemProperty, binding_e_7_SelectedItem); items.Add(e_6); // e_9 element TabItem e_9 = new TabItem(); e_9.Name = "e_9"; e_9.Header = "Tab 2"; // e_10 element StackPanel e_10 = new StackPanel(); e_9.Content = e_10; e_10.Name = "e_10"; // e_11 element ListBox e_11 = new ListBox(); e_10.Children.Add(e_11); e_11.Name = "e_11"; e_11.Height = 100F; e_11.ItemsSource = Get_e_11_Items(); items.Add(e_9); // e_16 element TabItem e_16 = new TabItem(); e_16.Name = "e_16"; e_16.Content = "Tab 3 Content"; e_16.Header = "Tab 3"; items.Add(e_16); // e_17 element TabItem e_17 = new TabItem(); e_17.Name = "e_17"; e_17.Content = "Tab 4 Content"; e_17.Header = "Tab 4"; items.Add(e_17); return items; }
void btnDelete_Click(object sender, RoutedEventArgs e) { #region ----- string Result = ""; if (DtGrid.SelectedItems.Count > 0) { V_COMPLAINRECORD tmpEnt = DtGrid.SelectedItems[0] as V_COMPLAINRECORD; if (tmpEnt.T_HR_KPIRECORDCOMPLAIN.CHECKSTATE == "0" || tmpEnt.T_HR_KPIRECORDCOMPLAIN.CHECKSTATE == "3") { System.Collections.ObjectModel.ObservableCollection<string> ids = new System.Collections.ObjectModel.ObservableCollection<string>(); foreach (V_COMPLAINRECORD tmp in DtGrid.SelectedItems) { ids.Add(tmp.T_HR_KPIRECORDCOMPLAIN.COMPLAINID); } ComfirmWindow com = new ComfirmWindow(); com.OnSelectionBoxClosed += (obj, result) => { client.ComplainRecordDeleteAsync(ids); }; com.SelectionBox(Utility.GetResourceStr("DELETECONFIRM"), Utility.GetResourceStr("DELETEALTER"), ComfirmWindow.titlename, Result); } else { //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("NOTDELETE")); ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("CAUTION"), Utility.GetResourceStr("NOTDELETE"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation); } } else { //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("SELECTERROR", "DELETE")); ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "DELETE"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation); } #endregion }
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); }
private static System.Collections.ObjectModel.ObservableCollection<object> Get_e_11_Items() { System.Collections.ObjectModel.ObservableCollection<object> items = new System.Collections.ObjectModel.ObservableCollection<object>(); // e_12 element ListBoxItem e_12 = new ListBoxItem(); e_12.Name = "e_12"; e_12.Content = "Selection 1"; items.Add(e_12); // e_13 element ListBoxItem e_13 = new ListBoxItem(); e_13.Name = "e_13"; e_13.Content = "Selection 2"; items.Add(e_13); // e_14 element ListBoxItem e_14 = new ListBoxItem(); e_14.Name = "e_14"; e_14.Content = "Selection 3"; items.Add(e_14); // e_15 element ListBoxItem e_15 = new ListBoxItem(); e_15.Name = "e_15"; e_15.Content = "Selection 4"; items.Add(e_15); return items; }
private void LoadData() { loadbar.Start(); int pageCount = 0; string filter = ""; string strState = ""; System.Collections.ObjectModel.ObservableCollection<object> paras = new System.Collections.ObjectModel.ObservableCollection<object>(); if (Checkstate != Convert.ToInt32(CheckStates.All).ToString()) { strState = Checkstate; } //ComboBox cbxCompanyName = Utility.FindChildControl<ComboBox>(expander, "cbxCompanyName"); AutoCompleteComboBox acbCompanyName = Utility.FindChildControl<AutoCompleteComboBox>(expander, "acbCompanyName"); TextBox txtEmpName = Utility.FindChildControl<TextBox>(expander, "txtEmpName"); if (acbCompanyName != null) { if (acbCompanyName.SelectedItem != null) { T_HR_COMPANY ent = acbCompanyName.SelectedItem as T_HR_COMPANY; if (!string.IsNullOrEmpty(filter)) { filter += " and "; } filter += "T_HR_COMPANY.CNAME==@" + paras.Count().ToString(); paras.Add(ent.CNAME); } } if (txtEmpName != null) { if (!string.IsNullOrEmpty(txtEmpName.Text)) { if (!string.IsNullOrEmpty(filter)) { filter += " and "; } // filter += "T_HR_DEPARTMENTDICTIONARY.DEPARTMENTNAME.Contains(@" + paras.Count().ToString()+")"; filter += " @" + paras.Count().ToString() + ".Contains(T_HR_DEPARTMENTDICTIONARY.DEPARTMENTNAME)"; paras.Add(txtEmpName.Text.Trim()); } } client.DepartmentPagingAsync(dataPager.PageIndex, dataPager.PageSize, "SORTINDEX", filter, paras, pageCount, SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID, strState); }
//加载数据 private void GetData() { loadbar.Start(); int pageCount = 0; string filter = ""; //查询过滤条件 ObservableCollection<object> paras = new System.Collections.ObjectModel.ObservableCollection<object>(); //参数值 if (IsQuery) { string StrContent = ""; string StrStart = ""; string StrEnd = ""; string StrConservateType = ((SMT.Saas.Tools.PermissionWS.T_SYS_DICTIONARY)cmbConserVationName.SelectedItem).DICTIONARYNAME.ToString(); StrStart = dpStart.Text.ToString(); StrEnd = dpEnd.Text.ToString(); DateTime DtStart = new DateTime(); DateTime DtEnd = new DateTime(); StrContent = this.txtConserVationContent.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("STARTTIMENOTNULL")); //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 += "REPAIRDATE >=@" + paras.Count().ToString();//开始时间 paras.Add(DtStart); filter += " and "; filter += "REPAIRDATE <=@" + paras.Count().ToString();//结束时间 paras.Add(DtEnd); } } if (cmbConserVationName.SelectedIndex > 0) { if (!string.IsNullOrEmpty(filter)) { filter += " and "; } filter += "MAINTENANCETYPE ==@" + paras.Count().ToString();//类型 paras.Add(StrConservateType); } if (!string.IsNullOrEmpty(StrContent)) { if (!string.IsNullOrEmpty(filter)) { filter += " and "; } filter += "CONTENT ^@" + paras.Count().ToString();//类型名称 paras.Add(StrContent); } } maWS.Get_VMRecordsAsync(dataPager.PageIndex, dataPager.PageSize, "UPDATEDATE", filter, paras, pageCount, Common.CurrentLoginUserInfo.UserPosts[0].CompanyID, Common.CurrentLoginUserInfo.EmployeeID, checkState); }