|
@@ -1599,8 +1599,9 @@ namespace JLHHJSvr.Helper
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- public void GetBedNet(u_bednet bednet)
|
|
|
|
|
|
+ public u_bednet GetBedNet(int bednetid)
|
|
{
|
|
{
|
|
|
|
+ var bednet = new u_bednet() { bednetid = bednetid };
|
|
var outputFields = @"bednetid,deptid,bednettypeid,mattress_width,mattress_length,mattress_height,if_doublenet,if_doublespring,snake_wire_diameter,
|
|
var outputFields = @"bednetid,deptid,bednettypeid,mattress_width,mattress_length,mattress_height,if_doublenet,if_doublespring,snake_wire_diameter,
|
|
snake_wire_mtrl_formula,snake_wire_mtrl_cost,pocket_around_spring_formula,pocket_around_spring_cost,pocket_around_fabrics_formula,
|
|
snake_wire_mtrl_formula,snake_wire_mtrl_cost,pocket_around_spring_formula,pocket_around_spring_cost,pocket_around_fabrics_formula,
|
|
pocket_around_fabrics_cost,hard_around_mtrl_formula,hard_around_mtrl_cost,hard_around_hr_formula,hard_around_hr_cost,
|
|
pocket_around_fabrics_cost,hard_around_mtrl_formula,hard_around_mtrl_cost,hard_around_hr_formula,hard_around_hr_cost,
|
|
@@ -1630,6 +1631,8 @@ namespace JLHHJSvr.Helper
|
|
side_iron_weight_qty,hard_around_weight_qty,fabrics1_weight_qty,fabrics2_weight_qty,felt_weight_qty,
|
|
side_iron_weight_qty,hard_around_weight_qty,fabrics1_weight_qty,fabrics2_weight_qty,felt_weight_qty,
|
|
cnail_weight_qty,sponge_weight_qty,sponge_weight_tc_qty,edge_weight_qty,fork_weight_qty,if_jb";
|
|
cnail_weight_qty,sponge_weight_qty,sponge_weight_tc_qty,edge_weight_qty,fork_weight_qty,if_jb";
|
|
DbSqlHelper.SelectOne(cmd, bednet, outputFields);
|
|
DbSqlHelper.SelectOne(cmd, bednet, outputFields);
|
|
|
|
+
|
|
|
|
+ return bednet;
|
|
}
|
|
}
|
|
|
|
|
|
public List<u_bednetmx_spring> GetBedNetSpringList(int bednetid)
|
|
public List<u_bednetmx_spring> GetBedNetSpringList(int bednetid)
|
|
@@ -1872,9 +1875,7 @@ namespace JLHHJSvr.Helper
|
|
|
|
|
|
public void CopyBedNet(u_bednet bednet,u_bednetmx bednetmx,out int newId)
|
|
public void CopyBedNet(u_bednet bednet,u_bednetmx bednetmx,out int newId)
|
|
{
|
|
{
|
|
- var bedNet_copy = new u_bednet() { bednetid = bednet.bednetid};
|
|
|
|
-
|
|
|
|
- GetBedNet(bedNet_copy);
|
|
|
|
|
|
+ var bedNet_copy = GetBedNet(bednet.bednetid.Value);
|
|
|
|
|
|
var bedNetMxList = GetBedNetMxList(bednet.bednetid.Value);
|
|
var bedNetMxList = GetBedNetMxList(bednet.bednetid.Value);
|
|
var springList = GetBedNetSpringList(bednet.bednetid.Value);
|
|
var springList = GetBedNetSpringList(bednet.bednetid.Value);
|