Esempio n. 1
0
        public BusinessRegistrationModel()
        {
            CompanyAddress          = new AddressReadOnlyViewModel("");
            CompanyContacts         = new ContactsReadOnlyViewModel("");
            PrimaryContactsAddress  = new AddressReadOnlyViewModel("PCP");
            PrimaryContactsContacts = new ContactsReadOnlyViewModel("PCP");
            PrimaryContactsContacts.IsWebsiteApplicable = false;
            ApmcAddress  = new AddressReadOnlyViewModel("APMC");
            ApmcContacts = new ContactsReadOnlyViewModel("APMC");

            base.ClientPrimaryContactPerson = new ClientPrimaryContactPersonDto {
                ClientPrimaryContactPersonDesignation = new Common.Dto.User.DesignationDto()
            };

            base.ClientAPMC = new Common.Dto.Masters.APMCDto();
        }
Esempio n. 2
0
        public ClientRegistrationModel()
        {
            StateDistrictPlacesControlNames = new List <Cams.Web.MVCRazor.Models.Shared.StateDistrictCityControlNamesModel>();
            StateDistrictPlacesControlNames.Add(new Shared.StateDistrictCityControlNamesModel(""));
            designationModel = new List <DesignationModel>();
            dOBnAgeModellist = new List <DOBnAgeModel>();

            if (!IsActive)
            {
                RegistrationDate = null;
            }

            #region Company Profile
            ClientContacts = new List <ContactDetailsDto>();
            ClientContacts.Add(new ContactDetailsDto()
            {
                ContactNoType      = Common.ContactType.MobileNo,
                ContactNo          = "",
                STDCode            = "020",
                CountryCallingCode = "+91"
            });
            #endregion

            #region Initialize Primary Contact Person
            string PCPPrefix = "PCP";
            ClientPrimaryContactPerson = new ClientPrimaryContactPersonDto();
            StateDistrictPlacesControlNames.Add(new Shared.StateDistrictCityControlNamesModel(PCPPrefix));
            StateDistrictPlacesControlNames[1].LeftLabelsClassName = "width100";
            designationModel.Add(new DesignationModel(PCPPrefix));
            dOBnAgeModellist.Add(new DOBnAgeModel(PCPPrefix));
            dOBnAgeModellist[0].MaxDate = DateTime.Today;
            dOBnAgeModellist[0].Width   = 110;
            ClientPrimaryContactPerson.ClientPrimaryContacts = new List <ContactDetailsDto>();
            ClientPrimaryContactPerson.ClientPrimaryContacts.Add(new ContactDetailsDto()
            {
                ContactNoType      = Common.ContactType.MobileNo,
                ContactNo          = "",
                STDCode            = "020",
                CountryCallingCode = "+91"
            });
            #endregion

            #region Client APMC
            ClientAPMC = new APMCDto();
            GetAllCommodities();
            ApmcModel = new APMCModel();
            #endregion

            #region Subscription Details
            SubscriptionMasterList = getSubscriptionMaster();
            ClientSubscription     = new ClientSubscriptionDto();
            ClientSubscription.SubscriptionMaster         = new SubscriptionMasterDto();
            ClientSubscription.SubscriptionPeriodFromDate = DateTime.Now;
            ClientSubscription.SubscriptionPeriodToDate   = DateTime.Now;
            ClientSubscription.ActivationDate             = DateTime.Now;
            #endregion

            #region Business Constitution
            ClientBusinessConstitution = new BusinessConstitutionDto();
            businessConstitutionModel  = new BusinessConstitutionModel();
            businessConstitutionModel.ClientPartners = new List <ClientPartnerDetailsDto>();
            ClientPartners = new List <ClientPartnerDetailsDto>();
            #endregion

            #region ClientSubscriptionPaymentDetails
            ClientSubscriptionPaymentDetailsModel = new List <ClientSubscriptionPaymentDetailsModel>();
            ClientSubscriptionPaymentDetailsModel.Add(new ClientSubscriptionPaymentDetailsModel {
                PaymentMode = PaymentMode.Cash
            });
            ClientSubscriptionPaymentDetailsModel.Add(new ClientSubscriptionPaymentDetailsModel {
                PaymentMode = PaymentMode.Cheque
            });
            ClientSubscriptionPaymentDetailsModel.Add(new ClientSubscriptionPaymentDetailsModel {
                PaymentMode = PaymentMode.Online
            });
            ClientSubscriptionPaymentDetailsModel.Add(new ClientSubscriptionPaymentDetailsModel {
                PaymentMode = PaymentMode.DD
            });
            #endregion

            CompanyAddress          = new AddressReadOnlyViewModel("");
            CompanyContacts         = new ContactsReadOnlyViewModel("");
            PrimaryContactsAddress  = new AddressReadOnlyViewModel("PCP");
            PrimaryContactsContacts = new ContactsReadOnlyViewModel("PCP");
            APMCAddress             = new AddressReadOnlyViewModel("APMC");
            APMCContacts            = new ContactsReadOnlyViewModel("APMC");
            //#region Account Manager
            //accountManagerModel = new AccountManagerModel();
            //#endregion
        }