Kaynağa Gözat

完成床垫接口后台代码搬迁

MY 5 ay önce
ebeveyn
işleme
b0d8a50bd2

+ 35 - 0
JLHHJSvr/BLL/BllHelper.cs

@@ -7,6 +7,7 @@ using System.IO;
 using System.IO.Compression;
 using JLHHJSvr.Com.Model;
 using JLHHJSvr.DBA.DBModle;
+using JLHHJSvr.LJException;
 using LJLib.DAL.SQL;
 using LJLib.Tools.DEncrypt;
 
@@ -253,5 +254,39 @@ namespace JLHHJSvr.BLL
             cmd.Parameters.AddWithValue("@itemname", itemname);
             cmd.ExecuteNonQuery();
         }
+        /// <summary>
+        /// 获取ERP连接
+        /// </summary>
+        /// <returns></returns>
+        /// <exception cref="LJCommonException"></exception>
+        public static string GetERPConnectString(SqlCommand cmd)
+        {
+            var outerconnection = new u_outerconnection();
+            // 获取ERP数据库连接信息
+            if (DbSqlHelper.SelectOne(cmd, "u_outerconnection", "connectiontype = 101", null, outerconnection, "servername,databasename,logid,logpass") <= 0)
+            {
+                throw new LJCommonException("获取新数据库连接信息失败,请检查!");
+            }
+
+            var builder = new SqlConnectionStringBuilder();
+            builder.DataSource = outerconnection.servername;
+            builder.InitialCatalog = outerconnection.databasename;
+            builder.UserID = outerconnection.logid;
+            builder.Password = outerconnection.logpass;
+
+            using (var con = new SqlConnection(builder.ConnectionString))
+            {
+                try
+                {
+                    con.Open();
+                }
+                catch (SqlException ex)
+                {
+                    throw new LJCommonException($"数据库连接失败: {ex.Message}");
+                }
+            }
+
+            return builder.ConnectionString;
+        }
     }
 }

+ 13 - 0
JLHHJSvr/BLL/HelperBase.cs

@@ -15,6 +15,10 @@ namespace JLHHJSvr.BLL
         /// </summary>
         public SqlCommand cmd { get; set; }
         /// <summary>
+        /// ERP数据库连接
+        /// </summary>
+        public SqlCommand erp_cmd { get; set; }
+        /// <summary>
         /// 预留的上下文
         /// </summary>
         public Context context { get; set; }
@@ -27,6 +31,15 @@ namespace JLHHJSvr.BLL
             return rslt;
         }
 
+        public static T GetHelper<T>(SqlCommand cmd, SqlCommand erp_cmd,Context context = null) where T : HelperBase, new()
+        {
+            var rslt = new T();
+            rslt.cmd = cmd;
+            rslt.erp_cmd = erp_cmd;
+            rslt.context = context ?? new Context();
+            return rslt;
+        }
+
         public sealed class Context
         {
             private DateTime _opdate = DateTime.Now;

+ 16 - 0
JLHHJSvr/Com/Model/u_bednet_qingdan.cs

@@ -0,0 +1,16 @@
+using LJLib.DAL.SQL;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace JLHHJSvr.Com.Model
+{
+    public sealed class u_bednet_qingdan
+    {
+        public string pzname { get; set; }
+        public string pznamemx { get; set; }
+        public decimal? amt { get; set; }
+        public decimal? useqty { get; set; }
+    }
+}

+ 2 - 0
JLHHJSvr/Com/Model/u_mattress_interface.cs

@@ -19,6 +19,8 @@ namespace JLHHJSvr.Com.Model
         public string sb_craft { get; set; }
         public string actual_size_sb { get; set; }
         public int? erp_pzid { get; set; }
+        public string erp_pzcode { get; set; }
+        public string erp_pzname { get; set; }
         public decimal? ss_rate { get; set; }
         public decimal? ls_rate { get; set; }
     }

