Example #1
0
 private void LoadScreenData()
 {
     _bDTaxTypeWrapper = new BDTaxTypeWrapper();
     _paymentTypeWrapper = new PaymentTypeWrapper();
     _bDSupplierWrapper = new BDSupplierWrapper();
     pURPurchaseLineCollection = new PURPurchaseLineCollection();
     _pURPurchaseLinerWrapper = new PURPurchaseLineWrapper();
     _productWrapper = new BDProductWrapper();
     _invInventoryService = new INVInventoryService();
     FillSupplierCBX();
     FillPaymentTypeCBX();
     FillTaxTypeCBX();
     FillInventoryCBX();
 }
Example #2
0
        private void LoadLines(int HeaderID)
        {
            try
            {
                PURPurchaseHeaderPrimaryKey headerKey = new PURPurchaseHeaderPrimaryKey();
                headerKey.PurcaseHeaderID = HeaderID;
                PURPurchaseHeaderService headerService = new PURPurchaseHeaderService();
                PURPurchaseHeader selectedHeader = headerService.SelectOne(headerKey);

                PURPurchaseLineWrapper LineService = new PURPurchaseLineWrapper();
                PURPurchaseLineCollection selectedLines = LineService.SelectByHeaderID(HeaderID);
                LoadHeaderControls(selectedHeader);
                LoadGridLines(selectedLines);
            }
            catch (Exception ex)
            {

                MessageBox.Show("حدث خطأ برجاء تكرار العمليه مره اخرى واذا تكرر الخطا برجاءالاتصال بالشخص المصمم للبرنامج وارسال رسالة الخطا التى ستظهر بعد قليل له");
                MessageBox.Show(ex.Message);
            }
        }