// public DataSet SaveAgentHiostory(clsAgentRequest objAgent) { dataAccess = new DataAccess(); Object[] parameters = new Object[5] { objAgent.AgentId, objAgent.AgentName, objAgent.AgentCode, objAgent.AgentShortName, objAgent.RecId }; return(dataAccess.LoadDataSet(parameters, "P_pol_IntroducerMasterHistory_InsertUpdate", "ClientHistory")); }
public DataSet SaveAgent(clsAgentRequest objAgent) { dataAccess = new DataAccess(); Object[] parameters = new Object[] { objAgent.AgentId, objAgent.AgentCode, objAgent.AgentName, objAgent.PreviousCode, objAgent.IntroducerShortN, objAgent.AgentShortName, objAgent.ChAgentName, objAgent.CorrAddress1, objAgent.CorrAddress2, objAgent.CorrAddress3, objAgent.CorrAddress4, objAgent.ChCorrAddress1, objAgent.ChCorrAddress2, objAgent.ChCorrAddress3, objAgent.ChCorrAddress4, objAgent.Country, objAgent.Nationality, objAgent.PassportNo, objAgent.Gender, objAgent.BillingAddress1, objAgent.BillingAddress2, objAgent.BillingAddress3, objAgent.BillingAddress4, objAgent.ChBillingAddress1, objAgent.ChBillingAddress2, objAgent.ChBillingAddress3, objAgent.ChBillingAddress4, objAgent.BillingCountry, objAgent.ChBillingCountry, objAgent.Description, objAgent.RecordType, objAgent.CorporateGroup, objAgent.GSTRegistrationNo, objAgent.RecordTypeCategory, objAgent.SameCorrAddress, objAgent.SameChCorrAddress, objAgent.BusinessRegistrationNo, objAgent.CompanyRegNo, objAgent.CompanyRegDate, objAgent.GeneralLineCode, objAgent.GeneralLineNo, objAgent.FaxNoCode, objAgent.FaxNo, objAgent.CompanyEmail, objAgent.AccountType, objAgent.NormalBalance, objAgent.CreditLimit, objAgent.CreditTerms, objAgent.CreditTermsOption, objAgent.CreditTermsOptionValue, objAgent.PaymentEffectiveFrom, objAgent.PaymentEffectiveTo, objAgent.Jan, objAgent.Feb, objAgent.Mar, objAgent.Apr, objAgent.May, objAgent.Jul, objAgent.Jul, objAgent.Aug, objAgent.Sep, objAgent.Oct, objAgent.Nov, objAgent.Dec, objAgent.CreditControlAccountNo, objAgent.Remarks, objAgent.Level1ApprovedBy, objAgent.Level1ApprovedDate, objAgent.Level2ApprovedBy, objAgent.Level2ApprovedDate, objAgent.Level3ApprovedBy, objAgent.Level3ApprovedDate, objAgent.AdminApprovedBy, objAgent.AdminApprovedDate, objAgent.EffFromDate, objAgent.EffToDate, //objSOB.Status, objAgent.LoginUserId, //objClient.PageMethod objAgent.City, objAgent.Province, objAgent.PostalCode, objAgent.ChCity, objAgent.ChProvince, objAgent.ChPostalCode, objAgent.BillingCity, objAgent.BillingProvince, objAgent.BillingPostalCode, objAgent.ChBillingCity, objAgent.ChBillingProvince, objAgent.ChBillingPostalCode, objAgent.SubDistrict, objAgent.ChSubDistrict, objAgent.BillingSubDistrict, objAgent.ChBillingSubDistrict, objAgent.DocumentCompilanceName, objAgent.BankName, objAgent.BankBranch, objAgent.BankAccount, objAgent.OwnPercentage, objAgent.IntroducerPercentage, objAgent.Region, objAgent.ICNoNew, objAgent.ICNoOld, objAgent.GSTCodeRate, objAgent.GSTEffectiveDate, objAgent.IsSelfBilling, objAgent.CustomApprovalNo, objAgent.SuspensionFromDate, objAgent.SuspensionToDate, objAgent.SuspensionReason, objAgent.TerminationEffectiveDate, objAgent.TerminationReason, objAgent.IsNOTaDirectorOfThePrincipal, objAgent.IsNOTAnEmployeeOfThePrincipal, objAgent.IsNOTRelatedToAnyPrincipalOfficersOfThePrincipal, objAgent.IsNOTAnEmployeeOfBIB, objAgent.IsNOTRelatedToAnyEmployeeOfBIB, objAgent.BrokerageSharingForAllClasses, objAgent.CopyOfICOrForm9OrForm13IsReceived, objAgent.Branch, objAgent.ProfitCentre, objAgent.FundCode }; return(dataAccess.LoadDataSet(parameters, "P_pol_AgentApprovedInfo_InsertUpdate", "AgentMaster")); }