/// <summary> /// Handles the changed event of the store combo bo /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void cboStores_SelectedValueChanged(object sender, EventArgs e) { if (cboStores.EditValue != null) { int currentMonth = EthiopianDate.EthiopianDate.Now.Month; var expDate = EthiopianDate.EthiopianDate.EthiopianToGregorian(String.Format("{0}/{1}/{2}", 1, currentMonth, Convert.ToInt32(cboYear.EditValue))); Items itm = new Items(); DataTable dtItem = itm.GetExpiredItemsByBatch(Convert.ToInt32(cboStores.EditValue)); PopulateItemList(dtItem); } }
/// <summary> /// Handles the changed event of the radio group /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void radioGroup1_SelectedIndexChanged(object sender, EventArgs e) { if (cboStores.EditValue != null) { Items itm = new Items(); _selectedType = rdDrug.EditValue.ToString(); DataTable dtItem = itm.GetExpiredItemsByBatch(Convert.ToInt32(cboStores.EditValue), Convert.ToInt32(lkCommodityTypes.EditValue), Convert.ToInt32(cboReasons.EditValue));// PopulateItemList(dtItem); PopulateCatTree(_selectedType); } }