public void SaveOTSlab(ref CustomList <OTSlab> OTSlabList) { ConnectionManager conManager = new ConnectionManager(ConnectionName.HR); Boolean blnTranStarted = false; try { conManager.BeginTransaction(); ReSetSPName(OTSlabList); blnTranStarted = true; Int32 id = OTSlab.RowCount() + 1; _OTSlabID = id.ToString(); foreach (OTSlab oTS in OTSlabList) { oTS.OTSlabID = id.ToString(); } conManager.SaveDataCollectionThroughCollection(blnTranStarted, OTSlabList); OTSlabList.AcceptChanges(); conManager.CommitTransaction(); blnTranStarted = false; conManager.Dispose(); } catch (Exception Ex) { conManager.RollBack(); throw Ex; } finally { if (conManager.IsNotNull()) { conManager.Dispose(); } } }
public CustomList <OTSlab> GetAllOTSlab() { return(OTSlab.GetAllOTSlab()); }
public Int32 RowCount() { return(OTSlab.RowCount()); }
public CustomList <OTSlab> GetAllOTSlab(string otSlabID) { return(OTSlab.GetAllOTSlab(otSlabID)); }