Ejemplo n.º 1
0
        public ArrayList KeywordlikeSearchnewpage([FromBody] newkeywordlikesrch Mobj)
        {
            List <newkeywordlikesrch> lstkeyword = new List <newkeywordlikesrch>();

            lstkeyword.Add(Mobj);
            Mobj.dtPartnerPreference = Commonclass.returnListDatatable(PersonaldetailsUDTables.dtlikekeywordsearchnew(), lstkeyword);
            return(this.IEmployeeReport.KeywordlikeSearchnewpage(Mobj));
        }
Ejemplo n.º 2
0
        //15_11_2017_Employee Permission insert update
        public int?Updateinsertemployeepermission([FromBody] Employeepermission Mobj)
        {
            List <Employeepermission> permission = new List <Employeepermission>();

            permission.Add(Mobj);
            Mobj.dtPagePermissions = Commonclass.returnListDatatable(PersonaldetailsUDTables.dtemppermission(), permission);
            return(this.IEmployeeReport.Updateinsertemployeepermission(Mobj));
        }
Ejemplo n.º 3
0
        public ArrayList Oldkmplkeywordlikesearch([FromBody] CreateKeywordLlikesearchReqoldkmpl oldkmpl)
        {
            List <CreateKeywordLlikesearchReqoldkmpl> lstkmpl = new List <CreateKeywordLlikesearchReqoldkmpl>();

            lstkmpl.Add(oldkmpl);
            oldkmpl.dtPartnerPreference = Commonclass.returnListDatatable(PersonaldetailsUDTables.dtkeywordsearch(), lstkmpl);
            return(this.IEmployeeReport.Oldkmplkeywordlikesearch(oldkmpl));
        }
Ejemplo n.º 4
0
        ////
        public ArrayList keywordlikesearch([FromBody] keywordlikesearch keyword)
        {
            List <keywordlikesearch> lstkeyword = new List <keywordlikesearch>();

            lstkeyword.Add(keyword);
            keyword.dtPartnerPreference = Commonclass.returnListDatatable(PersonaldetailsUDTables.dtlikekeywordsearch(), lstkeyword);
            return(this.IEmployeeReport.keywordlikesearch(keyword));
        }
Ejemplo n.º 5
0
        public int CustomerInsertPaymentDetilsInfo_NewDesign([FromBody] PaymentInsertML Mobj)
        {
            List <PaymentInsertML> lstPayment = new List <PaymentInsertML>();

            lstPayment.Add(Mobj);
            Mobj.dtPaymentDetails = Commonclass.returnListDatatable(PersonaldetailsUDTables.createDataTablePayment_New(), lstPayment);
            return(this.IPayment.CustomerInsertPaymentDetilsInfo_NewDesign(Mobj));
        }
Ejemplo n.º 6
0
        public int?Assignprofiles([FromBody] assignprofiles assign)
        {
            List <assignprofiles> lstPayment = new List <assignprofiles>();

            lstPayment.Add(assign);
            assign.dtTableValues = Commonclass.returnListDatatable(PersonaldetailsUDTables.dtassignsettings(), lstPayment);
            return(this.IEmployeeReport.assignprofiles(assign));
        }
Ejemplo n.º 7
0
        public int employeeCreation(EmployeeCreationInput mobj)
        {
            mobj.Password = !string.IsNullOrEmpty(mobj.Password) ? Commonclass.Encrypt(mobj.Password) : mobj.Password;
            List <EmployeeCreationInput> lstEmp = new List <EmployeeCreationInput>();

            lstEmp.Add(mobj);
            mobj.dtEmployeecreation = Commonclass.returnListDatatable(PersonaldetailsUDTables.getEmployeeDatanew(), lstEmp);
            return(Iobj.employeeCreation(mobj));
        }
