public DataSet getUnApprovClientName(clsClientMaster objClient)
 {
     dataAccess = new DataAccess();
     Object[] parameters = new Object[] { objClient.ClientId };
     //Object[] parameters = new Object[3] { objSOB.SOBId, objSOB.SOBName, objSOB.Status };
     return(dataAccess.LoadDataSet(parameters, "[P_UnApprovedInfo_ClientNameSelect]", "pol_UnApprovedInfo"));
 }
 //
 public DataSet SaveClientHiostory(clsClientMaster objClient)
 {
     dataAccess = new DataAccess();
     Object[] parameters = new Object[5] {
         objClient.ClientId, objClient.ClientName, objClient.ClientCode, objClient.ClientShortName, objClient.RecId
     };
     return(dataAccess.LoadDataSet(parameters, "P_pol_ClientMasterHistory_InsertUpdate", "ClientHistory"));
 }
 public DataSet getSubsidaryClientList(clsClientMaster objClient)
 {
     dataAccess = new DataAccess();
     Object[] parameters = new Object[1] {
         objClient.ClientCode
     };
     //Object[] parameters = new Object[3] { objSOB.SOBId, objSOB.SOBName, objSOB.Status };
     return(dataAccess.LoadDataSet(parameters, "P_Pol_MasterClientReport_Subsidary", "ClientMasterList"));
 }
 public DataSet getClientList(clsClientMaster objClient)
 {
     dataAccess = new DataAccess();
     Object[] parameters = new Object[2] {
         objClient.ClientId, objClient.ClientForModule
     };
     //Object[] parameters = new Object[3] { objSOB.SOBId, objSOB.SOBName, objSOB.Status };
     return(dataAccess.LoadDataSet(parameters, "P_pol_ClientMaster_Select", "ClientMasterList"));
 }
