protected void TxtFDate_TextChanged(object sender, EventArgs e) { try { TxtTDate.Focus(); } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); } }
protected void TxtFDate_TextChanged(object sender, EventArgs e) { try { Session["FDate"] = TxtFDate.Text.ToString(); TxtTDate.Focus(); } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); } }
protected void btnPrint_Click(object sender, EventArgs e) { try { if (txtBrCode.Text.ToString() == "") { txtBrCode.Focus(); WebMsgBox.Show("Enter branch code first...!!", this.Page); return; } else if (txtProdType.Text.ToString() == "") { txtProdType.Focus(); WebMsgBox.Show("Enter product code first...!!", this.Page); return; } else if (TxtFDate.Text.ToString() == "") { TxtFDate.Focus(); WebMsgBox.Show("Enter From Date first...!!", this.Page); return; } else if (TxtTDate.Text.ToString() == "") { TxtTDate.Focus(); WebMsgBox.Show("Enter To date Fisrt...!!", this.Page); return; } else if (Rdeatils.SelectedValue == "1") { string redirectURL = "FrmRView.aspx?BC=" + txtBrCode.Text.Trim().ToString() + "&PC=" + txtProdType.Text.Trim().ToString() + "&FDate=" + TxtFDate.Text + "&TDate=" + TxtTDate.Text + "&MID=" + Session["MID"].ToString() + "&FL=" + "D" + "&rptname=RptSBIntCalcReport_DT.rdlc"; ScriptManager.RegisterStartupScript(Page, Page.GetType(), "popup", "window.open('" + redirectURL + "','_blank')", true); } else if (Rdeatils.SelectedValue == "2") { string redirectURL = "FrmRView.aspx?BC=" + txtBrCode.Text.Trim().ToString() + "&PC=" + txtProdType.Text.Trim().ToString() + "&FDate=" + TxtFDate.Text + "&TDate=" + TxtTDate.Text + "&MID=" + Session["MID"].ToString() + "&FL=" + "S" + "&rptname=RptSBIntCalcReport_Sumry.rdlc"; ScriptManager.RegisterStartupScript(Page, Page.GetType(), "popup", "window.open('" + redirectURL + "','_blank')", true); } } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); } }
protected void TxtPType_TextChanged(object sender, EventArgs e) { try { string[] GL = BD.GetAccTypeGL(TxtPType.Text, Session["BRCD"].ToString()).Split('_');; TxtProName.Text = GL[0].ToString(); ViewState["GL"] = GL[1].ToString(); if (rdbAll.Checked == true) { TxtTDate.Focus(); } else { TxtFDate.Focus(); } } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); } }
protected void BtnParameter_Click(object sender, EventArgs e) { try { if (txtBrCode.Text.ToString() == "") { txtBrCode.Focus(); WebMsgBox.Show("Enter branch code first...!!", this.Page); return; } else if (txtProdType.Text.ToString() == "") { txtProdType.Focus(); WebMsgBox.Show("Enter product code first...!!", this.Page); return; } else if (TxtFDate.Text.ToString() == "") { TxtFDate.Focus(); WebMsgBox.Show("Enter From Date first...!!", this.Page); return; } else if (TxtTDate.Text.ToString() == "") { TxtTDate.Focus(); WebMsgBox.Show("Enter To date Fisrt...!!", this.Page); return; } else { string redirectURL = "FrmRView.aspx?BC=" + txtBrCode.Text.Trim().ToString() + "&PC=" + txtProdType.Text.Trim().ToString() + "&rptname=RptSB_INTCalcPara.rdlc"; ScriptManager.RegisterStartupScript(Page, Page.GetType(), "popup", "window.open('" + redirectURL + "','_blank')", true); } } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); } }