コード例 #1
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";
        }
コード例 #2
0
ファイル: CategoryCreateForm.cs プロジェクト: Jusharra/RMS
        private void savebutton_Click(object sender, EventArgs e)
        {
            InventoryCategory aCategory = new InventoryCategory();

            aCategory.CategoryName = categoryNametextBox.Text;
            aCategory.UnitId       = Convert.ToInt32(0);

            if (categoryNametextBox.Text.Length != 0)
            {
                InventoryCategoryBLL aBll = new InventoryCategoryBLL();
                bool check = aBll.CheckExit(aCategory.CategoryName);
                if (!check)
                {
                    categoryCreatelabel.Visible = true;
                    categoryCreatelabel.Text    = aBll.InsertInventoryCategory(aCategory);
                    categoryNametextBox.Clear();
                }
                else
                {
                    MessageBox.Show("Category Already Exit");
                }
            }
            else
            {
                MessageBox.Show("Please Check Your Input");
            }
        }
コード例 #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";
        }
コード例 #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";
        }
コード例 #5
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();
        }
コード例 #6
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);
     }
 }
コード例 #7
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
        }
コード例 #8
0
ファイル: ItemCreateForm.cs プロジェクト: Jusharra/RMS
        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";
        }
コード例 #9
0
ファイル: TransactionForm.cs プロジェクト: Jusharra/RMS
        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
        }