Пример #1
0
 public DataSet SaveCoverNoteDetail(clsQuotation objclsQuotation, string process,
                                    string UpfrontDuedateStatus,
                                    string DdlPPWWaiveStatus)
 {
     object[] parameters = new object[] { objclsQuotation.PolicyId,
                                          objclsQuotation.PolVersionId,
                                          objclsQuotation.PolicyNo,
                                          objclsQuotation.EndorsementNo,
                                          objclsQuotation.PrevPolicyNo,
                                          objclsQuotation.InsurerDBNote,
                                          objclsQuotation.BillingDate,
                                          objclsQuotation.PremiumRate,
                                          objclsQuotation.FollowupDate,
                                          objclsQuotation.FollowupReason,
                                          objclsQuotation.EndDebitNoteNo,
                                          objclsQuotation.EndBillingDate,
                                          objclsQuotation.User,
                                          //added by himanshu for 18065
                                          objclsQuotation.InsurerTaxInvoice,
                                          objclsQuotation.PolicyReceivedDate,
                                          //objclsQuotation.InsurerTaxInvoiceNumber,
                                          objclsQuotation.PPW_Waive_Status,
                                          objclsQuotation.NewDate,
                                          objclsQuotation.EndrsmntStartDate,
                                          objclsQuotation.EndrsmntEndDate,
                                          process,
                                          UpfrontDuedateStatus,
                                          DdlPPWWaiveStatus };
     dataAccessDS = new DataAccess();
     return(dataAccessDS.LoadDataSet(parameters, "P_Pol_PolicyMaster_CoverNoteDetails_InsertUpdate", "CoverNoteList"));
 }
Пример #2
0
 public bool IsBillingComplete(clsQuotation objclsQuotation)
 {
     object[] parameters = new object[] { objclsQuotation.PolicyId, objclsQuotation.PolVersionId };
     dataAccessDS = new DataAccess();
     //return dataAccessDS.LoadDataSet(parameters, "P_Pol_Policy_EndtData_IsInsert", "CancelPolicy");
     return(Convert.ToBoolean(dataAccessDS.GetScalarValue(parameters, "P_Pol_PolicyBilling_IsComplete")));
 }
Пример #3
0
 public DataSet GetRiskType(clsQuotation objQuotation)
 {
     dataAccess = new DataAccess();
     Object[] parameters = new Object[2] {
         objQuotation.PolicyId, objQuotation.PolVersionId
     };
     return(dataAccess.LoadDataSet(parameters, "GetRiskType", "GetRiskType"));
 }
Пример #4
0
 public DataSet GetBenefitSchedule(clsQuotation objQuotation)
 {
     dataAccess = new DataAccess();
     Object[] parameters = new Object[3] {
         objQuotation.PolicyId, objQuotation.PolVersionId, objQuotation.UnderwriterId
     };
     return(dataAccess.LoadDataSet(parameters, "GetBenefitLine", "BenefitLine"));
 }
Пример #5
0
 public DataSet GetPolicySlipListForLCHCoverNote(clsQuotation objQuotation)
 {
     dataAccess = new DataAccess();
     Object[] parameters = new Object[3] {
         objQuotation.PolicyId, objQuotation.PolVersionId, objQuotation.DateFormat
     };
     return(dataAccess.LoadDataSet(parameters, "P_Pol_QuotationSlipPrintCoverNoteDetails", "SlipList"));
 }
Пример #6
0
 public DataSet getPremiumHistory(clsQuotation objclsQuotation)
 {
     dataAccessDS = new DataAccess();
     Object[] parametes = new Object[2] {
         objclsQuotation.PolicyId, objclsQuotation.PolVersionId
     };
     return(dataAccessDS.LoadDataSet(parametes, "Pol_Policy_HistoryPremiuarySummary", "PremiuarySummary"));
 }
Пример #7
0
 public DataSet getEndtPremiumSummary(clsQuotation objclsQuotation)
 {
     dataAccessDS = new DataAccess();
     Object[] parametes = new Object[3] {
         objclsQuotation.PolicyId, objclsQuotation.PolVersionId, objclsQuotation.UWCoinsuranceApplicable
     };
     return(dataAccessDS.LoadDataSet(parametes, "Pol_Policy_EndorsementPremiuarySummary", "PremiuarySummary"));
 }
