|
@@ -177,7 +177,7 @@ namespace JLHHJSvr.Helper
|
|
|
|
|
|
foreach (var mx in mxlist)
|
|
|
{
|
|
|
- var spring = Cache.GetData<int,u_spring,SpringMapping>(mx.springid.Value);
|
|
|
+ var spring = Cache.GetData<u_spring,SpringMapping>(mx.springid.Value);
|
|
|
|
|
|
// 处理相同公式部分
|
|
|
InitMxReplaceMents(bednet, mx, spring);
|
|
@@ -1133,7 +1133,7 @@ namespace JLHHJSvr.Helper
|
|
|
|
|
|
private void InitBedNet(u_bednet bednet, Boolean isCalBed = true)
|
|
|
{
|
|
|
- var dept = Cache.GetData<int,u_dept,DeptMapping>(bednet.deptid.Value);
|
|
|
+ var dept = Cache.GetData<u_dept,DeptMapping>(bednet.deptid.Value);
|
|
|
|
|
|
//var profirate = new u_factory_profitrate() { deptid = bednet.deptid, bednettypeid_mattresstypeid = bednet.bednettypeid, bednet_or_mattress = 0 };
|
|
|
//DbSqlHelper.SelectOne(cmd, profirate, "profitrate");
|
|
@@ -1399,7 +1399,7 @@ namespace JLHHJSvr.Helper
|
|
|
AddKeyValue("边铁条数", mx.side_iron_qty);
|
|
|
AddKeyValue("条数", mx.side_iron_qty);
|
|
|
|
|
|
- var spring = Cache.GetData<int,u_spring,SpringMapping>(mx2.springid.Value);
|
|
|
+ var spring = Cache.GetData<u_spring,SpringMapping>(mx2.springid.Value);
|
|
|
|
|
|
spring.gram_weight /= 1000;
|
|
|
if (spring.gram_weight > 0)
|
|
@@ -1444,7 +1444,7 @@ namespace JLHHJSvr.Helper
|
|
|
/// <param name="mx"></param>
|
|
|
private void CalSpringMtrlCol2(u_bednet bednet, u_bednetmx mx, List<u_bednetmx_spring> springList, string type)
|
|
|
{
|
|
|
- var spring = Cache.GetData<int,u_spring,SpringMapping>(mx.springid.Value);
|
|
|
+ var spring = Cache.GetData<u_spring, SpringMapping>(mx.springid.Value);
|
|
|
|
|
|
#region 计算 底面无纺布 开始
|
|
|
//计算 上下无纺布方数 =(B4+C4)*(B4+D4)/10000
|
|
@@ -1467,7 +1467,7 @@ namespace JLHHJSvr.Helper
|
|
|
{
|
|
|
_springid = springList[0].springid;
|
|
|
}
|
|
|
- var _spring = Cache.GetData<int,u_spring,SpringMapping>(_springid.Value);
|
|
|
+ var _spring = Cache.GetData<u_spring, SpringMapping>(_springid.Value);
|
|
|
|
|
|
spring.center_diameter = _spring.center_diameter == null ? 0 : _spring.center_diameter;
|
|
|
|
|
@@ -1659,7 +1659,7 @@ namespace JLHHJSvr.Helper
|
|
|
var spring = new u_spring() { springid = springId };
|
|
|
if (line_diameter == 0)
|
|
|
{
|
|
|
- spring = Cache.GetData<int,u_spring,SpringMapping>(springId.Value);
|
|
|
+ spring = Cache.GetData<u_spring, SpringMapping>(springId.Value);
|
|
|
AddKeyValue(springName + "弹簧重/个", spring.gram_weight / 1000);
|
|
|
AddKeyValue(springName + "弹簧重", spring.gram_weight / 1000);
|
|
|
}
|
|
@@ -2479,7 +2479,7 @@ namespace JLHHJSvr.Helper
|
|
|
var mxList = GetBedNetMxList(bednetid);
|
|
|
var springList = GetBedNetSpringList(bednetid);
|
|
|
|
|
|
- var dept = Cache.GetData<int,u_dept,DeptMapping>(bednet.deptid.Value); ;
|
|
|
+ var dept = Cache.GetData<u_dept, DeptMapping>(bednet.deptid.Value); ;
|
|
|
|
|
|
if(bednet.deptid == null || bednet.deptid.Value <= 0)
|
|
|
{
|
|
@@ -2915,7 +2915,7 @@ namespace JLHHJSvr.Helper
|
|
|
{
|
|
|
//var spring = new u_spring() { springid = springid };
|
|
|
//DbSqlHelper.SelectOne(cmd, spring, "line_diameter,gram_weight,height,center_diameter,cyclenum,caliber");
|
|
|
- var spring = Cache.GetData<int,u_spring,SpringMapping>(springid);
|
|
|
+ var spring = Cache.GetData<u_spring, SpringMapping>(springid);
|
|
|
return spring.name;
|
|
|
}
|
|
|
|
|
@@ -2953,7 +2953,7 @@ namespace JLHHJSvr.Helper
|
|
|
//多区
|
|
|
_springid = springList[0].springid;
|
|
|
}
|
|
|
- var spring = Cache.GetData<int,u_spring,SpringMapping>(_springid.Value);
|
|
|
+ var spring = Cache.GetData<u_spring, SpringMapping>(_springid.Value);
|
|
|
|
|
|
// 处理相同公式部分
|
|
|
InitMxReplaceMents(bednet, mx, spring);
|