Ejemplo n.º 1
0
        public TransactionForm()
        {
            InitializeComponent();
              //  this.AcceptButton = saveTransactionbutton;
            transactionActionlabel.Visible = false;
            List<InventoryCategory> aaList = new List<InventoryCategory>();
            InventoryCategoryBLL aBll = new InventoryCategoryBLL();
            aaList = aBll.GetAllCategory();
            categoryNamecomboBox.DataSource = aaList;
            categoryNamecomboBox.DisplayMember = "CategoryName";
            categoryNamecomboBox.ValueMember = "CategoryId";

            //findout item
            try
            {
                InventoryItemBLL aaBll = new InventoryItemBLL();
                List<InventoryItem> aList = new List<InventoryItem>();
                Int32 category = Convert.ToInt32(categoryNamecomboBox.SelectedValue);
                aList = aaBll.GetItemByCategory(category);
                itemNamecomboBox.DataSource = aList;
                itemNamecomboBox.DisplayMember = "ItemName";
                itemNamecomboBox.ValueMember = "ItemId";
                InventoryItem aItem = new InventoryItem();
                aItem = (InventoryItem)itemNamecomboBox.SelectedItem;
                unittypelabel.Text = aItem.UnitName;
            }
            catch (Exception)
            {

            }

            // This used for package activation
               // BookedTransactionTypecomboboxForBusiness();// when Businees Package is active
            BookedTransactionTypecomboboxForProfessional();// when When Professional Package is active
        }
Ejemplo n.º 2
0
        public InventoryPurchaseReport()
        {
            InitializeComponent();
            Invisible();
            label7.Visible = false;
            label9.Visible = false;
            label11.Visible = false;
            label13.Visible = false;
            receiveSumLabel.Visible = false;
            totalSaleslabel.Visible = false;
            totalReturnlabel.Visible = false;
            totalBalancelabel.Visible = false;
            InventoryCategoryBLL aBlll = new InventoryCategoryBLL();
            List<InventoryCategory> aaList = new List<InventoryCategory>();
            aaList = aBlll.GetAllCategory();
            categoryNameComboBox.DataSource = aaList;
            categoryNameComboBox.DisplayMember = "CategoryName";
            categoryNameComboBox.ValueMember = "CategoryId";

            //find out supplier
            SupplierBLL aSupplierBll = new SupplierBLL();
            List<Supplier> aSuppliers = new List<Supplier>();
            aSuppliers = aSupplierBll.GetAllSupplier();
            supplierNamecomboBox.DataSource = aSuppliers;
            supplierNamecomboBox.DisplayMember = "Name";
            supplierNamecomboBox.ValueMember = "SupplierId";
        }
Ejemplo n.º 3
0
 private void LoadCategory()
 {
     InventoryCategoryBLL aBlll = new InventoryCategoryBLL();
     List<InventoryCategory> aaList = new List<InventoryCategory>();
     aaList = aBlll.GetAllCategory();
     categoryNamecomboBox.DataSource = aaList;
     categoryNamecomboBox.DisplayMember = "CategoryName";
     categoryNamecomboBox.ValueMember = "CategoryId";
 }
Ejemplo n.º 4
0
 public InventoryStockReportForm()
 {
     InitializeComponent();
     InventoryCategoryBLL aBlll = new InventoryCategoryBLL();
     List<InventoryCategory> aaList = new List<InventoryCategory>();
     aaList = aBlll.GetAllCategory();
     categoryNameComboBox.DataSource = aaList;
     categoryNameComboBox.DisplayMember = "CategoryName";
     categoryNameComboBox.ValueMember = "CategoryId";
 }
Ejemplo n.º 5
0
 private void LoadCategory()
 {
     InventoryCategoryBLL aBlll = new InventoryCategoryBLL();
     List<InventoryCategory> aaList = new List<InventoryCategory>();
     aaList = aBlll.GetAllCategory();
     categoryNamecomboBox.DataSource = aaList;
     categoryNamecomboBox.DisplayMember = "CategoryName";
     categoryNamecomboBox.ValueMember = "CategoryId";
     if (Convert.ToInt32(categoryNamecomboBox.SelectedValue) > 0)
     {
         int categoryId = Convert.ToInt32(categoryNamecomboBox.SelectedValue);
         LoadItemDetails(categoryId);
     }
 }