Пример #8
0
 public DataSet GetPolicySlipList(clsQuotation objQuotation)
 {
     dataAccess = new DataAccess();
     Object[] parameters = new Object[3] {
         objQuotation.PolicyId, objQuotation.PolVersionId, objQuotation.DateFormat
     };
     return(dataAccess.LoadDataSet(parameters, "P_Pol_PolicyPrintSlipData_Select", "SlipList"));
 }
Пример #9
0
 public DataSet SaveEndtPremiumDetail(clsQuotation objclsQuotation, clsPolicyUnderwriter objUnderwriter, bool manualOverwrite)  //changed by megha to merge Aasai changes
 {
     object[] parameters = new object[] { objclsQuotation.PolicyId,
                                          objclsQuotation.PolVersionId,
                                          objUnderwriter.UWId, //added by megha to merge Aasai changes
                                          objclsQuotation.TotalPremium,
                                          objclsQuotation.AdditionalPremium,
                                          objclsQuotation.ClientDiscount,
                                          objclsQuotation.TotalSurcharge,
                                          objclsQuotation.TotalPremiumSurcharge,
                                          objclsQuotation.SpecialDiscount,
                                          objclsQuotation.SpecialDiscountRate,
                                          objclsQuotation.DueFromClient,
                                          objclsQuotation.HandlingFeeAmount,
                                          objclsQuotation.POIFromDate,
                                          objclsQuotation.POIToDate,
                                          objclsQuotation.User,
                                          objUnderwriter.ID, //added by megha to merge Aasai changes
                                          manualOverwrite,
                                          objUnderwriter.TotalPremiumLAW,
                                          objUnderwriter.StDutyLAW,
                                          objUnderwriter.TaxTypeLAW,
                                          objUnderwriter.TaxLAW,
                                          objUnderwriter.SpDiscLAW,
                                          objUnderwriter.WHTPercentLAW,
                                          objUnderwriter.NetPayLAW,
                                          objUnderwriter.TaxLawrdb,
                                          objUnderwriter.StDutyLAWAmt,
                                          objUnderwriter.WHTAMT,
                                          objUnderwriter.NetPayClient,
                                          objUnderwriter.PolicyCharge,
                                          objUnderwriter.InsurerGSTPer,
                                          objUnderwriter.InsurerGSTPerId,
                                          objUnderwriter.InsurerGSTAmount,
                                          objclsQuotation.ClientDiscountRate,
                                          objUnderwriter.ServiceFee,
                                          objUnderwriter.ServiceFeeGSTPer,
                                          objUnderwriter.ServiceFeeGSTPerId,
                                          objUnderwriter.ServiceFeeGSTAmount,
                                          objUnderwriter.StampDuty,
                                          objUnderwriter.NettPremium,
                                          objUnderwriter.NCDPer,
                                          objUnderwriter.NCDAmount,
                                          objUnderwriter.LoadingByInsurerPer,
                                          objUnderwriter.LoadingByInsurerAmt,
                                          objUnderwriter.DiscountByInsurerPer,
                                          objUnderwriter.DiscountByInsurerAmt };
     dataAccessDS = new DataAccess();
     //return dataAccessDS.LoadDataSet(parameters, "P_Pol_PolicyMaster_PremiumDetails_InsertUpdate", "Pol_PolicyMaster");
     return(dataAccessDS.LoadDataSet(parameters, "P_Pol_PolicyMaster_EndtPremiumDetails_InsertUpdate", "Pol_PolicyMaster"));
 }
Пример #10
0
 public DataSet GetCoverNoteDetails(clsQuotation objclsQuotation)
 {
     object[] parameters = new object[] { objclsQuotation.PolicyId, objclsQuotation.PolVersionId };
     dataAccessDS = new DataAccess();
     return(dataAccessDS.LoadDataSet(parameters, "P_Pol_PolicyMaster_CoverNoteDetails_Select", "CoverNoteList"));
 }
Пример #11
0
 public DataSet GetIntroducerducerDetaisForSummary(clsQuotation objclsQuotation)
 {
     object[] parameters = new object[] { objclsQuotation.PolicyId, objclsQuotation.PolVersionId, objclsQuotation.VessedId, objclsQuotation.IsEndorse };
     dataAccessDS = new DataAccess();
     return(dataAccessDS.LoadDataSet(parameters, "P_IntroducerSummary", "P_IntroducerSummary"));
 }