Ejemplo n.º 8
0
        public int setPaymentAuthorization([FromBody] paymentAuthorization mobj)
        {
            List <paymentAuthorization> lstpaymentAuth = new List <paymentAuthorization>();

            lstpaymentAuth.Add(mobj);
            DataTable dtinput = new DataTable();

            dtinput = Commonclass.returnListDatatable(PersonaldetailsUDTables.getAuthorizationDetailsUpdate(), lstpaymentAuth);
            return(this.IPayment.setPaymentAuthorization(dtinput));
        }
Ejemplo n.º 9
0
        public List <slideshowNew> ShowDataForEmployeeAdvanceSearch([FromBody] JObject CgetDetails)
        {
            TAdvanceSearch        advancesearch  = CgetDetails["GetDetails"].ToObject <TAdvanceSearch>();
            EmployeeSearch        employeesearch = CgetDetails["customerpersonaldetails"].ToObject <EmployeeSearch>();
            List <TAdvanceSearch> lstAdvance     = new List <TAdvanceSearch>();

            lstAdvance.Add(advancesearch);
            employeesearch.dtTableValues = Commonclass.returnListDatatable(PersonaldetailsUDTables.dtcreateDatatableShowDataForEmployeeAdvanceSearch(), lstAdvance);
            return(this.ICustomerSearch.ShowDataForEmployeeAdvanceSearch(employeesearch));
        }
Ejemplo n.º 10
0
        public List <slideshowNew> ShowDataForEmployeeGeneral([FromBody] JObject CgetDetails)
        {
            TGeneralSearch        generalsearch  = CgetDetails["GetDetails"].ToObject <TGeneralSearch>();
            EmployeeSearch        employeesearch = CgetDetails["customerpersonaldetails"].ToObject <EmployeeSearch>();
            List <TGeneralSearch> lstGeneral     = new List <TGeneralSearch>();

            lstGeneral.Add(generalsearch);
            employeesearch.dtTableValues = Commonclass.returnListDatatable(PersonaldetailsUDTables.dtcreateDatatableShowDataForEmployeeGeneral(), lstGeneral);
            return(this.ICustomerSearch.ShowDataForEmployeeGeneral(employeesearch));
        }
