Esempio n. 1
0
 private void PopulateComboBoxes(StockOutDialogEventArgs args)
 {
     productMasterBindingSource.DataSource = args.ProductMastersList;
     productMasterBindingSource.ResetBindings(false);
     productColorBindingSource.DataSource = args.ProductColorList;
     productColorBindingSource.ResetBindings(false);
     productSizeBindingSource.DataSource = args.ProductSizeList;
     productSizeBindingSource.ResetBindings(false);
     departmentBindingSource.DataSource = args.DepartmentsList;
     departmentBindingSource.ResetBindings(false);
 }
Esempio n. 2
0
        private void StockOutDialog_Load(object sender, EventArgs e)
        {
            StockOutDialogEventArgs eventArgs = new StockOutDialogEventArgs();
            EventUtility.fireEvent(InitDialogEvent,this,eventArgs);

            PopulateComboBoxes(eventArgs);
        }
        void stockOutDialogView_InitDialogEvent(object sender, StockOutDialogEventArgs e)
        {
            ObjectCriteria objectCriteria = new ObjectCriteria();
            objectCriteria.AddEqCriteria("DelFlg", CommonConstants.DEL_FLG_NO);

            e.ProductSizeList = ProductSizeLogic.FindAll(objectCriteria);
            e.ProductColorList = ProductColorLogic.FindAll(objectCriteria);
            e.ProductTypeList = ProductTypeLogic.FindAll(objectCriteria);
            e.DepartmentsList = DepartmentLogic.FindAll(objectCriteria);
            e.ProductMastersList = ProductMasterLogic.FindDistinctNames();
        }