コード例 #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();
                }
            }
        }
コード例 #2
0
 public CustomList <OTSlab> GetAllOTSlab()
 {
     return(OTSlab.GetAllOTSlab());
 }
コード例 #3
0
 public Int32 RowCount()
 {
     return(OTSlab.RowCount());
 }
コード例 #4
0
 public CustomList <OTSlab> GetAllOTSlab(string otSlabID)
 {
     return(OTSlab.GetAllOTSlab(otSlabID));
 }