Ejemplo n.º 11
0
        public int?CustomerRegProfileDetails([FromBody] JObject CustomerHome)
        {
            TDetailedRegistration        TCustomer = CustomerHome["GetDetails"].ToObject <TDetailedRegistration>();
            UpdatePersonaldetails        customerpersonaldetails = CustomerHome["customerpersonaldetails"].ToObject <UpdatePersonaldetails>();
            List <TDetailedRegistration> lstProf = new List <TDetailedRegistration>();

            lstProf.Add(TCustomer);
            customerpersonaldetails.dtTableValues = Commonclass.returnListDatatable(PersonaldetailsUDTables.dtCustomerRegProfileDetails(), lstProf);
            return(this.IRegistration.CustomerRegProfileDetails_Myprofile(customerpersonaldetails));
        }
        public int CustomerAstrodetailsUpdatedetails([FromBody] JObject CgetDetails)
        {
            TeditAstro            editAstro = CgetDetails["GetDetails"].ToObject <TeditAstro>();
            UpdatePersonaldetails customerpersonaldetails = CgetDetails["customerpersonaldetails"].ToObject <UpdatePersonaldetails>();
            List <TeditAstro>     lstAstro = new List <TeditAstro>();

            lstAstro.Add(editAstro);
            customerpersonaldetails.dtTableValues = Commonclass.returnListDatatable(PersonaldetailsUDTables.dtcreateAstrodetail(), lstAstro);
            return(this.ICustomerpersonalupdate.CustomerAstrodetailsUpdatedetails(customerpersonaldetails));
        }
        public int CustomerPartnerPreferencesUpdatedetails([FromBody] JObject CgetDetails)
        {
            TCustomerPartnerPreferences        TCustomer = CgetDetails["GetDetails"].ToObject <TCustomerPartnerPreferences>();
            UpdatePersonaldetails              customerpersonaldetails = CgetDetails["customerpersonaldetails"].ToObject <UpdatePersonaldetails>();
            List <TCustomerPartnerPreferences> lstProf = new List <TCustomerPartnerPreferences>();

            lstProf.Add(TCustomer);
            customerpersonaldetails.dtTableValues = Commonclass.returnListDatatable(PersonaldetailsUDTables.dtCreatePartnerPreferences(), lstProf);
            return(this.ICustomerpersonalupdate.CustomerPartnerPreferencesUpdatedetails(customerpersonaldetails));
        }
        public int CustomerSibBrotherUpdatedetails([FromBody] JObject CgetDetails)
        {
            TSibBrother           SibBrother = CgetDetails["GetDetails"].ToObject <TSibBrother>();
            UpdatePersonaldetails customerpersonaldetails = CgetDetails["customerpersonaldetails"].ToObject <UpdatePersonaldetails>();
            List <TSibBrother>    lstProf = new List <TSibBrother>();

            lstProf.Add(SibBrother);
            customerpersonaldetails.dtTableValues = Commonclass.returnListDatatable(PersonaldetailsUDTables.dtCreateDatatableBrotherDetail(), lstProf);
            return(this.ICustomerpersonalupdate.CustomerSibBrotherUpdatedetails(customerpersonaldetails));
        }
        public int UpdatePersonalDetails_Customersetails([FromBody] JObject CgetDetails)
        {
            TpersonalDetailsUpdate        personaldetails         = CgetDetails["GetDetails"].ToObject <TpersonalDetailsUpdate>();
            UpdatePersonaldetails         customerpersonaldetails = CgetDetails["customerpersonaldetails"].ToObject <UpdatePersonaldetails>();
            List <TpersonalDetailsUpdate> lstpersonal             = new List <TpersonalDetailsUpdate>();

            lstpersonal.Add(personaldetails);
            customerpersonaldetails.dtTableValues = Commonclass.returnListDatatable(PersonaldetailsUDTables.dtUpdatePersonalDetails(), lstpersonal);
            return(this.ICustomerpersonalupdate.UpdatePersonalDetails_Customersetails(customerpersonaldetails));
        }
        public int CustomerPersonalUpdateProfessionDetails([FromBody] JObject CProfessiondetails)
        {
            CutomerProfessiondetails        customerProfession      = CProfessiondetails["customerProfession"].ToObject <CutomerProfessiondetails>();
            UpdatePersonaldetails           customerpersonaldetails = CProfessiondetails["customerpersonaldetails"].ToObject <UpdatePersonaldetails>();
            List <CutomerProfessiondetails> lstProf = new List <CutomerProfessiondetails>();

            lstProf.Add(customerProfession);
            customerpersonaldetails.dtTableValues = Commonclass.returnListDatatable(PersonaldetailsUDTables.createDataTableprofessiondetails(), lstProf);
            return(this.ICustomerpersonalupdate.getProfessionDetails_Customer(customerpersonaldetails));
        }
        public ArrayList Savephotosofcustomer([FromBody] JObject CgetDetails)
        {
            TuploadPhoto          edituploadPhoto         = CgetDetails["GetDetails"].ToObject <TuploadPhoto>();
            UpdatePersonaldetails customerpersonaldetails = CgetDetails["customerpersonaldetails"].ToObject <UpdatePersonaldetails>();
            List <TuploadPhoto>   lstuploadPhoto          = new List <TuploadPhoto>();

            lstuploadPhoto.Add(edituploadPhoto);
            customerpersonaldetails.dtTableValues = Commonclass.returnListDatatable(PersonaldetailsUDTables.dtSavephotosofcustomer(), lstuploadPhoto);
            return(this.ICustomerpersonalupdate.Savephotosofcustomer(customerpersonaldetails));
        }
        public int UpdateSpouseChildDetails([FromBody] JObject CgetDetails)
        {
            TSpouseChildDetailsUpdate        sibSister = CgetDetails["GetDetails"].ToObject <TSpouseChildDetailsUpdate>();
            UpdatePersonaldetails            customerpersonaldetails = CgetDetails["customerpersonaldetails"].ToObject <UpdatePersonaldetails>();
            List <TSpouseChildDetailsUpdate> lstSpouse = new List <TSpouseChildDetailsUpdate>();

            lstSpouse.Add(sibSister);
            customerpersonaldetails.dtTableValues = Commonclass.returnListDatatable(PersonaldetailsUDTables.dtSpouseChildDetailsUpdate(), lstSpouse);
            return(this.ICustomerpersonalupdate.UpdateSpouseChildDetails(customerpersonaldetails));
        }
        public int CustomerReferencedetailsUpdatedetails([FromBody] JObject CgetDetails)
        {
            TeditReference        editReference           = CgetDetails["GetDetails"].ToObject <TeditReference>();
            UpdatePersonaldetails customerpersonaldetails = CgetDetails["customerpersonaldetails"].ToObject <UpdatePersonaldetails>();
            List <TeditReference> lstRef = new List <TeditReference>();

            lstRef.Add(editReference);
            customerpersonaldetails.dtTableValues = Commonclass.returnListDatatable(PersonaldetailsUDTables.dtcreateDatatableReferenceDetail(), lstRef);
            return(this.ICustomerpersonalupdate.CustomerReferencedetailsUpdatedetails(customerpersonaldetails));
        }
        public int CustomerMotherSisterUpdatedetails([FromBody] JObject CgetDetails)
        {
            TeditMS editMS = CgetDetails["GetDetails"].ToObject <TeditMS>();
            UpdatePersonaldetails customerpersonaldetails = CgetDetails["customerpersonaldetails"].ToObject <UpdatePersonaldetails>();
            List <TeditMS>        lsteditMS = new List <TeditMS>();

            lsteditMS.Add(editMS);
            customerpersonaldetails.dtTableValues = Commonclass.returnListDatatable(PersonaldetailsUDTables.dtcreateMotherSisterDetail(), lsteditMS);
            return(this.ICustomerpersonalupdate.CustomerMotherSisterUpdatedetails(customerpersonaldetails));
        }
        public int CustomerPropertyUpdatedetails([FromBody] JObject CgetDetails)
        {
            TeditProperty         editProperty            = CgetDetails["GetDetails"].ToObject <TeditProperty>();
            UpdatePersonaldetails customerpersonaldetails = CgetDetails["customerpersonaldetails"].ToObject <UpdatePersonaldetails>();
            List <TeditProperty>  lsteditProperty         = new List <TeditProperty>();

            lsteditProperty.Add(editProperty);
            customerpersonaldetails.dtTableValues = Commonclass.returnListDatatable(PersonaldetailsUDTables.dtcreatePropertydetails(), lsteditProperty);
            return(this.ICustomerpersonalupdate.CustomerPropertyUpdatedetails(customerpersonaldetails));
        }
