Exemple #1
0
        /// <summary>
        /// This method will return an object representing the record matching the primary key information specified.
        /// </summary>
        ///
        /// <param name="pk" type="BDCustomerAccountPrimaryKey">Primary Key information based on which data is to be fetched.</param>
        ///
        /// <returns>object of class BDCustomerAccount</returns>
        public BDCustomerAccount SelectOne(BDCustomerAccountPrimaryKey pk)
        {
            _bDCustomerAccountWCF = new BDCustomerAccount();
            _bDCustomerAccount    = POS.DataLayer.BDCustomerAccountBase.SelectOne(new POS.DataLayer.BDCustomerAccountPrimaryKey(pk.CustomerAccountNumber));

            _bDCustomerAccountWCF.CustomerAccountNumber = _bDCustomerAccount.CustomerAccountNumber;
            _bDCustomerAccountWCF.CustomerID            = _bDCustomerAccount.CustomerID;
            _bDCustomerAccountWCF.SalesInvoiceId        = _bDCustomerAccount.SalesInvoiceId;
            _bDCustomerAccountWCF.SalesDate             = _bDCustomerAccount.SalesDate;
            _bDCustomerAccountWCF.InvoiceNumber         = _bDCustomerAccount.InvoiceNumber;
            _bDCustomerAccountWCF.TotalPrice            = _bDCustomerAccount.TotalPrice;
            _bDCustomerAccountWCF.PaidAmount            = _bDCustomerAccount.PaidAmount;
            _bDCustomerAccountWCF.RemainingAmount       = _bDCustomerAccount.RemainingAmount;
            _bDCustomerAccountWCF.IsVoid      = _bDCustomerAccount.IsVoid;
            _bDCustomerAccountWCF.CreatedBy   = _bDCustomerAccount.CreatedBy;
            _bDCustomerAccountWCF.CreateDate  = _bDCustomerAccount.CreateDate;
            _bDCustomerAccountWCF.UpdatedBy   = _bDCustomerAccount.UpdatedBy;
            _bDCustomerAccountWCF.UpdateDate  = _bDCustomerAccount.UpdateDate;
            _bDCustomerAccountWCF.IsDeleted   = _bDCustomerAccount.IsDeleted;
            _bDCustomerAccountWCF.DeletedBy   = _bDCustomerAccount.DeletedBy;
            _bDCustomerAccountWCF.DeletedDate = _bDCustomerAccount.DeletedDate;
            _bDCustomerAccountWCF.InvoiceType = _bDCustomerAccount.InvoiceType;

            return(_bDCustomerAccountWCF);
        }
Exemple #2
0
 ///<summary>
 ///This method will Delete the object from the database
 ///</summary>
 ///<param name="pk" type="BDCustomerAccountPrimaryKey">Primary Key information based on which data is to be fetched.</param>
 /// <returns>True if succeeded</returns>
 public bool Delete(BDCustomerAccountPrimaryKey pk)
 {
     return(POS.DataLayer.BDCustomerAccountBase.Delete(new POS.DataLayer.BDCustomerAccountPrimaryKey(pk.CustomerAccountNumber)));
 }