public static ISalesHeaderView CreateSalesHeader(tbl_Sah sah)
        {
            ISalesHeaderView header = SalesFactory.createNewSalesHeader(sah.Sah_, sah.SahNumber, sah.SahCus_,
                                                                        sah.SahCreatedate, sah.SahType);

            return(header);
        }
 public OrderViewModel()
 {
     this.quattroRepository  = new QuattroRepository();
     this.customerRepository = new CustomerRepository();
     this.productRepository  = new ProductRepository();
     this._salesHeaderView   = SalesFactory.createNewSalesHeader();
     this.selectedProduct    = ProductFactory.createProduct();
     selectedCustomer        = CustomerFactory.createNew();
 }
Example #3
0
 public QuattroRepository()
 {
     salesHeaderView = SalesFactory.createNewSalesHeader();
 }
 public OfferViewModel()
 {
     this.quattroRepository = quattroRepository;
     this.salesHeaderView   = SalesFactory.createNewSalesHeader();
 }
 public DistributionViewModel()
 {
     this.quattroRepository = quattroRepository;
     salesHeaderView        = SalesFactory.createNewSalesHeader();
 }