From 374ce108d737c1e4d6608989090195a7346d10ad Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期四, 26 二月 2026 08:47:21 +0800
Subject: [PATCH] 优化格式美观度。 完成 (1)“印刷、打包、送货要求”放在右边的格子里面;右边格子拉通 (2)“单价”和“总价”的格子比例要调整适中 (3)把“印件名称”放在第一格 (1)操作中增加“问题处理”,进行处理操作  完成 (2)问题反馈除了生成在这个列表中,还要自动推送给对应订单的下单人或者送货安排(发起工作安排)的安排人,显示在他们的“工作提醒”中,处理完了就在列表中变成已完成问题处理,显示“√”,点“√”进去就显示谁处理的、什么时候处理的。  完成 生产施工单中,选“轮转印刷机”的,删除“纸张数量(张)”和“开料规格”  完成

---
 CY_ECommercePlatform/CY.SQLDAL/OA/OA_CorporateClientsDAL.cs |  112 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 111 insertions(+), 1 deletions(-)

diff --git a/CY_ECommercePlatform/CY.SQLDAL/OA/OA_CorporateClientsDAL.cs b/CY_ECommercePlatform/CY.SQLDAL/OA/OA_CorporateClientsDAL.cs
index cc4b2cf..7b8a2ce 100644
--- a/CY_ECommercePlatform/CY.SQLDAL/OA/OA_CorporateClientsDAL.cs
+++ b/CY_ECommercePlatform/CY.SQLDAL/OA/OA_CorporateClientsDAL.cs
@@ -1264,7 +1264,100 @@
 
             try
             {
-                IList<OA_CorporateClientsVisit> result = _dataBase.SelectModel<OA_CorporateClientsVisit>("  a.*,b.[Name] as CreaterName ", "OA_CorporateClientsVisit a left join EC_MemberBasic b on a.Creater = b.MemberId ", string.Format(" CorporateClientsid = '{0}'  order by a.[VisitTime] desc", CustomId)) as IList<OA_CorporateClientsVisit>;//鎵ц鏌ヨ
+                IList<OA_CorporateClientsVisit> result = _dataBase.SelectModel<OA_CorporateClientsVisit>(" top 50  a.*,b.[Name] as CreaterName ", "OA_CorporateClientsVisit a left join EC_MemberBasic b on a.Creater = b.MemberId ", string.Format(" CorporateClientsid = '{0}'  order by a.[VisitTime] desc", CustomId)) as IList<OA_CorporateClientsVisit>;//鎵ц鏌ヨ
+                return result;//杩斿洖缁撴灉
+            }
+            catch (Exception ex)
+            {
+                throw ex;
+            }
+        }
+
+
+
+
+        /// <summary>
+        /// 鏂板鍚堜綔瀹㈡埛璁捐娌熼��
+        /// </summary>
+        /// <param name="model"></param>
+        /// <returns></returns>
+        public bool InsertModelSheji(CY.Model.OA_CorporateClientsSheji trueModel)
+        {
+            //Model.OA_CorporateClients trueModel = model as Model.OA_CorporateClientsVist;
+            if (trueModel == null)
+            {
+                return false;
+            }
+
+            SqlParameter par = null;
+            if (trueModel.ShejiTime.HasValue)
+            {
+                par = new SqlParameter("@ShejiTime", trueModel.ShejiTime.Value);
+            }
+            else
+            {
+                par = new SqlParameter("@ShejiTime", DBNull.Value);
+            }
+            SqlParameter par1 = null;
+            if (trueModel.CreateTime.HasValue)
+            {
+                par1 = new SqlParameter("@CreateTime", trueModel.CreateTime.Value);
+            }
+            else
+            {
+                par1 = new SqlParameter("@CreateTime", DBNull.Value);
+            }
+            SqlParameter par2 = null;
+            if (trueModel.LastUpdateTime.HasValue)
+            {
+                par2 = new SqlParameter("@LastUpdateTime", trueModel.LastUpdateTime.Value);
+            }
+            else
+            {
+                par2 = new SqlParameter("@LastUpdateTime", DBNull.Value);
+            }
+
+            IList<SqlParameter> sqlParms = new List<SqlParameter>()
+            {
+                       new SqlParameter("@Keyid",trueModel.Keyid),
+                    new SqlParameter("@CorporateClientsid",trueModel.CorporateClientsid),
+                    par,
+                     new SqlParameter("@YinjianName",trueModel.YinjianName),
+                      new SqlParameter("@JiaogaoCount",trueModel.JiaogaoCount.HasValue?trueModel.JiaogaoCount.Value:0),
+                    new SqlParameter("@Remark",trueModel.Remark),
+                    new SqlParameter("@Creater",trueModel.Creater),
+                    par1,
+                    new SqlParameter("@Updater",trueModel.Updater),
+                    par2,
+
+            };
+            string sql = "Insert Into OA_CorporateClientsSheji ([Keyid],[CorporateClientsid],[ShejiTime],[YinjianName], [JiaogaoCount], [Remark],[Creater], [CreateTime],[Updater], [LastUpdateTime] )"
+                                              + " Values (@Keyid,@CorporateClientsid,@ShejiTime, @YinjianName, @JiaogaoCount, @Remark, @Creater, @CreateTime, @Updater, @LastUpdateTime  )";
+
+            try
+            {
+                _dataBase.ExecuteSql(sql, sqlParms.ToArray<SqlParameter>());
+            }
+            catch (Exception ex)
+            {
+                throw ex;
+            }
+            return true;
+        }
+
+
+        /// <summary>
+        /// 鏍规嵁瀹㈡埛id鏌ヨ璁捐娌熼��
+        /// </summary>
+        /// <param name="CustomId">缂栧彿</param>
+        /// <returns></returns>
+        public IEnumerable<OA_CorporateClientsSheji> SelectShejiListByCorId(Guid CustomId)
+        {
+            if (CustomId == null)
+                return null;//閿欒鏁版嵁杩斾細绌�
+            try
+            {
+                IList<OA_CorporateClientsSheji> result = _dataBase.SelectModel<OA_CorporateClientsSheji>(" top 50  a.*,b.[Name] as CreaterName ", "OA_CorporateClientsSheji a left join EC_MemberBasic b on a.Creater = b.MemberId ", string.Format(" CorporateClientsid = '{0}'  order by a.[ShejiTime] desc", CustomId)) as IList<OA_CorporateClientsSheji>;//鎵ц鏌ヨ
                 return result;//杩斿洖缁撴灉
             }
             catch (Exception ex)
@@ -1635,5 +1728,22 @@
             return (null == result || result.Count == 0) ? null : result[0];//杩斿洖缁撴灉
         }
 
+
+
+        /// <summary>
+        /// 鍗曚釜鏌ヨ璁捐娌熼��
+        /// </summary>
+        /// <param name="Keyid">缂栧彿</param>
+        /// <returns></returns>
+        public OA_CorporateClientsSheji SelectShejiByKeyid(Guid Keyid)
+        {
+            if (Keyid == null)
+                return null;//閿欒鏁版嵁杩斾細绌� 
+
+            IList<OA_CorporateClientsSheji> result = _dataBase.SelectModel<OA_CorporateClientsSheji>(" a.* ", " OA_CorporateClientsSheji a ", string.Format(" a.Keyid='{0}'", Keyid)) as IList<OA_CorporateClientsSheji>;//鎵ц鏌ヨ
+
+            return (null == result || result.Count == 0) ? null : result[0];//杩斿洖缁撴灉
+        }
+
     }
 }

--
Gitblit v1.9.1