protected void BtnInsert_Click(Object sender, System.EventArgs e)
        {
            ClAgreeExplanRepeat cl = new ClAgreeExplanRepeat();

            cl = Data;
            if (NotDefaultAgree == false)
            {
                cl.AgreementID = null;
            }
            else
            {
                cl.AgreementID = Convert.ToInt32(LblAgreementID.Text);
            }

            if (NotDefaultAgree == false)
            {
                cl.AgreementID = null;
            }

            int t = 0;

            if (CSharp.PublicFunction.ModeInsert(ExplanRepeatID.ToString()))
            {
                t = AgreeExplanRepeatClass.insert(cl);
            }
            else
            {
                t = AgreeExplanRepeatClass.Update(cl);
            }

            if (t == 0)
            {
                LblMsg.ForeColor = System.Drawing.Color.Red;
                LblMsg.Text      = "خطا در ثبت";
            }
            else if (t == -1)
            {
                CSharp.Utility.ShowMsg(Page, CSharp.ProPertyData.MsgType.warning, "برای این شرح کار تکرار ثبت شده است");
            }
            else
            {
                LblMsg.ForeColor = System.Drawing.Color.Green;
                LblMsg.Text      = "ثبت  انجام شد.";
                BindGrid();
            }

            LblParamExplanRepeatID.Text = "0";
        }