public void BindLeaveHistory() { try { BL_Leave ObjBL = new BL_Leave(); EWA_Leave ObjEWA = new EWA_Leave(); ObjEWA.OrgID = orgId; ObjEWA.UserCode = DDL_EmoloyeeName.SelectedValue; DataSet ds = ObjBL.BL_GetLeaveHistory(ObjEWA); if (ds.Tables[0].Rows.Count > 0) { grdStaffLeave.DataSource = ds; grdStaffLeave.DataBind(); } else { grdStaffLeave.DataSource = null; grdStaffLeave.DataBind(); msgBox.ShowMessage("Recode not Found...!", "Information", UserControls.MessageBox.MessageStyle.Information); } } catch (Exception ext) { } }
//Get Application #region [Get Application] public DataSet BL_GetApplication(EWA_Leave objEWA) { try { DataSet ds = objDL.DL_GetApplication(objEWA); return(ds); } catch (Exception) { throw; } }
//Get Leave History #region [Get Leave History] public DataSet BL_GetLeaveHistory(EWA_Leave objEWA) { try { DataSet ds = objDL.DL_GetLeaveHistory(objEWA); return(ds); } catch (Exception) { throw; } }
// Faculty Leave Application #region [Save Leave Application] public int BLSaveLeaveApplication(EWA_Leave objEWA) { try { int flag = objDL.DLSaveLeaveApplication(objEWA); return(flag); } catch (Exception) { throw; } }
public void BindLeaveHistory() { try { BL_Leave ObjBL = new BL_Leave(); EWA_Leave ObjEWA = new EWA_Leave(); ObjEWA.OrgID = orgId; ObjEWA.UserCode = Session["UserCode"].ToString(); DataSet ds = ObjBL.BL_GetLeaveHistory(ObjEWA); grdStaffLeave.DataSource = ds; grdStaffLeave.DataBind(); } catch (Exception ext) { } }