Beispiel #1
0
 private void TreeNodePopulate()
 {
     dt = MDetails.GetSpecficSearch(lbl.Text);
     if (dt.Rows.Count > 0)
     {
         TreeView MatterTreeView = this.Master.FindControl("MatterTreeView") as TreeView;
         MatterTreeView.Nodes[0].Text = dt.Rows[0]["Matter_number"].ToString();
         MatterTreeView.Nodes[0].ChildNodes[0].NavigateUrl = "~/Matter/Stage/StageDetails.aspx?Matter_Id=" + lbl.Text;
         MatterTreeView.Nodes[0].ChildNodes[1].NavigateUrl = "~/Matter/Cases/CasesDetails.aspx?Matter_Id=" + lbl.Text + "&Case_ID=" + 0;
         MatterTreeView.Nodes[0].ChildNodes[2].NavigateUrl = "~/Matter/Hearings/Hearings.aspx?Matter_Id=" + lbl.Text + "&Hearing_ID=" + 0;
         MatterTreeView.Nodes[0].ChildNodes[3].NavigateUrl = "~/Matter/ViewMatter/FeeDetailsandPOA.aspx?Matter_Id=" + lbl.Text;
         MatterTreeView.Nodes[0].ChildNodes[4].NavigateUrl = "~/Matter/ViewMatter/Parties.aspx?Matter_Id=" + lbl.Text;
     }
 }
    protected void Page_Load(object sender, EventArgs e)
    {
        GetSession();
        if (!IsPostBack)
        {
            LoginCss_load();

            string M_id = Request.QueryString["Matter_Id"].ToString();
            dt = MDetails.GetSpecficSearch(M_id);
            if (dt.Rows.Count > 0)
            {
                TreeView MatterTreeView = this.Master.FindControl("MatterTreeView") as TreeView;
                Label    lblMatterNo    = this.Master.FindControl("lblMatterNo") as Label;
                MatterTreeView.Nodes[0].Text = dt.Rows[0]["Matter_number"].ToString();
                //MatterTreeView.Nodes[0].ChildNodes[0].Text = "Stage("+(5)+")";
                //MatterTreeView.Nodes[0].ChildNodes[1].Text = "Cases(" + (3) + ")";
                //MatterTreeView.Nodes[0].ChildNodes[2].Text = "Hearings(" + (4) + ")";
                //MatterTreeView.Nodes[0].ChildNodes[3].Text = "POA & Fee Details(" + (1) + ")";
                lblFallowerMatterno.Text = dt.Rows[0]["Matter_number"].ToString();
                lblCloseMatterNo.Text    = dt.Rows[0]["Matter_number"].ToString();
                MatterTreeView.Nodes[0].ChildNodes[0].NavigateUrl = "~/Matter/Stage/StageDetails.aspx?Matter_Id=" + M_id;
                MatterTreeView.Nodes[0].ChildNodes[1].NavigateUrl = "~/Matter/Cases/CasesDetails.aspx?Matter_Id=" + M_id + "&Case_ID=" + 0;
                MatterTreeView.Nodes[0].ChildNodes[2].NavigateUrl = "~/Matter/Hearings/Hearings.aspx?Matter_Id=" + M_id + "&Hearing_ID=" + 0;
                MatterTreeView.Nodes[0].ChildNodes[3].NavigateUrl = "~/Matter/ViewMatter/FeeDetailsandPOA.aspx?Matter_Id=" + M_id;
                MatterTreeView.Nodes[0].ChildNodes[4].NavigateUrl = "~/Matter/ViewMatter/Parties.aspx?Matter_Id=" + M_id;
                lblcientdata.Text         = dt.Rows[0]["Company_Name"].ToString();
                LblMatterData.Text        = dt.Rows[0]["Matter_number"].ToString();
                lblStatusText.Text        = dt.Rows[0]["Staus_Desc"].ToString();
                lblOpendateText.Text      = Convert.ToDateTime(dt.Rows[0]["Open_Date"].ToString()).ToString("dd-MMM-yyyy ");
                ddlAssignedLawyer.Text    = dt.Rows[0]["AssignedLawyer"].ToString();
                ddlResponsiblelawyer.Text = dt.Rows[0]["ResponsibileLawyer"].ToString();
                ddlMatterType.Text        = dt.Rows[0]["Matter_Type_Desc"].ToString();
                ddlOffice.Text            = dt.Rows[0]["offc_desc"].ToString();
                txtMatterDiscription.Text = dt.Rows[0]["Description"].ToString();
                //txtoppnents1.Text = dt.Rows[0]["Oppnents"].ToString();
                //txtoppnents2.Text = dt.Rows[1]["Oppnents"].ToString();
                //txtoppnents3.Text = dt.Rows[2]["Oppnents"].ToString();
            }
            bindCaseGrid();
            bindStatic();
            OpponentGrid();
            BindAllEmployee();
            BindAlloffice();
            BindAllStatus();
            BindFallowerGrid();
            AllMatterNumber();
            GetMatterDetailsClose();
        }
    }