+ 8 - 0
JLHHJSvr/Com/Model/u_mattress_interface_qd.cs

@@ -26,5 +26,13 @@ namespace JLHHJSvr.Com.Model
         public decimal? ss_rate { get; set; }
         public decimal? ls_rate { get; set; }
         public decimal? sh_rate { get; set; }
+
+        #region 辅助
+        public string erp_mtrlcode { get; set; }
+        public string erp_mtrlname { get; set; }
+        public string erp_mtrlmode { get; set; }
+        public string erp_unit { get; set; }
+        public string erp_mtrlengname { get; set; }
+        #endregion
     }
 }

+ 26 - 0
JLHHJSvr/Com/Model/u_outerconnection.cs

@@ -0,0 +1,26 @@
+using LJLib.DAL.SQL;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace JLHHJSvr.Com.Model
+{
+    [PK(new[] { "connectionid" })]
+    public sealed class u_outerconnection
+    {
+        public int? connectionid { get; set; }
+        public string dbms { get; set; }
+        public string connectionname { get; set; }
+        public byte? connectiontype { get; set; }
+        public string databasename { get; set; }
+        public string servername { get; set; }
+        public string logid { get; set; }
+        public string logpass { get; set; }
+        public string mdf_name { get; set; }
+        public string ldf_name { get; set; }
+        public DateTime? opdate { get; set; }
+
+    }
+}

+ 13 - 0
JLHHJSvr/Com/Model/u_spring.cs

@@ -118,5 +118,18 @@ namespace JLHHJSvr.Com.Model
         /// </summary>
         public decimal? comperssion_rate { get; set; }
         public int? his_typeid { get; set; }
+        public string name
+        {
+            get
+            {
+                return $"{LeftTrim(line_diameter.Value, 4)}/{LeftTrim(height.Value, 4)}/{LeftTrim(caliber.Value, 4)}/{LeftTrim(center_diameter.Value, 4)}/{LeftTrim(cyclenum.Value, 4)}";
+            }
+            set { }
+        }
+
+        private string LeftTrim(decimal value, int length)
+        {
+            return value.ToString(new string('0', length)).PadLeft(length, ' ');
+        }
     }
 }

+ 463 - 1
JLHHJSvr/Helper/BedNetHelper.cs

@@ -9,6 +9,7 @@ using System;
 using System.Collections.Generic;
 using System.Data.SqlClient;
 using System.Linq;
+using System.Runtime.InteropServices;
 using System.Text;
 using System.Text.RegularExpressions;
 using System.Threading.Tasks;
@@ -1906,5 +1907,466 @@ namespace JLHHJSvr.Helper
 
             newId = bedNet_copy.bednetid.Value;
         }
