Beispiel #1
0
 /// <summary>
 ///     创建发票行
 /// </summary>
 /// <returns></returns>
 public static MaintainInvoiceLine CreateInvoiceLine()
 {
     var invoiceLine = new MaintainInvoiceLine();
     invoiceLine.GenerateNewIdentity();
     return invoiceLine;
 }
Beispiel #2
0
 /// <summary>
 ///     设置发票行属性
 /// </summary>
 /// <param name="invoiceLine">发票行</param>
 /// <param name="price">单价</param>
 /// <param name="amount">金额</param>
 /// <param name="note">备注</param>
 /// <param name="maintainItem">维修项</param>
 /// <param name="itemName">项名称</param>
 public static void SetInvoiceLine(MaintainInvoiceLine invoiceLine, int maintainItem, int itemName, decimal price, decimal amount, string note)
 {
     invoiceLine.SetMaintainItem((MaintainItem)maintainItem);
     invoiceLine.SetItemName((ItemNameType)itemName);
     invoiceLine.SetUnitPrice(price);
     invoiceLine.SetAmount(amount);
     invoiceLine.SetNote(note);
 }