protected void btnsave_Click(object sender, EventArgs e) { int pid = Licensing_Details.Insert_Values(Convert.ToInt32(hfdpid.Value), txtfname.Text.ToString(), txtmname.Text.ToString(), txtlname.Text.ToString(), txtmaidenname.Text.ToString(), ddl_gender.SelectedValue, txtdob.Text.ToString(), txtssn.Text.ToString(), txtage.Text.ToString(), txtaddress1.Text.ToString(), txtaddress2.Text.ToString(), txtcity.Text.ToString(), ddl_state.SelectedValue, ddl_county.SelectedValue, txtzip.Text.ToString(), ddl_phone.SelectedItem.Text, txtphone.Text.ToString(), ddl_altphone.SelectedItem.Text, txtaltphone.Text.ToString(), ddl_mstatus.SelectedItem.Text, txtfax.Text.ToString(), txtemail.Text.ToString(), rdl_uscitizen.SelectedValue, ddl_suffix.SelectedValue, Session["UID"].ToString(), DateTime.Now.ToString(), Session["UID"].ToString(), DateTime.Now.ToString(), txtcitizenexpdate.Text, txtcpenumber.Text, ddlethincity.SelectedValue); ScriptManager.RegisterStartupScript(Page, GetType(), "js", " bindautogrd('" + pid + "' ,'" + txtfname.Text.ToString() + "','" + txtlname.Text.ToString() + "','" + txtssn.Text + "')", true); Clear(); }
protected void btninterviewedit_Click(object sender, EventArgs e) { tbl_Interview_Report obj = Licensing_Details.GetInterviewDetails(Convert.ToInt32(hfdauid.Value)); if (obj != null) { ddllictype.ClearSelection(); if (ddllictype.Items.FindByValue(obj.App_Id.ToString()) != null) { ddllictype.Items.FindByValue(obj.App_Id.ToString()).Selected = true; } if (obj.Interview_Date != null) { txt_date.Text = Convert.ToDateTime(obj.Interview_Date).ToString("MM/dd/yyyy"); } rdblawful.ClearSelection(); if (rdblawful.Items.FindByValue(obj.IS_Appear.ToString()) != null) { rdblawful.Items.FindByValue(obj.IS_Appear.ToString()).Selected = true; } } string js = "Popup2();"; ScriptManager.RegisterStartupScript(Page, GetType(), "scr", js, true); }
protected void btn_generate_Click(object sender, EventArgs e) { string edate = ""; lblamount.Visible = true; lbltotalamount.Visible = true; if (txt_enddate.Text == "") { edate = txt_startdate.Text; } else { edate = txt_enddate.Text; } List <USP_GetROCTotalAmountResult> RocTotalAmount = Licensing_Details.GetRocTotalAmount(Convert.ToDateTime(txt_startdate.Text), Convert.ToDateTime(edate), Convert.ToInt32(rdblst.SelectedValue), 1); if (RocTotalAmount[0].TotalAmount != null) { lbltotalamount.Text = RocTotalAmount[0].TotalAmount; } string js = "BindRocData();"; ScriptManager.RegisterStartupScript(Page, GetType(), "scr", js, true); }
protected void btn_receptdata_Click(object sender, EventArgs e) { // txt_payer.Text = "NAME"; List <USP_Licensing_GetPayerNameResult> name = Licensing_Details.Get_PayerName(Convert.ToInt32(hfdpid.Value)); txt_payer.Text = name[0].PayerName; txt_datepaid.Text = DateTime.Now.ToString("MM/dd/yyyy"); dlistAmtOwed.DataSource = Person_Details.Licensing_Details.Get_AmountOwedData(hfdselfeeids.Value); dlistAmtOwed.DataBind(); ScriptManager.RegisterStartupScript(this, GetType(), "js", "<script>Popup();</script>", false); }
protected void buttonedit_click(object sender, EventArgs e) { string value = hfdstateid.Value; Person_Details.tbl_otherstatelicense obj = Licensing_Details.Edit_otherstatelicense(Convert.ToInt32(value)); hfdstateid.Value = obj.Osl_ID.ToString(); Txt_licnum.Text = obj.Licno; string status = ""; status = obj.Status.ToString(); if (ddlstatus.Items[0].Text != status) { ddlstatus.Items[0].Selected = false; if (ddlstatus.Items.FindByText(status) != null) { ddlstatus.Items.FindByText(status).Selected = true; } } if (obj.Date_Received == Convert.ToDateTime("01/01/1900")) { Txt_datereceived.Text = ""; } else { Txt_datereceived.Text = Convert.ToDateTime(obj.Date_Received).ToString("MM/dd/yyyy"); } //string isparent = obj.Is_ParentLicmust; //if (isparent == "True") // chk_parentidmust.Checked = true; //else // chk_parentidmust.Checked = false; string Otherstatelicense = obj.isothers.ToString(); if (Otherstatelicense == "True") { Chk_otherstatelic.Checked = true; } else { Chk_otherstatelic.Checked = false; } Txt_state.Text = obj.states; string js = "Popup2();"; ScriptManager.RegisterStartupScript(Page, GetType(), "scr", js, true); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { hfd_orderid.Value = Request.QueryString[0].ToString(); List <USP_Get_Print_FinancePaymentHistoryResult> print = Licensing_Details.Get_Print_PaymentHistory(hfd_orderid.Value); lbl_Name.Text = print[0].Name; lbl_License.Text = print[0].Lic_no; lbl_orderid.Text = print[0].Receiptnum; lbl_amountpaid.Text = print[0].AmountPaid; lbl_datepaid.Text = print[0].DatePaid.ToString(); lbl_payment_type.Text = print[0].Values; lbl_check_no.Text = print[0].Checknum; lblfeetype.Text = print[0].Fee_Type; if (print[0].Values == "Credit Card") { checklbl.Visible = false; chkno.Visible = false; lbltransactionamount.Visible = true; if (print[0].OnlineRenewalPID != null) { cardnumber.Visible = true; totalamount.Visible = true; lblcardnumber.Visible = false; } else { cardnumber.Visible = true; totalamount.Visible = true; lblcardnumber.Visible = false; } //if (print[0].OnlineRenewalPID != null) //{ // lblcardnumber.Text = print[0].Onlinerenewalcardnumber; lbltransactionamount.Text = print[0].Onlinerenewaltransactionfee; lbltotalamount.Text = print[0].Onlinerenewaltotalamount; //} } else { // chkno.Visible = true; // checklbl.Visible = true; lbltransactionamount.Visible = true; cardnumber.Visible = false; totalamount.Visible = true; } } }
protected void btninterviewdel_Click(object sender, EventArgs e) { Licensing_Details.DeleteInterviewDetails(Convert.ToInt32(hfdauid.Value)); altbox("Record deleted successfully."); }
protected void btnrel_click(object sender, EventArgs e) { Licensing_Details.Insert_alertrelease(hfdaltid.Value, Session["UID"].ToString()); ScriptManager.RegisterStartupScript(Page, GetType(), "js", "chkalrt();clsalrt();", true); }