Пример #12
0
 public DataSet HoldPolicy(clsQuotation objclsQuotation)
 {
     object[] parameters = new object[] { objclsQuotation.PolicyId, objclsQuotation.PolVersionId, objclsQuotation.POIFromDate, objclsQuotation.POIToDate, objclsQuotation.MaintenancePeriodFromDate, objclsQuotation.MaintenancePeriodToDate, objclsQuotation.User, objclsQuotation.RenPolStatus };
     dataAccessDS = new DataAccess();
     return(dataAccessDS.LoadDataSet(parameters, "P_Pol_PolicyHoldCover_InsertUpdate", "ExtendedPolicy"));
 }
Пример #13
0
 public DataSet CancelPolicyStatus(clsQuotation objclsQuotation)
 {
     object[] parameters = new object[] { objclsQuotation.PolicyId, objclsQuotation.PolVersionId, objclsQuotation.Pol_Status };
     dataAccessDS = new DataAccess();
     return(dataAccessDS.LoadDataSet(parameters, "P_Pol_CancelPolicyStatus", "ExtendedPolicy"));
 }
Пример #14
0
 public DataSet GetPolicyInfo(clsQuotation objclsQuotation)
 {
     object[] parameters = new object[] { objclsQuotation.CoverNoteNo };
     dataAccessDS = new DataAccess();
     return(dataAccessDS.LoadDataSet(parameters, "P_Pol_PolicyCNDetail_Select", "Pol_PolicyCNDetail"));
 }
Пример #15
0
 public DataSet ConfirmCancelPolicy(clsQuotation objclsQuotation)
 {
     object[] parameters = new object[] { objclsQuotation.PolicyId, objclsQuotation.PolVersionId, objclsQuotation.Pol_Status };
     dataAccessDS = new DataAccess();
     return(dataAccessDS.LoadDataSet(parameters, "P_Pol_ConfirmPolicyCancellation", "CancelPolicy"));
 }
Пример #16
0
 public DataSet UpdateRenStatus(clsQuotation objclsQuotation, string Status)
 {
     object[] parameters = new object[] { objclsQuotation.PolicyId, objclsQuotation.PolVersionId, Status, objclsQuotation.RenewalReasonId };
     dataAccessDS = new DataAccess();
     return(dataAccessDS.LoadDataSet(parameters, "P_Pol_ChangePolicyStatus", "ClaimList"));
 }
Пример #17
0
 public DataSet GetRenewalClaimListing(clsQuotation objclsQuotation)
 {
     object[] parameters = new object[] { objclsQuotation.PolicyId, objclsQuotation.PolVersionId };
     dataAccessDS = new DataAccess();
     return(dataAccessDS.LoadDataSet(parameters, "P_Pol_RenClaimDetails_Select", "ClaimList"));
 }
Пример #18
0
 public DataSet GetRenewalLetterInfo(clsQuotation objclsQuotation, int UserId)
 {
     object[] parameters = new object[] { objclsQuotation.PolicyId, objclsQuotation.PolVersionId, UserId };
     dataAccessDS = new DataAccess();
     return(dataAccessDS.LoadDataSet(parameters, "P_Pol_Policy_RenewalLetterInfo_Select", "RenewalLetterList"));
 }
Пример #19
0
 public DataSet CancelEndorsement(clsQuotation objclsQuotation)
 {
     object[] parameters = new object[] { objclsQuotation.PolicyId, objclsQuotation.PolVersionId };
     dataAccessDS = new DataAccess();
     return(dataAccessDS.LoadDataSet(parameters, "P_Pol_RefreshEndorsement", "CancelExtension"));
 }
Пример #20
0
 public DataSet RemarketPolicy(clsQuotation objclsQuotation)
 {
     object[] parameters = new object[] { objclsQuotation.PolicyId, objclsQuotation.PolVersionId, objclsQuotation.User };
     dataAccessDS = new DataAccess();
     return(dataAccessDS.LoadDataSet(parameters, "P_Pol_PolicyMaster_Remarket", "Remarket"));
 }
Пример #21
0
 public DataSet RevisedPolicy(clsQuotation objclsQuotation, int LoginTeamId)
 {
     object[] parameters = new object[] { objclsQuotation.PolicyId, objclsQuotation.PolVersionId, objclsQuotation.RenPolStatus, objclsQuotation.User, LoginTeamId };
     dataAccessDS = new DataAccess();
     return(dataAccessDS.LoadDataSet(parameters, "P_Pol_RevisedPolicy", "RenewedPolicy"));
 }
