施工质量月报新 增加6、7.1 7.2 7.3 8
This commit is contained in:
@@ -270,6 +270,7 @@
|
||||
<Compile Include="CQMS\ProcessControl\HotProessManageService.cs" />
|
||||
<Compile Include="CQMS\ProcessControl\InspectionManagementDetailService.cs" />
|
||||
<Compile Include="CQMS\ProcessControl\InspectionManagementService.cs" />
|
||||
<Compile Include="CQMS\ProcessControl\NondestructiveTestNewService.cs" />
|
||||
<Compile Include="CQMS\ProcessControl\NondestructiveTestService.cs" />
|
||||
<Compile Include="CQMS\ProcessControl\TestPackageManagementService.cs" />
|
||||
<Compile Include="CQMS\Solution\CQMSConstructSolutionApproveService.cs" />
|
||||
|
||||
@@ -0,0 +1,94 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Collections;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
public class NondestructiveTestNewService
|
||||
{
|
||||
public static bool Insert(Model.ProcessControl_NondestructiveTest_New model)
|
||||
{
|
||||
try
|
||||
{
|
||||
Funs.DB.ProcessControl_NondestructiveTest_New.InsertOnSubmit(model);
|
||||
Funs.DB.SubmitChanges();
|
||||
return true;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ErrLogInfo.WriteLog($"插入数据失败,原因:{ex.Message}");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public static bool Update(Model.ProcessControl_NondestructiveTest_New model)
|
||||
{
|
||||
try
|
||||
{
|
||||
var result = Funs.DB.ProcessControl_NondestructiveTest_New.FirstOrDefault(a => a.Id == model.Id);
|
||||
if (result != null)
|
||||
{
|
||||
result.UnitId = model.UnitId;
|
||||
result.ProfessionalName = model.ProfessionalName;
|
||||
result.MonthQuantity = model.MonthQuantity;
|
||||
result.TotalQuantity = model.TotalQuantity;
|
||||
result.MonthRate = model.MonthRate;
|
||||
result.TotalRate = model.TotalRate;
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ErrLogInfo.WriteLog($"更新表数据失败,原因:{ex.Message}");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public static bool Delete(List<string> newId)
|
||||
{
|
||||
try
|
||||
{
|
||||
var result = Funs.DB.ProcessControl_NondestructiveTest_New.Where(a => newId.Contains(a.Id)).ToList();
|
||||
if (result.Count > 0)
|
||||
{
|
||||
Funs.DB.ProcessControl_NondestructiveTest_New.DeleteAllOnSubmit(result);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ErrLogInfo.WriteLog($"删除数据失败,原因:{ex.Message}");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public static bool Delete(string newId)
|
||||
{
|
||||
try
|
||||
{
|
||||
var result = Funs.DB.ProcessControl_NondestructiveTest_New.Where(a => a.Id == newId).ToList();
|
||||
if (result.Count > 0)
|
||||
{
|
||||
Funs.DB.ProcessControl_NondestructiveTest_New.DeleteAllOnSubmit(result);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ErrLogInfo.WriteLog($"删除数据失败,原因:{ex.Message}");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public static Model.ProcessControl_NondestructiveTest_New Detail(string newId)
|
||||
{
|
||||
var result = Funs.DB.ProcessControl_NondestructiveTest_New.FirstOrDefault(a => a.Id == newId);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3691,6 +3691,10 @@ namespace BLL
|
||||
/// </summary>
|
||||
public const string ProjectControlPointMenuId = "5AA08233-9E04-4808-AC43-DD411C5F9D31";
|
||||
|
||||
/// <summary>
|
||||
/// 无损检测管理(新)
|
||||
/// </summary>
|
||||
public const string NondestructiveTestNewMenuId = "9CB732E5-21D3-4B5D-ABF9-1DADB1CA3A88";
|
||||
#region 国外项目
|
||||
#region 资料库
|
||||
/// <summary>
|
||||
|
||||
@@ -777,5 +777,18 @@ namespace BLL
|
||||
}
|
||||
return name;
|
||||
}
|
||||
|
||||
//获取下拉单位,value和text都是中文
|
||||
public static void InitUnitDownListByText(FineUIPro.DropDownList dropName, string projectId, bool isShowPlease)
|
||||
{
|
||||
dropName.DataValueField = "Text";
|
||||
dropName.DataTextField = "Text";
|
||||
dropName.DataSource = drpMainOrSubUnitList(projectId);
|
||||
dropName.DataBind();
|
||||
if (isShowPlease)
|
||||
{
|
||||
Funs.FineUIPleaseSelect(dropName);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user