代码无效引用清理,试压包资料界面看板修改
This commit is contained in:
@@ -66,7 +66,7 @@ namespace FineUIPro.Web.ZHGL.Environmental
|
||||
ddlUnitId.SelectedValue = BLL.Const.UnitId_SEDIN;
|
||||
BindGrid(year, quarter, unitId);
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -170,19 +170,20 @@ namespace FineUIPro.Web.ZHGL.Environmental
|
||||
var reportItemlist = new List<Model.Environmental_OperationReportItem>();
|
||||
//第一个本单位
|
||||
var isthisUnit = CommonService.GetIsThisUnit();
|
||||
var reportItemModel = new Model.Environmental_OperationReportItem() {
|
||||
var reportItemModel = new Model.Environmental_OperationReportItem()
|
||||
{
|
||||
BusinessReportItemId = Guid.NewGuid().ToString(),
|
||||
SortIndex = 1,
|
||||
UnitName = isthisUnit.UnitName,
|
||||
SortUnitName= isthisUnit.UnitName,
|
||||
SortUnitName = isthisUnit.UnitName,
|
||||
Code = isthisUnit.UnitCode,
|
||||
UnitLevel = "",
|
||||
CreateDate=null,
|
||||
Place= isthisUnit.Address,
|
||||
PersonNum=0,
|
||||
TotalAssets=0,
|
||||
TotalValue=0,
|
||||
NewInvestment=0,
|
||||
CreateDate = null,
|
||||
Place = isthisUnit.Address,
|
||||
PersonNum = 0,
|
||||
TotalAssets = 0,
|
||||
TotalValue = 0,
|
||||
NewInvestment = 0,
|
||||
};
|
||||
reportItemlist.Add(reportItemModel);
|
||||
//加载分单位
|
||||
@@ -363,10 +364,11 @@ namespace FineUIPro.Web.ZHGL.Environmental
|
||||
#endregion
|
||||
|
||||
#region 保存子表
|
||||
private void saveReportItem(string BusinessReportId) {
|
||||
private void saveReportItem(string BusinessReportId)
|
||||
{
|
||||
var list = Funs.DB.Environmental_OperationReportItem.Where(x => x.BusinessReportId == BusinessReportId).ToList();
|
||||
//先删除
|
||||
if (list.Count>0)
|
||||
if (list.Count > 0)
|
||||
{
|
||||
Funs.DB.Environmental_OperationReportItem.DeleteAllOnSubmit(list);
|
||||
Funs.DB.SubmitChanges();
|
||||
@@ -379,17 +381,18 @@ namespace FineUIPro.Web.ZHGL.Environmental
|
||||
{
|
||||
JObject values = item.Value<JObject>("values");
|
||||
int i = item.Value<int>("index");
|
||||
var model = new Model.Environmental_OperationReportItem() {
|
||||
BusinessReportItemId= Grid1.Rows[i].DataKeys[0].ToString(),
|
||||
BusinessReportId= BusinessReportId,
|
||||
SortIndex= i+1,
|
||||
var model = new Model.Environmental_OperationReportItem()
|
||||
{
|
||||
BusinessReportItemId = Grid1.Rows[i].DataKeys[0].ToString(),
|
||||
BusinessReportId = BusinessReportId,
|
||||
SortIndex = i + 1,
|
||||
UnitName = values.Value<string>("UnitName").ToString(),
|
||||
SortUnitName= isthisUnit.UnitName,
|
||||
Code= values.Value<string>("Code").ToString(),
|
||||
UnitLevel= values.Value<string>("UnitLevel").ToString(),
|
||||
Place= values.Value<string>("Place").ToString(),
|
||||
PersonNum= values.Value<int>("PersonNum"),
|
||||
TotalAssets= values.Value<decimal>("TotalAssets"),
|
||||
SortUnitName = isthisUnit.UnitName,
|
||||
Code = values.Value<string>("Code").ToString(),
|
||||
UnitLevel = values.Value<string>("UnitLevel").ToString(),
|
||||
Place = values.Value<string>("Place").ToString(),
|
||||
PersonNum = values.Value<int>("PersonNum"),
|
||||
TotalAssets = values.Value<decimal>("TotalAssets"),
|
||||
TotalValue = values.Value<decimal>("TotalValue"),
|
||||
NewInvestment = values.Value<decimal>("NewInvestment"),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user