Exemplo n.º 1
0
 public StockInUi()
 {
     InitializeComponent();
     stockIn         = new StockIn();
     item            = new Item();
     _stockInManager = new StockInManager();
 }
Exemplo n.º 2
0
 public ItemController()
 {
     companyManager  = new CompanyManager();
     categoryManager = new CategoryManager();
     itemManager     = new ItemManager();
     stockInManager  = new StockInManager();
     stockOutManager = new StockOutManager();
 }
Exemplo n.º 3
0
        protected void DropdownCompanySelectedIndexChanged(object sender, EventArgs e)
        {
            StockInManager item      = new StockInManager();
            int            companyid = Convert.ToInt32(DropDownCompanyList.SelectedItem.Value);

            DropDownItemList.DataSource     = item.GetAllitem(companyid);
            DropDownItemList.DataTextField  = "ItemName";
            DropDownItemList.DataValueField = "ItemId";
            DropDownItemList.DataBind();
            DropDownItemList.Items.Insert(0, new ListItem("Select", "0"));
        }
Exemplo n.º 4
0
        public StockIn()
        {
            InitializeComponent();
            _StockInManager  = new StockInManager();
            _StockInManager2 = new StockInManager();
            _StockInManager3 = new StockInManager();
            _StockInManager4 = new StockInManager();
            _StockInManager5 = new StockInManager();

            itemModel = new ItemModel();
        }
Exemplo n.º 5
0
        private void saveButton_Click(object sender, EventArgs e)
        {
            StockIn stockInObj = new StockIn();

            stockInObj.ItemName                  = itemStockInComboBox.Text;
            stockInObj.previousQuntity           = Convert.ToInt32(availableQuantityStockInTextBox.Text);
            stockInObj.stockInQuantity           = Convert.ToInt32(stockInQuantityTextBox.Text);
            availableQuantityStockInTextBox.Text = (stockInObj.previousQuntity + stockInObj.stockInQuantity).ToString();

            StockInManager stockInMangObj = new StockInManager();
            string         stockInInfo    = stockInMangObj.StockInQuantity(stockInObj);

            MessageBox.Show(stockInInfo);
        }
Exemplo n.º 6
0
        private void saveButton_Click(object sender, EventArgs e)
        {
            try
            {
                StockIn insGet = new StockIn();
                insGet.ComapanyName      = companyComboBox.Text;
                insGet.CatagoryName      = categoryComboBox.Text;
                insGet.Item              = itemComboBox.Text;
                insGet.ReorderLavel      = reorderTextBox.Text;
                insGet.StockInQuantity   = stockinTextBox.Text;
                insGet.AvailableQuantity = availableQuanTextBox.Text;

                StockInManager manager = new StockInManager();
                // bool chk = manager.i
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Exemplo n.º 7
0
        private void SaveButton_Click(object sender, EventArgs e)
        {
            try
            {
                StockIn insGet = new StockIn();
                insGet.ComapanyName      = CompanyComboBox.Text;
                insGet.CategoryName      = CategoryComboBox.Text;
                insGet.Item              = ItemComboBox.Text;
                insGet.ReorderLavel      = ReorderTextBox.Text;
                insGet.StockInQuantity   = StockTextBox.Text;
                insGet.AvailableQuantity = AvailableTextBox.Text;

                StockInManager manager = new StockInManager();
                bool           chk     = manager.Insert(insGet);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
        protected void SaveButtonStockIn(object sender, EventArgs e)
        {
            if (ValidateFrom())
            {
                StockInManager stockInItem   = new StockInManager();
                int            stockInQuanty = Convert.ToInt32(TextBoxStockIn.Text);
                int            itemid        = Convert.ToInt32(DropDownItemList.SelectedItem.Value);
                int            companyid     = Convert.ToInt32(DropDownCompanyList.SelectedItem.Value);

                string message = stockInItem.UpdateStockById(companyid, itemid, stockInQuanty);

                int reorderlevel  = Convert.ToInt32(TextBoxReorderLevel.Text);
                int availQuantity = Convert.ToInt32(TextBoxAvailableQuantity.Text) + stockInQuanty;

                TextBoxReorderLevel.Text      = reorderlevel.ToString();
                TextBoxAvailableQuantity.Text = availQuantity.ToString();
                TextBoxStockIn.Text           = "";
                LabelMessage.Visible          = true;
                LabelMessage.Text             = "Stock In Successfully";
            }
        }
Exemplo n.º 9
0
 public StockInUI()
 {
     stockInManager = new StockInManager();
     companyManager = new CompanyManager();
 }
Exemplo n.º 10
0
 public StockInUI()
 {
     stockInManager = new StockInManager();
 }
Exemplo n.º 11
0
 public StockInSetup()
 {
     stockInManager = new StockInManager();
     baseGetway     = new BaseGetway();
 }