Пример #22
0
 public DataSet GetExtendedDetails(clsQuotation objclsQuotation, bool IsExtended)
 {
     object[] parameters = new object[] { objclsQuotation.PolicyId, objclsQuotation.PolVersionId, IsExtended };
     dataAccessDS = new DataAccess();
     return(dataAccessDS.LoadDataSet(parameters, "P_Pol_PolicyExtension_Select", "ExtendedPolicy"));
 }
Пример #23
0
 public DataSet GetPolicyHistory(clsQuotation objclsQuotation)
 {
     object[] parameters = new object[] { objclsQuotation.PolicyId };
     dataAccessDS = new DataAccess();
     return(dataAccessDS.LoadDataSet(parameters, "P_Pol_PolicyHistory_Select", "CoverNoteList"));
 }
Пример #24
0
        public bool CreateRenewalLetterPDF(clsQuotation objQuotation, int userId)
        {
            bool blCreationSuccess = true;

            ereEvents = new PDFGeneratorEvents();
            try
            {
                createAndOpenNewDoc();


                DataSet dsRenLetterInfo = new DataSet();
                dsRenLetterInfo = objCoverNoteBI.GetRenewalLetterInfo(objQuotation, userId);
                foreach (DataRow dRow in dsRenLetterInfo.Tables[1].Rows)
                {
                    //RejectReason = dsAgent.Tables[0].Rows[0]["RejectReason"].ToString();

                    Attention                = dsRenLetterInfo.Tables[1].Rows[0]["ClientName"].ToString();
                    UserName                 = dsRenLetterInfo.Tables[1].Rows[0]["AuthName"].ToString();
                    UserDesignation          = dsRenLetterInfo.Tables[1].Rows[0]["AuthDesignation"].ToString();
                    Address1                 = dsRenLetterInfo.Tables[1].Rows[0]["Address1"].ToString();
                    Address2                 = dsRenLetterInfo.Tables[1].Rows[0]["Address2"].ToString();
                    Address3                 = dsRenLetterInfo.Tables[1].Rows[0]["Address3"].ToString();
                    ContentHeader            = dsRenLetterInfo.Tables[1].Rows[0]["Header"].ToString();
                    ContentSubject           = dsRenLetterInfo.Tables[1].Rows[0]["ContentSubject"].ToString();
                    ContentPara1             = dsRenLetterInfo.Tables[1].Rows[0]["Para1"].ToString();
                    ContentPara2             = dsRenLetterInfo.Tables[1].Rows[0]["Para2"].ToString();
                    ContentPara3             = dsRenLetterInfo.Tables[1].Rows[0]["Para3"].ToString();
                    ContentPara4             = dsRenLetterInfo.Tables[1].Rows[0]["Para4"].ToString();
                    ContentFooter            = dsRenLetterInfo.Tables[1].Rows[0]["Footer"].ToString();
                    ereEvents.ShowPageNumber = true;
                    //ereEvents.PrintFooter = false;
                    ereEvents.UWCOPY = false;
                    CreateRenewalPDF(dRow);
                    docPDF.NewPage();
                }
                DataSet dsPolicyDetail = new DataSet();
                dsPolicyDetail = objQuotationManager.LoadQuotationClientDetail(objQuotation);
                foreach (DataRow dRow in dsPolicyDetail.Tables[0].Rows)
                {
                    //RejectReason = dsAgent.Tables[0].Rows[0]["RejectReason"].ToString();

                    ClientName  = dsPolicyDetail.Tables[0].Rows[0]["ClientName"].ToString();
                    POIFromDate = dsPolicyDetail.Tables[0].Rows[0]["POIFromDate1"].ToString();
                    POIToDate   = dsPolicyDetail.Tables[0].Rows[0]["POIToDate1"].ToString();
                    CoverNoteNo = dsPolicyDetail.Tables[0].Rows[0]["PolicyNo"].ToString();
                    ereEvents.ShowPageNumber = true;
                    //ereEvents.PrintFooter = false;
                    ereEvents.UWCOPY = false;
                    CreatePolicyDetailPDF(dRow);
                    docPDF.NewPage();
                }
            }
            catch (Exception ex)
            {
                string strTemp = ex.Message;
                blCreationSuccess = false;
            }
            finally
            {
                closeDoc();
            }
            return(blCreationSuccess);
        }