protected void btnSave_Click(object sender, EventArgs e)
 {
     Criminal_Travel_InformationObject ctiObject = new Criminal_Travel_InformationObject();
     CriminalInformationService cisObj = new CriminalInformationService();
     try
     {
         ctiObject.RefNo = txtRefNo.Text;
         ctiObject.CountryVisited = txtCountryVisited.Text;
         ctiObject.ArrivalDate = Convert.ToDateTime(txtArrivalDate.Text);
         ctiObject.DepartureDate = Convert.ToDateTime(txtDepartureDate.Text);
         ctiObject.Duration = txtDuration.Text;
         ctiObject.AddressAbroad = txtAddressAbroad.Text;
         ctiObject.CreateBy = Membership.GetUser().UserName;
         ctiObject.CreateDate = DateTime.Now;
         ctiObject.LastUpdateBy = Membership.GetUser().UserName;
         ctiObject.LastUpdateDate = DateTime.Now;
         if (cisObj.InsertTravelInformation(ctiObject))
         {
             Response.Redirect("creminal-bank-account-details.aspx?refno=" + txtRefNo.Text);
         }
     }
     catch (Exception ex)
     {
         ErrorMessage.Text = ex.Message;
     }
 }
 protected void btnSave_Click(object sender, EventArgs e)
 {
     Criminal_Bank_Account_DetailsObject cbadObject = new Criminal_Bank_Account_DetailsObject();
     CriminalInformationService cisObj = new CriminalInformationService();
     try
     {
         cbadObject.RefNo = txtRefNo.Text;
         cbadObject.BankName = txtBankName.Text;
         cbadObject.AccountNo = txtAccountNo.Text;
         cbadObject.AccountType = txtAccountType.Text;
         cbadObject.CreditCardNo = txtCreditCardNo.Text;
         cbadObject.DebitCardNo = txtDebitCardNo.Text;
         cbadObject.CreateBy = Membership.GetUser().UserName;
         cbadObject.CreateDate = DateTime.Now;
         cbadObject.LastUpdateBy = Membership.GetUser().UserName;
         cbadObject.LastUpdateDate = DateTime.Now;
         if (cisObj.InsertTravelInformation(cbadObject))
         {
             Response.Redirect("crime-basic-information.aspx?refno=" + txtRefNo.Text);
         }
     }
     catch (Exception ex)
     {
         ErrorMessage.Text = ex.Message;
     }
 }
 protected void btnAddmore_Click(object sender, EventArgs e)
 {
     Criminal_Travel_InformationObject ctiObject = new Criminal_Travel_InformationObject();
     CriminalInformationService cisObj = new CriminalInformationService();
     try
     {
         ctiObject.RefNo = txtRefNo.Text;
         ctiObject.CountryVisited = txtCountryVisited.Text;
         ctiObject.ArrivalDate = Convert.ToDateTime(txtArrivalDate.Text);
         ctiObject.DepartureDate = Convert.ToDateTime(txtDepartureDate.Text);
         ctiObject.Duration = txtDuration.Text;
         ctiObject.AddressAbroad = txtAddressAbroad.Text;
         ctiObject.CreateBy = Membership.GetUser().UserName;
         ctiObject.CreateDate = DateTime.Now;
         ctiObject.LastUpdateBy = Membership.GetUser().UserName;
         ctiObject.LastUpdateDate = DateTime.Now;
         if (cisObj.InsertTravelInformation(ctiObject))
         {
             txtCountryVisited.Text = "";
             txtArrivalDate.Text = "";
             txtDepartureDate.Text = "";
             txtDuration.Text = "";
             txtAddressAbroad.Text = "";
             SuccessMessage.Text = "One record Added.";
         }
     }
     catch (Exception ex)
     {
         ErrorMessage.Text = ex.Message;
     }
 }
 protected void btnAddmore_Click(object sender, EventArgs e)
 {
     Criminal_Bank_Account_DetailsObject cbadObject = new Criminal_Bank_Account_DetailsObject();
     CriminalInformationService cisObj = new CriminalInformationService();
     try
     {
         cbadObject.RefNo = txtRefNo.Text;
         cbadObject.BankName = txtBankName.Text;
         cbadObject.AccountNo = txtAccountNo.Text;
         cbadObject.AccountType = txtAccountType.Text;
         cbadObject.CreditCardNo = txtCreditCardNo.Text;
         cbadObject.DebitCardNo = txtDebitCardNo.Text;
         cbadObject.CreateBy = Membership.GetUser().UserName;
         cbadObject.CreateDate = DateTime.Now;
         cbadObject.LastUpdateBy = Membership.GetUser().UserName;
         cbadObject.LastUpdateDate = DateTime.Now;
         if (cisObj.InsertTravelInformation(cbadObject))
         {
             txtRefNo.Text = txtRefNo.Text;
             txtBankName.Text = "";
             txtAccountNo.Text = "";
             txtAccountType.Text = "";
             txtCreditCardNo.Text = "";
             txtDebitCardNo.Text = "";
             SuccessMessage.Text = "One record Added.";
         }
     }
     catch (Exception ex)
     {
         ErrorMessage.Text = ex.Message;
     }
 }