/// <summary> /// This is loaded during CreateMailerVMForAssigningVerifList /// </summary> //ICollection<AddressVerificationHdr> Inprocess_AddressVerificationHdrsList(string mailerId) //{ // //all the ones in proccess can be printed. // return GetAllHeadersFor(mailerId, SuccessENUM.InProccess); //} /// <summary> /// This is used as the first screen to assign mailings. It provides all the info to the /// mailer about his current status. /// </summary> /// <returns></returns> public MailerVMForAssigningVerifList CreateMailerVMForAssigningVerifList() { UserId.IsNullOrWhiteSpaceThrowException("You are not logged in."); string mailerId = getMailerIdFor(UserId); mailerId.IsNullOrWhiteSpaceThrowException("You are not authorized to be a mailer."); MailerVMForAssigningVerifList mv = factory_MailerVMForAssigningVerifList(); mv.Pakistan_Postal_Verifications_Available = pakistan_Postal_Verifications_Available(); mv.Foreign_Courier_Verifications_Available = total_Foreign_Courier_Available(); mv.Foreign_Postal_Verifications_Available = foreign_Postal_Verifications_Available(); mv.Pakistan_Courier_Verifications_Available = pakistan_Courier_Verifications_Available(); mv.MailerId = mailerId; //initialize Enums mv.MailLocalOrForiegnEnum = MailLocalOrForiegnENUM.Unknown; mv.MailServiceEnum = MailServiceENUM.Unknown; int openMailingsForMailer = total_Open_Mailings_For_Mailer(mv.MailerId); mv.Total_Open_Mailings_For_Mailer = openMailingsForMailer.ToString(); if (openMailingsForMailer > 0) { mv.AddressVerificationHdrList_InProcessOrPrinted = verifHdrs_ReadyForPrintingOrCosts(mv.MailerId); } return(mv); }
MailerVMForAssigningVerifList factory_MailerVMForAssigningVerifList() { MailerVMForAssigningVerifList mvm = new MailerVMForAssigningVerifList(); return(mvm); }