Merge branch 'master' of http://47.104.102.122:3000/lpf/SGGL_SeDin_New
This commit is contained in:
@@ -74,10 +74,10 @@
|
||||
<f:RenderField ColumnID="State" DataField="State" Width="120px" FieldType="String" HeaderText="状态" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="BidProject" DataField="BidProject" Width="200px" FieldType="String" HeaderText="招标工程" TextAlign="Center"
|
||||
<f:RenderField ColumnID="BidProject" DataField="BidProject" Width="200px" FieldType="String" HeaderText="分包工程" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="BidType" DataField="BidType" Width="120px" FieldType="String" HeaderText="招标方式" TextAlign="Center"
|
||||
<f:RenderField ColumnID="BidType" DataField="BidType" Width="120px" FieldType="String" HeaderText="分包方式" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="PriceType" DataField="PriceType" Width="180px" FieldType="String" HeaderText="计价方式" TextAlign="Center"
|
||||
|
||||
@@ -1248,7 +1248,12 @@ namespace FineUIPro.Web.ZHGL.Environmental
|
||||
newItem.ArchitectureReportId = report.ArchitectureReportId;
|
||||
newItem.BaseNumber = System.Web.HttpUtility.HtmlDecode(item.BaseNumber);
|
||||
newItem.SortIndex = System.Web.HttpUtility.HtmlDecode(item.SortIndex);
|
||||
newItem.LastYearValue = System.Web.HttpUtility.HtmlDecode(item.LastYearValue);
|
||||
string str = item.LastYearValue;
|
||||
if (str == "6E-05")
|
||||
{
|
||||
str = "0.00006";
|
||||
}
|
||||
newItem.LastYearValue = System.Web.HttpUtility.HtmlDecode(str);
|
||||
newItem.ThisYearValue = System.Web.HttpUtility.HtmlDecode(item.ThisYearValue);
|
||||
newItem.Rate = System.Web.HttpUtility.HtmlDecode(item.Rate);
|
||||
ArchitectureReportItemService.AddArchitectureReportItem(newItem);
|
||||
@@ -1265,7 +1270,7 @@ namespace FineUIPro.Web.ZHGL.Environmental
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||
return;
|
||||
}
|
||||
else if (code=="3")
|
||||
else if (code == "3")
|
||||
{
|
||||
Alert.ShowInParent("集团当前季度数据已锁定,无法上传!", MessageBoxIcon.Error);
|
||||
}
|
||||
@@ -1284,26 +1289,26 @@ namespace FineUIPro.Web.ZHGL.Environmental
|
||||
|
||||
protected void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
/* bool isEmpty = false;
|
||||
foreach (JObject mergedRow in Grid1.GetMergedData())
|
||||
{
|
||||
JObject values = mergedRow.Value<JObject>("values");
|
||||
int rowIndex = mergedRow.Value<int>("index");
|
||||
string sortIndex = values.Value<string>("SortIndex");
|
||||
if (sortIndex == "18" || sortIndex == "37" || sortIndex == "38")
|
||||
{
|
||||
if (Funs.GetNewDecimalOrZero(System.Web.HttpUtility.HtmlDecode(values.Value<string>("ThisYearValue"))) == 0)
|
||||
{
|
||||
isEmpty = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (isEmpty)
|
||||
{
|
||||
ShowNotify("营业收入(可比价)、万元收入二氧化碳排放(可比价)和二氧化碳排放量不能为空,必须填报数据!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}*/
|
||||
/* bool isEmpty = false;
|
||||
foreach (JObject mergedRow in Grid1.GetMergedData())
|
||||
{
|
||||
JObject values = mergedRow.Value<JObject>("values");
|
||||
int rowIndex = mergedRow.Value<int>("index");
|
||||
string sortIndex = values.Value<string>("SortIndex");
|
||||
if (sortIndex == "18" || sortIndex == "37" || sortIndex == "38")
|
||||
{
|
||||
if (Funs.GetNewDecimalOrZero(System.Web.HttpUtility.HtmlDecode(values.Value<string>("ThisYearValue"))) == 0)
|
||||
{
|
||||
isEmpty = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (isEmpty)
|
||||
{
|
||||
ShowNotify("营业收入(可比价)、万元收入二氧化碳排放(可比价)和二氧化碳排放量不能为空,必须填报数据!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}*/
|
||||
Save("add");
|
||||
ShowNotify("保存成功!", MessageBoxIcon.Success);
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||
@@ -1331,7 +1336,12 @@ namespace FineUIPro.Web.ZHGL.Environmental
|
||||
{
|
||||
try
|
||||
{
|
||||
decimal d = Convert.ToDecimal(values.Value<string>("LastYearValue"));
|
||||
string str = values.Value<string>("LastYearValue");
|
||||
if (str == "6E-05")
|
||||
{
|
||||
str = "0.00006";
|
||||
}
|
||||
decimal d = Convert.ToDecimal(str);
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user