|
@@ -85,7 +85,7 @@ namespace JLHHJSvr.Helper
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- throw new LJCommonException("弹簧材料总成本公式错误!");
|
|
|
+ throw new LJCommonException($"弹簧材料总成本公式错误!expression: {mx.spring_mtrl_cost_replace_formula}");
|
|
|
}
|
|
|
}
|
|
|
else
|
|
@@ -111,7 +111,7 @@ namespace JLHHJSvr.Helper
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- throw new LJCommonException("弹簧材料总成本公式错误!");
|
|
|
+ throw new LJCommonException($"弹簧材料总成本公式错误!expression: {springItem.spring_mtrl_cost_replace_formula}");
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -138,7 +138,7 @@ namespace JLHHJSvr.Helper
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- throw new LJCommonException("弹簧总人工成本公式错误!");
|
|
|
+ throw new LJCommonException($"弹簧总人工成本公式错误!expression: {mx.spring_hr_cost_replace_formula}");
|
|
|
}
|
|
|
}
|
|
|
#endregion 计算 弹簧人工总成本 结束
|
|
@@ -163,7 +163,7 @@ namespace JLHHJSvr.Helper
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- throw new LJCommonException("蛇线材料成本公式错误!");
|
|
|
+ throw new LJCommonException($"蛇线材料成本公式错误!expression: {bednet.snake_wire_mtrl_cost_replace_formula}");
|
|
|
}
|
|
|
}
|
|
|
#endregion 计算 蛇线材料成本 结束
|
|
@@ -187,7 +187,7 @@ namespace JLHHJSvr.Helper
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- throw new LJCommonException("四周口袋弹簧成本公式错误!");
|
|
|
+ throw new LJCommonException($"四周口袋弹簧成本公式错误!expression: {mx.pocket_around_spring_cost_replace_formula}");
|
|
|
}
|
|
|
}
|
|
|
#endregion 计算 四周口袋弹簧成本 结束
|
|
@@ -211,7 +211,7 @@ namespace JLHHJSvr.Helper
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- throw new LJCommonException("四周口袋无纺布成本公式错误!");
|
|
|
+ throw new LJCommonException($"四周口袋无纺布成本公式错误!expression: {mx.pocket_around_fabrics_cost_replace_formula}");
|
|
|
}
|
|
|
}
|
|
|
#endregion 计算 四周口袋无纺布成本 结束
|
|
@@ -235,7 +235,7 @@ namespace JLHHJSvr.Helper
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- throw new LJCommonException("四周加硬材料成本公式错误!");
|
|
|
+ throw new LJCommonException($"四周加硬材料成本公式错误!expression: {mx.hard_around_mtrl_cost_replace_formula}");
|
|
|
}
|
|
|
}
|
|
|
#endregion 计算 四周加硬材料成本 结束
|
|
@@ -259,7 +259,7 @@ namespace JLHHJSvr.Helper
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- throw new LJCommonException("四周加硬人力成本公式错误!");
|
|
|
+ throw new LJCommonException($"四周加硬人力成本公式错误!expression: {mx.hard_around_hr_cost_replace_formula}");
|
|
|
}
|
|
|
}
|
|
|
#endregion 计算 四周加硬人力成本 结束
|
|
@@ -285,7 +285,7 @@ namespace JLHHJSvr.Helper
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- throw new LJCommonException("入袋无纺布材料成本公式错误!");
|
|
|
+ throw new LJCommonException($"入袋无纺布材料成本公式错误!expression: {mx.fabrics1_mtrl_cost_replace_formula}");
|
|
|
}
|
|
|
}
|
|
|
#endregion 计算 入袋无纺布材料成本 结束
|
|
@@ -308,7 +308,7 @@ namespace JLHHJSvr.Helper
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- throw new LJCommonException("胶水材料成本公式错误!");
|
|
|
+ throw new LJCommonException($"胶水材料成本公式错误!expression: {mx.glue_mtrl_cost_replace_formula}");
|
|
|
}
|
|
|
}
|
|
|
#endregion 计算 胶水材料成本 结束
|
|
@@ -334,7 +334,7 @@ namespace JLHHJSvr.Helper
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- throw new LJCommonException("底面无纺布材料成本公式错误!");
|
|
|
+ throw new LJCommonException($"底面无纺布材料成本公式错误!expression: {mx.fabrics2_mtrl_cost_replace_formula}");
|
|
|
}
|
|
|
}
|
|
|
#endregion 计算 底面无纺布材料成本 结束
|
|
@@ -358,7 +358,7 @@ namespace JLHHJSvr.Helper
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- throw new LJCommonException("边铁人力成本公式错误!");
|
|
|
+ throw new LJCommonException($"边铁人力成本公式错误!expression: {mx.side_iron_hr_cost_replace_formula}");
|
|
|
}
|
|
|
}
|
|
|
#endregion 计算 边铁人力成本 结束
|
|
@@ -382,7 +382,7 @@ namespace JLHHJSvr.Helper
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- throw new LJCommonException("边铁材料成本公式错误!");
|
|
|
+ throw new LJCommonException($"边铁材料成本公式错误!expression: {mx.side_iron_mtrl_cost_replace_formula}");
|
|
|
}
|
|
|
}
|
|
|
#endregion 计算 边铁材料成本 结束
|
|
@@ -406,7 +406,7 @@ namespace JLHHJSvr.Helper
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- throw new LJCommonException("C钉/夹码材料成本公式错误!");
|
|
|
+ throw new LJCommonException($"C钉/夹码材料成本公式错误!expression: {mx.cnail_mtrl_cost_replace_formula}");
|
|
|
}
|
|
|
}
|
|
|
#endregion 计算 C钉/夹码材料 结束
|
|
@@ -430,7 +430,7 @@ namespace JLHHJSvr.Helper
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- throw new LJCommonException("C钉/夹码人力成本公式错误!");
|
|
|
+ throw new LJCommonException($"C钉/夹码人力成本公式错误!expression: {mx.cnail_hr_cost_replace_formula}");
|
|
|
}
|
|
|
}
|
|
|
#endregion 计算 C钉/夹码人力成本 结束
|
|
@@ -456,7 +456,7 @@ namespace JLHHJSvr.Helper
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- throw new LJCommonException("海绵包边材料成本公式错误!");
|
|
|
+ throw new LJCommonException($"海绵包边材料成本公式错误!expression: {bednet.sponge_mtrl_cost_replace_formula}");
|
|
|
}
|
|
|
}
|
|
|
#endregion 计算 海绵包边材料成本 结束
|
|
@@ -479,7 +479,7 @@ namespace JLHHJSvr.Helper
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- throw new LJCommonException("海绵包边人力成本公式错误!");
|
|
|
+ throw new LJCommonException($"海绵包边人力成本公式错误!expression: {bednet.sponge_hr_cost_replace_formula}");
|
|
|
}
|
|
|
}
|
|
|
#endregion 计算 海绵包边人力成本 结束
|
|
@@ -504,7 +504,7 @@ namespace JLHHJSvr.Helper
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- throw new LJCommonException("填充海绵成本公式错误!");
|
|
|
+ throw new LJCommonException($"填充海绵成本公式错误!expression: {bednet.sponge_mtrl_tc_cost_replace_formula}");
|
|
|
}
|
|
|
}
|
|
|
#endregion 计算 填充海绵成本 结束
|
|
@@ -529,7 +529,7 @@ namespace JLHHJSvr.Helper
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- throw new LJCommonException("封边材料成本公式错误!");
|
|
|
+ throw new LJCommonException($"封边材料成本公式错误!expression: {bednet.edge_mtrl_cost_replace_formula}");
|
|
|
}
|
|
|
}
|
|
|
#endregion 计算 封边材料成本 结束
|
|
@@ -552,7 +552,7 @@ namespace JLHHJSvr.Helper
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- throw new LJCommonException("封边人力成本公式错误!");
|
|
|
+ throw new LJCommonException($"封边人力成本公式错误!expression: {bednet.edge_hr_cost_replace_formula}");
|
|
|
}
|
|
|
}
|
|
|
#endregion 计算 封边人力成本 结束
|
|
@@ -575,7 +575,7 @@ namespace JLHHJSvr.Helper
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- throw new LJCommonException("弹叉材料成本公式错误!");
|
|
|
+ throw new LJCommonException($"弹叉材料成本公式错误!expression: {bednet.fork_mtrl_cost_replace_formula}");
|
|
|
}
|
|
|
}
|
|
|
#endregion 计算 弹叉材料成本 结束
|
|
@@ -598,7 +598,7 @@ namespace JLHHJSvr.Helper
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- throw new LJCommonException("弹叉材料成本公式错误!");
|
|
|
+ throw new LJCommonException($"弹叉材料成本公式错误!expression: {bednet.fork_hr_cost_replace_formula}");
|
|
|
}
|
|
|
}
|
|
|
#endregion 计算 弹叉人力成本 结束
|
|
@@ -621,7 +621,7 @@ namespace JLHHJSvr.Helper
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- throw new LJCommonException("胶条/包角材料成本公式错误!");
|
|
|
+ throw new LJCommonException($"胶条/包角材料成本公式错误!expression: {bednet.rsorwa_mtrl_cost_replace_formula}");
|
|
|
}
|
|
|
}
|
|
|
#endregion 计算 胶条/包角材料成本 结束
|
|
@@ -644,7 +644,7 @@ namespace JLHHJSvr.Helper
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- throw new LJCommonException("胶条/包角人力成本公式错误!");
|
|
|
+ throw new LJCommonException($"胶条/包角人力成本公式错误!expression: {bednet.rsorwa_hr_cost_replace_formula}");
|
|
|
}
|
|
|
}
|
|
|
#endregion 计算 胶条/包角人力成本 结束
|
|
@@ -667,7 +667,7 @@ namespace JLHHJSvr.Helper
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- throw new LJCommonException("海绵打孔人力成本公式错误!");
|
|
|
+ throw new LJCommonException($"海绵打孔人力成本公式错误!expression: {bednet.sponge_drilling_hr_cost_replace_formula}");
|
|
|
}
|
|
|
}
|
|
|
#endregion 计算 海绵打孔人力成本 结束
|
|
@@ -692,7 +692,7 @@ namespace JLHHJSvr.Helper
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- throw new LJCommonException("上垫层物料成本公式错误!");
|
|
|
+ throw new LJCommonException($"上垫层物料成本公式错误!expression: {bednet.felt_mtrl_cost_replace_formula}");
|
|
|
}
|
|
|
}
|
|
|
#endregion 计算 上垫层物料成本 结束
|
|
@@ -717,7 +717,7 @@ namespace JLHHJSvr.Helper
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- throw new LJCommonException("下垫层物料成本公式错误!");
|
|
|
+ throw new LJCommonException($"下垫层物料成本公式错误!expression: {bednet.felt_mtrl_x_cost_replace_formula}");
|
|
|
}
|
|
|
}
|
|
|
#endregion 计算 下垫层物料成本 结束
|
|
@@ -740,7 +740,7 @@ namespace JLHHJSvr.Helper
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- throw new LJCommonException("上垫层人力成本公式错误!");
|
|
|
+ throw new LJCommonException($"上垫层人力成本公式错误!expression: {bednet.felt_hr_cost_replace_formula}");
|
|
|
}
|
|
|
}
|
|
|
#endregion 计算 上垫层人力成本 结束
|
|
@@ -765,7 +765,7 @@ namespace JLHHJSvr.Helper
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- throw new LJCommonException("下垫层物料成本公式错误!");
|
|
|
+ throw new LJCommonException($"下垫层物料成本公式错误!expression: {bednet.felt_hr_x_cost_replace_formula}");
|
|
|
}
|
|
|
}
|
|
|
#endregion 计算 下垫层人力成本 结束
|
|
@@ -775,6 +775,7 @@ namespace JLHHJSvr.Helper
|
|
|
{
|
|
|
bednet.packet_mtrl_formula = ConvertToEnglishSymbols(bednet.packet_mtrl_formula);
|
|
|
bednet.packet_mtrl_cost_replace_formula = bednet.packet_mtrl_formula;
|
|
|
+ bool sqlCal = !string.IsNullOrEmpty(bednet.packet_mtrl_formula) && bednet.packet_mtrl_formula.Substring(0, 2) == "@@";
|
|
|
bednet.packet_mtrl_cost_replace_formula = ReplaceWith(bednet.packet_mtrl_cost_replace_formula, "@@", "");
|
|
|
|
|
|
foreach (var replacement in replacements)
|
|
@@ -784,12 +785,25 @@ namespace JLHHJSvr.Helper
|
|
|
|
|
|
try
|
|
|
{
|
|
|
- var res = LJExprParser.Parse(bednet.packet_mtrl_cost_replace_formula);
|
|
|
- bednet.packet_mtrl_cost += res.Result.DecimalValue;
|
|
|
+ if (sqlCal)
|
|
|
+ {
|
|
|
+ cmd.CommandText = $@"{bednet.packet_mtrl_cost_replace_formula}";
|
|
|
+ cmd.Parameters.Clear();
|
|
|
+ var result = cmd.ExecuteScalar();
|
|
|
+ if (result != null && result != DBNull.Value)
|
|
|
+ {
|
|
|
+ bednet.packet_mtrl_cost += Convert.ToDecimal(result);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ var res = LJExprParser.Parse(bednet.packet_mtrl_cost_replace_formula);
|
|
|
+ bednet.packet_mtrl_cost += res.Result.DecimalValue;
|
|
|
+ }
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- throw new LJCommonException("包装材料成本公式错误!");
|
|
|
+ throw new LJCommonException($"包装材料成本公式错误!expression: {bednet.packet_mtrl_cost_replace_formula}");
|
|
|
}
|
|
|
}
|
|
|
#endregion 计算 包装总成本 结束
|
|
@@ -799,6 +813,7 @@ namespace JLHHJSvr.Helper
|
|
|
{
|
|
|
bednet.packet_hr_formula = ConvertToEnglishSymbols(bednet.packet_hr_formula);
|
|
|
bednet.packet_hr_cost_replace_formula = bednet.packet_hr_formula;
|
|
|
+ bool sqlCal = !string.IsNullOrEmpty(bednet.packet_hr_formula) && bednet.packet_hr_formula.Substring(0, 2) == "@@";
|
|
|
bednet.packet_hr_cost_replace_formula = ReplaceWith(bednet.packet_hr_cost_replace_formula, "@@", "");
|
|
|
|
|
|
foreach (var replacement in replacements)
|
|
@@ -808,12 +823,25 @@ namespace JLHHJSvr.Helper
|
|
|
|
|
|
try
|
|
|
{
|
|
|
- var res = LJExprParser.Parse(bednet.packet_hr_cost_replace_formula);
|
|
|
- bednet.packet_hr_cost += res.Result.DecimalValue;
|
|
|
+ if (sqlCal)
|
|
|
+ {
|
|
|
+ cmd.CommandText = $@"{bednet.packet_hr_cost_replace_formula}";
|
|
|
+ cmd.Parameters.Clear();
|
|
|
+ var result = cmd.ExecuteScalar();
|
|
|
+ if (result != null && result != DBNull.Value)
|
|
|
+ {
|
|
|
+ bednet.packet_hr_cost += Convert.ToDecimal(result);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ var res = LJExprParser.Parse(bednet.packet_hr_cost_replace_formula);
|
|
|
+ bednet.packet_hr_cost += res.Result.DecimalValue;
|
|
|
+ }
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- throw new LJCommonException("包装材料成本公式错误!");
|
|
|
+ throw new LJCommonException($"包装材料成本公式错误!expression: {bednet.packet_hr_cost_replace_formula}");
|
|
|
}
|
|
|
}
|
|
|
#endregion 计算 包装人工成本 结束
|
|
@@ -921,7 +949,7 @@ namespace JLHHJSvr.Helper
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- throw new LJCommonException("钢丝重量公式错误!");
|
|
|
+ throw new LJCommonException($"钢丝重量公式错误!expression: {mx.spring_weight_replace_formula}");
|
|
|
}
|
|
|
}
|
|
|
else
|
|
@@ -944,7 +972,7 @@ namespace JLHHJSvr.Helper
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- throw new LJCommonException("钢丝重量公式错误!");
|
|
|
+ throw new LJCommonException($"钢丝重量公式错误!expression: {springItem.spring_mtrl_cost_replace_formula}");
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -969,7 +997,7 @@ namespace JLHHJSvr.Helper
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- throw new LJCommonException("边铁重量公式错误!");
|
|
|
+ throw new LJCommonException($"边铁重量公式错误!expression: {bednet.side_iron_weight_replace_formula}");
|
|
|
}
|
|
|
}
|
|
|
#endregion 计算 边铁重量 结束
|
|
@@ -992,7 +1020,7 @@ namespace JLHHJSvr.Helper
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- throw new LJCommonException("四周加硬重量公式错误!");
|
|
|
+ throw new LJCommonException($"四周加硬重量公式错误!expression: {bednet.hard_around_weight_replace_formula}");
|
|
|
}
|
|
|
}
|
|
|
#endregion 计算 四周加硬重量 结束
|
|
@@ -1015,7 +1043,7 @@ namespace JLHHJSvr.Helper
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- throw new LJCommonException("入袋无纺布重量公式错误!");
|
|
|
+ throw new LJCommonException($"入袋无纺布重量公式错误!expression: {bednet.fabrics1_weight_replace_formula}");
|
|
|
}
|
|
|
}
|
|
|
#endregion 计算 入袋无纺布重量 结束
|
|
@@ -1038,7 +1066,7 @@ namespace JLHHJSvr.Helper
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- throw new LJCommonException("面底无纺布重量公式错误!");
|
|
|
+ throw new LJCommonException($"面底无纺布重量公式错误!expression: {bednet.fabrics2_weight_replace_formula}");
|
|
|
}
|
|
|
}
|
|
|
#endregion 计算 面底无纺布重量 结束
|
|
@@ -1064,7 +1092,7 @@ namespace JLHHJSvr.Helper
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- throw new LJCommonException("上垫层重量公式错误!");
|
|
|
+ throw new LJCommonException($"上垫层重量公式错误!expression: {felt_weight_formula_replace_formula}");
|
|
|
}
|
|
|
}
|
|
|
#endregion 计算 上垫层重量 结束
|
|
@@ -1090,7 +1118,7 @@ namespace JLHHJSvr.Helper
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- throw new LJCommonException("下垫层重量公式错误!");
|
|
|
+ throw new LJCommonException($"下垫层重量公式错误!expression: {felt_x_weight_formula_replace_formula}");
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -1118,7 +1146,7 @@ namespace JLHHJSvr.Helper
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- throw new LJCommonException("C钉/夹码重量公式错误!");
|
|
|
+ throw new LJCommonException($"C钉/夹码重量公式错误!expression: {bednet.cnail_weight_replace_formula}");
|
|
|
}
|
|
|
}
|
|
|
#endregion 计算 C钉/夹码重量 结束
|
|
@@ -1141,7 +1169,7 @@ namespace JLHHJSvr.Helper
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- throw new LJCommonException("海绵包边重量公式错误!");
|
|
|
+ throw new LJCommonException($"海绵包边重量公式错误!expression: {bednet.sponge_weight_replace_formula}");
|
|
|
}
|
|
|
}
|
|
|
#endregion 计算 海绵包边重量 结束
|
|
@@ -1166,7 +1194,7 @@ namespace JLHHJSvr.Helper
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- throw new LJCommonException("填充海绵重量公式错误!");
|
|
|
+ throw new LJCommonException($"填充海绵重量公式错误!expression: {bednet.sponge_weight_tc_replace_formula}");
|
|
|
}
|
|
|
}
|
|
|
#endregion 计算 填充海绵重量 结束
|
|
@@ -1191,7 +1219,7 @@ namespace JLHHJSvr.Helper
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- throw new LJCommonException("封边材料重量公式错误!");
|
|
|
+ throw new LJCommonException($"封边材料重量公式错误!expression: {bednet.edge_weight_replace_formula}");
|
|
|
}
|
|
|
}
|
|
|
#endregion 计算 封边材料重量 结束
|
|
@@ -1214,7 +1242,7 @@ namespace JLHHJSvr.Helper
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- throw new LJCommonException("弹叉材料重量公式错误!");
|
|
|
+ throw new LJCommonException($"弹叉材料重量公式错误!expression: {bednet.fork_weight_replace_formula}");
|
|
|
}
|
|
|
}
|
|
|
#endregion 计算 弹叉材料重量 结束
|
|
@@ -1685,13 +1713,14 @@ namespace JLHHJSvr.Helper
|
|
|
|
|
|
private void AddKeyValue(string key, object value, bool isReplace = true)
|
|
|
{
|
|
|
+ key = $"【{key}】";
|
|
|
if (!replacements.ContainsKey(key))
|
|
|
{
|
|
|
- replacements.Add($"【{key}】", value);
|
|
|
+ replacements.Add(key, value);
|
|
|
}
|
|
|
else if (isReplace)
|
|
|
{
|
|
|
- replacements[$"【{key}】"] = value;
|
|
|
+ replacements[key] = value;
|
|
|
}
|
|
|
}
|
|
|
private string ReplaceWith(string input, string oldValue, string newValue)
|
|
@@ -1701,7 +1730,35 @@ namespace JLHHJSvr.Helper
|
|
|
|
|
|
public void GetBedNet(u_bednet bednet)
|
|
|
{
|
|
|
- DbSqlHelper.SelectOne(cmd, bednet, "*");
|
|
|
+ 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,
|
|
|
+ pocket_around_fabrics_cost,hard_around_mtrl_formula,hard_around_mtrl_cost,hard_around_hr_formula,hard_around_hr_cost,
|
|
|
+ spring_mtrl_cost,spring_hr_cost,glue_price,glue_mtrl_formula,glue_mtrl_cost,fabrics1_mtrl_formula,fabrics1_mtrl_cost,
|
|
|
+ fabrics2_mtrl_formula,fabrics2_mtrl_cost,if_side_iron,side_iron_lossrate,side_iron_price,side_iron_mtrl_formula,
|
|
|
+ side_iron_mtrl_cost,side_iron_hr_formula,side_iron_hr_cost,cnail_price,cnail_mtrl_formula,cnail_mtrl_cost,cnail_hr_formula,
|
|
|
+ cnail_hr_cost,sponge_mtrlid,sponge_thickness,sponge_price,sponge_mtrl_formula,sponge_mtrl_cost,sponge_hr_formula,
|
|
|
+ sponge_hr_cost,edge_mtrlid,edge_price,edge_mtrl_formula,edge_mtrl_cost,edge_hr_formula,edge_hr_cost,fork_qty,fork_price,
|
|
|
+ fork_mtrl_formula,fork_mtrl_cost,fork_hr_formula,fork_hr_cost,if_rsORwa,rsORwa_price,rsORwa_mtrl_formula,rsORwa_mtrl_cost,
|
|
|
+ rsORwa_hr_formula,rsORwa_hr_cost,if_sponge_drilling,sponge_drilling_hr_formula,sponge_drilling_hr_cost,total_hr_cost,
|
|
|
+ total_mtrl_cost,total_fees_cost,total_cost,createtime,createby,bednetcode,bednetname,spring_mtrl_formula,spring_hr_formula,
|
|
|
+ sponge_mtrl_cost_replace_formula,sponge_hr_cost_replace_formula,edge_mtrl_cost_replace_formula,edge_hr_cost_replace_formula,
|
|
|
+ fork_mtrl_cost_replace_formula,fork_hr_cost_replace_formula,rsORwa_mtrl_cost_replace_formula,rsORwa_hr_cost_replace_formula,
|
|
|
+ sponge_drilling_hr_cost_replace_formula,snake_wire_mtrl_cost_replace_formula,flag,taxrate,taxes,commissionrate,commission,fob,
|
|
|
+ profitrate,nottax_factory_cost,nottax_dept_cost,dept_cost,foreign_cost,extras_cost,dept_profitrate,moneyrate,temp_flag,felt_mtrlid,
|
|
|
+ felt_qty,felt_price,felt_dscrp,felt_mtrl_formula,felt_mtrl_cost,felt_hr_formula,felt_hr_cost,felt_mtrl_cost_replace_formula,
|
|
|
+ felt_hr_cost_replace_formula,extras_cost_dscrp,iffork,ifsaleout,autotype,felt_mtrl_x_cost,felt_hr_x_cost,felt_x_qty,
|
|
|
+ felt_mtrl_x_cost_replace_formula,felt_hr_x_cost_replace_formula,felt_x_mtrlid,sale_point,packtype,packqty,other_rate,
|
|
|
+ transport_type,packmtrl,packet_mtrl_formula,packet_hr_formula,packet_mtrl_cost,packet_hr_cost,packet_mtrl_cost_replace_formula,
|
|
|
+ packet_hr_cost_replace_formula,sponge_height,edge_height,sponge_tc_thickness,sponge_tc_height,sponge_tc_mtrlid,sponge_mtrl_tc_cost,
|
|
|
+ sponge_mtrl_tc_formula,sponge_mtrl_tc_cost_replace_formula,sum_weight,spring_weight,snake_weight,side_weight,duo_qv_str,
|
|
|
+ spring_weight_formula,side_iron_weight_formula,hard_around_weight_formula,fabrics1_weight_formula,fabrics2_weight_formula,
|
|
|
+ felt_weight_formula,cnail_weight_formula,sponge_weight_formula,sponge_weight_tc_formula,edge_weight_formula,fork_weight_formula,
|
|
|
+ spring_weight_replace_formula,side_iron_weight_replace_formula,hard_around_weight_replace_formula,fabrics1_weight_replace_formula,
|
|
|
+ fabrics2_weight_replace_formula,felt_weight_replace_formula,cnail_weight_replace_formula,sponge_weight_replace_formula,
|
|
|
+ sponge_weight_tc_replace_formula,edge_weight_replace_formula,fork_weight_replace_formula,spring_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";
|
|
|
+ DbSqlHelper.SelectOne(cmd, bednet, outputFields);
|
|
|
}
|
|
|
|
|
|
public List<u_bednetmx_spring> GetBedNetSpringList(int bednetid)
|