-    }
+
+        public List<u_bednet_qingdan> GetBedNetQingDan(int bednetid)
+        {
+            string bednetName = string.Empty;
+            string areaType = string.Empty;
+            string rollPackage = string.Empty;
+            string specifications = string.Empty;
+            string arrangement = string.Empty;
+            string bednetHeight = string.Empty;
+            string springs = string.Empty;
+            string edgeIron = string.Empty;
+            string bottomNonwovenFabric = string.Empty;
+            string topPadMaterial = string.Empty;
+            string bottomPadMaterial = string.Empty;
+            string bagNonwovenFabric = string.Empty;
+            string surroundingReinforcementRows = string.Empty;
+            string springPins = string.Empty;
+            string foamBorderMaterial = string.Empty;
+            string fillingFoamMaterial = string.Empty;
+
+            var bednet = GetBedNet(bednetid);
+
+            var mxList = GetBedNetMxList(bednetid);
+            var springList = GetBedNetSpringList(bednetid);
+
+            var dept = new u_dept() { deptid = bednet.deptid.Value };
+            DbSqlHelper.SelectOne(cmd, dept, "pricelistid");
+
+            if(bednet.deptid == null || bednet.deptid.Value <= 0)
+            {
+                throw new LJCommonException("获取床网清单,deptid错误");
+            }
+
+            if (bednet.bednettypeid == null || bednet.bednettypeid.Value <= 0)
+            {
+                throw new LJCommonException("获取床网清单,bednettypeid错误");
+            }
+
+            if (bednet.pricelistid == null || bednet.pricelistid.Value <= 0)
+            {
+                throw new LJCommonException("获取床网清单,pricelistid错误");
+            }
+
+            var bednetType = new u_bednet_type() { bednettypeid = bednet.bednettypeid };
+            DbSqlHelper.SelectOne(cmd, bednetType, "typename");
+
+            var mx = mxList[0];
+
+            var qdList = new List<u_bednet_qingdan>();
+            var nameList = new Dictionary<string,string>();
+
+            qdList.Add(new u_bednet_qingdan()
+            {
+                pzname = "床网名称"
+            });
+            qdList.Add(new u_bednet_qingdan()
+            {
+                pzname = "床网类型",
+                pznamemx = bednetType.typename,
+                amt = 0,
+                useqty = 0
+            });
+            bednetName = bednetType.typename;
+            qdList.Add(new u_bednet_qingdan()
+            {
+                pzname = "规格",
+                pznamemx = $"{bednet.mattress_width - 2}*{bednet.mattress_length}*{bednet.mattress_height - 2}",
+                amt = 0,
+                useqty = 0
+            });
+            specifications = $"{bednet.mattress_width - 2}*{bednet.mattress_length}*{bednet.mattress_height - 2}";
+            qdList.Add(new u_bednet_qingdan()
+            {
+                pzname = "排列",
+                pznamemx = $"{mx.spring_qty_width}*{mx.spring_qty_length}",
+                amt = 0,
+                useqty = 0
+            });
+            arrangement = $"{mx.spring_qty_width}*{mx.spring_qty_length}";
+            qdList.Add(new u_bednet_qingdan()
+            {
+                pzname = "床网高度",
+                pznamemx = $"{mx.bednet_height}高",
+                amt = 0,
+                useqty = 0
+            });
+            bednetHeight = $"{mx.bednet_height}高";
+            qdList.Add(new u_bednet_qingdan()
+            {
+                pzname = "弹簧线径/高度/口径/中心直径/圈数",
+                pznamemx = mx.if_part == 0 ? GetSpringName(mx.springid.Value) : string.Empty,
+                amt = 0,
+                useqty = 0
+            });
+            if (mx.if_part == 0)
+            {
+                springs = GetSpringName(mx.springid.Value);
+            }
+            else
+            {
+                string ls_left = string.Empty;
+                string ls_right = string.Empty;
+                string ls_t_temp = string.Empty;
+                string ls_t_name = string.Empty;
+
+                if (springList.Count >= 1)
+                {
+                    ls_t_name = GetSpringName(springList[0].springid.Value);
+                    int pos = ls_t_name.IndexOf('/');
+                    if (pos > 0)
+                    {
+                        ls_left = ls_t_name.Substring(0, pos);
+                        ls_right = ls_t_name.Substring(pos);
+                        ls_t_temp = ls_left;
+
+                        // Use StringBuilder to efficiently build ls_t_temp
+                        StringBuilder sb = new StringBuilder(ls_t_temp);
+                        for (int i = 1; i <= springList.Count; i++)
+                        {
+                            ls_t_name = GetSpringName(springList[i].springid.Value);
+                            pos = ls_t_name.IndexOf('/');
+                            if (pos > 0)
+                            {
+                                ls_left = ls_t_name.Substring(0, pos);
+                                sb.Append("+").Append(ls_left);
+                            }
+                        }
+
+                        ls_t_temp = sb.ToString();
+                    }
+                }
+
+                springs = ls_t_temp + "/" + ls_right;
+            }
+
+
+            for (int i = 1;i <= 5;i++)
+            {
+                if (i > springList.Count) break;
+                qdList.Add(new u_bednet_qingdan()
+                {
+                    pzname = $"多区弹簧{i}/高度/口径/中心直径/圈数",
+                    pznamemx = springList.Count >= 1 ? GetSpringName(springList[i].springid.Value) : string.Empty,
+                    amt = 0,
+                    useqty = 0
+                });
+            }
+            qdList.Add(new u_bednet_qingdan()
+            {
+                pzname = "边铁条数",
+                pznamemx = mx.side_iron_qty > 0 ? $"{mx.side_iron_qty}条" : string.Empty,
+                amt = 0,
+                useqty = 0
+            });
+            edgeIron = mx.side_iron_qty > 0 ? $"{mx.side_iron_qty}条边铁" : "无边铁";
+            var mtrldef1 = new u_mtrl_price();
+            DbSqlHelper.SelectOne(cmd, "u_mtrl_price", "mtrltype = 2 AND mtrlid = @mtrlid", new Dictionary<string, object>() { { "mtrlid", mx.fabrics2_mtrlid } },mtrldef1, "name");
+            qdList.Add(new u_bednet_qingdan()
+            {
+                pzname = "底面无纺布",
+                pznamemx = mx.fabrics2_mtrlid > 0 ? mtrldef1.name : string.Empty,
+                amt = 0,
+                useqty = 0
+            });
+            bottomNonwovenFabric = mx.fabrics2_mtrlid > 0 ? mtrldef1.name : string.Empty;
+            var mtrldef2 = new u_mtrl_price();
+            DbSqlHelper.SelectOne(cmd, "u_mtrl_price", "mtrltype = 2 AND mtrlid = @mtrlid", new Dictionary<string, object>() { { "mtrlid", mx.fabrics1_mtrlid } }, mtrldef2, "name");
+            qdList.Add(new u_bednet_qingdan()
+            {
+                pzname = "入袋无纺布",
+                pznamemx = mx.fabrics1_mtrlid > 0 ? mtrldef2.name : string.Empty,
+                amt = 0,
+                useqty = 0
+            });
+            bagNonwovenFabric = mx.fabrics1_mtrlid > 0 ? mtrldef2.name : string.Empty;
+            var mtrldef3 = new u_mtrl_price();
+            DbSqlHelper.SelectOne(cmd, "u_mtrl_price", "mtrlid = @mtrlid", new Dictionary<string, object>() { { "mtrlid", bednet.felt_mtrlid } }, mtrldef3, "name");
+            qdList.Add(new u_bednet_qingdan()
+            {
+                pzname = "上垫层物料",
+                pznamemx = !string.IsNullOrEmpty(mtrldef3.name) ? mtrldef3.name : string.Empty,
+                amt = 0,
+                useqty = 0
+            });
+            topPadMaterial = !string.IsNullOrEmpty(mtrldef3.name) ? mtrldef3.name : string.Empty;
+            var mtrldef4 = new u_mtrl_price();
+            DbSqlHelper.SelectOne(cmd, "u_mtrl_price", "mtrlid = @mtrlid", new Dictionary<string, object>() { { "mtrlid", bednet.felt_x_mtrlid } }, mtrldef4, "name");
+            qdList.Add(new u_bednet_qingdan()
+            {
+                pzname = "下垫层物料",
+                pznamemx = !string.IsNullOrEmpty(mtrldef4.name) ? mtrldef4.name : string.Empty,
+                amt = 0,
+                useqty = 0
+            });
+            bottomPadMaterial = !string.IsNullOrEmpty(mtrldef4.name) ? mtrldef4.name : string.Empty;
+            qdList.Add(new u_bednet_qingdan()
+            {
+                pzname = "四周加硬排数",
+                pznamemx = mx.hard_around_row > 0 ? $"{mx.hard_around_row}排{GetSpringName(mx.hard_around_springid.Value)}" : string.Empty,
+                amt = 0,
+                useqty = 0
+            });
+            surroundingReinforcementRows = mx.hard_around_row > 0 ? $"四周加硬{mx.hard_around_row}排{GetSpringName(mx.hard_around_springid.Value)}" : string.Empty;
+            qdList.Add(new u_bednet_qingdan()
+            {
+                pzname = "四周加硬弹簧线径/高度/口径/中心直径/圈数",
+                pznamemx = mx.if_hard_around > 0 ? GetSpringName(mx.hard_around_springid.Value) : string.Empty,
+                amt = 0,
+                useqty = 0
+            });
+            var mtrldef5 = new u_mtrl_price();
+            DbSqlHelper.SelectOne(cmd, "u_mtrl_price", "mtrlid = @mtrlid", new Dictionary<string, object>() { { "mtrlid", bednet.sponge_mtrlid } }, mtrldef5, "name");
+            qdList.Add(new u_bednet_qingdan()
+            {
+                pzname = "海绵包边物料",
+                pznamemx = !string.IsNullOrEmpty(mtrldef5.name) ? mtrldef5.name : string.Empty,
+                amt = 0,
+                useqty = 0
+            });
+            foamBorderMaterial = !string.IsNullOrEmpty(mtrldef5.name) ? $"{bednet.sponge_thickness}分{bednet.sponge_height}高{mtrldef5.name}" : string.Empty;
+            var mtrldef6 = new u_mtrl_price();
+            DbSqlHelper.SelectOne(cmd, "u_mtrl_price", "mtrlid = @mtrlid", new Dictionary<string, object>() { { "mtrlid", bednet.sponge_tc_mtrlid } }, mtrldef6, "name");
+            qdList.Add(new u_bednet_qingdan()
+            {
+                pzname = "填充海绵物料",
+                pznamemx = !string.IsNullOrEmpty(mtrldef6.name) ? mtrldef6.name : string.Empty,
+                amt = 0,
+                useqty = 0
+            });
+            fillingFoamMaterial = !string.IsNullOrEmpty(mtrldef6.name) ? $"{bednet.sponge_tc_thickness}分{bednet.sponge_tc_height}高{mtrldef6.name}" : string.Empty;
+            qdList.Add(new u_bednet_qingdan()
+            {
+                pzname = "填充包边物料厚度",
+                pznamemx = bednet.sponge_tc_thickness > 0 ? $"{bednet.sponge_tc_thickness}分厚,{bednet.sponge_tc_height}分高,{mtrldef6.name}" : string.Empty,
+                amt = 0,
+                useqty = 0
+            });
+
+            var mtrldef7 = new u_mtrl_price();
+            DbSqlHelper.SelectOne(cmd, "u_mtrl_price", "mtrlid = @mtrlid", new Dictionary<string, object>() { { "mtrlid", bednet.edge_mtrlid } }, mtrldef7, "name");
+            qdList.Add(new u_bednet_qingdan()
+            {
+                pzname = "封边物料",
+                pznamemx = !string.IsNullOrEmpty(mtrldef7.name) ? mtrldef7.name : string.Empty,
+                amt = 0,
+                useqty = 0
+            });
+
+            qdList.Add(new u_bednet_qingdan()
+            {
+                pzname = "封边高度",
+                pznamemx = bednet.edge_height > 0 ? $"{bednet.edge_height}高" : string.Empty,
+                amt = 0,
+                useqty = 0
+            });
+
+            qdList.Add(new u_bednet_qingdan()
+            {
+                pzname = "胶条包角",
+                pznamemx = bednet.if_rsorwa > 0 ? "有" : string.Empty,
+                amt = 0,
+                useqty = 0
+            });
+            qdList.Add(new u_bednet_qingdan()
+            {
+                pzname = "海绵打孔",
+                pznamemx = bednet.if_sponge_drilling > 0 ? "有" : string.Empty,
+                amt = 0,
+                useqty = 0
+            });
+            qdList.Add(new u_bednet_qingdan()
+            {
+                pzname = "弹叉数量",
+                pznamemx = bednet.fork_qty > 0 ? $"{bednet.fork_qty}只弹叉" : string.Empty,
+                amt = 0,
+                useqty = 0
+            });
+            springPins = bednet.fork_qty > 0 ? $"{bednet.fork_qty}只弹叉" : string.Empty;
+            qdList.Add(new u_bednet_qingdan()
+            {
+                pzname = "15分布条",
+                pznamemx = mx.if_15strip > 0 ? "有" : string.Empty,
+                amt = 0,
+                useqty = 0
+            });
+            qdList.Add(new u_bednet_qingdan()
+            {
+                pzname = "蛇线线径",
+                pznamemx = bednet.snake_wire_diameter > 0 ? $"{bednet.snake_wire_diameter}" : string.Empty,
+                amt = 0,
+                useqty = 0
+            });
+            qdList.Add(new u_bednet_qingdan()
+            {
+                pzname = "四周口袋弹簧排数",
+                pznamemx = mx.pocket_around_row > 0 ? $"{mx.pocket_around_row}排" : string.Empty,
+                amt = 0,
+                useqty = 0
+            });
+            qdList.Add(new u_bednet_qingdan()
+            {
+                pzname = "四周口袋弹簧线径/高度/口径/中心直径/圈数",
+                pznamemx = mx.if_pocket_around > 0 ? GetSpringName(mx.pocket_around_springid.Value) : string.Empty,
+                amt = 0,
+                useqty = 0
+            });
+
+            //设置床网名称
+            //床网类型丨规格丨排列丨高度丨单/多区丨线径丨边铁丨海绵包边丨四周加硬丨弹叉丨底面物料
+            StringBuilder ls_temp_name = new StringBuilder();
+
+            ls_temp_name.Append(qdList[1].pznamemx)
+                        .Append("丨")
+                        .Append(qdList[3].pznamemx)
+                        .Append("丨")
+                        .Append(qdList[4].pznamemx);
+
+            if (!string.IsNullOrEmpty(bednet.duo_qv_str))
+            {
+                ls_temp_name.Append("丨")
+                            .Append(bednet.duo_qv_str)
+                            .Append("区");
+            }
+            else
+            {
+                ls_temp_name.Append("丨")
+                            .Append(string.IsNullOrEmpty(qdList[5].pznamemx) ? "多区" : "单区");
+            }
+
+            if (string.IsNullOrEmpty(qdList[5].pznamemx))
+            {
+                for (int i = 6; i <= 10; i++)
+                {
+                    if (!string.IsNullOrEmpty(qdList[i].pznamemx))
+                    {
+                        ls_temp_name.Append("+" + qdList[i].pznamemx.Substring(0, Math.Min(qdList[i].pznamemx.IndexOf('/') - 1, qdList[i].pznamemx.Length)));
+                    }
+                }
+            }
+            else
+            {
+                ls_temp_name.Append("丨")
+                            .Append(qdList[5].pznamemx);
+            }
+
+            AppendSpecialFields(ls_temp_name,qdList);
+
+            rollPackage = bednet.if_jb == 0 ? string.Empty : "卷包";
+
+            // Final concatenation with custom name
+            if (ls_temp_name.ToString().Contains("袋装"))
+            {
+                ls_temp_name.Append("丨")
+                            .Append(areaType)
+                            .Append("丨")
+                            .Append(rollPackage)
+                            .Append("丨")
+                            .Append(specifications)
+                            .Append("丨")
+                            .Append(arrangement)
+                            .Append("丨")
+                            .Append(bednetHeight)
+                            .Append("丨")
+                            .Append(springs)
+                            .Append("丨")
+                            .Append(edgeIron)
+                            .Append("丨")
+                            .Append(bottomNonwovenFabric)
+                            .Append("丨")
+                            .Append(topPadMaterial)
+                            .Append("丨")
+                            .Append(bottomPadMaterial)
+                            .Append("丨")
+                            .Append(bagNonwovenFabric)
+                            .Append("丨")
+                            .Append(surroundingReinforcementRows)
+                            .Append("丨")
+                            .Append(springPins)
+                            .Append("丨")
+                            .Append(foamBorderMaterial)
+                            .Append("丨")
+                            .Append(fillingFoamMaterial);
+            }
+
+            qdList[0].pznamemx = ls_temp_name.ToString();
+            qdList[0].amt = bednet.nottax_factory_cost;
+
+            return qdList;
+        }
+
+        private void AppendSpecialFields(StringBuilder ls_temp_name,List<u_bednet_qingdan> qdList)
+        {
+            if (!string.IsNullOrEmpty(qdList[11].pznamemx))
+            {
+                ls_temp_name.Append("丨")
+                            .Append(qdList[11].pznamemx == "" ? "无边铁" : "有边铁");
+            }
+
+            if (!string.IsNullOrEmpty(qdList[19].pznamemx))
+            {
+                ls_temp_name.Append("丨")
+                            .Append(qdList[19].pznamemx)
+                            .Append(qdList[19].pznamemx)
+                            .Append("海绵包边");
+            }
+
+            if (!string.IsNullOrEmpty(qdList[16].pznamemx))
+            {
+                ls_temp_name.Append("丨")
+                            .Append("四周加硬")
+                            .Append(qdList[16].pznamemx);
+            }
+
+            if (!string.IsNullOrEmpty(qdList[26].pznamemx))
+            {
+                ls_temp_name.Append("丨")
+                            .Append(qdList[26].pznamemx);
+            }
+
+            if (!string.IsNullOrEmpty(qdList[12].pznamemx))
+            {
+                ls_temp_name.Append("丨")
+                            .Append("底面")
+                            .Append(qdList[12].pznamemx);
+            }
+            else
+            {
+                if (string.IsNullOrEmpty(qdList[14].pznamemx))
+                {
+                    ls_temp_name.Append("丨")
+                                .Append("底一张")
+                                .Append(qdList[15].pznamemx);
+                }
+                else if (string.IsNullOrEmpty(qdList[15].pznamemx))
+                {
+                    ls_temp_name.Append("丨")
+                                .Append("面一张")
+                                .Append(qdList[14].pznamemx);
+                }
+                else
+                {
+                    ls_temp_name.Append("丨")
+                                .Append("面底各一张")
+                                .Append(qdList[14].pznamemx);
+                }
+            }
+
+            if (!string.IsNullOrEmpty(qdList[21].pznamemx))
+            {
+                ls_temp_name.Append("丨")
+                            .Append(qdList[21].pzname)
+                            .Append(qdList[21].pznamemx);
+            }
+        }
+        public string GetSpringName(int springid)
+        {
+            var spring = new u_spring() { springid = springid };
+            DbSqlHelper.SelectOne(cmd, spring, "line_diameter,gram_weight,height,center_diameter,cyclenum");
+
+            return spring.name;
+        }
+    } 
 }

Dosya farkı çok büyük olduğundan ihmal edildi
+ 1415 - 61
JLHHJSvr/Helper/InterfaceHelper.cs


+ 1 - 0
JLHHJSvr/JLHHJSvr.csproj

@@ -138,6 +138,7 @@
     <Compile Include="Com\Model\u_mtrl_price.cs" />
     <Compile Include="Com\Model\u_mtrl_price_pricelist.cs" />
     <Compile Include="Com\Model\u_multiprice.cs" />
+    <Compile Include="Com\Model\u_outerconnection.cs" />
     <Compile Include="Com\Model\u_pricelist.cs" />
     <Compile Include="Com\Model\u_semi_finished_product.cs" />
     <Compile Include="Com\Model\u_semi_finished_product_mx.cs" />