Example #5
0
        private DataSet ApproveClient(object objEntity)
        {
            string            strMessage   = "";
            clsUnApprovedInfo objXMLEntity = (clsUnApprovedInfo)(objEntity);
            // implement the logic here
            clsClientMaster      objClient   = new clsClientMaster();
            clsClientManager     objClientBI = new clsClientManager();
            DataSet              dsApprove   = new DataSet();
            clsXmlUnApprovedInfo xmlInfo     = new clsXmlUnApprovedInfo();

            xmlInfo = (clsXmlUnApprovedInfo)BusinessObjectLayer.Common.SerializeDeserialize.DeserializeAnObject(objXMLEntity.RecData, xmlInfo.GetType());
            DataMapper.Map(xmlInfo, objClient, false, "RecData");
            if (ProcessMasterInfo.EntityStatus == CLIENT_STATUS_APPROVED)
            {
                objClient.RecId           = 0;
                objClient.ClientId        = objXMLEntity.RecForId;
                objClient.ClientForModule = objXMLEntity.RecForModule;
                objClient.ClientCode      = objXMLEntity.Code;

                dsApprove = objClientBI.SaveClient(objClient);

                strMessage = Convert.ToString(dsApprove.Tables[0].Rows[0][0]);
                #region Save Contacts

                ClientContacts objContacts = new ClientContacts();
                objContacts.ClientId        = objXMLEntity.RecForId;
                objContacts.ClientForModule = objXMLEntity.RecForModule;
                DataSet dsContacts = objClientBI.SaveApprovedContacts(objContacts);

                if (dsContacts.Tables[0].Rows[0][0].ToString().ToLower().IndexOf("success") > 0)
                {
                    strMessage = strMessage + "<br>" + Convert.ToString(dsContacts.Tables[0].Rows[0][0]);
                }
                #endregion
            }
            //else
            //    dsApprove = objClientBI.SaveUnApprovedInfo(objClient);
            objClientBI = null;
            xmlInfo     = null;
            return(dsApprove);
        }
        public DataSet SaveClient(clsClientMaster objClient)
        {
            dataAccess = new DataAccess();
            Object[] parameters = new Object[] {//objClient.RecId,
                objClient.introducer1Id,
                objClient.introducer2Id,
                objClient.ClientSource1,
                objClient.ClientSource2,
                objClient.CompanyTypeId,
                objClient.RiskProfileId,
                objClient.KeyManagerId,

                // objClient.IndustryTypeId,
                objClient.IndustryPIAM,
                objClient.ClientId,
                objClient.ClientForModule,
                objClient.ClientCode,
                objClient.ClientName,
                objClient.ChClientName,
                objClient.CorrAddress1,
                objClient.CorrAddress2,
                objClient.CorrAddress3,
                objClient.ChCorrAddress1,
                objClient.ChCorrAddress2,
                objClient.ChCorrAddress3,
                objClient.Country,
                objClient.BillingAddress1,
                objClient.BillingAddress2,
                objClient.BillingAddress3,
                objClient.ChBillingAddress1,
                objClient.ChBillingAddress2,
                objClient.ChBillingAddress3,
                objClient.BillingCountry,
                objClient.Description,
                objClient.RecordType,
                //objClient.RecordTypeCategory,
                objClient.ClientType,
                objClient.Category_V,
                objClient.ClientStatus,
                //objClient.Category_L,
                objClient.SameCorrAddress,
                objClient.SameChCorrAddress,
                objClient.CompanyRegistrationNo,
                objClient.BusinessRegistrationNo,
                objClient.GeneralLineCode,
                objClient.GeneralLineNo,
                objClient.FaxNoCode,
                objClient.FaxNo,
                objClient.CompanyEmail,
                objClient.SourceOfBusiness,
                objClient.MasterSourceCode,
                objClient.BusinessNatureCode,
                objClient.SubsidiarySourceCode1,
                objClient.SubsidiarySourceCode2,
                objClient.SourceCode,
                objClient.AccountType,
                objClient.NormalBalance,
                objClient.DebtorControlAccountNo,
                objClient.GroupName,
                objClient.GroupNameForAnalysis,
                objClient.SubGroup,
                objClient.SubGroupForAnalysis,
                objClient.Remarks,
                objClient.Nationality,
                objClient.MaritalSatus,
                //objClient.DOB,
                objClient.DayOfBirth,
                objClient.MonthOfBirth,
                objClient.YearOfBirth,
                objClient.PassportNumber,
                objClient.Occupation,
                objClient.SendNotification,
                objClient.Gender,
                objClient.Level1ApprovedBy,
                objClient.Level1ApprovedDate,
                objClient.Level2ApprovedBy,
                objClient.Level2ApprovedDate,
                objClient.Level3ApprovedBy,
                objClient.Level3ApprovedDate,
                objClient.AdminApprovedBy,
                objClient.AdminApprovedDate,
                objClient.EffFromDate,
                objClient.EffToDate,
                //objSOB.Status,
                objClient.LoginUserId,
                objClient.City,
                objClient.Province,
                objClient.PostalCode,
                objClient.ChCity,
                objClient.ChProvince,
                objClient.ChPostalCode,
                objClient.BillingCity,
                objClient.BillingProvince,
                objClient.BillingPostalCode,
                objClient.ChBillingCity,
                objClient.ChBillingProvince,
                objClient.ChBillingPostalCode,
                objClient.SubDistrict,
                objClient.ChSubDistrict,
                objClient.BillingSubDistrict,
                objClient.ChBillingSubDistrict,
                //objClient.PageMethod

                //Added By Ravi

                objClient.ClientShortName,
                objClient.CorrAddress4,
                objClient.ChCorrAddress4,
                objClient.BillingAddress4,
                objClient.ChBillingAddress4,

                objClient.GstRgNumber,
                objClient.Branch,
                objClient.Region,
                objClient.ClientIncorporatedDate,

                objClient.ICNoNew1,
                objClient.ICNoNew2,
                objClient.ICNoNew3,
                objClient.ICNoOld,
                objClient.CorelatedClient,

                objClient.ClientSource,
                objClient.ClientSegment,
                objClient.IndustryPIAM,
                objClient.ClientBanding,
                objClient.CorporateGroup,

                objClient.ServicingTeam,
                objClient.ServicingUserName,
                objClient.ServicingEffectiveDate,

                objClient.MarketingTeam,
                objClient.MarketingUserName,
                objClient.MarketingEffectiveFromdate,

                objClient.IntroducerName,
                objClient.IntroducerCode,
                objClient.IntroducerEffectiveDate,

                objClient.SuspensionFromDate,
                objClient.SuspensionToDate,
                objClient.SuspensionReason,
                objClient.TerminationEffectiveDate,
                objClient.TerminationReason,

                objClient.AMLACustomerType,
                objClient.AMLACompanyRegNo,
                objClient.AMLAICNoOld,
                objClient.AMLAICNoNew1,
                objClient.AMLAICNoNew2,
                objClient.AMLAICNoNew3,
                objClient.AMLAPassportNo,
                objClient.AMLAIsIncident,
                objClient.AMLADateCheck,
                objClient.AMLAAuditedBy,
                //End By Ravi

                objClient.ProfitCentre,
                objClient.FundCode,
                objClient.MasterClientCode
            };
            //return dataAccess.LoadDataSet(parameters, "P_pol_ClientMaster_InsertUpdate", "ClientMaster");
            return(dataAccess.LoadDataSet(parameters, "P_ClientApprovedInfo_InsertUpdate", "ClientMaster"));
        }