public static void Insert_ConsumerInvoiceFeeData(TBL_Accounting_Consumer_InvoiceFee tbl_invoicefee)
 {
     using (DataClasses1DataContext db = new DataClasses1DataContext())
     {
         db.USP_Accounting_ConsumerInvoice_Fees(101, 0, tbl_invoicefee.Cons_Invoice_Id, tbl_invoicefee.FeeTypeId.ToString(), tbl_invoicefee.Amount.ToString(), tbl_invoicefee.DueDate.ToString());
         db.SubmitChanges();
     }
 }
Exemplo n.º 2
0
 private void Fill_invoice(string invid)
 {
     string[] selrws = hfdsellines.Value.Split('^');
     foreach (string temp in selrws)
     {
         string[] cols = temp.Split('~');
         Accounting_Data.TBL_Accounting_Consumer_InvoiceFee Fee = new TBL_Accounting_Consumer_InvoiceFee();
         Fee.Cons_Invoice_Id = Convert.ToInt32(invid);
         Fee.FeeTypeId       = Convert.ToInt32(cols[0]);
         Fee.Amount          = Convert.ToDecimal(cols[1]);
         Fee.DueDate         = Convert.ToDateTime(cols[2]);
         Accounting_Data.Accounting_Details.Insert_ConsumerInvoiceFeeData(Fee);
     }
 }