Ejemplo n.º 22
0
        public List <QuicksearchResultML> CustomerProfileIDSavedSearch([FromBody] JObject Savesearch)
        {
            Newsavedserach        Searchsaved = Savesearch["GetDetails"].ToObject <Newsavedserach>();
            ProfileIDSearch       primaryInfo = Savesearch["customerpersonaldetails"].ToObject <ProfileIDSearch>();
            List <Newsavedserach> lstSave     = new List <Newsavedserach>();

            lstSave.Add(Searchsaved);
            DataTable dtTableValues = Commonclass.returnListDatatable(PersonaldetailsUDTables.dtCustomerGeneralandAdvancedSavedSearch(), lstSave);

            return(this.ICustomerSearch.CustomerProfileIDSavedSearch(primaryInfo, dtTableValues));
        }
        public int CustomerPersonalUpdateEducationdetail([FromBody] JObject Cedetails)
        {
            CutomerEducationdetails customerEducation       = Cedetails["customerEducation"].ToObject <CutomerEducationdetails>();
            UpdatePersonaldetails   customerpersonaldetails = Cedetails["customerpersonaldetails"].ToObject <UpdatePersonaldetails>();

            customerEducation.Passofyear = customerEducation.Passofyear != 0 ? customerEducation.Passofyear : null;
            List <CutomerEducationdetails> listEdu = new List <CutomerEducationdetails>();

            listEdu.Add(customerEducation);
            customerpersonaldetails.dtTableValues = Commonclass.returnListDatatable(PersonaldetailsUDTables.createEducationdataTable(), listEdu);
            return(this.ICustomerpersonalupdate.getEducationdetails_Updatecustomer(customerpersonaldetails));
        }
        public Tuple <List <Smtpemailsending>, int?> ExpressInterest([FromBody] JObject CgetDetails)
        {
            List <TExpressInterest> lstExpress     = new List <TExpressInterest>();
            object                obj              = (object)CgetDetails["GetDetails"];
            var                   objs             = JsonConvert.DeserializeObject <List <TExpressInterest> >(obj.ToString());
            DataSet               dsResult         = new DataSet();
            DataTable             dtExpress        = new DataTable();
            DataTable             dtResultSet      = new DataTable();
            string                strfromprofileID = string.Empty;
            string                strtoPRofileID   = string.Empty;
            bool                  IsRvrSend        = false;
            ExpressInterestInsert EXI              = CgetDetails["customerpersonaldetails"].ToObject <ExpressInterestInsert>();

            lstExpress = objs;
            dtExpress  = Commonclass.returnListDatatable(PersonaldetailsUDTables.dtExpressInterestTable(), lstExpress);

            if (dtExpress != null && dtExpress.Rows.Count > 0)
            {
                strfromprofileID = dtExpress.Rows[0]["FromProfileID"].ToString();
                strtoPRofileID   = dtExpress.Rows[0]["ToProfileID"].ToString();
                IsRvrSend        = Convert.ToBoolean(dtExpress.Rows[0]["IsRvrSend"].ToString());
                foreach (DataRow dr in dtExpress.Rows)
                {
                    string FromProfileID = dr["FromProfileID"].ToString();
                    string ToProfileID   = dr["ToProfileID"].ToString();

                    dr["Acceptlink"]    = Commonclass.getEncryptedExpressIntrestString("FromProfileID=" + FromProfileID + "&" + "ToProfileID=" + ToProfileID + "&" + "Flag=" + 1);
                    dr["Rejectlink"]    = Commonclass.getEncryptedExpressIntrestString("FromProfileID=" + FromProfileID + "&" + "ToProfileID=" + ToProfileID + "&" + "Flag=" + 0);
                    dr["RvrAcceptlink"] = Commonclass.getEncryptedExpressIntrestString("FromProfileID=" + ToProfileID + "&" + "ToProfileID=" + FromProfileID + "&" + "Flag=" + 1);
                    dr["RvrRejectlink"] = Commonclass.getEncryptedExpressIntrestString("FromProfileID=" + ToProfileID + "&" + "ToProfileID=" + FromProfileID + "&" + "Flag=" + 0);
                    dr["Sendsms"]       = (!string.IsNullOrEmpty(dr["Sendsms"].ToString()) && dr["Sendsms"].ToString() == "True") ? true : false;
                    dr["IsRvrSend"]     = (!string.IsNullOrEmpty(dr["IsRvrSend"].ToString()) && dr["IsRvrSend"].ToString() == "True") ? true : false;
                }
            }

            EXI.dtExpInt = dtExpress;
            dsResult     = this.IExpressInterest.ExpressInterest_sendmultimails(EXI);

            #region

            //if (IsRvrSend == true)
            //{

            //    DataTable tblFilteredTo = dsResult.Tables[0].AsEnumerable().Where(row => row.Field<String>("FromProfileID") == strfromprofileID).CopyToDataTable();

            //    EXI.dtExpInt = tblFilteredTo;

            //    if (EXI.dtExpInt != null && EXI.dtExpInt.Rows.Count > 0)
            //    {


            //        foreach (DataRow dr in EXI.dtExpInt.Rows)
            //        {
            //            string FromProfileID = dr["FromProfileID"].ToString();
            //            string ToProfileID = dr["ToProfileID"].ToString();

            //            if (strfromprofileID == FromProfileID)
            //            {
            //                dr["Acceptlink"] = Commonclass.getEncryptedExpressIntrestString("FromProfileID=" + FromProfileID + "&" + "ToProfileID=" + ToProfileID + "&" + "Flag=" + 1);
            //                dr["Rejectlink"] = Commonclass.getEncryptedExpressIntrestString("FromProfileID=" + FromProfileID + "&" + "ToProfileID=" + ToProfileID + "&" + "Flag=" + 0);
            //                dr["RvrAcceptlink"] = Commonclass.getEncryptedExpressIntrestString("FromProfileID=" + ToProfileID + "&" + "ToProfileID=" + FromProfileID + "&" + "Flag=" + 1);
            //                dr["RvrRejectlink"] = Commonclass.getEncryptedExpressIntrestString("FromProfileID=" + ToProfileID + "&" + "ToProfileID=" + FromProfileID + "&" + "Flag=" + 0);
            //                dr["Sendsms"] = (!string.IsNullOrEmpty(dr["Sendsms"].ToString()) && dr["Sendsms"].ToString() == "True") ? true : false;
            //                dr["IsRvrSend"] = (!string.IsNullOrEmpty(dr["IsRvrSend"].ToString()) && dr["IsRvrSend"].ToString() == "True") ? true : false;
            //            }
            //        }
            //        this.IExpressInterest.ExpressInterest(EXI);
            //    }
            //}


            //EXI.dtExpInt.Rows.Clear();
            //DataTable tblFiltered = dsResult.Tables[0].AsEnumerable().Where(row => row.Field<String>("FromProfileID") == strtoPRofileID).CopyToDataTable();

            #endregion

            EXI.dtExpInt = dsResult.Tables[0];

            if (EXI.dtExpInt != null && EXI.dtExpInt.Rows.Count > 0)
            {
                foreach (DataRow dr in EXI.dtExpInt.Rows)
                {
                    string FromProfileID = dr["FromProfileID"].ToString();
                    string ToProfileID   = dr["ToProfileID"].ToString();

                    //if (strfromprofileID == ToProfileID)
                    //{
                    dr["Acceptlink"]    = Commonclass.getEncryptedExpressIntrestString("FromProfileID=" + FromProfileID + "&" + "ToProfileID=" + ToProfileID + "&" + "Flag=" + 1);
                    dr["Rejectlink"]    = Commonclass.getEncryptedExpressIntrestString("FromProfileID=" + FromProfileID + "&" + "ToProfileID=" + ToProfileID + "&" + "Flag=" + 0);
                    dr["RvrAcceptlink"] = Commonclass.getEncryptedExpressIntrestString("FromProfileID=" + ToProfileID + "&" + "ToProfileID=" + FromProfileID + "&" + "Flag=" + 1);
                    dr["RvrRejectlink"] = Commonclass.getEncryptedExpressIntrestString("FromProfileID=" + ToProfileID + "&" + "ToProfileID=" + FromProfileID + "&" + "Flag=" + 0);
                    dr["Sendsms"]       = (!string.IsNullOrEmpty(dr["Sendsms"].ToString()) && dr["Sendsms"].ToString() == "True") ? true : false;
                    dr["IsRvrSend"]     = (!string.IsNullOrEmpty(dr["IsRvrSend"].ToString()) && dr["IsRvrSend"].ToString() == "True") ? true : false;
                    //}
                }
            }


            return(this.IExpressInterest.ExpressInterest(EXI));
        }