2 changed files with 234 additions and 0 deletions
-
54EuroTran/EasyBL.WEBAPP/ShowEasy/PaymentMaintain_QryService.cs
-
180EuroTran/Entity/Sugar/SETB_SAL_Payment.cs
@ -0,0 +1,54 @@ |
|||
using EasyBL.WebApi.Message; |
|||
using EasyBL.WEBAPP.WSM; |
|||
using Entity.Sugar; |
|||
using Entity.ViewModels; |
|||
using SqlSugar; |
|||
using SqlSugar.Base; |
|||
using System; |
|||
using System.Collections.Generic; |
|||
|
|||
namespace EasyBL.WEBAPP.SYS |
|||
{ |
|||
public class PaymentMaintain_QryService : ServiceBase |
|||
{ |
|||
|
|||
public Dictionary<string, SETB_SAL_Payment> FindAllByIDsAsDictionary(string sPaymentID, string sBookingID) { |
|||
|
|||
Dictionary<string, SETB_SAL_Payment> rsResultDic = new Dictionary<string, SETB_SAL_Payment>(); |
|||
|
|||
string sMsg = null; |
|||
var db = SugarBase.GetIntance(); |
|||
|
|||
try |
|||
{ |
|||
do |
|||
{ |
|||
|
|||
var rsPaymentList = db.Queryable<SETB_SAL_Payment>() |
|||
.Where(t1 => t1.Effective == "Y") |
|||
.Where(t1 => t1.DelStatus == "N") |
|||
.WhereIF(!string.IsNullOrEmpty(sPaymentID), t1 => t1.PaymentID == sPaymentID) |
|||
.WhereIF(!string.IsNullOrEmpty(sBookingID), t1 => t1.BookingID == sBookingID) |
|||
.ToList(); |
|||
|
|||
foreach (var Payment in rsPaymentList) |
|||
{ |
|||
rsResultDic[Payment.PaymentID] = Payment; |
|||
} |
|||
|
|||
return rsResultDic; |
|||
|
|||
} while (false); |
|||
} |
|||
catch (Exception ex) |
|||
{ |
|||
sMsg = Util.GetLastExceptionMsg(ex); |
|||
} |
|||
|
|||
|
|||
return rsResultDic; |
|||
} |
|||
|
|||
|
|||
} |
|||
} |
@ -0,0 +1,180 @@ |
|||
using System; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using SqlSugar; |
|||
|
|||
namespace Entity.Sugar |
|||
{ |
|||
///<summary>
|
|||
///
|
|||
///</summary>
|
|||
[SugarTable("SETB_SAL_Payment")] |
|||
public partial class SETB_SAL_Payment : ModelContext |
|||
{ |
|||
public SETB_SAL_Payment() |
|||
{ |
|||
|
|||
|
|||
} |
|||
/// <summary>
|
|||
/// Desc:
|
|||
/// Default:
|
|||
/// Nullable:False
|
|||
/// </summary>
|
|||
[SugarColumn(IsPrimaryKey = true)] |
|||
public string PaymentID { get; set; } |
|||
public const string CN_PAYMENTID = "PaymentID"; |
|||
/// <summary>
|
|||
/// Desc:
|
|||
/// Default:
|
|||
/// Nullable:False
|
|||
/// </summary>
|
|||
public string BookingID { get; set; } |
|||
public const string CN_BOOKINGID = "BookingID"; |
|||
|
|||
/// <summary>
|
|||
/// Desc:
|
|||
/// Default:
|
|||
/// Nullable:True
|
|||
/// </summary>
|
|||
public string PaymentNo { get; set; } |
|||
public const string CN_PAYMENTNO = "PaymentNo"; |
|||
|
|||
/// <summary>
|
|||
/// Desc:
|
|||
/// Default:
|
|||
/// Nullable:True
|
|||
/// </summary>
|
|||
public string PaymentType { get; set; } |
|||
public const string CN_PAYMENTTYPE = "PaymentType"; |
|||
|
|||
/// <summary>
|
|||
/// Desc:
|
|||
/// Default:
|
|||
/// Nullable:True
|
|||
/// </summary>
|
|||
public DateTime? DueDate { get; set; } |
|||
public const string CN_DUEDATE = "DueDate"; |
|||
|
|||
/// <summary>
|
|||
/// Desc:
|
|||
/// Default:
|
|||
/// Nullable:True
|
|||
/// </summary>
|
|||
public DateTime? PaymentDate { get; set; } |
|||
public const string CN_PAYMENTDATE = "PaymentDate"; |
|||
|
|||
/// <summary>
|
|||
/// Desc:
|
|||
/// Default:
|
|||
/// Nullable:True
|
|||
/// </summary>
|
|||
public string CurrencyID { get; set; } |
|||
public const string CN_CURRENCYID = "CurrencyID"; |
|||
|
|||
/// <summary>
|
|||
/// Desc:
|
|||
/// Default:
|
|||
/// Nullable:True
|
|||
/// </summary>
|
|||
public string TaxID { get; set; } |
|||
public const string CN_TAXID = "TaxID"; |
|||
|
|||
/// <summary>
|
|||
/// Desc:
|
|||
/// Default:
|
|||
/// Nullable:True
|
|||
/// </summary>
|
|||
public float Amount { get; set; } |
|||
public const string CN_AMOUNT = "Amount"; |
|||
|
|||
/// <summary>
|
|||
/// Desc:
|
|||
/// Default:
|
|||
/// Nullable:True
|
|||
/// </summary>
|
|||
public string PaymentStatus { get; set; } |
|||
public const string CN_PAYMENTSTATUS = "PaymentStatus"; |
|||
|
|||
/// <summary>
|
|||
/// Desc:
|
|||
/// Default:
|
|||
/// Nullable:True
|
|||
/// </summary>
|
|||
public string InvoiceID { get; set; } |
|||
public const string CN_INVOICEID = "InvoiceID"; |
|||
|
|||
/// <summary>
|
|||
/// Desc:
|
|||
/// Default:
|
|||
/// Nullable:True
|
|||
/// </summary>
|
|||
public string Memo { get; set; } |
|||
public const string CN_MEMO = "Memo"; |
|||
|
|||
/// <summary>
|
|||
/// Desc:
|
|||
/// Default:
|
|||
/// Nullable:True
|
|||
/// </summary>
|
|||
public string Effective { get; set; } |
|||
public const string CN_EFFECTIVE = "Effective"; |
|||
|
|||
/// <summary>
|
|||
/// Desc:
|
|||
/// Default:
|
|||
/// Nullable:True
|
|||
/// </summary>
|
|||
public int? OrderByValue { get; set; } |
|||
public const string CN_ORDERBYVALUE = "OrderByValue"; |
|||
|
|||
/// <summary>
|
|||
/// Desc:
|
|||
/// Default:N
|
|||
/// Nullable:True
|
|||
/// </summary>
|
|||
public string DelStatus { get; set; } |
|||
public const string CN_DELSTATUS = "DelStatus"; |
|||
|
|||
/// <summary>
|
|||
/// Desc:
|
|||
/// Default:
|
|||
/// Nullable:True
|
|||
/// </summary>
|
|||
public string CreateUser { get; set; } |
|||
public const string CN_CREATEUSER = "CreateUser"; |
|||
|
|||
/// <summary>
|
|||
/// Desc:
|
|||
/// Default:
|
|||
/// Nullable:True
|
|||
/// </summary>
|
|||
public DateTime? CreateDate { get; set; } |
|||
public const string CN_CREATEDATE = "CreateDate"; |
|||
|
|||
/// <summary>
|
|||
/// Desc:
|
|||
/// Default:
|
|||
/// Nullable:True
|
|||
/// </summary>
|
|||
public string ModifyUser { get; set; } |
|||
public const string CN_MODIFYUSER = "ModifyUser"; |
|||
|
|||
/// <summary>
|
|||
/// Desc:
|
|||
/// Default:
|
|||
/// Nullable:True
|
|||
/// </summary>
|
|||
public DateTime? ModifyDate { get; set; } |
|||
public const string CN_MODIFYDATE = "ModifyDate"; |
|||
|
|||
/// <summary>
|
|||
/// Desc:
|
|||
/// Default:
|
|||
/// Nullable:False
|
|||
/// </summary>
|
|||
public string OrgID { get; set; } |
|||
public const string CN_ORGID = "OrgID"; |
|||
|
|||
} |
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue