Exemple #1
0
 private void gdvSupplier_DoubleClick(object sender, EventArgs e)
 {
     try
     {
         GridView view = (GridView)sender;
         Model.Internal.Supplier supplierObj  = (Model.Internal.Supplier)view.GetRow(view.FocusedRowHandle);
         Report.CostSupplier     costSupplier = new Report.CostSupplier(supplierObj, Uow);
         costSupplier.ShowDialog();
     }
     catch (System.Exception excepion1)
     {
         System.Exception thisException = excepion1;
         Management.ShowException(thisException);
     }
 }
Exemple #2
0
        public CostSupplier(Model.Internal.Supplier supplier, UnitOfWork uow)
        {
            try
            {
                InitializeComponent();
                _supplier = supplier;
                _uow      = uow;
                _costBL   = new Model.BL.CostBL(_uow);
                FillControls();

                AddSerie(1, System.DateTime.Now.Year);
            }
            catch (System.Exception exception1)
            {
                System.Exception innerException = exception1;
                throw new System.Exception(MethodBase.GetCurrentMethod().Name, innerException);
            }
        }
Exemple #3
0
        public CostSupplier(Model.Internal.Supplier supplier, UnitOfWork uow)
        {
            try
            {

                InitializeComponent();
                _supplier = supplier;
                _uow = uow;
                _costBL = new Model.BL.CostBL(_uow);
                FillControls();

                AddSerie(1, System.DateTime.Now.Year);
            }
            catch (System.Exception exception1)
            {
                System.Exception innerException = exception1;
                throw new System.Exception(MethodBase.GetCurrentMethod().Name, innerException);
            }
        }