protected void btnSubmit_OnClick(object sender, EventArgs e)
        {
            Int32       empIdno         = Convert.ToInt32((Session["UserIdno"] == null) ? "0" : Session["UserIdno"].ToString());
            AcntLinkDAL objAcntLink     = new AcntLinkDAL();
            string      msg             = string.Empty;
            Int64       iAcntLnk_Idno   = 0;
            Int32       iGRPiDNO        = Convert.ToInt32(ddlGroupType.SelectedValue);
            Int64       intOTAcntIdno   = Convert.ToInt64(ddlOthrAmnt.SelectedValue);
            Int64       intCMAcntIdno   = Convert.ToInt64(ddlComision.SelectedValue);
            Int64       intSTAcntIdno   = Convert.ToInt64(ddlservcetax.SelectedValue);
            Int64       intSwachhBharat = Convert.ToInt64(ddlSwachhBharat.SelectedValue);
            Int64       intKrishiKalyan = Convert.ToInt64(ddlKrishiKalyan.SelectedValue);
            Int64       intTDSAcntIdno  = Convert.ToInt64(ddlTdsAcnt.SelectedValue);
            Int64       intDebitIdno    = Convert.ToInt64(ddlDebitnote.SelectedValue);
            Int64       intTDSAmnt      = Convert.ToInt64(ddlTDSAmnt.SelectedValue);
            Int64       intDiesel       = Convert.ToInt64(ddlDiesel.SelectedValue);
            bool        bStatus         = Convert.ToBoolean(1);

            Int32 intCompIdno = Convert.ToInt32(base.CompId);
            Int64 intSGST     = Convert.ToInt64(ddlSGST.SelectedValue);
            Int64 intCGST     = Convert.ToInt64(ddlCGST.SelectedValue);
            Int64 intIGST     = Convert.ToInt64(ddlIGST.SelectedValue);

            if (objAcntLink.IsExists(iGRPiDNO) == true)
            {
                iAcntLnk_Idno = objAcntLink.Update(intCMAcntIdno, intOTAcntIdno, iGRPiDNO, intSTAcntIdno, intTDSAcntIdno, intDebitIdno, intTDSAmnt, empIdno, intSwachhBharat, intKrishiKalyan, intDiesel, intSGST, intCGST, intIGST);
                //ClearControls();
                BindALLGenerals();
            }
            else
            {
                iAcntLnk_Idno = objAcntLink.Insert(intCMAcntIdno, intOTAcntIdno, iGRPiDNO, intSTAcntIdno, intTDSAcntIdno, intDebitIdno, intTDSAmnt, empIdno, intSwachhBharat, intKrishiKalyan, intDiesel, intSGST, intCGST, intIGST);
                //  ClearControls();
                BindALLGenerals();
            }
            if ((iAcntLnk_Idno > 0))
            {
                ShowMessage("Record saved successfully");
                ddlGroupType.Focus();
            }
            else if (iAcntLnk_Idno == -1)
            {
                ShowMessageErr("Record already exists!");
                ddlGroupType.Focus();
            }
            else
            {
                ShowMessageErr("Oops some technical error has occurred! Please contact support desk at +91-141-6672222!");
                ddlGroupType.Focus();
            }
            // ScriptManager.RegisterStartupScript(this, this.GetType(), "alertmsg", "PassMessage('" + msg + "')", true);
        }
        protected void btnCancel_OnClick(object sender, EventArgs e)
        {
            AcntLinkDAL objAcntLink = new AcntLinkDAL();
            Int32       IgrpIdno    = Convert.ToInt32(ddlGroupType.SelectedValue);

            if (objAcntLink.IsExists(IgrpIdno) == true)
            {
                populateControls(IgrpIdno);
            }
            else
            {
                ClearControls();
                ddlGroupType.SelectedValue = Convert.ToString(IgrpIdno);
            }
        }
        protected void ddlGroupType_SelectedIndexChanged(object sender, EventArgs e)
        {
            BindALLGenerals();
            AcntLinkDAL objAcntLink = new AcntLinkDAL();
            Int32       IgrpIdno    = Convert.ToInt32(ddlGroupType.SelectedValue);

            if (objAcntLink.IsExists(IgrpIdno) == true)
            {
                populateControls(IgrpIdno);
            }
            else
            {
                ClearControls();
                ddlGroupType.SelectedValue = Convert.ToString(IgrpIdno);
            }
            ddlGroupType.Focus();
        }