Пример #1
0
    private void LoadMisil()
    {
        ATTMisil objmisil = new ATTMisil();

        MisilDartaa   = null;
        MisilChalaani = null;
        MisilReply    = null;

        objmisil.ReqOrg = orgID;
        List <ATTMisil> MisilLST = BLLMisil.GetMisilForProcessing(objmisil);

        MisilDartaa = MisilLST.FindAll(delegate(ATTMisil obj)
        {
            return(obj.ReqRecDartaNo.Trim() == "");
        }
                                       );

        MisilChalaani = MisilLST.FindAll(delegate(ATTMisil obj)
        {
            return(obj.ReqReplyChalaniNo.Trim() == "" && obj.ReqRecDartaNo.Trim() != "");
        }
                                         );
        MisilReply = MisilLST.FindAll(delegate(ATTMisil obj)
        {
            return(obj.ReqReplyChalaniNo.Trim() != "" && obj.ReqRecDartaNo.Trim() != "" && obj.RecDartaNo.Trim() == "");
        }
                                      );
    }
    protected void btnSubmit_Click(object sender, EventArgs e)
    {
        if (Session["CaseID"] == null)
        {
            lblStatusMessage.Text = "Please Litigant First";
            programmaticModalPopup.Show();
            return;
        }
        if (DDLMisilType.SelectedIndex == -1)
        {
            lblStatusMessage.Text = "Please Misil Type First";
            programmaticModalPopup.Show();
            return;
        }
        if (DDLReqOrg.SelectedIndex == -1)
        {
            lblStatusMessage.Text = "Please Organization First";
            programmaticModalPopup.Show();
            return;
        }
        if (txtReqDate.Text == "")
        {
            lblStatusMessage.Text = "Please Enter Requested Date First";
            programmaticModalPopup.Show();
            return;
        }

        ATTMisil objMisil = new ATTMisil();

        objMisil.CaseID            = double.Parse(Session["CaseID"].ToString());
        objMisil.ReqDate           = txtReqDate.Text.Trim();
        objMisil.ReqOrg            = int.Parse(DDLReqOrg.SelectedValue);
        objMisil.DocTypeID         = int.Parse(DDLMisilType.SelectedValue);
        objMisil.ReqChalaniNo      = txtReqChalaniNo.Text.Trim();
        objMisil.ReqRecDate        = txtReqRecDate.Text.Trim();
        objMisil.ReqRecDartaNo     = txtReqRecRegNo.Text.Trim();
        objMisil.ReqRecPID         = double.Parse(hdnReqRecPersonID.Value.ToString());
        objMisil.ReqReplyDate      = txtReqReplyDate.Text.Trim();
        objMisil.ReqReplyChalaniNo = txtReqReplyChalaniNo.Text.Trim();
        objMisil.RecDate           = txtRecDate.Text.Trim();
        objMisil.RecDartaNo        = txtRecRegNo.Text.Trim();
        objMisil.RecPID            = double.Parse(hdnRecPersonID.Value.ToString());
        objMisil.IsReturn          = (chkIsReturned.Checked == true) ? "Y" : "N";
        objMisil.ReturnDate        = txtReturnDate.Text.Trim();
        objMisil.Remarks           = txtRemarks.Text.Trim();
        objMisil.EntryBy           = strUser;

        try
        {
            BLLMisil.SaveMisil(objMisil);
            ClearCotrols();
        }
        catch (Exception ex)
        {
            lblStatusMessage.Text = ex.Message;
            programmaticModalPopup.Show();
        }
    }
Пример #3
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();
    }
Пример #4
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();
    }