Ejemplo n.º 6
0
        public InventoryTransactionReport()
        {
            InitializeComponent();

            InventoryCategoryBLL aBlll = new InventoryCategoryBLL();
            List<InventoryCategory> aaList = new List<InventoryCategory>();
            aaList = aBlll.GetAllCategory();
            categoryNameComboBox.DataSource = aaList;
            categoryNameComboBox.DisplayMember = "CategoryName";
            categoryNameComboBox.ValueMember = "CategoryId";

            // This used for which package is activation
            //BookedTransactionTypecomboboxForBusiness();// when Businees Package is active
             BookedTransactionTypecomboboxForProfessional();// when  Professional Package is active
        }
Ejemplo n.º 7
0
        public InventoryPurchaseForm()
        {
            InitializeComponent();
              //  this.AcceptButton=savePurchasebutton;
            purchaseActionlabel.Visible = false;
            //Find out category
            List<InventoryCategory> aaList=new List<InventoryCategory>();
            InventoryCategoryBLL aBll=new InventoryCategoryBLL();
            aaList = aBll.GetAllCategory();
            categoryNamecomboBox.DataSource = aaList;
            categoryNamecomboBox.DisplayMember = "CategoryName";
            categoryNamecomboBox.ValueMember = "CategoryId";

            //findout item
            InventoryItemBLL aaBll = new InventoryItemBLL();
            List<InventoryItem> aList = new List<InventoryItem>();
            Int32 category = Convert.ToInt32(categoryNamecomboBox.SelectedValue);
            aList = aaBll.GetItemByCategory(category);
            itemNamecomboBox.DataSource = aList;
            itemNamecomboBox.DisplayMember = "ItemName";
            itemNamecomboBox.ValueMember = "ItemId";

            //find out unit
            //int unitId = aaList[categoryNamecomboBox.SelectedIndex].UnitId;
            //UnitCreateBLL aCreateBll = new UnitCreateBLL();
            //Unit aUnit = new Unit();
            //aUnit = aCreateBll.GetUnitByUnitId(unitId);
            try
            {
                unittypelabel.Text = aList[itemNamecomboBox.SelectedIndex].UnitName;
            }
            catch (Exception)
            {

            }

            //find out supplier
            SupplierBLL aSupplierBll=new SupplierBLL();
            List<Supplier>aSuppliers=new List<Supplier>();
            aSuppliers = aSupplierBll.GetAllSupplier();
            supplierNamecomboBox.DataSource = aSuppliers;
            supplierNamecomboBox.DisplayMember = "Name";
            supplierNamecomboBox.ValueMember = "SupplierId";
            dueOradvancelabel.Text = aSupplierBll.GetDueOrAdvance(aSuppliers,Convert.ToInt32(supplierNamecomboBox.SelectedValue));
            BookedPaymentTypeCombobox();
        }
Ejemplo n.º 8
0
 public ItemCreateForm()
 {
     InitializeComponent();
        // this.AcceptButton=savebutton;
     itemCreatelabel.Visible = false;
     InventoryCategoryBLL aBlll=new InventoryCategoryBLL();
     List<InventoryCategory> aaList=new List<InventoryCategory>();
     aaList = aBlll.GetAllCategory();
        categoryNamecomboBox.DataSource = aaList;
        categoryNamecomboBox.DisplayMember = "CategoryName";
        categoryNamecomboBox.ValueMember = "CategoryId";
        UnitCreateBLL aBll = new UnitCreateBLL();
        List<Unit> aList = new List<Unit>();
        aList = aBll.GetALLUnit();
        unitNamecomboBox.DataSource = aList;
        unitNamecomboBox.DisplayMember = "UnitName";
        unitNamecomboBox.ValueMember = "UnitId";
 }