public static string GeneratePrintByRanges(string anno, string counterId, string numRepStart, string numRepEnd, string idRegistro, string dataStampa, bool ultimastampa) { StampaRepertorio printer = new StampaRepertorio(); string newIdDoc = printer.GeneratePrintByRanges(anno, counterId, numRepStart, numRepEnd, idRegistro, dataStampa, ultimastampa); return(newIdDoc); }
public static string GeneratePrintByDocumentId(string idDoc) { StampaRepertorio printer = new StampaRepertorio(); string newIdDoc = printer.GeneratePrintByDocumentId(idDoc); return(newIdDoc); }
/// <summary> /// /// </summary> /// <param name="counterId"></param> /// <param name="registryId"></param> /// <param name="rfId"></param> /// <param name="userInfo"></param> /// <param name="role"></param> /// <returns></returns> public static void GeneratePrintRepertorio(String counterId, String registryId, String rfId, InfoUtente userInfo, Ruolo role) { System.Threading.Mutex mutex = null; StampaRepertorio printer = new StampaRepertorio(); try { // Creazione o reperimento del mutex mutex = CreateMutex(counterId); mutex.WaitOne(); printer.GeneratePrintRepertorio(counterId, registryId, rfId, userInfo, role); } finally { //Rilascio il mutex if (mutex != null) { mutex.ReleaseMutex(); mutex.Close(); mutex = null; } } }
public static void GeneratePrintByYear(string counterId, string year) { StampaRepertorio printer = new StampaRepertorio(); printer.GeneratePrintByYear(counterId, year); }