Beispiel #1
0
 protected void btnFinish_Click(object sender, EventArgs e)
 {
     if (Page.IsValid)
     {
         var objSecurePage = new SecurePage();
         var objConsulling = new Consulling();
         _objCommon = new Common();
         var objMailTemplates = new MailTemplates();
         var formNum          = "ADMJ" + DateTime.Now.Year + _objCommon.CourseId.ToString() +
                                objSecurePage.LoggedInUserId.ToString();
         string tranctionDetails;
         if (rbtnPaymentType.SelectedValue == "0")
         {
             tranctionDetails =
                 " You have selected the payment mode through cheque. Please make an account payee cheque of Rs." +
                 lblCash1.Text + " in favour of <b>" + " Admissionjankari.com " + " </b>";
             tranctionDetails = tranctionDetails +
                                " <br /><br /> Mention your Reference Id(Application form number), Name, Phone No, Email-id, at the back of the cheque.";
             tranctionDetails = tranctionDetails +
                                "<br /><br />To confirm the payment, please send your cheque at the following address (Via Speed/Registered Post) ";
             tranctionDetails = tranctionDetails + " <br /><br />" + "Admissionjankari.com<br />";
             tranctionDetails = tranctionDetails + "74 Amrit Chamber, 2nd floor, <br />" +
                                "  202-204 Scindia House Connaught Place, <br />" + " New Delhi-110001. <br />" +
                                "  Contact us : +91 - 9999 261 633, 9654 722 013 , 011-43391978<br/>";
         }
         else
         {
             if (rbtnPaymentType.SelectedValue == "1")
             {
                 tranctionDetails = "You have selected the payment mode through DD.<br/>  ";
                 tranctionDetails = tranctionDetails + "   <b>Make a single Demand Draft</b> (DD) of Rs." +
                                    lblCash1.Text + " in favour of <b>" + " Admissionjankari com" +
                                    "</b>Payable at <b>Delhi.</b>";
                 tranctionDetails = tranctionDetails +
                                    " <br /><br /> To confirm the payment, please send your  Demand Draft at the following address (Via Speed/Registered Post)";
                 tranctionDetails = tranctionDetails + "<br /><br />" + "Admissionjankari.com <br />";
                 tranctionDetails = tranctionDetails + "74 Amrit Chamber, 2nd floor, <br />" +
                                    "  202-204 Scindia House Connaught Place, <br />" +
                                    " New Delhi-110001. <br />" +
                                    "   Contact us : +91-11-43391978, +91-8800567711, +91-8800567733<br/>";
             }
             else
             {
                 if (rbtnPaymentType.SelectedValue == "2")
                 {
                     const string bankName = "Account Name: Admissionjankari.com";
                     const string ddNumber = "00032 0000 44418";
                     tranctionDetails =
                         "You have selected the payment mode through cash. You will need to deposit Rs." +
                         lblCash1.Text + " in the nearest HDFC Bank in the following account.   <br/><br/> ";
                     tranctionDetails = tranctionDetails + bankName + "<br/>";
                     tranctionDetails = tranctionDetails + "Account Number :" + ddNumber + " <br/>";
                     tranctionDetails = tranctionDetails + "RTGS/IFSC/NEFT Code: HDFC0000003 <br/>";
                     tranctionDetails = tranctionDetails + "Branch:Kasturba Gandhi Marg,New Delhi<br/>";
                     tranctionDetails = tranctionDetails +
                                        " <br /><br /> To confirm the payment, please send your  pay-in-slip at the following address (Via Speed/Registered Post)";
                     tranctionDetails = tranctionDetails + "<br /><br />" + "Admissionjankari.com";
                     tranctionDetails = tranctionDetails + "74 Amrit Chamber, 2nd floor, <br />" +
                                        "  202-204 Scindia House Connaught Place, <br />" +
                                        " New Delhi-110001. <br />" +
                                        "   Contact us : +91-11-43391978, +91-8800567711, +91-8800567733<br/>";
                 }
                 else
                 {
                     tranctionDetails = "You have selected the payment mode through Online Payment of" + " " +
                                        "Rs." + " " + lblCash1.Text + "/- ";
                     OnlinePayment();
                 }
             }
         }
         int i = objConsulling.InsertUpdateUserTransctionalDetails(objSecurePage.LoggedInUserId, formNum, false,
                                                                   rbtnPaymentType.SelectedItem.ToString(), "",
                                                                   "", "26100");
         var mail = new MailMessage
         {
             From    = new MailAddress(ApplicationSettings.Instance.Email),
             Subject = "Direct Admission:Form Number" + formNum
         };
         var body = objMailTemplates.SendValidationMailForTheDirectAdmission("http://www.admissionjankari.com/",
                                                                             objSecurePage.LoggedInUserName,
                                                                             formNum, tranctionDetails);
         mail.Body = body;
         mail.To.Add(objSecurePage.LoggedInUserEmailId);
         mail.Bcc.Add(ClsSingelton.bccDirectAdmission);
         Utils.SendMailMessageAsync(mail);
         if (rbtnPaymentType.SelectedValue != "OnPayment")
         {
             Response.Redirect(Utils.AbsoluteWebRoot + "ConformationPage.aspx", true);
         }
     }
 }
        protected void btnPayNow_Click(object sender, EventArgs e)
        {
            SecurePage _objSecurePage = new SecurePage();

            _ObjCommon = new Common();

            var           objCrypto        = new ClsCrypto(ClsSecurity.GetPasswordPhrase(Common.PassPhraseOne, Common.PassPhraseTwo));
            MailTemplates objMailTemplates = new MailTemplates();
            string        formNumber       = "ADMJ" + System.DateTime.Now.Year + _ObjCommon.CourseId.ToString() + _objSecurePage.LoggedInUserId.ToString();

            ConsullingCourseAmount = lblCash.Text;
            string TransectionDetails = "You have selected the payment mode through Online Payment of" + " " + "Rs." + " " + lblCash.Text + "/- ";
            var    UserDetails        = UserManager.Instance.GetUserListById(_objSecurePage.LoggedInUserId);


            var sp = UserDetails.First();
            UserRegistrationProperty _ObjUserRegistrationProperty = new
                                                                    UserRegistrationProperty
            {
                UserFullName              = _objSecurePage.LoggedInUserName,
                UserGender                = sp.UserGender,
                UserEmailid               = _objSecurePage.LoggedInUserEmailId,
                MobileNo                  = _objSecurePage.LoggedInUserMobile,
                PhoneNo                   = sp.PhoneNo,
                UserId                    = _objSecurePage.LoggedInUserId,
                CourseId                  = sp.CourseId,
                UserCategoryId            = _objSecurePage.LoggedInUserType,
                UserDOB                   = sp.UserDOB,
                UserStatus                = true,
                UserPassword              = sp.UserPassword,
                UserPincode               = txtPincode.Text.Trim(),
                UserCorrespondenceAddress = txtAddress.Text.Trim()
            };
            string ErrMsg = "";
            int    i      = UserManagerProvider.Instance.UpdateUserInfo(_ObjUserRegistrationProperty, 1, out ErrMsg);
            var    mail   = new MailMessage
            {
                From    = new MailAddress(ApplicationSettings.Instance.Email),
                Subject = "Direct Admission:Form Number" + formNumber
            };
            var body = objMailTemplates.SendValidationMailForTheDirectAdmission("http://www.admissionjankari.com/", _objSecurePage.LoggedInUserName, formNumber, TransectionDetails);

            mail.Body = body;
            mail.To.Add(_objSecurePage.LoggedInUserEmailId);
            mail.Bcc.Add(ClsSingelton.bccDirectAdmission);
            Utils.SendMailMessageAsync(mail);
            libfuncs myUtility = new libfuncs();

            Merchant_Id.Value  = "M_shi18022_18022";
            Amount.Value       = lblCash.Text;
            Order_Id.Value     = formNumber + DateTime.Now.ToString("hh:mm:ss");
            Redirect_Url.Value = Utils.AbsoluteWebRoot + "ConformationPage.aspx?CID=" + objCrypto.Encrypt(_objSecurePage.LoggedInUserEmailId) + "&frmNumber=" + objCrypto.Encrypt(formNumber) + "&UID=" + objCrypto.Encrypt(_objSecurePage.LoggedInUserId.ToString());
            string WorkingKey = ClsSingelton.WorkingKey.Trim();

            Checksum.Value              = myUtility.getchecksum(Merchant_Id.Value, Order_Id.Value, Amount.Value, Redirect_Url.Value, WorkingKey);
            billing_cust_name.Value     = _objSecurePage.LoggedInUserName;
            billing_cust_address.Value  = txtAddress.Text.Trim();
            billing_cust_state.Value    = txtState.Text;
            billing_cust_country.Value  = "India";
            billing_cust_tel.Value      = _objSecurePage.LoggedInUserMobile;
            billing_cust_email.Value    = _objSecurePage.LoggedInUserEmailId;
            delivery_cust_name.Value    = "";
            delivery_cust_address.Value = "";
            delivery_cust_state.Value   = "";
            delivery_cust_country.Value = "";
            delivery_cust_tel.Value     = "";
            billing_cust_city.Value     = txtCity.Text;
            billing_zip_code.Value      = txtPincode.Text.Trim();
            delivery_cust_city.Value    = "";
            delivery_zip_code.Value     = "";
            _objConsulling              = new Consulling();
            i = _objConsulling.InsertUpdateUserTransctionalDetails(_objSecurePage.LoggedInUserId, formNumber);
            // Page.ClientScript.RegisterStartupScript(this.GetType(), "myKey", "PostDFormS();");
            ScriptManager.RegisterClientScriptBlock(Page, typeof(Page), Guid.NewGuid().ToString(),
                                                    "PostDForm();", true);
        }
