示例#1
0
    protected void btnSubmitMisilReply_Click(object sender, EventArgs e)
    {
        if (grdReply.SelectedIndex == -1)
        {
            lblStatusMessage.Text = "Select Misil";
            this.programmaticModalPopup.Show();
            return;
        }
        if (txtReqReplyReceivedDate.Text.Trim() == "")
        {
            lblStatusMessage.Text = "Dartaa No Missing";
            this.programmaticModalPopup.Show();
            return;
        }
        if (txtReqReplyDartaaNo.Text.Trim() == "")
        {
            lblStatusMessage.Text = "Received Date Missing";
            this.programmaticModalPopup.Show();
            return;
        }


        ATTMisil misil = MisilReply[grdReply.SelectedIndex];

        misil.RecDate    = txtReqReplyReceivedDate.Text.Trim();
        misil.RecDartaNo = txtReqReplyDartaaNo.Text.Trim();
        misil.RecPID     = userID;


        if (BLLMisil.EditMisil(misil))
        {
            lblStatusMessage.Text = "Misil Information Saved Successfully";
            this.programmaticModalPopup.Show();
        }
        else
        {
            lblStatusMessage.Text = "Misil Information Was not Saved";
            this.programmaticModalPopup.Show();
        }
        ClearControlsReply();
    }
示例#2
0
    protected void btnSubmitMisilChalaani_Click(object sender, EventArgs e)
    {
        if (grdMisilChalaani.SelectedIndex == -1)
        {
            lblStatusMessage.Text = "Select Misil";
            this.programmaticModalPopup.Show();
            return;
        }
        if (txtReplyDate.Text.Trim() == "")
        {
            lblStatusMessage.Text = "Reply Date Missing";
            this.programmaticModalPopup.Show();
            return;
        }
        if (txtChalaaniNo.Text.Trim() == "")
        {
            lblStatusMessage.Text = "Chalaani No Missing";
            this.programmaticModalPopup.Show();
            return;
        }

        ATTMisil misil = MisilChalaani[grdMisilChalaani.SelectedIndex];

        misil.ReqReplyDate      = txtReplyDate.Text.Trim();
        misil.ReqReplyChalaniNo = txtChalaaniNo.Text.Trim();

        if (BLLMisil.EditMisil(misil))
        {
            lblStatusMessage.Text = "Misil Information Saved Successfully";
            this.programmaticModalPopup.Show();
        }
        else
        {
            lblStatusMessage.Text = "Misil Information Was not Saved";
            this.programmaticModalPopup.Show();
        }
        ClearControlsChalaani();
    }