public void GetComplainDetails(int ComplainID)
        {
            try
            {
                dynamic dt = objBSS.GetComplainDetailByComplainID(ComplainID);
                if (dt.Rows.Count > 0)
                {
                    //tbTicketNo.Text = dt.Rows(0)("TicketNo");
                    tbComplainTicketNo.Text = dt.Rows[0]["TicketNo"];
                    tbComplainLoggedBy.Text = dt.Rows[0]["LoggedBy"];
                    ComplainStatusID        = dt.Rows[0]["ComplaintStatusID"];
                    TicketTypeID            = dt.Rows[0]["TicketTypeID"];
                    tbRemarks.Text          = dt.Rows[0]["Remarks"];
                    int SignUpId = dt.Rows[0]["SignUpID"];
                    dtSolving.SelectedDate = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, DateTime.Now.Hour, DateTime.Now.Minute, DateTime.Now.Second);

                    if ((TicketTypeID.Equals(6)) & (Convert.ToInt32(Session["DepartmentID"]).Equals(1) || Convert.ToInt32(Session["DepartmentID"]).Equals(58) || Convert.ToInt32(Session["DepartmentID"]).Equals(59) || Convert.ToInt32(Session["DepartmentID"]).Equals(60)))
                    {
                        DataTable dt_DeplDet = objBSS.GetCircuitDeploymentDetatils(SignUpId);


                        if (dt_DeplDet.Rows.Count > 0)
                        {
                            txtJoinName.Text              = dt_DeplDet.Rows[0]["JoinName"].ToString();
                            txtTubeNameFromCustomer.Text  = dt_DeplDet.Rows[0]["TubeNameFromCustomer"].ToString();
                            txtCoreColorFromCustomer.Text = dt_DeplDet.Rows[0]["CoreColorFromCustomer"].ToString();
                            txtTubeNameFromNode.Text      = dt_DeplDet.Rows[0]["TubeNameFromNode"].ToString();
                            txtCoreColorFromNode.Text     = dt_DeplDet.Rows[0]["CoreColorFromNode"].ToString();
                            txtCutDistance.Text           = dt_DeplDet.Rows[0]["CutDistance"].ToString();
                        }

                        pnlFiberDetails.Visible = true;
                    }
                    else
                    {
                        pnlFiberDetails.Visible = false;
                    }

                    if (TicketTypeID == 6)
                    {
                        cbCheckAll.Enabled = false;
                    }

                    //if (ComplainStatusID == 5 | ComplainStatusID == 1)
                    if (ComplainStatusID.Equals(5) || ComplainStatusID.Equals(1))
                    {
                        btnUpdate.Visible = false;
                    }

                    //else
                    //{
                    //    btnUpdate.Visible = true;
                    //}

                    tbComplainStatus.Text = dt.Rows[0]["ComplainStatus"];
                    cmbAssignedDepartment.SelectedValue = "61";
                    objBL.LoadProblemDignosedAt(cmbProblemDiagnosedat, Convert.ToInt32(cmbAssignedDepartment.SelectedValue));
                    objBL.LoadReasonOutage(cmbReasonofOutage, 0, 0, Convert.ToInt32(cmbAssignedDepartment.SelectedValue), 1, Convert.ToInt32(Session["UserID"]));
                    tbComplaintReceivedDT.Text = Convert.ToString(dt.Rows[0]["ComplaintReceivedDate"]);
                    AppDomain.CurrentDomain.SetData("LastUpdatedDate", Convert.ToDateTime(dt.Rows[0]["LastUpdatedDate"]));
                    tbRemarks.Text = dt.Rows[0]["Remarks"];
                    //ComplainStatusID = 1;
                    if (ComplainStatusID.Equals(1) || ComplainStatusID.Equals(5))
                    {
                        //tbPersonSolvingComplain.Text = dt.Rows[0]["PersonSolving"];
                        dtSolving.SelectedDate = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, 5, 30, 0);
                        cmbProblemDiagnosedat.SelectedValue = Convert.ToString(dt.Rows[0]["ProblemDignoseEndID"]);
                        cmbReasonofOutage.SelectedValue     = Convert.ToString(dt.Rows[0]["ReasonOutageID"]);
                        if (dt.Rows[0]["FCR"] == "True")
                        {
                            rbFCRYes.Checked = true;
                        }
                        else
                        {
                            rbFCRNo.Checked = true;
                        }

                        tbCauses.Text                  = dt.Rows[0]["Dignose_Causes"];
                        tbRootCauseAnalysis.Text       = dt.Rows[0]["Dignose_RootCauseAnalysis"];
                        tbPreventiveMeasures.Text      = dt.Rows[0]["Dignose_PreventativeMeasureTake"];
                        cmbLastMileInfra.SelectedValue = Convert.ToString(dt.Rows[0]["LastMileInfraID"]);
                    }
                }
            }



            catch (Exception ex)
            {
                throw ex;
            }
        }