protected void btnGstr1Summary_Click(object sender, EventArgs e)
    {
        lblmsg.Text = "";
        PL_GSTR1Summary obj = new PL_GSTR1Summary();
        DataTable       dt  = new DataTable();

        obj.Ind    = 1;
        obj.CaCode = Convert.ToInt32(Session["CaCode"]);
        // obj.CaCode = 38;
        obj.CaCodeOdp = Convert.ToInt32(Session["CaCodeOdp"]);
        // DropDownList ddlMonthYear = (DropDownList)wucTaxPayerStrip.FindControl("ddlMonthYear");
        obj.MonthCD = Convert.ToInt32(Session["MonthYrCode"].ToString());
        if (Session["ClientCode"] != null && Session["ClientCodeOdp"] != null)
        {
            obj.ClientCode    = Convert.ToInt32(Session["ClientCode"].ToString());
            obj.ClientCodeOdp = Convert.ToInt32(Session["ClientCodeOdp"].ToString());
            obj.ClientGSTIN   = Session["ClientGSTNNO"].ToString();
            // obj.ClientGSTIN = "33GSPTN3741G1Z9";
            dt = CLSCommon.CallApiPost("api/GSTR1Summary/GetGSTR1Summary/", obj);
            if (dt != null)
            {
                GridGSTR1Summ.DataSource = dt;
                GridGSTR1Summ.DataBind();
            }
        }
        else
        {
            lblmsg.Text = "Please Select Client";
        }
    }
    protected void btnGetSummary_Click(object sender, EventArgs e)
    {
        GridGSTR1Summ.DataSource = null;
        GridGSTR1Summ.DataBind();
        //  divOTPSuccess.Style.Add("display", "none");

        //   DropDownList ddl = (DropDownList)wucTaxPayerStrip.FindControl("ddlMonthYear");
        objpl               = new PL_APILog();
        objpl.Ind           = 6;
        objpl.ClientCode    = int.Parse(Session["ClientCode"].ToString());
        objpl.ClientCodeOdp = int.Parse(Session["ClientCodeOdp"].ToString());
        objpl.CaCode        = int.Parse(Session["CaCode"].ToString());
        objpl.CaCodeOdp     = int.Parse(Session["CaCodeOdp"].ToString());
        objpl.GSTNNO        = Session["ClientGSTNNo"].ToString();
        objpl.LogId         = Convert.ToInt64(hfLogId.Value.ToString());
        objpl.RecordNo      = 3;
        objpl.MonthCD       = int.Parse(Session["MonthYrCode"].ToString());
        DataTable dt = CLSCommon.CallApiPost("api/GSTR1File/GetSummary", objpl);

        if (dt != null)
        {
            if (dt.Rows[0]["res"].ToString() == "1")
            {
                // txtSummary.Text = dt.Rows[0]["Summary"].ToString();
                ViewState["Summary"] = dt.Rows[0]["Summary"].ToString();
                ClsGSTR1Summ objGstr1summ = JsonConvert.DeserializeObject <ClsGSTR1Summ>(dt.Rows[0]["Summary"].ToString());

                GridGSTR1Summ.DataSource = objGstr1summ.sec_sum;
                GridGSTR1Summ.DataBind();
                ScriptManager.RegisterStartupScript(this, this.GetType(), "Pop", "ShowSummModal();", true);
                //  Page.ClientScript.RegisterStartupScript(this.GetType(), "CallMyFunction", "ShowSummModal();", true);
            }
            else
            {
                lblSummMessage.Text = dt.Rows[0]["Error"].ToString();
            }
        }
        else
        {
            lblSummMessage.Text = "Some Error Occured try Again.";
        }
    }