Exemple #1
0
        public void insertLedgerPaymentDetail(string id, string userName, string Trno, DateTime?Trdate, DateTime?Trgldate, string Trtype,
                                              string TrpostStatus, double TrserialNo, string TraccCode, string TrrefAccCode, string TrdocReference,
                                              double?Trdebit, double?Trcredit, double?TrexchangeRate, double?TramountConverted, int?TrcurId, int?TrtxsId,
                                              double?TrtaxPercent, double?TrtaxAmount, string TrchequeNo, DateTime?TrchequeDate, string TrrefNo, string Trremarks, string TrentryType,
                                              string EnterBy, DateTime?EnterDate, string EntryFrom, int?SitId, string TrentryTypeDoc,
                                              int?TRCustomerRef, int?TRSupplierRef, int?TRTaxRef, double?Tramount, double?TramountWithTax, int?TrtxsExciseId, double?TrtaxExcisePercent, double?TrtaxExciseAmount)
        {
            Txtledger obj = new Txtledger();

            obj.Id                = id;
            obj.UserName          = userName;
            obj.Trno              = Trno;
            obj.Trdate            = Trdate;
            obj.Trgldate          = Trgldate;
            obj.Trtype            = Trtype;
            obj.TrpostStatus      = TrpostStatus;
            obj.TrserialNo        = TrserialNo;
            obj.TraccCode         = TraccCode;
            obj.TrrefAccCode      = TrrefAccCode;
            obj.TrdocReference    = TrdocReference;
            obj.Trdebit           = Trdebit;
            obj.Trcredit          = Trcredit;
            obj.TrexchangeRate    = TrexchangeRate;
            obj.TramountConverted = TramountConverted;
            obj.TrcurId           = TrcurId;
            obj.TrtxsId           = TrtxsId;
            obj.TrtaxPercent      = TrtaxPercent;
            obj.TrtaxAmount       = TrtaxAmount;
            obj.TrchequeNo        = TrchequeNo;
            obj.TrchequeDate      = TrchequeDate;
            obj.TrrefNo           = TrrefNo;
            obj.Trremarks         = Trremarks;
            obj.TrentryType       = TrentryType;
            obj.EnterBy           = EnterBy;
            obj.EnterDate         = EnterDate;
            obj.EntryFrom         = EntryFrom;
            obj.SitId             = SitId;
            obj.TrentryTypeDoc    = TrentryTypeDoc;
            obj.TrcustomerRef     = TRCustomerRef;
            obj.TrsupplierRef     = TRSupplierRef;
            obj.TrtaxRef          = TRTaxRef;

            obj.Tramount           = Tramount;
            obj.TramountWithTax    = TramountWithTax;
            obj.TrtxsExciseId      = TrtxsExciseId;
            obj.TrtaxExcisePercent = TrtaxExcisePercent;
            obj.TrtaxExciseAmount  = TrtaxExciseAmount;

            db.Txtledger.Add(obj);
            db.SaveChanges();
        }
 public TXTPurchaseDetailView()
 {
     master       = new TxtpurchaseMaster();
     lstMaster    = new List <TxtpurchaseMaster>();
     detail       = new TXTPurchaseDetailLstView();
     lstBank      = new List <TxsbankDetail>();
     lstAccount   = new List <Txscoadetail>();
     lstSupplier  = new List <TxssupplierDetail>();
     lstStore     = new List <TxsstoreDetail>();
     lstCurrency  = new List <TxscurrencyDetail>();
     lstSite      = new List <TxssiteDetail>();
     lstItem      = new List <TxsitemDetail>();
     lstTax       = new List <TxstaxDetail>();
     lstExcise    = new List <TxstaxDetail>();
     ledger       = new Txtledger();
     inventory    = new TxtinventoryStockDetail();
     SubTotal     = new double();
     ExciseTax    = new double();
     VAT          = new double();
     TotalAmount  = new double();
     Advance      = new double();
     Paid         = new double();
     TotalBalance = new double();
 }