public frmSalesOrderAddEdit() { InitializeComponent(); _bDTaxTypeWrapper = new BDTaxTypeWrapper(); _paymentTypeWrapper = new PaymentTypeWrapper(); _bDCustomerWrapper = new BDCustomerWrapper(); sALSalesLineCollection = new SALSalesLineCollection(); _sALSalesHeader = new SALSalesHeader(); _sALSalesLinerWrapper = new SALSalesLinerWrapper(); _iNVInventoryWrapper = new INVInventoryWrapper(); FillCustomerCBX(); FillPaymentTypeCBX(); FillTaxTypeCBX(); FillInventoryCBX(); }
private void GetSalesOrderData(int salesHeaderID) { SALSalesHeaderPrimaryKey pk = new SALSalesHeaderPrimaryKey(); pk.SalesHeaderID = salesHeaderID; _sALSalesHeader = _sALSalesHeaderWrapper.SelectOne(pk); sALSalesLineCollection = _sALSalesLinerWrapper.SelectByField(salesHeaderID); }