protected void Page_Load(object sender, EventArgs e)
    {
        CLSCommon.CommonCheckSession();
        CLSCommon.CACheckSession();

        if (!IsPostBack)
        {
            lblMonthYear.Text = Session["MonthYearDesc"].ToString();
        }
    }
 protected void Page_Load(object sender, EventArgs e)
 {
     CLSCommon.CommonCheckSession();
     CLSCommon.CACheckSession();
     CLSCommon.ClientCheckSession();
     if (!IsPostBack)
     {
     }
     GetGSTR2Data();
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     CLSCommon.CommonCheckSession();
     CLSCommon.CACheckSession();
     if (!IsPostBack)
     {
         GetHomeData();
         lblGstrName.InnerText = ddlGSTR.SelectedItem.Text;
         GetTotalByGSTRName();
     }
 }
Beispiel #4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        hfUrl.Value = HttpContext.Current.Request.Url.AbsoluteUri;
        Page.Form.Attributes.Add("enctype", "multipart/form-data");
        CLSCommon.CommonCheckSession();

        if (Session["UserLevel"].ToString() == "1")
        {
            divAdminCA.Visible = true;
        }
        else if (Session["UserLevel"].ToString() == "3")
        {
            divArtical.Visible = true;
        }
        else if (Session["UserLevel"].ToString() == "4")
        {
            divSideContent.Visible = true;
        }
        else if (Session["UserLevel"].ToString() == "5")
        {
            divAdministrator.Visible = true;
        }
        else if (Session["UserLevel"].ToString() == "2")
        {
            divca.Visible = true;
        }
        if (!IsPostBack)
        {
            if (Session["ClientCode"] == null || Session["ClientCode"] == "" || Session["ClientCode"] == "0" ||
                Session["ClientCodeOdp"] == null || Session["ClientCodeOdp"] == "" || Session["ClientCodeOdp"] == "0" ||
                Session["ClientGSTNNO"] == null || Session["ClientGSTNNO"] == "" || Session["ClientGSTNNO"] == "0")
            {
            }
            else
            {
                if (!IsPostBack)
                {
                    DataSet ds = CLSCommon.CallApiGet("api/TaxPayer/SearchTaxPayer?Ind=1&ClientId=" + Session["ClientCode"].ToString() + "&ClientIdOdp=" + Session["ClientCodeOdp"].ToString() + "&ClientGSTIN=" + Session["ClientGSTNNO"].ToString());
                    if (ds.Tables.Count > 0)
                    {
                        if (ds.Tables[0].Rows.Count > 0)
                        {
                            txtNameMsg.Text     = ds.Tables[0].Rows[0]["ClientNameE"].ToString();
                            txtToEmail.Text     = ds.Tables[0].Rows[0]["EmailId"].ToString();
                            txtMobileNoMsg.Text = ds.Tables[0].Rows[0]["ClientMobileNo1"].ToString();
                        }
                    }
                }
            }
        }

        txtMessageMsg.Attributes.Add("maxlength", txtMessageMsg.MaxLength.ToString());
        txtMessageEmail.Attributes.Add("maxlength", txtMessageMsg.MaxLength.ToString());
    }
 protected void Page_Load(object sender, EventArgs e)
 {
     CLSCommon.CommonCheckSession();
     CLSCommon.ClientCheckSession();
     //if(Session["Client"]==null||Session["TaxPayerIdOdp"]==null||Session["ClientGSTNNO"]==null)
     //{
     //    Response.Redirect("~/MasterPage/frmLogout.aspx");
     //}
     if (!IsPostBack)
     {
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     ValidationSettings.UnobtrusiveValidationMode = UnobtrusiveValidationMode.None;
     CLSCommon.CommonCheckSession();
     CLSCommon.CACheckSession();
     if (!IsPostBack)
     {
         clearGrid();
         FillDDl();
         //fillddlMonthyear();
     }
 }
Beispiel #7
0
    protected void Page_Load(object sender, EventArgs e)
    {
        // ScriptManager.GetCurrent(this.Page).RegisterPostBackControl(this.btnUpload);
        CLSCommon.CommonCheckSession();
        CLSCommon.CACheckSession();
        //CLSCommon.ClientCheckSession();

        if (!IsPostBack)
        {
            //fillddl();
            lblMonthYear.Text = Session["MonthYearDesc"].ToString();
        }
    }
Beispiel #8
0
 protected void Page_Load(object sender, EventArgs e)
 {
     CLSCommon.CommonCheckSession();
     CLSCommon.CACheckSession();
     if (!IsPostBack)
     {
         DataSet ds = CLSCommon.CallApiGet("api/SearchTaxPayer/SearchTaxPayer?Ind=4&TaxPayerName=" + txtSearch.Text + "&PanNo=" + txtSearch.Text + "&GSTINNo=" + txtSearch.Text + "&CACode=" + Session["CaCode"].ToString() + "&CACodeOdp=" + Session["CaCodeOdp"].ToString());
         ddlName.DataSource     = ds.Tables[0];
         ddlName.DataTextField  = "ClientNameE";
         ddlName.DataValueField = "ClientCode";
         ddlName.DataBind();
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         hfBack.Value = Request.UrlReferrer.AbsoluteUri;
     }
     CLSCommon.CommonCheckSession();
     CLSCommon.CACheckSession();
     if (Session["ErrorMsg"] != null)
     {
         lblMessage.Text = Session["ErrorMsg"].ToString();
     }
 }
Beispiel #10
0
    protected void Page_Load(object sender, EventArgs e)
    {
        CLSCommon.CommonCheckSession();
        CLSCommon.ClientCheckSessionClient();
        CLSCommon.CACheckSession();
        if (!IsPostBack)
        {
            ddlMismatchType.Visible = false;
        }
        GetGSTr2Count();
        ScriptManager _scriptMan = ScriptManager.GetCurrent(this);

        _scriptMan.AsyncPostBackTimeout = 36000;
    }
 protected void Page_Load(object sender, EventArgs e)
 {
     CLSCommon.CommonCheckSession();
     CLSCommon.ClientCheckSession();
     if (!IsPostBack)
     {
         //DataSet ds = CLSCommon.CallApiGet("api/ImportTaxPayerData/FillMonthYear?Ind=1");
         //DropDownList ddl = (DropDownList)wucTaxPayerStrip.FindControl("ddlMonthYear");
         //ddl.DataSource = ds.Tables[0];
         //ddl.DataTextField = "MonthYearDesc";
         //ddl.DataValueField = "MonthYrCode";
         //ddl.DataBind();
     }
     GetClientGstStatus();
 }
Beispiel #12
0
 protected void Page_Load(object sender, EventArgs e)
 {
     CLSCommon.CommonCheckSession();
     CLSCommon.ClientCheckSessionClient();
     if (!IsPostBack)
     {
         GetGSTIN();
         DataSet ds1 = CLSCommon.CallApiGet("api/ImportTaxPayerData/FillMonthYear?Ind=1");
         foreach (GridViewRow grw in grdRegisteredGSTIN.Rows)
         {
             DropDownList ddlMonth = (DropDownList)grw.FindControl("ddlMonth");
             FillDdl(ddlMonth, ds1);
         }
     }
 }
    //string RecordNo = "";
    protected void Page_Load(object sender, EventArgs e)
    {
        CLSCommon.CommonCheckSession();
        CLSCommon.CACheckSession();
        CLSCommon.ClientCheckSession();
        if (!IsPostBack)
        {
            // DataSet ds = CLSCommon.CallApiGet("api/ImportTaxPayerData/FillMonthYear?Ind=1");

            //DropDownList ddl = (DropDownList)wucTaxPayerStrip.FindControl("ddlMonthYear");
            //ddl.DataSource = ds.Tables[0];
            //ddl.DataTextField = "MonthYearDesc";
            //ddl.DataValueField = "MonthYrCode";
            //ddl.DataBind();

            ////var clientcode = Session["ClientCode"];
            ////var clientcodeodp = Session["ClientCodeOdp"];
            ////var GSTIN = Session["ClientGSTNNO"];
            DataSet ds1 = CLSCommon.CallApiGet("api/TaxPayeNew/GetALlGSTRName?Ind=0&ClientCode=" + Session["ClientCode"] + "&ClientCodeOdp=" + Session["ClientCodeOdp"] + "&ClientGSTNNO=" + Session["ClientGSTNNO"]);
            if (ds1.Tables.Count > 0)
            {
                grdAllGstrName.DataSource = ds1.Tables[0];
                grdAllGstrName.DataBind();
            }

            //foreach(GridViewRow grow in grdAllGstrName.Rows)
            //{
            //    LinkButton lnkbtn = (LinkButton)grow.FindControl("lnkbtn");
            //    if(grow.RowIndex==0)
            //    {

            //        lnkbtn.CssClass = "list-group-item text-center brdno active";
            //    }else
            //    {
            //        lnkbtn.Attributes.Remove("href");
            //    }
            //}
            //GetStatus(0);
        }

        GetStatus(0);
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        ViewState["YearInd"]   = null;
        ViewState["MonthCode"] = null;
        CLSCommon.CommonCheckSession();
        CLSCommon.ClientCheckSession();
        CLSCommon.CACheckSession();
        if (!IsPostBack)
        {
            DataSet ds = CLSCommon.CallApiGet("api/ImportTaxPayerData/FillMonthYear?Ind=1");

            DropDownList ddl = (DropDownList)wucTaxPayerStrip.FindControl("ddlMonthYear");
            ddl.DataSource     = ds.Tables[0];
            ddl.DataTextField  = "MonthYearDesc";
            ddl.DataValueField = "MonthYrCode";
            ddl.DataBind();
            //ViewState["MonthCode"] = Convert.ToInt32(ddl.SelectedValue.ToString());
            //string YearCode = (ddl.SelectedItem.Text.ToString());
            //ViewState["YearInd"] = Convert.ToInt32((YearCode.Substring(YearCode.Length - 4, 4))).ToString();
        }
        GetClientstatusDashboard();
    }
Beispiel #15
0
 protected void Page_Load(object sender, EventArgs e)
 {
     CLSCommon.CommonCheckSession();
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     UnobtrusiveValidationMode = UnobtrusiveValidationMode.None;
     CLSCommon.CommonCheckSession();
     CLSCommon.CACheckSession();
 }