private void Load_Yeu_Cau()
        {
            DataTable dtYeuCau = DAYeuCau.Get_Bang_yeu_cau(_ID);
            this.Text = dtYeuCau.Rows[0]["CHU_DE"].ToString();
            DataTable Dt = Cac_Yeu_Cau_Lien_Quan(_ID);
            DataTable dtListFile = GetAllFile(_ID);
            if (dtYeuCau.Rows.Count > 0)
            {
                DataRow Dr = dtYeuCau.Rows[0];
                DataSet dsListFile = new DataSet();
                dtListFile.DefaultView.RowFilter = string.Format("OBJECT_ID={0}", _ID);
                dsListFile.Tables.Add(dtListFile.DefaultView.ToTable());
                //Add support 
                this.ucReply1 = new ucReply(this,
                    HelpNumber.ParseInt64(Dr["ID"]), _NguoiGuiID,Dr["NGUOI_NHAN_ID"].ToString(),
                    Convert.ToDateTime(Dr["NGAY_GUI"]), Dr["NOI_DUNG"],
                  dsListFile, "TEN_FILE", "NOI_DUNG", _TinhTrang, new string[] { this.Text, dtYeuCau.Rows[0]["TEN_TINH_TRANG"].ToString() });
                this.ucReply1.AfterDeleteSuccessfully += new ucReply._AfterDeleteSuccessfully(ucReply1_AfterDeleteSuccessfully);
                this.ucReply1.Width = DefaultWidth;
                if (this.ucReply1.btnUpdate.Visible == true)
                    this.ucReply1.btnUpdate.Visible = !(Dt.Rows.Count > 0);
                this.ucReply1.label6.Text = "Người yêu cầu:";
                this.ucReply1.Anchor = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right;
                this.flowLayoutPanel1.Controls.Add(this.ucReply1);
                //Add replies of support
                foreach (DataRow row in Dt.Rows)
                {
                    DataSet dsListFileC = new DataSet();
                    dtListFile.DefaultView.RowFilter = string.Format("OBJECT_ID={0}", HelpNumber.ParseInt64(row["ID"]));
                    dsListFileC.Tables.Add(dtListFile.DefaultView.ToTable());

                    this.ucReply1 = new ucReply(this,
                        HelpNumber.ParseInt64(row["ID"]), HelpNumber.ParseInt64(row["NGUOI_GUI_ID"]),row["NGUOI_NHAN_ID"].ToString(),
                        Convert.ToDateTime(row["NGAY_GUI"]), row["NOI_DUNG"],
                      dsListFileC, "TEN_FILE", "NOI_DUNG",_TinhTrang);
                    this.ucReply1.AfterDeleteSuccessfully += new ucReply._AfterDeleteSuccessfully(ucReply1_AfterDeleteSuccessfully);
                    this.ucReply1.Anchor = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right;
                    this.ucReply1.Width = DefaultWidth;
                    this.flowLayoutPanel1.Controls.Add(this.ucReply1);
                }
            }
            #endregion
        }
        private void Load_Van_De()
        {
            DataTable dtVanDe = DABugProduct.Get_Bang_Van_De(_ID);
            this.Text = dtVanDe.Rows[0]["NAME"].ToString();
            DataTable Dt = Cac_Van_De_Lien_Quan(_ID);
            DataTable dtListFile = GetAllFile(_ID);
            DataRow[] Dr = new DataRow[1];
            if (dtVanDe.Rows.Count > 0)
            {
                Dr = dtVanDe.Select("1=1");
                DataSet dsListFile = new DataSet();
                dtListFile.DefaultView.RowFilter = string.Format("OBJECT_ID={0}", _ID);
                dsListFile.Tables.Add(dtListFile.DefaultView.ToTable());
                //Add issue 
                this.ucReply1 = new ucReplyIssue(this,
                    HelpNumber.ParseInt64(Dr[0]["ID"]), _NguoiGuiID,
                    Convert.ToDateTime(Dr[0]["NGAY_GUI"]), Dr[0]["MO_TA_BUG"],
                  dsListFile, "TEN_FILE", "NOI_DUNG", _TinhTrang, new string[] { this.Text, dtVanDe.Rows[0]["TEN_TINH_TRANG"].ToString() });
                this.ucReply1.AfterDeleteSuccessfully += new ucReplyIssue._AfterDeleteSuccessfully(ucReply1_AfterDeleteSuccessfully);
                this.ucReply1.Width = DefaultWidth;
                if (this.ucReply1.btnUpdate.Visible == true)
                    this.ucReply1.btnUpdate.Visible = !(Dt.Rows.Count > 0);
                this.ucReply1.Anchor = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right;
                this.flowLayoutPanel1.Controls.Add(this.ucReply1);
                //Add replies of issue
                foreach (DataRow row in Dt.Rows)
                {
                    DataSet dsListFileC = new DataSet();
                    dtListFile.DefaultView.RowFilter = string.Format("OBJECT_ID={0}", HelpNumber.ParseInt64(row["ID"]));
                    dsListFileC.Tables.Add(dtListFile.DefaultView.ToTable());

                    this.ucReply1 = new ucReplyIssue(this,
                        HelpNumber.ParseInt64(row["ID"]), HelpNumber.ParseInt64(row["NGUOI_GUI"]),
                        Convert.ToDateTime(row["NGAY_GUI"]), row["NOI_DUNG"],
                      dsListFileC, "TEN_FILE", "NOI_DUNG",_TinhTrang);

                    this.ucReply1.Anchor = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right;
                    this.ucReply1.Width = DefaultWidth;
                    this.flowLayoutPanel1.Controls.Add(this.ucReply1);
                }
            }
            #endregion
        }