public void LoadCommitteeMemberDetail(int orgID, int tippaniID, int tipPrcID)
    {
        this.SetCommitteeMemberSessionList();
        ATTCommitteeByTippani committee = null;

        try
        {
            committee = BLLCommitteeByTippani.GetCommitteeByTippaniByTIDs(orgID, tippaniID);
            if (committee == null)
            {
                this.lblStatusMessage.Text = "Error:: Zero object or multiple objects are selected.<br>Please check the system.";
                this.programmaticModalPopup.Show();
                return;
            }
            else
            {
                this.ddlOrg_Rqd.SelectedValue = committee.CommitteeOrgID.ToString();
                this.txtCommittee_Rqd.Text    = committee.CommitteeName;
                this.txtDesc.Text             = committee.Description;
            }
        }
        catch (Exception ex)
        {
            this.lblStatusMessage.Text = ex.Message;
            this.programmaticModalPopup.Show();
        }

        try
        {
            List <ATTGeneralTippaniSummary> lst = BLLGeneralTippaniDetail.GetCommitteeTippaniDetail(orgID, tippaniID);

            foreach (ATTGeneralTippaniSummary summary in lst)
            {
                this.CommitteeMemberList.Add(summary);
            }
            this.grdCommittee.DataSource = this.CommitteeMemberList;
            this.grdCommittee.DataBind();

            this.txtNote.Text = BLLGeneralTippaniProcess.GetTippaniText(orgID, tippaniID, tipPrcID);
        }
        catch (Exception ex)
        {
            this.lblStatusMessage.Text = ex.Message;
            this.programmaticModalPopup.Show();
        }

        this.hdnIDs.Value       = committee.CommitteeOrgID.ToString() + "/" + committee.CommitteeID.ToString();
        this.ddlOrg_Rqd.Enabled = false;
    }
Beispiel #2
0
    protected void grdRequest_SelectedIndexChanged(object sender, EventArgs e)
    {
        try
        {
            GridView grd              = sender as GridView;
            int      orgID            = int.Parse(grd.SelectedRow.Cells[0].Text);
            int      tippaniID        = int.Parse(grd.SelectedRow.Cells[1].Text);
            int      tippaniProcessID = int.Parse(grd.SelectedRow.Cells[2].Text);

            this.hdnTippaniStatus.Value = grd.SelectedRow.Cells[13].Text;

            ATTCommitteeByTippani c = BLLCommitteeByTippani.GetCommitteeByTippaniByTIDs(orgID, tippaniID);
            if (c != null)
            {
                this.lblCommitteeName.Text = c.CommitteeName;
                this.lblDescription.Text   = c.Description;
            }
            else
            {
                this.lblCommitteeName.Text = "";
                this.lblDescription.Text   = "";
            }

            List <ATTGeneralTippaniSummary> lst = BLLGeneralTippaniDetail.GetCommitteeTippaniDetail(orgID, tippaniID);

            this.grdDetail.DataSource = lst;
            this.grdDetail.DataBind();

            if (this.hdnForm.Value == "0")
            {
                this.ddlDStatus_Rqd.Enabled = true;
                this.btnSendBack.Enabled    = true;
                this.btnSubmit.Enabled      = true;

                if (this.TippaniRequestViewer.IsValidForSending == true)
                {
                    this.txtNote.Text           = BLLGeneralTippaniProcess.GetTippaniText(orgID, tippaniID, tippaniProcessID);
                    this.btnSaveAsDraft.Enabled = true;
                }
            }
            else if (this.hdnForm.Value == "1")
            {
                this.ddlDStatus_Rqd.Enabled = false;
                this.btnSendBack.Enabled    = false;
                this.btnSubmit.Enabled      = false;
                this.btnSaveAsDraft.Enabled = false;
            }

            ATTGeneralTippaniRequestInfo info = new ATTGeneralTippaniRequestInfo();
            info.OrgID       = orgID;
            info.TippaniID   = tippaniID;
            info.RequestType = TippaniProcessRequestType.History;

            this.TippaniHistory.ProcessID = tippaniProcessID;
            this.TippaniHistory.LoadTippaniHistory(info);
        }
        catch (Exception ex)
        {
            this.lblStatusMessage.Text = ex.Message;
            this.programmaticModalPopup.Show();
        }
    }