修改集团展示页

This commit is contained in:
2023-03-28 16:44:12 +08:00
parent e5f663ff7f
commit 7e7188039b
55 changed files with 7524 additions and 177 deletions
+30 -17
View File
@@ -20,8 +20,7 @@ namespace FineUIPro.Web.DataShow
{
if (!IsPostBack)
{
Funs.DropDownPageSize(this.ddlPageSize);
btnClose.OnClientClick = ActiveWindow.GetHideReference();
Funs.DropDownPageSize(this.ddlPageSize);
ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
BLL.ProjectService.InitProjectDropDownList(this.drpProject, true);
// 绑定表格t
@@ -29,7 +28,7 @@ namespace FineUIPro.Web.DataShow
}
}
/// <summary>
/// 绑定数据
/// </summary>
@@ -58,7 +57,7 @@ namespace FineUIPro.Web.DataShow
// cpara += " AND c.RegisterDate <=" + this.txtEndTime.Text;
//}
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
Grid1.RecordCount = tb.Rows.Count;
@@ -140,13 +139,13 @@ namespace FineUIPro.Web.DataShow
/// </summary>
private void EditData()
{
if (Grid1.SelectedRowIndexArray.Length == 0)
{
Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
return;
}
//if (Grid1.SelectedRowIndexArray.Length == 0)
//{
// Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
// return;
//}
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("HJGLWeldingItem.aspx?projectId={0}", Grid1.SelectedRowID, "查看 - ")));
//PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("HJGLWeldingItem.aspx?projectId={0}", Grid1.SelectedRowID, "查看 - ")));
}
#endregion
@@ -171,7 +170,10 @@ namespace FineUIPro.Web.DataShow
select x;
if (getD1.Count() > 0)
{
cout1 = getD1.Sum(x => Funs.GetNewIntOrZero(x.TotalWeldQuantity ?? ""));
foreach (var item in getD1)
{
cout1 += Funs.GetNewIntOrZero(item.TotalWeldQuantity);
}
}
}
return cout1;
@@ -193,12 +195,15 @@ namespace FineUIPro.Web.DataShow
// join y in Funs.DB.BO_WeldReportMain on x.DReportID equals y.DReportID
// where x.ProjectId == projectId.ToString()
// select new { x.JOT_DoneDin, y.JOT_WeldDate };
var getD1= from x in Funs.DB.HJGL_FL_TotalQuantity
where x.ProjectId == projectId.ToString()
select x;
var getD1 = from x in Funs.DB.HJGL_FL_TotalQuantity
where x.ProjectId == projectId.ToString()
select x;
if (getD1.Count() > 0)
{
cout1 = getD1.Sum(x => Funs.GetNewIntOrZero(x.TotalWeldQuantity ?? ""));
foreach (var item in getD1)
{
cout1 += Funs.GetNewIntOrZero(item.TotalWeldQuantity);
}
}
//if (datetime1.HasValue)
//{
@@ -251,8 +256,12 @@ namespace FineUIPro.Web.DataShow
select x;
if (getD1.Count() > 0)
{
cout1 = getD1.Sum(x => Funs.GetNewIntOrZero(x.OneTimeFilmAmount ?? ""));
foreach (var item in getD1)
{
cout1 += Funs.GetNewIntOrZero(item.OneTimeFilmAmount);
}
}
}
return cout1;
}
@@ -291,8 +300,12 @@ namespace FineUIPro.Web.DataShow
select x;
if (getD1.Count() > 0)
{
cout1 = getD1.Sum(x => Funs.GetNewIntOrZero(x.OneTimeFilmQualifiedAmount ?? ""));
foreach (var item in getD1)
{
cout1 += Funs.GetNewIntOrZero(item.OneTimeFilmQualifiedAmount);
}
}
}
return cout1;
}