Beispiel #3
0
        protected void Finsh(object sender, EventArgs e)
        {
            string     BankName       = string.Empty;
            SecurePage _objSecurePage = new SecurePage();
            Consulling _ObjConsulling = new Consulling();

            _ObjCommon = new Common();
            MailTemplates objMailTemplates = new MailTemplates();
            string        DDNumber         = string.Empty;
            string        FormNum          = "ADMJ" + System.DateTime.Now.Year + _ObjCommon.CourseId.ToString() + _objSecurePage.LoggedInUserId.ToString();
            string        TranctionDetails = string.Empty;

            if (rbtnPaymentType.SelectedValue == "0")
            {
                BankName         = "";
                DDNumber         = "";
                TranctionDetails = " You have selected the payment mode through cheque. Please make an account payee cheque of Rs. " + lblCash.Text + " in favour of <b>" + "Admissionjankari.com " + " </b><br/><br/>";
                TranctionDetails = TranctionDetails + "  Mention your Reference id (Application form number), Name, Phone No and Email id at the back of the cheque.<br/><br/>";
                TranctionDetails = TranctionDetails + " To confirm the payment, please send your cheque at the following address (Via Speed/Registered Post): ";
                TranctionDetails = TranctionDetails + " <br /><br />" + " Admissionjankari.com";
                TranctionDetails = TranctionDetails + "<br/>74 Amrit Chamber, 2nd floor, <br />" + "  202-204 Scindia House Connaught Place, <br />" + " New Delhi-110001. <br />" + "  Contact us : +91-11-43391978, +91-8800567711, +91-8800567733";
            }
            else
            {
                if (rbtnPaymentType.SelectedValue == "1")
                {
                    BankName         = "";
                    DDNumber         = "";
                    TranctionDetails = "You have selected the payment mode through DD.<br/>  ";
                    TranctionDetails = TranctionDetails + "   <b>Make a single Demand Draft</b> (DD) of Rs.  " + lblCash.Text + " in favour of <b>" + " Admissionjankari.com" + "</b> Payable at <b>New Delhi.</b><br/><br/>";
                    TranctionDetails = TranctionDetails + "  Mention your Reference id (Application form number), Name, Phone No and Email id at the back of the Demand draft.<br/><br/>";
                    TranctionDetails = TranctionDetails + "To confirm the payment, please send your Demand Draft at the following address (Via Speed/Registered Post):";
                    TranctionDetails = TranctionDetails + "<br /><br />  Admissionjankari.com<br/>";
                    TranctionDetails = TranctionDetails + "74 Amrit Chamber, 2nd floor, <br />" + "  202-204 Scindia House Connaught Place, <br />" + " New Delhi-110001. <br />" + "   Contact us : +91-11-43391978, +91-8800567711, +91-8800567733<br/>";
                }
                else
                {
                    if (rbtnPaymentType.SelectedValue == "2")
                    {
                        const string bankName = "<b>Account Name :</b> Admissionjankari.com";
                        const string ddNumber = "00032 0000 44418";
                        TranctionDetails = "You have selected the payment mode through cash. You will need to deposit Rs." + lblCash.Text + " in the nearest HDFC Bank in the following account.   <br/><br/> ";
                        TranctionDetails = TranctionDetails + bankName + "<br/>";
                        TranctionDetails = TranctionDetails + "<b>Account Number :<b>" + ddNumber + " <br/>";
                        TranctionDetails = TranctionDetails + "<b>RTGS/IFSC/NEFT Code :</b> HDFC0000003 <br/>";
                        TranctionDetails = TranctionDetails + "<b>Branch : </b>Kasturba Gandhi Marg,New Delhi<br/>";
                        TranctionDetails = TranctionDetails + " <br /><br /> To confirm the payment, please send your pay-in-slip at the following address (Via Speed/Registered Post):";
                        TranctionDetails = TranctionDetails + "<br /><br />" + "Admissionjankari.com<br/>";
                        TranctionDetails = TranctionDetails + "74 Amrit Chamber, 2nd floor, <br />" + "  202-204 Scindia House Connaught Place, <br />" + " New Delhi-110001. <br />" + "   Contact us : +91-11-43391978, +91-8800567711, +91-8800567733<br/>";
                    }
                    else
                    {
                        TranctionDetails = "You have selected the payment mode through Online Payment of" + " " + "Rs." + " " + lblCash.Text + "/- ";
                        OnlinePayment();
                    }
                }
            }
            int i    = _ObjConsulling.InsertUpdateUserTransctionalDetails(_objSecurePage.LoggedInUserId, FormNum, false, rbtnPaymentType.SelectedItem.ToString());
            var mail = new MailMessage
            {
                From    = new MailAddress(ApplicationSettings.Instance.Email),
                Subject = "Direct Admission:Form Number" + FormNum
            };
            var body = objMailTemplates.SendValidationMailForTheDirectAdmission("http://www.admissionjankari.com/", _objSecurePage.LoggedInUserName, FormNum, TranctionDetails);

            mail.Body = body;
            mail.To.Add(_objSecurePage.LoggedInUserEmailId);
            mail.Bcc.Add(ClsSingelton.bccDirectAdmission);
            Utils.SendMailMessageAsync(mail);
            if (rbtnPaymentType.SelectedValue != "OnPayment")
            {
                Response.Redirect(Utils.AbsoluteWebRoot + Utils.RemoveIllegealFromCourse(new Common().CourseName.ToLower()) + "/counselling/thankyou/");
            }
        }