コード例 #1
0
        public int AddSalesInvoiceDetail(SalesInvoiceDetail salesinvoicedetail)
        {
            SalesInvoiceDetailData data = new SalesInvoiceDetailData();
            int id = 0;

            try
            {
                id = data.AddSalesInvoiceDetail(salesinvoicedetail);
            }
            catch (Exception ex)
            {
                log.Write(ex.Message, "AddSalesInvoiceDetail");
                throw (ex);
            }
            finally
            {
                data = null;
            }
            return(id);
        }
コード例 #2
0
        public SalesInvoiceDetail GetSalesInvoiceDetails(int saleInvoiceDetailID)
        {
            SalesInvoiceDetailData data = new SalesInvoiceDetailData();
            SalesInvoiceDetail     sih  = new SalesInvoiceDetail();

            try
            {
                sih = data.GetSalesInvoiceDetail(saleInvoiceDetailID);
            }
            catch (Exception ex)
            {
                log.Write(ex.Message, "GetSalesInvoiceDetails");
                throw (ex);
            }
            finally
            {
                data = null;
            }
            return(sih);
        }
コード例 #3
0
        public bool UpdateSalesInvoiceDetail(SalesInvoiceDetail salesinvoicedetail)
        {
            SalesInvoiceDetailData data = new SalesInvoiceDetailData();
            bool ret = false;

            try
            {
                ret = data.UpdateSalesInvoiceDetail(salesinvoicedetail);
            }
            catch (Exception ex)
            {
                log.Write(ex.Message, "UpdateSalesInvoiceDetail");
                throw (ex);
            }
            finally
            {
                data = null;
            }
            return(ret);
        }
コード例 #4
0
 public bool Contains(SalesInvoiceDetail salesInvoiceDetail)
 {
     return(this.List.Contains(salesInvoiceDetail));
 }
コード例 #5
0
 public void Remove(SalesInvoiceDetail salesInvoiceDetail)
 {
     this.List.Remove(salesInvoiceDetail);
 }
コード例 #6
0
 public void Insert(int index, SalesInvoiceDetail salesInvoiceDetail)
 {
     this.List.Insert(index, salesInvoiceDetail);
 }
コード例 #7
0
 public int IndexOf(SalesInvoiceDetail salesInvoiceDetail)
 {
     return(this.List.IndexOf(salesInvoiceDetail));
 }
コード例 #8
0
 public int Add(SalesInvoiceDetail salesInvoiceDetail)
 {
     return(this.List.Add(salesInvoiceDetail));
 }