protected void txtTname_TextChanged(object sender, EventArgs e) { try { string CUNAME = txtname.Text; string[] custnob = CUNAME.Split('_'); if (custnob.Length > 1) { txtname.Text = custnob[0].ToString(); TxtCust.Text = (string.IsNullOrEmpty(custnob[1].ToString()) ? "" : custnob[1].ToString()); TxtAsonDate.Focus(); } } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { try { if (Session["UserName"] == null) { Response.Redirect("FrmLogin.aspx"); } BD.BindExportFile(ddlExport); TxtAsonDate.Focus(); TxtAsonDate.Text = Session["BRCD"].ToString(); } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); } } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (Session["UserName"] == null) { Response.Redirect("FrmLogin.aspx"); } TxtBrID.Text = Session["BRCD"].ToString(); TxtAsonDate.Text = Session["EntryDate"].ToString(); if (cmn.MultiBranch(Session["LOGINCODE"].ToString()) != "Y") { TxtBrID.Enabled = false; TxtAsonDate.Focus(); } else { TxtBrID.Enabled = true; TxtBrID.Focus(); } } }
protected void Txttobrcd_TextChanged(object sender, EventArgs e) { TxtAsonDate.Focus(); }
protected void Submit_Click(object sender, EventArgs e) { try { FL = "Insert";//ankita 15/09/2017 string Res = CLM.LOGDETAILS(FL, Session["BRCD"].ToString(), Session["MID"].ToString(), "AllOk_Rpt" + "_" + Session["LOGINCODE"].ToString() + "", "00", Session["MID"].ToString()); if (ddlExport.SelectedValue == "1") { try { string redirectURL = "FrmRView.aspx?AsOnDate=" + TxtAsonDate.Text + "&UserName="******"UserName"].ToString() + "&rptname=RptAllOK.rdlc" + "&EXPF=" + ddlExport.SelectedItem.Text + ""; ScriptManager.RegisterStartupScript(Page, Page.GetType(), "popup", "window.open('" + redirectURL + "','_blank')", true); } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); } } else if (ddlExport.SelectedValue == "2") { BindGrid(); } else if (ddlExport.SelectedValue == "3") { try { string redirectURL = "FrmRView.aspx?AsOnDate=" + TxtAsonDate.Text + "&UserName="******"UserName"].ToString() + "&rptname=RptAllOK.rdlc"; ScriptManager.RegisterStartupScript(Page, Page.GetType(), "popup", "window.open('" + redirectURL + "','_blank')", true); } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); } } else if (ddlExport.SelectedValue == "4") { try { string BName = ""; string BRName = ""; DataTable DT = new DataTable(); DT = LG.GetBankName(Session["BRCD"].ToString()); if (DT.Rows.Count > 0) { BName = DT.Rows[0]["BankName"].ToString(); BRName = DT.Rows[0]["BranchName"].ToString(); } List <object> lst = new List <object>(); lst.Add(BName); lst.Add(BRName); lst.Add("ALL OK REPORT"); lst.Add(Session["USERNAME"].ToString()); lst.Add(Session["BRCD"].ToString()); lst.Add(Session["EntryDate"].ToString()); lst.Add(TxtAsonDate.Text); AllOKText AK = new AllOKText(); AK.RInit(lst); AK.Start(); WebMsgBox.Show("Report Generated Succesfully!!!....", this.Page); TxtAsonDate.Focus(); } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); } } } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); } }