危险源管理模块接入真实数据库:新增危大/超危工程、风险控制清单、安全验收、安全巡检、临时用电管理(含前端页面、BLL/API服务、WebAPI控制器、Model项、SQL脚本与接口文档)
排除 CreateModel.bat(含明文sa密码与本地服务器名,未入库)
This commit is contained in:
@@ -153,32 +153,32 @@ left join(
|
||||
{
|
||||
total_din += decimal.Parse(tb0.Rows[i]["total_din"].ToString());
|
||||
}
|
||||
catch (Exception e) { }
|
||||
catch (Exception) { }
|
||||
try
|
||||
{
|
||||
finished_total_din_bq += decimal.Parse(tb0.Rows[i]["finished_total_din_bq"].ToString());
|
||||
}
|
||||
catch (Exception e) { }
|
||||
catch (Exception) { }
|
||||
try
|
||||
{
|
||||
week_total_din_bq += decimal.Parse(tb0.Rows[i]["week_total_din_bq"].ToString());
|
||||
}
|
||||
catch (Exception e) { }
|
||||
catch (Exception) { }
|
||||
try
|
||||
{
|
||||
WelderNum += int.Parse(tb0.Rows[i]["WelderNum"].ToString());
|
||||
}
|
||||
catch (Exception e) { }
|
||||
catch (Exception) { }
|
||||
try
|
||||
{
|
||||
tb0.Rows[i]["res_din"] = decimal.Parse(tb0.Rows[i]["total_din"].ToString()) - decimal.Parse(tb0.Rows[i]["finished_total_din_bq"].ToString());
|
||||
}
|
||||
catch (Exception e) { }
|
||||
catch (Exception) { }
|
||||
try
|
||||
{
|
||||
tb0.Rows[i]["has_per"] = (100 * decimal.Parse(tb0.Rows[i]["finished_total_din_bq"].ToString()) / decimal.Parse(tb0.Rows[i]["total_din"].ToString())).ToString("##.##");
|
||||
}
|
||||
catch (Exception e) { }
|
||||
catch (Exception) { }
|
||||
}
|
||||
|
||||
newRow["total_din"] = total_din ;
|
||||
@@ -189,12 +189,12 @@ left join(
|
||||
{
|
||||
newRow["res_din"] = decimal.Parse(newRow["total_din"].ToString()) - decimal.Parse(newRow["finished_total_din_bq"].ToString());
|
||||
}
|
||||
catch (Exception e) { }
|
||||
catch (Exception) { }
|
||||
try
|
||||
{
|
||||
newRow["has_per"] = (100 * decimal.Parse(newRow["finished_total_din_bq"].ToString()) / decimal.Parse(newRow["total_din"].ToString())).ToString("##.##");
|
||||
}
|
||||
catch (Exception e) { }
|
||||
catch (Exception) { }
|
||||
tb0.Rows.Add(newRow);
|
||||
}
|
||||
this.Grid0.DataSource = tb0;
|
||||
@@ -278,32 +278,32 @@ left join(
|
||||
{
|
||||
total_din += decimal.Parse(tb1.Rows[i]["total_din"].ToString());
|
||||
}
|
||||
catch (Exception e) { }
|
||||
catch (Exception) { }
|
||||
try
|
||||
{
|
||||
finished_total_din_bq += decimal.Parse(tb1.Rows[i]["finished_total_din_bq"].ToString());
|
||||
}
|
||||
catch (Exception e) { }
|
||||
catch (Exception) { }
|
||||
try
|
||||
{
|
||||
week_total_din_bq += decimal.Parse(tb1.Rows[i]["week_total_din_bq"].ToString());
|
||||
}
|
||||
catch (Exception e) { }
|
||||
catch (Exception) { }
|
||||
try
|
||||
{
|
||||
WelderNum += int.Parse(tb1.Rows[i]["WelderNum"].ToString());
|
||||
}
|
||||
catch (Exception e) { }
|
||||
catch (Exception) { }
|
||||
try
|
||||
{
|
||||
tb1.Rows[i]["res_din"] = decimal.Parse(tb1.Rows[i]["total_din"].ToString()) - decimal.Parse(tb1.Rows[i]["finished_total_din_bq"].ToString());
|
||||
}
|
||||
catch (Exception e) { }
|
||||
catch (Exception) { }
|
||||
try
|
||||
{
|
||||
tb1.Rows[i]["has_per"] = (100 * decimal.Parse(tb1.Rows[i]["finished_total_din_bq"].ToString()) / decimal.Parse(tb1.Rows[i]["total_din"].ToString())).ToString("##.##");
|
||||
}
|
||||
catch (Exception e) { }
|
||||
catch (Exception) { }
|
||||
}
|
||||
|
||||
newRow["total_din"] = total_din;
|
||||
@@ -314,12 +314,12 @@ left join(
|
||||
{
|
||||
newRow["res_din"] = decimal.Parse(newRow["total_din"].ToString()) - decimal.Parse(newRow["finished_total_din_bq"].ToString());
|
||||
}
|
||||
catch (Exception e) { }
|
||||
catch (Exception) { }
|
||||
try
|
||||
{
|
||||
newRow["has_per"] = (100 * decimal.Parse(newRow["finished_total_din_bq"].ToString()) / decimal.Parse(newRow["total_din"].ToString())).ToString("##.##");
|
||||
}
|
||||
catch (Exception e) { }
|
||||
catch (Exception) { }
|
||||
tb1.Rows.Add(newRow);
|
||||
}
|
||||
this.Grid1.DataSource = tb1;
|
||||
@@ -640,7 +640,6 @@ left join(
|
||||
{
|
||||
int nowtotalfilm = 0;//本期拍片总数
|
||||
int nowpassfilm = 0;//本期拍片合格数
|
||||
int nownotpassfilm = 0;//本期拍片不合格数
|
||||
string nowpassrate = "";
|
||||
int totalfilm = 0;//总片数
|
||||
int passfilm = 0;//合格片数
|
||||
@@ -959,22 +958,22 @@ left join(
|
||||
tb1.Rows[i]["finished_total_din_bq"] = 0;
|
||||
}
|
||||
}
|
||||
catch (Exception e11) { }
|
||||
catch (Exception) { }
|
||||
try
|
||||
{
|
||||
WelderNum += int.Parse(tb1.Rows[i]["WelderNum"].ToString());
|
||||
}
|
||||
catch (Exception e1) { }
|
||||
catch (Exception) { }
|
||||
try
|
||||
{
|
||||
tb1.Rows[i]["res_din"] = decimal.Parse(tb1.Rows[i]["total_din"].ToString()) - decimal.Parse(tb1 .Rows[i]["finished_total_din_bq"].ToString());
|
||||
}
|
||||
catch (Exception e2) { }
|
||||
catch (Exception) { }
|
||||
try
|
||||
{
|
||||
tb1.Rows[i]["has_per"] = (100 * decimal.Parse(tb1.Rows[i]["finished_total_din_bq"].ToString()) / decimal.Parse(tb1.Rows[i]["total_din"].ToString())).ToString("##.##");
|
||||
}
|
||||
catch (Exception e3) { }
|
||||
catch (Exception) { }
|
||||
}
|
||||
|
||||
|
||||
@@ -1062,22 +1061,22 @@ left join(
|
||||
tb2.Rows[i]["finished_total_din_bq"] = 0;
|
||||
}
|
||||
}
|
||||
catch (Exception e11) { }
|
||||
catch (Exception) { }
|
||||
try
|
||||
{
|
||||
WelderNum += int.Parse(tb2.Rows[i]["WelderNum"].ToString());
|
||||
}
|
||||
catch (Exception e1) { }
|
||||
catch (Exception) { }
|
||||
try
|
||||
{
|
||||
tb2.Rows[i]["res_din"] = decimal.Parse(tb2.Rows[i]["total_din"].ToString()) - decimal.Parse(tb2.Rows[i]["finished_total_din_bq"].ToString());
|
||||
}
|
||||
catch (Exception e2) { }
|
||||
catch (Exception) { }
|
||||
try
|
||||
{
|
||||
tb2.Rows[i]["has_per"] = (100 * decimal.Parse(tb2.Rows[i]["finished_total_din_bq"].ToString()) / decimal.Parse(tb2.Rows[i]["total_din"].ToString())).ToString("##.##");
|
||||
}
|
||||
catch (Exception e3) { }
|
||||
catch (Exception) { }
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user