|
@@ -2189,6 +2189,11 @@ namespace JLHHJSvr.Helper
|
|
|
var fieldsMx_spring = @"bednetmx_partid,bednetmxid,springid,spring_qty_width,spring_qty_length,fabrics1_mtrl_cost,spring_mtrl_cost,
|
|
|
spring_hr_cost,spring_mtrl_cost_replace_formula,spring_hr_cost_replace_formula,spring_weight_replace_formula";
|
|
|
|
|
|
+ if (bednet.if_stock_up == null)
|
|
|
+ {
|
|
|
+ bednet.if_stock_up = 0;
|
|
|
+ }
|
|
|
+
|
|
|
if (bednet.bednetid <= 0)
|
|
|
{
|
|
|
//新建
|
|
@@ -2198,7 +2203,7 @@ namespace JLHHJSvr.Helper
|
|
|
bednet.createtime = dtNow;
|
|
|
bednet.createby = context.tokendata.username;
|
|
|
|
|
|
- if(string.IsNullOrEmpty(bednet.bednetcode))
|
|
|
+ if (string.IsNullOrEmpty(bednet.bednetcode))
|
|
|
{
|
|
|
var nettype = new u_bednet_type() { bednettypeid = bednet.bednettypeid };
|
|
|
DbSqlHelper.SelectOne(cmd, nettype, "typecode");
|