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); }
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); }
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); }
public bool Contains(SalesInvoiceDetail salesInvoiceDetail) { return(this.List.Contains(salesInvoiceDetail)); }
public void Remove(SalesInvoiceDetail salesInvoiceDetail) { this.List.Remove(salesInvoiceDetail); }
public void Insert(int index, SalesInvoiceDetail salesInvoiceDetail) { this.List.Insert(index, salesInvoiceDetail); }
public int IndexOf(SalesInvoiceDetail salesInvoiceDetail) { return(this.List.IndexOf(salesInvoiceDetail)); }
public int Add(SalesInvoiceDetail salesInvoiceDetail) { return(this.List.Add(salesInvoiceDetail)); }