string GetSeries() { SeriesManager oManager = new SeriesManager(); string sSeries = ""; string sPrefix = ""; int digitNo = 0; string _objectType = "Collection"; oManager.ConnectionString = this.ConnectionString; oManager.Open(); sSeries = oManager.GetNewSeries(_objectType); sPrefix = oManager.GetPrefix(_objectType); digitNo = Convert.ToInt16(oManager.GetDigit(_objectType)); oManager.Close(); return sPrefix + String.Format("{0:D5}", Convert.ToInt16(sSeries)); }
string GetSeries() { SeriesManager oManager = new SeriesManager(); string sSeries = ""; string sPrefix = ""; int digitNo = 0; string _objectType = "Payment"; oManager.ConnectionString = this.ConnectionString; oManager.Open(); sSeries = oManager.GetNewSeries(_objectType); sPrefix = oManager.GetPrefix(_objectType); digitNo = Convert.ToInt16(oManager.GetDigit(_objectType)); oManager.Close(); return sPrefix + sSeries; }