Exemplo n.º 1
0
 void frm_AfterAddIssueSuccessfully(DOBugProduct doBugProduct)
 {
     DataRow dr = gridViewMaster.GetDataRow(gridViewMaster.FocusedRowHandle);
     dr["LOAI_VAN_DE"] = doBugProduct.LOAI_VAN_DE;
     dr["NGUOI_GUI"] = doBugProduct.NGUOI_GUI;
     dr["NGUOI_NHAN"] = doBugProduct.NGUOI_NHAN;
     dr["TEN_NGUOI_NHAN"] = GetNameOfRecipient(doBugProduct.NGUOI_NHAN);
     dr["NGAY_GUI"] = doBugProduct.NGAY_GUI;
     dr["TINH_TRANG"] = doBugProduct.TINH_TRANG;
     dr["NAME"] = doBugProduct.NAME;
     gridViewMaster.RefreshData();
 }
Exemplo n.º 2
0
 private void _LoadDataForm()
 {
     lblNguoiGui.Text = DMFWNhanVien.GetFullName(FrameworkParams.currentUser.employee_id);
     this.lblThoiGianGui.Text = HelpDB.getDatabase().GetSystemCurrentDateTime().ToString(PLConst.FORMAT_DATETIME_STRING);
     plMultiChoiceFiles1._Init(IsAdd);
     plMultiChoiceFiles1._DataSource = DALuuTruTapTin.Instance.GetTapTinByObjectID(-2, 9);
     if (IsAdd == true && AfterAddReplyIssueSuccessfully == null)
     {
         Tinh_trang._setSelectedID(1);
         doBugProduct = DABugProduct.Instance.LoadAll(-2);
     }
     else
     {
         doBugProduct = DABugProduct.Instance.LoadAll(this._ID_Bug);
         this.loaiVanDe._setSelectedID(doBugProduct.LOAI_VAN_DE);
         this.Tinh_trang._setSelectedID(doBugProduct.GetTINH_TRANG());
         memoVanDe.Text = doBugProduct.NAME;
         btnSave.Visible = !(IsAdd == null);
         //Not load this information when Reply Issue
         if (AfterAddReplyIssueSuccessfully == null && AfterUpdateReplyIssueSuccessfully == null)
         {
             this.lblNguoiGui.Text = DMFWNhanVien.GetFullName(doBugProduct.NGUOI_GUI);
             this.lblThoiGianGui.Text = doBugProduct.NGAY_GUI.ToString(PLConst.FORMAT_DATETIME_STRING);
             this.NoiDung._setValue(doBugProduct.MO_TA_BUG);
             this.NguoiNhan._SelectedStrIDs = doBugProduct.NGUOI_NHAN;
             this.NguoiNhanEmail._SelectedStrIDs = doBugProduct.NGUOI_NHAN;
             this.NoiDung._setValue(doBugProduct.MO_TA_BUG);
             plMultiChoiceFiles1._DataSource = DALuuTruTapTin.Instance.GetTapTinByObjectID(_ID_Bug, 9);
             if (Tinh_trang._getSelectedID() == 3 || DAReplyBugProduct.HasReplyIssue(doBugProduct.ID)) btnSave.Visible = false;
             else btnSave.Visible = true;
         }
         else if(AfterUpdateReplyIssueSuccessfully != null){
             if(_ID_Bug_Reply > 0){
                 doReplyBugProduct = DAReplyBugProduct.Instance.LoadAll(_ID_Bug_Reply);
                 this.lblNguoiGui.Text = DMFWNhanVien.GetFullName(doReplyBugProduct.NGUOI_GUI);
                 this.lblThoiGianGui.Text = doReplyBugProduct.NGAY_GUI.ToString();
                 this.NoiDung._setValue(doReplyBugProduct.NOI_DUNG);
                 this.NguoiNhan._SelectedStrIDs = doReplyBugProduct.NGUOI_NHAN;
                 this.NguoiNhanEmail._SelectedStrIDs = doReplyBugProduct.NGUOI_NHAN;
                 this.NoiDung._setValue(doReplyBugProduct.NOI_DUNG);
                 plMultiChoiceFiles1._DataSource = DALuuTruTapTin.Instance.GetTapTinByObjectID(_ID_Bug_Reply, 9);
             }
         }
     }
 }