Ejemplo n.º 1
0
        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();
                }
            }
        }
Ejemplo n.º 2
0
 public CustomList <OTSlab> GetAllOTSlab()
 {
     return(OTSlab.GetAllOTSlab());
 }
Ejemplo n.º 3
0
 public Int32 RowCount()
 {
     return(OTSlab.RowCount());
 }
Ejemplo n.º 4
0
 public CustomList <OTSlab> GetAllOTSlab(string otSlabID)
 {
     return(OTSlab.GetAllOTSlab(otSlabID));
 }