Example #1
0
        private void btnRefresh_Click(object sender, EventArgs e)
        {
            try
            {
                if (!GlobalFunctions.checkRights("tsmStockInventory", "Refresh"))
                {
                    return;
                }
                try
                {
                    txtSearch.Clear();
                    dgvListAllStocks.DataSource = null;
                    ldtAllStocks = loInventoryDetail.getStockInventory("");
                    dgvListAllStocks.DataSource = ldtAllStocks;
                }
                catch (Exception ex)
                {
                    throw ex;
                }

                try
                {
                    txtSearchByLocation.Clear();
                    dgvListByLocation.DataSource = null;
                    ldtStocksByLocation          = loInventoryDetail.getStockInventoryByLocation(cboLocation.SelectedValue.ToString(), "");
                    dgvListByLocation.DataSource = ldtStocksByLocation;
                }
                catch (Exception ex)
                {
                    throw ex;
                }
            }
            catch (Exception ex)
            {
                ErrorMessageUI em = new ErrorMessageUI(ex.Message, this.Name, "btnRefresh_Click");
                em.ShowDialog();
                return;
            }
        }
Example #2
0
 public DataTable getStockInventoryByLocation(string pLocationId, string pSearchString)
 {
     return(loInventoryDetail.getStockInventoryByLocation(pLocationId, pSearchString));
 }