private void FillDropDownList() { try { var ds = _fmsg.GetMaintenanceType(); if (ds == null) { throw new ArgumentNullException(nameof(ds)); } _helper.FillDropDownHelperMethodWithDataSet(ds, "Maint_Desc", "Maint_Type_ID", ddlScheduleCat); } catch (Exception ex) { _helper.ErrorsEntry(ex); } }
public void FillMaintenanceTypes() { try { var dset = _fmsgeneral.GetMaintenanceType(); if (dset == null) { return; } _helper.FillDropDownHelperMethodWithDataSet(dset, "Maint_Desc", "Maint_Type_ID", ddlreasons); ddlreasons.Items.Insert(12, new ListItem("RESOURCE SHORTAGE", "13")); ddlreasons.Items.Insert(13, new ListItem("NO FUEL", "14")); } catch (Exception ex) { _helper.ErrorsEntry(ex); } }