From e8e3122fdc4844202fb9e05477d47139e47a8aae Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期五, 12 十二月 2025 08:59:47 +0800
Subject: [PATCH] 作业本送货变二级菜单
---
CY_ECommercePlatform/CY.SQLDAL/OA/OA_SuppliersDAL.cs | 49 ++++++++++++++++++++++++++++++++++++++++++++++---
1 files changed, 46 insertions(+), 3 deletions(-)
diff --git a/CY_ECommercePlatform/CY.SQLDAL/OA/OA_SuppliersDAL.cs b/CY_ECommercePlatform/CY.SQLDAL/OA/OA_SuppliersDAL.cs
index 5164f07..f9b9415 100644
--- a/CY_ECommercePlatform/CY.SQLDAL/OA/OA_SuppliersDAL.cs
+++ b/CY_ECommercePlatform/CY.SQLDAL/OA/OA_SuppliersDAL.cs
@@ -64,7 +64,12 @@
new SqlParameter("@LastUpdateTime",trueModel.LastUpdateTime),
new SqlParameter("@Operator",trueModel.Operator),
new SqlParameter("@Remark",trueModel.Remark) ,
- new SqlParameter("@OrderNum",trueModel.OrderNum)
+ new SqlParameter("@OrderNum",trueModel.OrderNum) ,
+ new SqlParameter("@Bank",string.IsNullOrEmpty(trueModel.Bank)?"":trueModel.Bank) ,
+ new SqlParameter("@AccountID",string.IsNullOrEmpty(trueModel.AccountID)?"":trueModel.AccountID) ,
+
+ new SqlParameter("@Huming",string.IsNullOrEmpty(trueModel.Huming)?"":trueModel.Huming) ,
+ new SqlParameter("@CreateTime",trueModel.CreateTime),
};
try
{
@@ -121,7 +126,10 @@
new SqlParameter("@LastUpdateTime",trueModel.LastUpdateTime),
new SqlParameter("@Operator",trueModel.Operator),
new SqlParameter("@Remark",trueModel.Remark) ,
- new SqlParameter("@OrderNum",trueModel.OrderNum)
+ new SqlParameter("@OrderNum",trueModel.OrderNum) ,
+ new SqlParameter("@Bank",string.IsNullOrEmpty(trueModel.Bank)?"":trueModel.Bank) ,
+ new SqlParameter("@AccountID",string.IsNullOrEmpty(trueModel.AccountID)?"":trueModel.AccountID) ,
+ new SqlParameter("@Huming",string.IsNullOrEmpty(trueModel.Huming)?"":trueModel.Huming) ,
};
try
{
@@ -227,7 +235,7 @@
- return _dataBase.SelectModelPage<Model.OA_Suppliers>(pa, selectTarget, fromSource, "a.OrderNum ");
+ return _dataBase.SelectModelPage<Model.OA_Suppliers>(pa, selectTarget, fromSource, "a.CreateTime desc ");
}
/// <summary>
@@ -245,6 +253,41 @@
/// <summary>
+ /// 杩斿洖table绫诲瀷鐨勬墍鏈夊垪琛�
+ /// </summary>
+ /// <param name="FirmId"></param>
+ /// <returns></returns>
+ public IEnumerable<Model.OA_Suppliers> getSupplierByFirmId(Guid FirmId, string Name)
+ {
+ try
+ {
+ if (FirmId == null || FirmId == Guid.Empty)
+ return null;//閿欒鏁版嵁杩斾細绌�
+
+ string condition = " FirmId='" + FirmId + "' ";
+
+ if (!string.IsNullOrEmpty(Name))
+ {
+ condition += " and [Name]='" + Name + "' ";
+ }
+
+
+ IList<Model.OA_Suppliers> result = _dataBase.SelectModel<Model.OA_Suppliers>("*", "OA_Suppliers", condition) as IList<Model.OA_Suppliers>;//鎵ц鏌ヨ
+
+ return result;//杩斿洖缁撴灉
+ }
+ catch (Exception ex)
+ {
+ throw ex;
+ }
+
+ }
+
+
+
+
+
+ /// <summary>
/// 鑾峰彇鍗曚釜渚涘簲鍟�
/// </summary>
/// <param name="Keyid"></param>
--
Gitblit v1.9.1