Пример #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();
 }
Пример #2
0
 public frmPurchaseOrderAddEdit(int HeaderID)
 {
     InitializeComponent();
     _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();
 }
Пример #3
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);
            }
        }