protected void Page_Load(object sender, EventArgs e)
    {
        CLSCommon.CACheckSession();
        CLSCommon.ClientCheckSession();
        if (!IsPostBack)
        {
        }
        //   DropDownList ddl1 = (DropDownList)wucTaxPayerStrip.FindControl("ddlMonthYear");
        DataSet ds = CLSCommon.CallApiGet("api/GSTR3b/GetAllData?Ind=0&ClientCode=" + Session["ClientCode"].ToString() + "&ClientCodeOdp=" + Session["ClientCodeOdp"].ToString() + "&CaCode=" + Session["CaCode"].ToString() + "&CaCodeOdp=" + Session["CaCodeOdp"].ToString() + "&ClientGSTIN=" + Session["ClientGSTNNO"].ToString() + "&MonthCD=" + Session["MonthYrCode"].ToString());

        grd3_1.DataSource = ds.Tables[0];
        grd3_1.DataBind();

        grd3_2.DataSource = ds.Tables[1];
        grd3_2.DataBind();

        grd4A.DataSource = ds.Tables[2];
        grd4A.DataBind();;

        grd5.DataSource = ds.Tables[3];
        grd5.DataBind();
        grd6_1.DataSource = ds.Tables[4];
        grd6_1.DataBind();

        grd4B.DataSource = ds.Tables[5];
        grd4B.DataBind();

        grd4C.DataSource = ds.Tables[6];
        grd4C.DataBind();

        Grd4D.DataSource = ds.Tables[7];
        Grd4D.DataBind();
    }
Example #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        CLSCommon.CACheckSession();
        CLSCommon.ClientCheckSession();
        int recordNo = 0;

        if (Request.QueryString["RecordNo"] != null)
        {
            if (!Regex.IsMatch(Request.QueryString["RecordNo"].ToString(), @"^\d+$"))
            {
                Response.Redirect("frmGSTR2Summary_design.aspx");
            }
            else
            {
                recordNo = int.Parse(Convert.ToString(Request.QueryString["RecordNo"]));
            }
        }
        else
        {
            Response.Redirect("frmGSTR2Summary_design.aspx");
        }
        if (!IsPostBack)
        {
            FillGRID(recordNo);
        }
    }
Example #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     CLSCommon.CommonCheckSession();
     CLSCommon.ClientCheckSession();
     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)
             {
                 //lblFirmName.Text = ds.Tables[0].Rows[0]["FirmName"].ToString();
                 lblClientName.Text      = ds.Tables[0].Rows[0]["ClientNameE"].ToString();
                 lblEmailId.Text         = ds.Tables[0].Rows[0]["EmailId"].ToString();
                 lblGSTINNo.Text         = ds.Tables[0].Rows[0]["GSTNNO"].ToString();
                 lblMobileNo.Text        = ds.Tables[0].Rows[0]["ClientMobileNo1"].ToString();
                 Session["ClientUserID"] = ds.Tables[0].Rows[0]["ClientUserID"].ToString();
                 lblMonthYear.Text       = Session["MonthYearDesc"].ToString();
                 //ddlMonthYear.DataSource = ds.Tables[1];
                 //ddlMonthYear.DataTextField = "MonthYearDesc";
                 //ddlMonthYear.DataValueField = "MonthYrCode";
                 //ddlMonthYear.DataBind();
             }
         }
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     CLSCommon.CommonCheckSession();
     CLSCommon.ClientCheckSession();
     if (!IsPostBack)
     {
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     CLSCommon.CACheckSession();
     CLSCommon.ClientCheckSession();
     if (!IsPostBack)
     {
         GetGstr2SummaryTotal();
     }
 }
Example #6
0
 protected void Page_Load(object sender, EventArgs e)
 {
     UnobtrusiveValidationMode = UnobtrusiveValidationMode.None;
     CLSCommon.CACheckSession();
     CLSCommon.ClientCheckSession();
     if (!IsPostBack)
     {
     }
 }
 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)
 {
     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();
 }
    //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();
    }
Example #11
0
 protected void Page_Load(object sender, EventArgs e)
 {
     CLSCommon.CommonCheckSession();
     CLSCommon.ClientCheckSession();
     CLSCommon.CACheckSession();
 }