diff --git a/DataBase/版本日志/SGGLDB_V2023-04-29-001.sql b/DataBase/版本日志/SGGLDB_V2023-05-29-001.sql similarity index 100% rename from DataBase/版本日志/SGGLDB_V2023-04-29-001.sql rename to DataBase/版本日志/SGGLDB_V2023-05-29-001.sql diff --git a/DataBase/版本日志/SGGLDB_V2023-04-29-001版本日志.txt b/DataBase/版本日志/SGGLDB_V2023-05-29-001版本日志.txt similarity index 100% rename from DataBase/版本日志/SGGLDB_V2023-04-29-001版本日志.txt rename to DataBase/版本日志/SGGLDB_V2023-05-29-001版本日志.txt diff --git a/DataBase/版本日志/SGGLDB_V2023-04-30-001.sql b/DataBase/版本日志/SGGLDB_V2023-05-30-001.sql similarity index 100% rename from DataBase/版本日志/SGGLDB_V2023-04-30-001.sql rename to DataBase/版本日志/SGGLDB_V2023-05-30-001.sql diff --git a/DataBase/版本日志/SGGLDB_V2023-04-30-001版本日志.txt b/DataBase/版本日志/SGGLDB_V2023-05-30-001版本日志.txt similarity index 100% rename from DataBase/版本日志/SGGLDB_V2023-04-30-001版本日志.txt rename to DataBase/版本日志/SGGLDB_V2023-05-30-001版本日志.txt diff --git a/SGGL/BLL/HSSE/CostGoods/ExpenseDetailService.cs b/SGGL/BLL/HSSE/CostGoods/ExpenseDetailService.cs index 65643517..aaf94ad4 100644 --- a/SGGL/BLL/HSSE/CostGoods/ExpenseDetailService.cs +++ b/SGGL/BLL/HSSE/CostGoods/ExpenseDetailService.cs @@ -1,12 +1,13 @@ using System; using System.Collections.Generic; using System.Linq; +using WIA; namespace BLL { public class ExpenseDetailService { - + public static List GetExpenseDetailsByExpenseId(string expenseId) { return (from x in Funs.DB.CostGoods_ExpenseDetail where x.ExpenseId == expenseId select x).ToList(); @@ -17,40 +18,52 @@ namespace BLL /// 增加费用明细信息 /// /// 费用明细实体 - public static void AddCostDetail(string expenseId ) - { + public static void AddCostDetail(string expenseId) + { DeleteCostDetailByExpenseId(expenseId); - Model.SGGLDB db = Funs.DB; - var getItems = from x in db.Base_CostTypeItem - join y in db.Base_CostType on x.CostTypeId equals y.CostTypeId - select new - { - SupCostTypeId = y.CostTypeId, - SupCostTypeName = y.CostTypeName, - SupSortIndex = y.CostTypeCode, - CostType = x.CostTypeId, - CostTypeName=x.CostTypeItemName, - SortIndex=x.SortIndex, - CostMoney=0, - }; - foreach (var item in getItems) + using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString)) { - Model.CostGoods_ExpenseDetail newExpenseDetail = new Model.CostGoods_ExpenseDetail + var getItems = from x in db.Base_CostTypeItem + join y in db.Base_CostType on x.CostTypeId equals y.CostTypeId + select new + { + ExpenseId=expenseId, + SupCostTypeId = y.CostTypeId, + SupCostTypeName = y.CostTypeName, + SupSortIndex = y.CostTypeCode, + CostType = x.CostTypeItemId, + CostTypeName = x.CostTypeItemName, + SortIndex = x.SortIndex, + CostMoney = 0, + }; + foreach (var item in getItems) { - ExpenseDetailId = SQLHelper.GetNewID(), - ExpenseId = expenseId, - SupCostTypeId=item.SupCostTypeId, - SupCostTypeName=item.SupCostTypeName, - SupSortIndex=item.SupSortIndex, + Model.CostGoods_ExpenseDetail newExpenseDetail = new Model.CostGoods_ExpenseDetail + { + ExpenseDetailId = SQLHelper.GetNewID(), + ExpenseId = expenseId, + SupCostTypeId = item.SupCostTypeId, + SupCostTypeName = item.SupCostTypeName, + SupSortIndex = item.SupSortIndex, + CostType = item.CostType, + CostTypeName = item.CostTypeName, + SortIndex = item.SortIndex, + CostMoney = item.CostMoney, + }; + db.CostGoods_ExpenseDetail.InsertOnSubmit(newExpenseDetail); + db.SubmitChanges(); + } + } + } - CostType = item.CostType, - CostTypeName = item.CostTypeName, - SortIndex=item.SortIndex, - CostMoney = item.CostMoney, - }; - db.CostGoods_ExpenseDetail.InsertOnSubmit(newExpenseDetail); - db.SubmitChanges(); - } + public static void UpdateExpenseDetail(Model.CostGoods_ExpenseDetail newItem) + { + var getData = Funs.DB.CostGoods_ExpenseDetail.FirstOrDefault(x => x.ExpenseDetailId == newItem.ExpenseDetailId); + if (getData != null) + { + getData.CostMoney = newItem.CostMoney; + Funs.DB.SubmitChanges(); + } } @@ -60,12 +73,14 @@ namespace BLL /// 编号 public static void DeleteCostDetailByExpenseId(string expenseId) { - Model.SGGLDB db = Funs.DB; - var q = from x in db.CostGoods_ExpenseDetail where x.ExpenseId == expenseId select x; - if (q.Count() > 0) + using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString)) { - db.CostGoods_ExpenseDetail.DeleteAllOnSubmit(q); - db.SubmitChanges(); + var q = from x in db.CostGoods_ExpenseDetail where x.ExpenseId == expenseId select x; + if (q.Count() > 0) + { + db.CostGoods_ExpenseDetail.DeleteAllOnSubmit(q); + db.SubmitChanges(); + } } } } diff --git a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj index 8d1d7f36..48678126 100644 --- a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj +++ b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj @@ -13731,7 +13731,7 @@ True 0 / - http://localhost:9492/ + http://localhost:14646/ False False diff --git a/SGGL/FineUIPro.Web/HSSE/CostGoods/CostManage.aspx b/SGGL/FineUIPro.Web/HSSE/CostGoods/CostManage.aspx index d674c4c4..740cc862 100644 --- a/SGGL/FineUIPro.Web/HSSE/CostGoods/CostManage.aspx +++ b/SGGL/FineUIPro.Web/HSSE/CostGoods/CostManage.aspx @@ -3,7 +3,7 @@ - 安全费用管理 + HSE费用申请表 @@ -12,7 +12,7 @@ - - - + @@ -46,8 +45,8 @@ - + <%-- --%> @@ -63,7 +62,7 @@ - \ No newline at end of file + diff --git a/SGGL/FineUIPro.Web/HSSE/CostGoods/ExpenseEdit.aspx.cs b/SGGL/FineUIPro.Web/HSSE/CostGoods/ExpenseEdit.aspx.cs index c7edb38e..978b469e 100644 --- a/SGGL/FineUIPro.Web/HSSE/CostGoods/ExpenseEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/HSSE/CostGoods/ExpenseEdit.aspx.cs @@ -1,4 +1,7 @@ using BLL; +using FineUIPro.Web.HSSE.License; +using Model; +using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.Linq; @@ -49,82 +52,101 @@ namespace FineUIPro.Web.HSSE.CostGoods if (!IsPostBack) { this.ProjectId = this.CurrUser.LoginProjectId; - this.btnClose.OnClientClick = ActiveWindow.GetHideReference(); + this.btnClose.OnClientClick = ActiveWindow.GetHideRefreshReference(); BLL.UnitService.InitUnitDropDownList(this.drpUnit, this.ProjectId, false); + this.drpUnit.SelectedValue = this.CurrUser.UnitId ?? Const.UnitId_SEDIN; + this.txtYear.Text = DateTime.Now.Year.ToString(); + this.txtReportDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now); if (!string.IsNullOrEmpty(this.CurrUser.UnitId) && !CommonService.IsSedinOrSub(this.CurrUser.UnitId)) { - this.drpUnit.SelectedValue = this.CurrUser.UnitId; this.drpUnit.Readonly = true; } this.ExpenseId = Request.Params["ExpenseId"]; + Model.CostGoods_Expense expense = new Model.CostGoods_Expense(); if (string.IsNullOrEmpty(this.ExpenseId)) { - this.drpUnit.SelectedValue = this.CurrUser.UnitId ?? Const.UnitId_SEDIN; - this.txtYear.Text = DateTime.Now.Year.ToString(); - this.txtReportDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now); - var getEx = Funs.DB.CostGoods_Expense.FirstOrDefault(x => x.UnitId == this.drpUnit.SelectedValue && x.Year == Funs.GetNewInt(this.txtYear.Text)); - if (getEx != null) - { - this.ExpenseId = getEx.ExpenseId; - } - else - { - if (CommonService.IsSedinOrSub(this.drpUnit.SelectedValue)) - { - this.lbSortIndex.Text = "1"; - } - else - { - var index = Funs.DB.CostGoods_Expense.Where(x => x.Year.ToString() == this.txtYear.Text).Max(x => x.SortIndex); - if (index.HasValue) - { - this.lbSortIndex.Text = (index.Value + 1).ToString(); - } - else - { - this.lbSortIndex.Text = "2"; - } - } - - Model.CostGoods_Expense newExpense = new Model.CostGoods_Expense - { - ExpenseId = SQLHelper.GetNewID(), - ProjectId = this.ProjectId, - UnitId = this.drpUnit.SelectedValue, - ReportDate = DateTime.Now, - CreateDate = DateTime.Now, - CompileMan =this.CurrUser.PersonId, - CompileDate = DateTime.Now, - Year =Funs.GetNewInt(this.txtYear.Text), - SortIndex=Funs.GetNewIntOrZero(this.lbSortIndex.Text), - }; - - ExpenseService.AddExpense(newExpense); - ExpenseDetailService.AddCostDetail(newExpense.ExpenseId); - } + expense = Funs.DB.CostGoods_Expense.FirstOrDefault(x =>x.ProjectId == this.ProjectId && x.UnitId == this.drpUnit.SelectedValue && x.Year == Funs.GetNewInt(this.txtYear.Text)); + } + else + { + expense = BLL.ExpenseService.GetExpenseById(this.ExpenseId); } - SetPage(BLL.ExpenseService.GetExpenseById(this.ExpenseId)); + SetPage(expense); } } #endregion + #region 页面呈现 /// /// /// private void SetPage(Model.CostGoods_Expense expense) - { + { if (expense != null) - { + { this.ExpenseId = expense.ExpenseId; this.ProjectId = expense.ProjectId; this.drpUnit.SelectedValue = expense.UnitId; this.txtYear.Text = expense.Year.ToString(); - this.lbSortIndex.Text=expense.SortIndex.ToString(); - - } + this.lbSortIndex.Text = expense.SortIndex.ToString(); + this.txtReportDate.Text = string.Format("{0:yyyy-MM-dd}", expense.ReportDate); + } + else + { + int Year = Funs.GetNewIntOrZero(this.txtYear.Text); + var getProject = ProjectService.GetProjectByProjectId(this.ProjectId); + if (getProject != null && (!getProject.EndDate.HasValue || Year <= getProject.EndDate.Value.Year) && (!getProject.StartDate.HasValue || Year >= getProject.StartDate.Value.Year)) + { + if (CommonService.IsSedinOrSub(this.drpUnit.SelectedValue)) + { + this.lbSortIndex.Text = "1"; + } + else + { + var index = Funs.DB.CostGoods_Expense.Where(x =>x.ProjectId == this.ProjectId && x.Year.ToString() == this.txtYear.Text).Max(x => x.SortIndex); + if (index.HasValue) + { + this.lbSortIndex.Text = (index.Value + 1).ToString(); + } + else + { + this.lbSortIndex.Text = "2"; + } + } + + Model.CostGoods_Expense newExpense = new Model.CostGoods_Expense + { + ExpenseId = SQLHelper.GetNewID(), + ProjectId = this.ProjectId, + UnitId = this.drpUnit.SelectedValue, + ReportDate = DateTime.Now, + CreateDate = DateTime.Now, + CompileMan = this.CurrUser.PersonId, + CompileDate = DateTime.Now, + Year = Funs.GetNewInt(this.txtYear.Text), + SortIndex = Funs.GetNewIntOrZero(this.lbSortIndex.Text), + }; + + ExpenseService.AddExpense(newExpense); + this.ExpenseId = newExpense.ExpenseId; + ExpenseDetailService.AddCostDetail(this.ExpenseId); + } + else + { + Alert.ShowInTop("选择年度不在项目开始和竣工时间范围内!", MessageBoxIcon.Warning); + return; + } + } + + this.Grid1.DataSource = from x in Funs.DB.CostGoods_ExpenseDetail + where x.ExpenseId == this.ExpenseId + orderby x.SupSortIndex, x.SortIndex + select x; + this.Grid1.DataBind(); } + #endregion #region 保存 /// @@ -157,8 +179,7 @@ namespace FineUIPro.Web.HSSE.CostGoods CompileDate = DateTime.Now, CompileMan = this.CurrUser.PersonId, SortIndex = Funs.GetNewInt(this.lbSortIndex.Text), - Year =Funs.GetNewInt(this.txtYear.Text), - + Year =Funs.GetNewInt(this.txtYear.Text), }; if (!string.IsNullOrEmpty(this.ExpenseId)) @@ -166,7 +187,7 @@ namespace FineUIPro.Web.HSSE.CostGoods expense.ExpenseId = this.ExpenseId; BLL.ExpenseService.UpdateExpense(expense); BLL.LogService.AddSys_Log(this.CurrUser, expense.ExpenseCode, expense.ExpenseId, BLL.Const.ProjectExpenseMenuId, BLL.Const.BtnModify); - BLL.ExpenseDetailService.DeleteCostDetailByExpenseId(this.ExpenseId); + // BLL.ExpenseDetailService.DeleteCostDetailByExpenseId(this.ExpenseId); } else { @@ -176,7 +197,12 @@ namespace FineUIPro.Web.HSSE.CostGoods BLL.ExpenseService.AddExpense(expense); BLL.LogService.AddSys_Log(this.CurrUser, expense.ExpenseCode, expense.ExpenseId, BLL.Const.ProjectExpenseMenuId, BLL.Const.BtnAdd); } - + + var getItem = jerqueSaveList(); + foreach (var item in getItem) + { + ExpenseDetailService.UpdateExpenseDetail(item); + } } #endregion @@ -196,8 +222,6 @@ namespace FineUIPro.Web.HSSE.CostGoods } #endregion - - #region 单位变化事件 /// /// 单位变化事件 @@ -208,9 +232,33 @@ namespace FineUIPro.Web.HSSE.CostGoods { if (this.drpUnit.SelectedValue != Const._Null && !string.IsNullOrEmpty(this.txtYear.Text)) { - SetPage(Funs.DB.CostGoods_Expense.FirstOrDefault(x => x.UnitId == this.drpUnit.SelectedValue && x.Year.ToString() == this.txtYear.Text)); + SetPage(Funs.DB.CostGoods_Expense.FirstOrDefault(x =>x.ProjectId == this.ProjectId && x.UnitId == this.drpUnit.SelectedValue && x.Year.ToString() == this.txtYear.Text)); } } #endregion + + #region 保存集合 + /// + /// 保存集合 + /// + private List jerqueSaveList() + { + var returnList = Funs.DB.CostGoods_ExpenseDetail.Where(x => x.ExpenseId == this.ExpenseId); + JArray mergedData = Grid1.GetMergedData(); + foreach (JObject mergedRow in mergedData) + { + string status = mergedRow.Value("status"); + JObject values = mergedRow.Value("values"); + var item = returnList.FirstOrDefault(e => e.ExpenseDetailId == values.Value("ExpenseDetailId")); + if (item != null) + { + item.CostMoney = Funs.GetNewDecimalOrZero(values.Value("CostMoney")); + } + + } + return returnList.ToList(); + } + #endregion + } } \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HSSE/CostGoods/ExpenseEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/HSSE/CostGoods/ExpenseEdit.aspx.designer.cs index 5691a83d..79295dbb 100644 --- a/SGGL/FineUIPro.Web/HSSE/CostGoods/ExpenseEdit.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/HSSE/CostGoods/ExpenseEdit.aspx.designer.cs @@ -78,355 +78,31 @@ namespace FineUIPro.Web.HSSE.CostGoods protected global::FineUIPro.Label lbSortIndex; /// - /// Panel1 控件。 + /// Grid1 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.Panel Panel1; + protected global::FineUIPro.Grid Grid1; /// - /// GroupPanel1 控件。 + /// txtCostMoney 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.GroupPanel GroupPanel1; + protected global::FineUIPro.NumberBox txtCostMoney; /// - /// SimpleForm2 控件。 + /// txtExpenseDetailId 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.Form SimpleForm2; - - /// - /// txtA1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox txtA1; - - /// - /// txtA2 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox txtA2; - - /// - /// txtA3 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox txtA3; - - /// - /// txtA4 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox txtA4; - - /// - /// txtA5 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox txtA5; - - /// - /// txtA6 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox txtA6; - - /// - /// txtA7 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox txtA7; - - /// - /// txtA8 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox txtA8; - - /// - /// txtA9 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox txtA9; - - /// - /// txtA10 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox txtA10; - - /// - /// txtA11 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox txtA11; - - /// - /// txtA12 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox txtA12; - - /// - /// txtA13 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox txtA13; - - /// - /// txtA14 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox txtA14; - - /// - /// txtA15 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox txtA15; - - /// - /// txtA16 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox txtA16; - - /// - /// txtA17 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox txtA17; - - /// - /// txtA18 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox txtA18; - - /// - /// GroupPanel2 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.GroupPanel GroupPanel2; - - /// - /// Form2 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Form Form2; - - /// - /// txtB1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox txtB1; - - /// - /// txtB2 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox txtB2; - - /// - /// txtB3 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox txtB3; - - /// - /// GroupPanel3 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.GroupPanel GroupPanel3; - - /// - /// Form3 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Form Form3; - - /// - /// txtC1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox txtC1; - - /// - /// txtC2 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox txtC2; - - /// - /// txtC3 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox txtC3; - - /// - /// txtC4 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox txtC4; - - /// - /// txtC5 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox txtC5; - - /// - /// txtC6 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox txtC6; - - /// - /// GroupPanel4 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.GroupPanel GroupPanel4; - - /// - /// Form4 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Form Form4; - - /// - /// txtD1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox txtD1; - - /// - /// txtD2 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox txtD2; - - /// - /// txtD3 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox txtD3; + protected global::FineUIPro.TextBox txtExpenseDetailId; /// /// Toolbar1 控件。 diff --git a/SGGL/FineUIPro.Web/HSSE/CostGoods/ExpenseUnit.aspx.cs b/SGGL/FineUIPro.Web/HSSE/CostGoods/ExpenseUnit.aspx.cs index 36c0d28b..83e6aa2d 100644 --- a/SGGL/FineUIPro.Web/HSSE/CostGoods/ExpenseUnit.aspx.cs +++ b/SGGL/FineUIPro.Web/HSSE/CostGoods/ExpenseUnit.aspx.cs @@ -59,7 +59,7 @@ namespace FineUIPro.Web.HSSE.CostGoods bf.DataField = "CostTypeName"; bf.DataFormatString = "{0}"; bf.HeaderText = "分项名称"; - bf.Width = 120; + bf.Width = 150; bf.HeaderTextAlign = TextAlign.Center; Grid1.Columns.Add(bf); @@ -87,7 +87,7 @@ namespace FineUIPro.Web.HSSE.CostGoods bf.DataField = item.UnitId; bf.DataFormatString = "{0}"; bf.HeaderText = item.UnitName; - bf.Width = 200; + bf.Width = 220; Grid1.Columns.Add(bf); } @@ -100,6 +100,10 @@ namespace FineUIPro.Web.HSSE.CostGoods Grid1.Columns.Add(bf); Grid1.DataKeyNames = new string[] { "Id", "CostTypeName" }; + if (Grid1.Columns.Count() > 9) + { + Grid1.ForceFit = false; + } } #endregion @@ -163,45 +167,49 @@ namespace FineUIPro.Web.HSSE.CostGoods where y.ProjectId == this.ProjectId && y.Year == year orderby y.Year, x.SupSortIndex, x.SortIndex select new { x.ExpenseDetailId, x.ExpenseId,y.UnitId, y.Year, x.SupCostTypeId, x.SupCostTypeName, x.SupSortIndex, x.CostType, x.CostTypeName, x.SortIndex, x.CostMoney }; - - foreach (var item in getDetail) + var getType = (from x in getDetail select new { x.SupSortIndex, x.SortIndex, x.CostType }).Distinct(); + foreach (var item in getType) { - DataRow row = table.NewRow(); - row[0] = item.ExpenseDetailId +"#" +item.ExpenseId; - row[1] = item.SupCostTypeName; - row[2] = item.CostTypeName; - int r = 3; - foreach (var uitem in getUnit) + var getD = getDetail.FirstOrDefault(x => x.CostType == item.CostType); + if (getD != null) { - var getD1 = getDetail.Where(x => x.UnitId == uitem.UnitId && x.CostType == item.CostType); - if (getD1.Count() > 0) + DataRow row = table.NewRow(); + row[0] = getD.ExpenseDetailId + "#" + getD.ExpenseId; + row[1] = getD.SupCostTypeName; + row[2] = getD.CostTypeName; + int r = 3; + foreach (var uitem in getUnit) { - row[r] = getD1.Sum(X => X.CostMoney ?? 0).ToString(); - } - else - { - row[r] = 0.00; + var getD1 = getDetail.Where(x => x.UnitId == uitem.UnitId && x.CostType == item.CostType); + if (getD1.Count() > 0) + { + row[r] = getD1.Sum(X => X.CostMoney ?? 0).ToString(); + } + else + { + row[r] = 0.00; + } + + r++; } - r++; + foreach (var suitem in getSUnit) + { + var getD2 = getDetail.Where(x => x.UnitId == suitem.UnitId && x.CostType == item.CostType); + if (getD2.Count() > 0) + { + row[r] = getD2.Sum(X => X.CostMoney ?? 0).ToString(); + } + else + { + row[r] = 0.00; + } + r++; + } + + row[r] = getDetail.Where(x => x.Year == getD.Year && x.CostType == item.CostType).Sum(x => x.CostMoney ?? 0); + table.Rows.Add(row); } - - foreach (var suitem in getSUnit) - { - var getD2 = getDetail.Where(x => x.UnitId == suitem.UnitId && x.CostType == item.CostType); - if (getD2.Count() > 0) - { - row[r] = getD2.Sum(X => X.CostMoney ?? 0).ToString(); - } - else - { - row[r] = 0.00; - } - r++; - } - - row[r] = getDetail.Where(x =>x.Year==item.Year && x.CostType == item.CostType).Sum(x => x.CostMoney ?? 0); - table.Rows.Add(row); } } else @@ -212,44 +220,49 @@ namespace FineUIPro.Web.HSSE.CostGoods orderby y.Year, x.SupSortIndex, x.SortIndex select new { x.ExpenseDetailId, x.ExpenseId,y.UnitId, y.Year, x.SupCostTypeId, x.SupCostTypeName, x.SupSortIndex, x.CostType, x.CostTypeName, x.SortIndex, x.CostMoney }; - foreach (var item in getDetail) + var getType = (from x in getDetail select new { x.SupSortIndex, x.SortIndex, x.CostType }).Distinct(); + foreach (var item in getType) { - DataRow row = table.NewRow(); - row[0] = item.ExpenseDetailId + "#" + item.ExpenseId; - row[1] = item.SupCostTypeName; - row[2] = item.CostTypeName; - int r = 3; - foreach (var uitem in getUnit) + var getD = getDetail.FirstOrDefault(x => x.CostType == item.CostType); + if (getD != null) { - var getD1 = getDetail.Where(x => x.UnitId == uitem.UnitId && x.CostType == item.CostType); - if (getD1.Count() > 0) + DataRow row = table.NewRow(); + row[0] = getD.ExpenseDetailId + "#" + getD.ExpenseId; + row[1] = getD.SupCostTypeName; + row[2] = getD.CostTypeName; + int r = 3; + foreach (var uitem in getUnit) { - row[r] = getD1.Sum(X=>X.CostMoney ?? 0).ToString(); - } - else - { - row[r] = 0.00; - } - - r++; - } + var getD1 = getDetail.Where(x => x.UnitId == uitem.UnitId && x.CostType == item.CostType); + if (getD1.Count() > 0) + { + row[r] = getD1.Sum(X => X.CostMoney ?? 0).ToString(); + } + else + { + row[r] = 0.00; + } - foreach (var suitem in getSUnit) - { - var getD2 = getDetail.Where(x => x.UnitId == suitem.UnitId && x.CostType == item.CostType); - if (getD2.Count() > 0) - { - row[r] = getD2.Sum(X => X.CostMoney ?? 0).ToString(); + r++; } - else - { - row[r] = 0.00; - } - r++; - } - row[r] = getDetail.Where(x => x.CostType == item.CostType).Sum(x => x.CostMoney ?? 0); - table.Rows.Add(row); + foreach (var suitem in getSUnit) + { + var getD2 = getDetail.Where(x => x.UnitId == suitem.UnitId && x.CostType == item.CostType); + if (getD2.Count() > 0) + { + row[r] = getD2.Sum(X => X.CostMoney ?? 0).ToString(); + } + else + { + row[r] = 0.00; + } + r++; + } + + row[r] = getDetail.Where(x => x.CostType == item.CostType).Sum(x => x.CostMoney ?? 0); + table.Rows.Add(row); + } } } @@ -271,7 +284,7 @@ namespace FineUIPro.Web.HSSE.CostGoods Response.ContentEncoding = System.Text.Encoding.UTF8; this.Grid1.PageSize = this.Grid1.RecordCount; - Response.Write(GetTableHtml(GetDataTable())); + Response.Write(GetGridTableHtml(this.Grid1)); Response.End(); } #endregion diff --git a/SGGL/FineUIPro.Web/HSSE/CostGoods/ExpenseView.aspx b/SGGL/FineUIPro.Web/HSSE/CostGoods/ExpenseView.aspx index 81fac7a1..332a78ff 100644 --- a/SGGL/FineUIPro.Web/HSSE/CostGoods/ExpenseView.aspx +++ b/SGGL/FineUIPro.Web/HSSE/CostGoods/ExpenseView.aspx @@ -1,8 +1,6 @@ <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ExpenseView.aspx.cs" Inherits="FineUIPro.Web.HSSE.CostGoods.ExpenseView" ValidateRequest="false" %> -<%@ Register Src="~/Controls/FlowOperateControl.ascx" TagName="FlowOperateControl" - TagPrefix="uc1" %> @@ -19,131 +17,35 @@ - + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/HSSE/CostGoods/ExpenseView.aspx.cs b/SGGL/FineUIPro.Web/HSSE/CostGoods/ExpenseView.aspx.cs index b3be480a..562f8a84 100644 --- a/SGGL/FineUIPro.Web/HSSE/CostGoods/ExpenseView.aspx.cs +++ b/SGGL/FineUIPro.Web/HSSE/CostGoods/ExpenseView.aspx.cs @@ -22,6 +22,20 @@ namespace FineUIPro.Web.HSSE.CostGoods ViewState["ExpenseId"] = value; } } + /// + /// 项目主键 + /// + public string ProjectId + { + get + { + return (string)ViewState["ProjectId"]; + } + set + { + ViewState["ProjectId"] = value; + } + } #endregion #region 加载 @@ -34,27 +48,39 @@ namespace FineUIPro.Web.HSSE.CostGoods { if (!IsPostBack) { - this.btnClose.OnClientClick = ActiveWindow.GetHideReference(); + this.btnClose.OnClientClick = ActiveWindow.GetHideRefreshReference(); + this.ProjectId = this.CurrUser.LoginProjectId; this.ExpenseId = Request.Params["ExpenseId"]; - if (!string.IsNullOrEmpty(this.ExpenseId)) + + BLL.UnitService.InitUnitDropDownList(this.drpUnit, this.ProjectId, false); + this.drpUnit.SelectedValue = this.CurrUser.UnitId ?? Const.UnitId_SEDIN; + if (!string.IsNullOrEmpty(this.CurrUser.UnitId) && !CommonService.IsSedinOrSub(this.CurrUser.UnitId)) { - var expense = BLL.ExpenseService.GetExpenseById(this.ExpenseId); - if (expense != null) - { - if (expense != null) - { - this.ExpenseId = expense.ExpenseId; - this.drpUnit.Text = UnitService.GetUnitNameByUnitId( expense.UnitId); - this.txtYear.Text = expense.Year.ToString(); - this.lbSortIndex.Text = expense.SortIndex.ToString(); - - } - } + this.drpUnit.Readonly = true; } + + + SetPage(BLL.ExpenseService.GetExpenseById(this.ExpenseId)); } } #endregion + private void SetPage(Model.CostGoods_Expense expense) + { + if (expense != null) + { + this.drpUnit.SelectedValue = expense.UnitId; + this.txtYear.Text = expense.Year.ToString(); + this.txtReportDate.Text = string.Format("{0:yyyy-MM-dd}", expense.ReportDate); + this.Grid1.DataSource = from x in Funs.DB.CostGoods_ExpenseDetail + where x.ExpenseId == this.ExpenseId + orderby x.SupSortIndex, x.SortIndex + select x; + this.Grid1.DataBind(); + } + } + + #region 附件上传 /// /// 上传附件 @@ -69,5 +95,20 @@ namespace FineUIPro.Web.HSSE.CostGoods } } #endregion + + #region 单位变化事件 + /// + /// 单位变化事件 + /// + /// + /// + protected void drpUnit_SelectedIndexChanged(object sender, EventArgs e) + { + if (this.drpUnit.SelectedValue != Const._Null && !string.IsNullOrEmpty(this.txtYear.Text)) + { + SetPage(Funs.DB.CostGoods_Expense.FirstOrDefault(x => x.ProjectId == this.ProjectId && x.UnitId == this.drpUnit.SelectedValue && x.Year.ToString() == this.txtYear.Text)); + } + } + #endregion } } \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HSSE/CostGoods/ExpenseView.aspx.designer.cs b/SGGL/FineUIPro.Web/HSSE/CostGoods/ExpenseView.aspx.designer.cs index 98c7ca45..5ce32437 100644 --- a/SGGL/FineUIPro.Web/HSSE/CostGoods/ExpenseView.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/HSSE/CostGoods/ExpenseView.aspx.designer.cs @@ -48,7 +48,7 @@ namespace FineUIPro.Web.HSSE.CostGoods /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.TextBox drpUnit; + protected global::FineUIPro.DropDownList drpUnit; /// /// txtYear 控件。 @@ -57,7 +57,7 @@ namespace FineUIPro.Web.HSSE.CostGoods /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.TextBox txtYear; + protected global::FineUIPro.DatePicker txtYear; /// /// txtReportDate 控件。 @@ -69,364 +69,13 @@ namespace FineUIPro.Web.HSSE.CostGoods protected global::FineUIPro.TextBox txtReportDate; /// - /// lbSortIndex 控件。 + /// Grid1 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.Label lbSortIndex; - - /// - /// Panel1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Panel Panel1; - - /// - /// GroupPanel1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.GroupPanel GroupPanel1; - - /// - /// SimpleForm2 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Form SimpleForm2; - - /// - /// txtA1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox txtA1; - - /// - /// txtA2 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox txtA2; - - /// - /// txtA3 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox txtA3; - - /// - /// txtA4 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox txtA4; - - /// - /// txtA5 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox txtA5; - - /// - /// txtA6 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox txtA6; - - /// - /// txtA7 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox txtA7; - - /// - /// txtA8 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox txtA8; - - /// - /// txtA9 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox txtA9; - - /// - /// txtA10 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox txtA10; - - /// - /// txtA11 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox txtA11; - - /// - /// txtA12 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox txtA12; - - /// - /// txtA13 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox txtA13; - - /// - /// txtA14 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox txtA14; - - /// - /// txtA15 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox txtA15; - - /// - /// txtA16 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox txtA16; - - /// - /// txtA17 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox txtA17; - - /// - /// txtA18 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox txtA18; - - /// - /// GroupPanel2 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.GroupPanel GroupPanel2; - - /// - /// Form2 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Form Form2; - - /// - /// txtB1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox txtB1; - - /// - /// txtB2 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox txtB2; - - /// - /// txtB3 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox txtB3; - - /// - /// GroupPanel3 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.GroupPanel GroupPanel3; - - /// - /// Form3 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Form Form3; - - /// - /// txtC1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox txtC1; - - /// - /// txtC2 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox txtC2; - - /// - /// txtC3 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox txtC3; - - /// - /// txtC4 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox txtC4; - - /// - /// txtC5 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox txtC5; - - /// - /// txtC6 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox txtC6; - - /// - /// GroupPanel4 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.GroupPanel GroupPanel4; - - /// - /// Form4 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Form Form4; - - /// - /// txtD1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox txtD1; - - /// - /// txtD2 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox txtD2; - - /// - /// txtD3 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox txtD3; + protected global::FineUIPro.Grid Grid1; /// /// Toolbar1 控件。 diff --git a/SGGL/FineUIPro.Web/HSSE/EduTrain/TestPlan.aspx b/SGGL/FineUIPro.Web/HSSE/EduTrain/TestPlan.aspx index e125bdc3..d9c847e8 100644 --- a/SGGL/FineUIPro.Web/HSSE/EduTrain/TestPlan.aspx +++ b/SGGL/FineUIPro.Web/HSSE/EduTrain/TestPlan.aspx @@ -18,7 +18,7 @@ DataIDField="TestPlanId" AllowSorting="true" SortField="TestStartTime" ForceFit="true" SortDirection="DESC" OnSort="Grid1_Sort" AllowPaging="true" IsDatabasePaging="true" PageSize="15" OnPageIndexChange="Grid1_PageIndexChange" EnableRowDoubleClickEvent="true" - OnRowDoubleClick="Grid1_RowDoubleClick" EnableTextSelection="True"> + OnRowDoubleClick="Grid1_RowDoubleClick" EnableTextSelection="True" EnableDelayRender="true"> diff --git a/SGGL/FineUIPro.Web/Person/PersonLib.aspx b/SGGL/FineUIPro.Web/Person/PersonLib.aspx index a6f9c94d..d0a676a3 100644 --- a/SGGL/FineUIPro.Web/Person/PersonLib.aspx +++ b/SGGL/FineUIPro.Web/Person/PersonLib.aspx @@ -20,7 +20,7 @@ SortField="JobNum" ForceFit="true" EnableColumnLines="true" BoxFlex="1" PageSize="10" SortDirection="DESC" OnSort="Grid1_Sort" AllowPaging="true" IsDatabasePaging="true" OnPageIndexChange="Grid1_PageIndexChange" EnableRowDoubleClickEvent="true" - OnRowDoubleClick="Grid1_RowDoubleClick" EnableTextSelection="True"> + OnRowDoubleClick="Grid1_RowDoubleClick" EnableTextSelection="True" EnableDelayRender="true">