/// <summary> /// 加载公司及部门执行一览查询结果 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void clientFBA_GetExecutionListByPagingCompleted(object sender, GetExecutionListByPagingCompletedEventArgs e) { loadbar.Stop(); if (e.Error == null) { //int analyseMonth = 3; //int startColumnIndex = 5; //for (int i = 0; i < analyseMonth; i++) //{ // DataGridTemplateColumn dt = new DataGridTemplateColumn(); // System.Windows.Style syApply = new System.Windows.Style(); // syApply. // //dt.HeaderStyle = // dt.Header = i.ToString() + "月"; // dt.Binding = new System.Windows.Data.Binding() { Path = new PropertyPath("MonthChargeList[0].ChargeMoney") }; // dgQueryResult.Columns.Insert(startColumnIndex, dt); // startColumnIndex++; //} ObservableCollection <V_ExecutionList> entResList = e.Result; dgQueryResult.ItemsSource = entResList; dataPager.PageCount = e.pageCount; } else { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message)); } }
/// <summary> /// 加载公司及部门执行一览查询结果 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void clientFBA_GetExecutionListByPagingCompleted(object sender, GetExecutionListByPagingCompletedEventArgs e) { loadbar.Stop(); if (e.Error == null) { //int analyseMonth = 3; //int startColumnIndex = 5; //for (int i = 0; i < analyseMonth; i++) //{ // DataGridTemplateColumn dt = new DataGridTemplateColumn(); // System.Windows.Style syApply = new System.Windows.Style(); // syApply. // //dt.HeaderStyle = // dt.Header = i.ToString() + "月"; // dt.Binding = new System.Windows.Data.Binding() { Path = new PropertyPath("MonthChargeList[0].ChargeMoney") }; // dgQueryResult.Columns.Insert(startColumnIndex, dt); // startColumnIndex++; //} ObservableCollection<V_ExecutionList> entResList = e.Result; dgQueryResult.ItemsSource = entResList; dataPager.PageCount = e.pageCount; } else { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message)); } }