From 048d0ab2b506a2ea20ba93edbba10e024e3abee5 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期四, 27 三月 2025 09:16:48 +0800
Subject: [PATCH] 作业本金额计算修改
---
CY_ECommercePlatform/CY.SQLDAL/OA/OA_SuppliersDAL.cs | 46 ++++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 44 insertions(+), 2 deletions(-)
diff --git a/CY_ECommercePlatform/CY.SQLDAL/OA/OA_SuppliersDAL.cs b/CY_ECommercePlatform/CY.SQLDAL/OA/OA_SuppliersDAL.cs
index 5164f07..1ab3933 100644
--- a/CY_ECommercePlatform/CY.SQLDAL/OA/OA_SuppliersDAL.cs
+++ b/CY_ECommercePlatform/CY.SQLDAL/OA/OA_SuppliersDAL.cs
@@ -64,7 +64,11 @@
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
{
@@ -121,7 +125,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
{
@@ -245,6 +252,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