public void TaoKiemSatVienTruyTo()
        {
            JObject json       = JsonDataFromWs.Instance(id).get();//    null;//
            dynamic jsonObject = new JObject();

            //jsonObject["ksvHoTen"] = json["ThuLyTruyTo"]["KiemSatVienDieuTraVien"][0]["HoTen"];
            //jsonObject["ksvHoTen"] = "Phan";
            //jsonObject["ksvSoQuyetDinh"] = json["ThuLyTruyTo"]["KiemSatVienDieuTraVien"][0]["SoQuyetDinh"];
            //jsonObject["ksvNgayPhanCong"] = json["ThuLyTruyTo"]["KiemSatVienDieuTraVien"][0]["NgayPhanCong"];
            //jsonObject["ksvNgayKetThuc"] = json["ThuLyTruyTo"]["KiemSatVienDieuTraVien"][0]["NgayKetThuc"];

            //PhanCongKiemSatVien phanCongKiemSatVien = new PhanCongKiemSatVien();
            //phanCongKiemSatVien.driver = chromeDriver;
            //phanCongKiemSatVien.FillForm(jsonObject);

            PhanCongKiemSatVien phanCongKiemSatVien = new PhanCongKiemSatVien();

            phanCongKiemSatVien.driver = chromeDriver;
            if (json["ThuLyTruyTo"].ToString() != "")
            {
                JToken[] tksvtt = json["ThuLyTruyTo"]["KiemSatVienDieuTraVien"].ToArray();

                foreach (JToken jTokenI in tksvtt)
                {
                    jsonObject["ksvHoTen"] = jTokenI["HoTen"] != null ? jTokenI["HoTen"] : "Phan";
                    //Khong co "Pham Thi Ngat"
                    //jsonObject["ksvHoTen"] = "Phạm";
                    jsonObject["ksvSoQuyetDinh"]  = jTokenI["SoQuyetDinh"];
                    jsonObject["ksvNgayPhanCong"] = jTokenI["NgayPhanCong"];
                    jsonObject["ksvNgayKetThuc"]  = jTokenI["NgayKetThuc"];

                    phanCongKiemSatVien.FillForm(jsonObject);
                }
            }
        }
        public void TaoQuyetDinhVuAnTruyTo()
        {
            JObject       json          = JsonDataFromWs.Instance(id).get();
            QuyetDinhVuAn quyetDinhVuAn = new QuyetDinhVuAn();

            quyetDinhVuAn.driver = chromeDriver;
            quyetDinhVuAn.FillFormTruyTo(json);
        }
        public void TaoDieuLuatKhoiTo()
        {
            JObject json       = JsonDataFromWs.Instance(id).get();//    null;//
            dynamic jsonObject = new JObject();

            jsonObject = json["DieuLuatKhoiToVuAn"][0];
            DieuLuatKhoiTo dieuLuatKhoiTo = new DieuLuatKhoiTo();

            dieuLuatKhoiTo.driver = chromeDriver;
            dieuLuatKhoiTo.FillForm(jsonObject);
        }
        public void TaoGiaoNhanHoSo()
        {
            JObject json       = JsonDataFromWs.Instance(id).get();//    null;//
            dynamic jsonObject = new JObject();

            if (json["GiaoNhanHoSoKSDT"].ToString() != "")
            {
                jsonObject["hsNgayGiaoNhan"] = json["GiaoNhanHoSoKSDT"]["NgayGiaoNhan"] != null ? json["GiaoNhanHoSoKSDT"]["NgayGiaoNhan"] : "01/01/2019";
                jsonObject["hsNguoiGiao"]    = json["GiaoNhanHoSoKSDT"]["NguoiGiao"];
                jsonObject["hsNguoiNhan"]    = json["GiaoNhanHoSoKSDT"]["NguoiNhan"];
                jsonObject["hsDonViNhan"]    = json["GiaoNhanHoSoKSDT"]["DonViNhan"];
                GiaoNhanHoSo giaoNhanHoSo = new GiaoNhanHoSo();
                giaoNhanHoSo.driver = chromeDriver;
                giaoNhanHoSo.FillForm(jsonObject);
            }
        }
        public void taoThuLy()
        {
            JObject json       = JsonDataFromWs.Instance(id).get();//    null;//
            dynamic jsonObject = new JObject();

            jsonObject["loaiThuLy"]           = json["ThuLyKhoiTo"]["LoaiThuLy"];
            jsonObject["thuLySo"]             = json["ThuLyKhoiTo"]["SoThuLy"];
            jsonObject["ngayThuLy"]           = json["ThuLyKhoiTo"]["NgayThuLy"];
            jsonObject["thoiHanThuLyTuNgay"]  = json["ThuLyKhoiTo"]["ThuTyTuNgay"];
            jsonObject["thoiHanThuLyDenNgay"] = json["ThuLyKhoiTo"]["ThuLyDenNgay"];
            jsonObject[""]       = json["ThuLyKhoiTo"]["GhiChu"] != null ? json["ThuLyKhoiTo"]["GhiChu"] : "null";
            jsonObject["anDiem"] = json["ThuLyKhoiTo"]["LoaiAnDiem"];
            jsonObject["luatSu"] = json["ThuLyKhoiTo"]["CoLuatSuThamGia"];
            ThuLyPopUp thuLyPopUp = new ThuLyPopUp();

            thuLyPopUp.driver = chromeDriver;
            thuLyPopUp.DienThongTin(jsonObject);
        }
        public void TaoCaoTrang()
        {
            JObject json       = JsonDataFromWs.Instance(id).get();
            dynamic jsonObject = new JObject();

            if (json["CaoTrang"].ToString() != "")
            {
                jsonObject["banCaoTrangSo"]     = json["CaoTrang"]["SoBanCaoTrang"];
                jsonObject["ngayVksRaCaoTrang"] = json["CaoTrang"]["NgayVKSRaCaoTrang"];
                jsonObject["ngayHieuLuc"]       = json["CaoTrang"]["NgayHieuLuc"];
                jsonObject["noiDung"]           = json["CaoTrang"]["Noidung"] == null ? json["CaoTrang"]["Noidung"] : "null";
                jsonObject["nguoiKy"]           = json["CaoTrang"]["TenNguoiKy"] == null ? json["CaoTrang"]["TenNguoiKy"] : "null";
                jsonObject["chucVu"]            = json["CaoTrang"]["ChucVu"] == null ? json["CaoTrang"]["ChucVu"] : "null";
                jsonObject["yKien"]             = json["CaoTrang"]["YKienVKS"] == null ? json["CaoTrang"]["YKienVKS"] : "null";
                CaoTrang caoTrang = new CaoTrang();
                caoTrang.driver = chromeDriver;
                caoTrang.FillForm(jsonObject);
            }
        }
        public void TaoKetLuanDieuTra()
        {
            JObject json       = JsonDataFromWs.Instance(id).get();//    null;//
            dynamic jsonObject = new JObject();
            string  x          = json["ThuLyKhoiTo"]["KetLuanDieuTra"].ToString();

            if (json["ThuLyKhoiTo"]["KetLuanDieuTra"].ToString() != "")
            {
                jsonObject["klSoKetLuanDieuTra"] = json["ThuLyKhoiTo"]["KetLuanDieuTra"]["SoKetLuanDieuTra"] != null ? json["ThuLyKhoiTo"]["KetLuanDieuTra"]["SoKetLuanDieuTra"] : 0;
                jsonObject["klNgayRaKetLuan"]    = json["ThuLyKhoiTo"]["KetLuanDieuTra"]["NgayRaKetLuan"];
                jsonObject["klNgayHieuLuc"]      = json["ThuLyKhoiTo"]["KetLuanDieuTra"]["NgayHieuLuc"];
                jsonObject["klNoiDung"]          = json["ThuLyKhoiTo"]["KetLuanDieuTra"]["NoiDung"];
                jsonObject["klNguoiKy"]          = !string.IsNullOrWhiteSpace(json["ThuLyKhoiTo"]["KetLuanDieuTra"]["NguoiKy"].ToString()) ? json["ThuLyKhoiTo"]["KetLuanDieuTra"]["NguoiKy"] : "null";
                jsonObject["klChucVu"]           = !string.IsNullOrWhiteSpace(json["ThuLyKhoiTo"]["KetLuanDieuTra"]["ChucVu"].ToString()) ? json["ThuLyKhoiTo"]["KetLuanDieuTra"]["ChucVu"] : "null";
                //jsonObject["klNguoiKy"] = "Nguyen";
                jsonObject["klYKienCuaVKS"] = json["ThuLyKhoiTo"]["KetLuanDieuTra"]["YKienCuaVKS"] != null ? json["ThuLyKhoiTo"]["KetLuanDieuTra"]["YKienCuaVKS"] : "y kien";
                KetLuanDieuTra ketLuanDieuTra = new KetLuanDieuTra();
                ketLuanDieuTra.driver = chromeDriver;
                ketLuanDieuTra.FillForm(jsonObject);
            }
        }
        public void TaoQuyetDinhBiCanTruyTo()
        {
            QuyetDinhBiCan quyetDinhBiCan = new QuyetDinhBiCan();

            quyetDinhBiCan.driver = chromeDriver;


            JObject objs       = JsonDataFromWs.Instance(id).get();//    null;//
            dynamic jsonObject = new JObject();

            if (objs["ThuLyTruyTo"].ToString() != "")
            {
                JToken[] ts = objs["ThuLyTruyTo"]["QuyetDinhBiCan"].ToArray();

                foreach (JToken jTokenI in ts)
                {
                    jsonObject["qdBcSoQuyetDinh"]     = jTokenI["SoQuyetDinh"] != null ? jTokenI["SoQuyetDinh"] : "0";
                    jsonObject["qdBcNgayRaQuyetDinh"] = jTokenI["NgayRaQuyetDinh"];
                    jsonObject["qdBcHieuLuc"]         = jTokenI["HieuLucTuNgay"];
                    jsonObject[""] = jTokenI["HieuLucDenNgay"];
                    jsonObject["qdBcTenCoQuan"] = jTokenI["TenCoQuan"];
                    jsonObject["qdBcTenDonVi"]  = jTokenI["TenDonVi"];
                    jsonObject["qdBcTenBiCan"]  = jTokenI["HoTen"];
                    jsonObject["qdBcTenloai"]   = jTokenI["Tenloai"];
                    jsonObject[""] = jTokenI["NoiDungLyDo"];
                    jsonObject[""] = jTokenI["ThoiHanThucTe"];


                    jsonObject["qdBcTenNguoiKy"] = jTokenI
                                                   ["TenNguoiKy"] != null ? jTokenI["TenNguoiKy"] : "null";
                    jsonObject["qdBcTenChucVu"] = jTokenI
                                                  ["TenChucVu"] != null ? jTokenI["TenChucVu"] : "null";


                    jsonObject["qdBcNoiDung"] = jTokenI["NoiDung"];

                    quyetDinhBiCan.FillForm(jsonObject);
                }
            }
        }
        public void TaoQuyetDinhBiCan()
        {
            // Bị can - Quyết định bị can  - thụ lý khởi tố
            JObject json       = JsonDataFromWs.Instance(id).get();//    null;//
            dynamic jsonObject = new JObject();

            QuyetDinhBiCan quyetDinhBiCan = new QuyetDinhBiCan();

            quyetDinhBiCan.driver = chromeDriver;
            //quyetDinhBiCan.FillForm(jsonObject);

            JToken[] ts = json["ThuLyKhoiTo"]["QuyetDinhBiCan"].ToArray();
            //ts = objs["ThuLyTruyTo"]["QuyetDinhBiCan"].ToArray();

            foreach (JToken jTokenI in ts)
            {
                jsonObject["qdBcSoQuyetDinh"]     = jTokenI["SoQuyetDinh"] != null ? jTokenI["SoQuyetDinh"] : "0";
                jsonObject["qdBcNgayRaQuyetDinh"] = jTokenI["NgayRaQuyetDinh"];
                jsonObject["qdBcHieuLuc"]         = jTokenI["HieuLucTuNgay"];
                jsonObject[""] = jTokenI["HieuLucDenNgay"];
                jsonObject["qdBcTenCoQuan"] = jTokenI["TenCoQuan"];
                jsonObject["qdBcTenDonVi"]  = jTokenI["TenDonVi"];
                jsonObject["qdBcTenBiCan"]  = jTokenI["HoTen"];
                jsonObject["qdBcTenloai"]   = jTokenI["Tenloai"];
                jsonObject[""] = jTokenI["NoiDungLyDo"];
                jsonObject[""] = jTokenI["ThoiHanThucTe"];


                jsonObject["qdBcTenNguoiKy"] = jTokenI
                                               ["TenNguoiKy"] != null ? jTokenI["TenNguoiKy"] : "null";
                jsonObject["qdBcTenChucVu"] = jTokenI
                                              ["TenChucVu"] != null ? jTokenI["TenChucVu"] : "null";


                jsonObject["qdBcNoiDung"] = jTokenI["NoiDung"];

                quyetDinhBiCan.FillForm(jsonObject);
            }
        }
        public void taoKiemSatVien()
        {
            JObject json       = JsonDataFromWs.Instance(id).get();//    null;//
            dynamic jsonObject = new JObject();

            //jsonObject["ksvHoTen"] = json["ThuLyTruyTo"]["KiemSatVienDieuTraVien"][0]["HoTen"];
            //jsonObject["ksvHoTen"] = "Phan";
            //jsonObject["ksvSoQuyetDinh"] = json["ThuLyKhoiTo"]["KiemSatVienDieuTraVien"][0]["SoQuyetDinh"];
            //jsonObject["ksvNgayPhanCong"] = json["ThuLyKhoiTo"]["KiemSatVienDieuTraVien"][0]["NgayPhanCong"];
            //jsonObject["ksvNgayKetThuc"] = json["ThuLyKhoiTo"]["KiemSatVienDieuTraVien"][0]["NgayKetThuc"];

            PhanCongKiemSatVien phanCongKiemSatVien = new PhanCongKiemSatVien();

            phanCongKiemSatVien.driver = chromeDriver;
            //phanCongKiemSatVien.FillForm(jsonObject);

            //PhanCongKiemSatVien phanCongKiemSatVien = new PhanCongKiemSatVien();
            //phanCongKiemSatVien.driver = chromeDriver;


            JToken[] tksvtt = json["ThuLyKhoiTo"]["KiemSatVienDieuTraVien"].ToArray();

            foreach (JToken jTokenI in tksvtt)
            {
                //jsonObject["ksvHoTen"] = jTokenI["HoTen"] != null ? jTokenI["HoTen"] : "Phan";
                //(jTokenI["HoTen"] = "Phạm Thị Ngát") không có trong danh sách
                jsonObject["ksvHoTen"]        = jTokenI["HoTen"];
                jsonObject["ksvSoQuyetDinh"]  = jTokenI["SoQuyetDinh"];
                jsonObject["ksvNgayPhanCong"] = jTokenI["NgayPhanCong"];
                jsonObject["ksvNgayKetThuc"]  = jTokenI["NgayKetThuc"];
                //string temp = jTokenI["NgayKetThuc"].ToString();
                //Console.WriteLine(temp);

                phanCongKiemSatVien.FillForm(jsonObject);
            }
        }
Esempio n. 11
0
        public void Go()
        {
            JObject json       = JsonDataFromWs.Instance(id).get();//    null;//
            dynamic jsonObject = new JObject();


            //ChromeDriver chromeDriver = new ChromeDriver("C:/lqa/automationdotnet");
            ChromeDriver chromeDriver = new ChromeDriver(Application.StartupPath);

            chromeDriver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(20);
            LoginPage lp = new LoginPage();

            lp.driver = chromeDriver;
            lp.Come();

            jsonObject.username = "******";
            jsonObject.password = "******";

            lp.DangNhap(jsonObject);


            ///////Tạo mới vụ án///////Tạo mới vụ án///////Tạo mới vụ án///////
            /////++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
            KiemSatDieuTraTruyTo kiemSatDieuTraTruyTo = new KiemSatDieuTraTruyTo();

            kiemSatDieuTraTruyTo.driver = chromeDriver;
            kiemSatDieuTraTruyTo.Come();
            kiemSatDieuTraTruyTo.TimVuAn();

            //ThuLyPopUp thuLyPopUp = new ThuLyPopUp();
            //thuLyPopUp.driver = chromeDriver;
            //thuLyPopUp.DienThongTin(jsonObject);

            //jsonObject["ksvHoTen"] = json["ThuLyKhoiTo"]["QuyetDinhBiCan"][0]["HoTen"];
            //jsonObject["ksvSoQuyetDinh"] = json["ThuLyKhoiTo"]["QuyetDinhBiCan"][0]["SoQuyetDinh"];
            //jsonObject["ksvNgayPhanCong"] = json["ThuLyKhoiTo"]["QuyetDinhBiCan"][0]["NgayPhanCong"];
            //jsonObject["ksvNgayKetThuc"] = json["ThuLyKhoiTo"]["QuyetDinhBiCan"][0]["NgayKetThuc"];

            jsonObject["ksvHoTen"]        = json["ThuLyTruyTo"]["KiemSatVienDieuTraVien"][0]["HoTen"];
            jsonObject["ksvSoQuyetDinh"]  = json["ThuLyTruyTo"]["KiemSatVienDieuTraVien"][0]["SoQuyetDinh"];
            jsonObject["ksvNgayPhanCong"] = json["ThuLyTruyTo"]["KiemSatVienDieuTraVien"][0]["NgayPhanCong"];
            jsonObject["ksvNgayKetThuc"]  = json["ThuLyTruyTo"]["KiemSatVienDieuTraVien"][0]["NgayKetThuc"];

            //PhanCongKiemSatVien phanCongKiemSatVien = new PhanCongKiemSatVien();
            //phanCongKiemSatVien.driver = chromeDriver;
            //phanCongKiemSatVien.FillForm(jsonObject);

            // Bị can
            // Bị can - khởi tố bị can
            jsonObject["bcSoQuyetDinh"]     = json["BiCanHoSo"][0]["QDKhoiToBiCan"]["SoQuyetDinh"];
            jsonObject["bcNgayRaQuyetDinh"] = json["BiCanHoSo"][0]["QDKhoiToBiCan"]["NgayRaQuyetDinh"];
            jsonObject[""] = json["BiCanHoSo"][0]["QDKhoiToBiCan"]["TenCoQuan"];
            jsonObject[""] = json["BiCanHoSo"][0]["QDKhoiToBiCan"]["TenDonVi"];

            // Bị can - thông tin bị can
            jsonObject["bcHoTen"]       = json["BiCanHoSo"][0]["ThongTinBiCan"]["HoTen"];
            jsonObject["bcTenDanTocCT"] = json["BiCanHoSo"][0]["ThongTinBiCan"]["TenDanToc"];
            jsonObject[""]           = json["BiCanHoSo"][0]["ThongTinBiCan"]["TenQuocTich"];
            jsonObject[""]           = json["BiCanHoSo"][0]["ThongTinBiCan"]["SoCMT"];
            jsonObject[""]           = json["BiCanHoSo"][0]["ThongTinBiCan"]["NoiOHienTai"];
            jsonObject[""]           = json["BiCanHoSo"][0]["ThongTinBiCan"]["TenNgheNghiep"];
            jsonObject[""]           = json["BiCanHoSo"][0]["ThongTinBiCan"]["TenDangVien"];
            jsonObject[""]           = json["BiCanHoSo"][0]["ThongTinBiCan"]["LaBiCanDauVu"];
            jsonObject[""]           = json["BiCanHoSo"][0]["ThongTinBiCan"]["TenKhac"];
            jsonObject["bcNgaySinh"] = json["BiCanHoSo"][0]["ThongTinBiCan"]["NgaySinh"];
            jsonObject[""]           = json["BiCanHoSo"][0]["ThongTinBiCan"]["GioiTinh"];
            jsonObject[""]           = json["BiCanHoSo"][0]["ThongTinBiCan"]["TenHocVan"];
            jsonObject[""]           = json["BiCanHoSo"][0]["ThongTinBiCan"]["TenChucVuChinhQuyen"];
            jsonObject[""]           = json["BiCanHoSo"][0]["ThongTinBiCan"]["SoTienAn"];
            jsonObject[""]           = json["BiCanHoSo"][0]["ThongTinBiCan"]["SoTienSu"];
            jsonObject[""]           = json["BiCanHoSo"][0]["ThongTinBiCan"]["LaCanBoCongNhanVienChuc"];
            jsonObject[""]           = json["BiCanHoSo"][0]["ThongTinBiCan"]["LaCoNguoiBaoChua"];
            jsonObject[""]           = json["BiCanHoSo"][0]["ThongTinBiCan"]["LaDoiTuongLangThang"];
            jsonObject[""]           = json["BiCanHoSo"][0]["ThongTinBiCan"]["LaHanhNgheTonGiao"];
            jsonObject[""]           = json["BiCanHoSo"][0]["ThongTinBiCan"]["LaHocSinhTruongChuyenNghiep"];
            jsonObject[""]           = json["BiCanHoSo"][0]["ThongTinBiCan"]["LaLuuManh"];
            jsonObject[""]           = json["BiCanHoSo"][0]["ThongTinBiCan"]["LaNghienHut"];
            jsonObject[""]           = json["BiCanHoSo"][0]["ThongTinBiCan"]["LaTapTrungCaiTaoTuHinhSu"];
            jsonObject[""]           = json["BiCanHoSo"][0]["ThongTinBiCan"]["LaThuongBinhBoDoiPhucVien"];

            //BiCan biCan = new BiCan();
            //biCan.driver = chromeDriver;
            //biCan.DienThongTin(jsonObject);

            // Bị can - Quyết định bị can  - thụ lý khởi tố
            jsonObject[""] = json["ThuLyKhoiTo"]["QuyetDinhBiCan"][0]["HoTen"];
            jsonObject["qdBcSoQuyetDinh"] = json["ThuLyKhoiTo"]["QuyetDinhBiCan"][0]
                                            ["SoQuyetDinh"] != null ? json["ThuLyKhoiTo"]["QuyetDinhBiCan"][0]["SoQuyetDinh"] : "0";
            jsonObject["qdBcNgayRaQuyetDinh"] = json["ThuLyKhoiTo"]["QuyetDinhBiCan"][0]
                                                ["NgayRaQuyetDinh"] != null ? json["ThuLyKhoiTo"]["QuyetDinhBiCan"][0]["NgayRaQuyetDinh"] : "01/01/2019";
            jsonObject["qdBcHieuLuc"]   = json["ThuLyKhoiTo"]["QuyetDinhBiCan"][0]["HieuLucTuNgay"];
            jsonObject[""]              = json["ThuLyKhoiTo"]["QuyetDinhBiCan"][0]["HieuLucDenNgay"];
            jsonObject[""]              = json["ThuLyKhoiTo"]["QuyetDinhBiCan"][0]["TenCoQuan"];
            jsonObject[""]              = json["ThuLyKhoiTo"]["QuyetDinhBiCan"][0]["TenDonVi"];
            jsonObject["qdBcTenloaiCT"] = json["ThuLyKhoiTo"]["QuyetDinhBiCan"][0]["Tenloai"];
            jsonObject[""]              = json["ThuLyKhoiTo"]["QuyetDinhBiCan"][0]["NoiDungLyDo"];
            jsonObject[""]              = json["ThuLyKhoiTo"]["QuyetDinhBiCan"][0]["ThoiHanThucTe"];


            jsonObject["qdBcTenNguoiKy"] = json["ThuLyKhoiTo"]["QuyetDinhBiCan"][0]
                                           ["TenNguoiKy"] != null ? json["ThuLyKhoiTo"]["QuyetDinhBiCan"][0]["TenNguoiKy"] : "null";
            jsonObject["qdBcTenChucVu"] = json["ThuLyKhoiTo"]["QuyetDinhBiCan"][0]
                                          ["TenChucVu"] != null ? json["ThuLyKhoiTo"]["QuyetDinhBiCan"][0]["TenChucVu"] : "null";

            jsonObject["qdBcTenNguoiKy"] = jsonObject["qdBcTenChucVu"] = "aa";

            string g = jsonObject["qdBcTenNguoiKy"].ToString();

            g = jsonObject["qdBcTenChucVu"].ToString();


            jsonObject[""] = json["ThuLyKhoiTo"]["QuyetDinhBiCan"][0]["NoiDung"];

            //QuyetDinhBiCan quyetDinhBiCan = new QuyetDinhBiCan();
            //quyetDinhBiCan.driver = chromeDriver;
            //quyetDinhBiCan.FillForm(jsonObject);

            jsonObject["klSoKetLuanDieuTra"] = json["ThuLyKhoiTo"]["SoKetLuanDieuTra"] != null ? json["ThuLyKhoiTo"]["SoKetLuanDieuTra"] : 0;
            jsonObject["klNgayRaKetLuan"]    = json["ThuLyKhoiTo"]["NgayRaKetLuan"] != null ? json["ThuLyKhoiTo"]["NgayRaKetLuan"] : "01/01/2019";
            jsonObject["klNgayHieuLuc"]      = json["ThuLyKhoiTo"]["NgayHieuLuc"];
            jsonObject["klNoiDung"]          = json["ThuLyKhoiTo"]["NoiDung"];
            jsonObject["klNguoiKy"]          = json["ThuLyKhoiTo"]["NguoiKy"] != null ? json["ThuLyKhoiTo"]["NguoiKy"] : "null";
            jsonObject["klChucVu"]           = json["ThuLyKhoiTo"]["ChucVu"] != null ? json["ThuLyKhoiTo"]["ChucVu"] : "null";
            jsonObject["klNguoiKy"]          = "Nguyen";
            jsonObject["klNguoiKy"]          = "Chuc";
            jsonObject["klYKienCuaVKS"]      = json["ThuLyKhoiTo"]["YKienCuaVKS"] = "y kien";
            //KetLuanDieuTra ketLuanDieuTra = new KetLuanDieuTra();
            //ketLuanDieuTra.driver = chromeDriver;
            //ketLuanDieuTra.FillForm(jsonObject);


            jsonObject["hsNgayGiaoNhan"] = json["GiaoNhanHoSoKSDT"]["NgayGiaoNhan"] != null ? json["GiaoNhanHoSoKSDT"]["NgayGiaoNhan"] : "01/01/2019";
            jsonObject["hsNguoiGiao"]    = json["GiaoNhanHoSoKSDT"]["NguoiGiao"];
            jsonObject["hsNguoiNhan"]    = json["GiaoNhanHoSoKSDT"]["NguoiNhan"];
            jsonObject["hsDonViNhan"]    = json["GiaoNhanHoSoKSDT"]["DonViNhan"];

            GiaoNhanHoSo giaoNhanHoSo = new GiaoNhanHoSo();

            giaoNhanHoSo.driver = chromeDriver;
            giaoNhanHoSo.FillForm(jsonObject);

            chromeDriver.Quit();
        }
        public void Go()
        {
            JObject json       = JsonDataFromWs.Instance(id).get();//    null;//
            dynamic jsonObject = new JObject();

            jsonObject["quyetĐinhKhoiToVuAnSo"] = json["QuyetDinhKhoiTo"]["SoQuyetDinh"];
            chromeDriver = new ChromeDriver(Application.StartupPath);
            //ChromeDriver chromeDriver = new ChromeDriver("C:/lqa/automationdotnet");
            chromeDriver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(20);
            LoginPage lp = new LoginPage();

            lp.driver = chromeDriver;
            lp.Come();

            jsonObject.username = username;
            jsonObject.password = password;

            lp.DangNhap(jsonObject);


            ///////Tạo mới vụ án///////Tạo mới vụ án///////Tạo mới vụ án///////
            /////++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
            KiemSatDieuTraTruyTo kiemSatDieuTraTruyTo = new KiemSatDieuTraTruyTo();

            kiemSatDieuTraTruyTo.driver = chromeDriver;
            kiemSatDieuTraTruyTo.Come();
            //kiemSatDieuTraTruyTo.TimVuAn();

            kiemSatDieuTraTruyTo.AddVuAn();
            TaoMoiVuAnPopUp taoMoiVuAnPopUp = new TaoMoiVuAnPopUp();

            taoMoiVuAnPopUp.driver = chromeDriver;
            jsonObject["quyetĐinhKhoiToVuAnSo"] = json["QuyetDinhKhoiTo"]["SoQuyetDinh"];
            jsonObject["dieuLuatVu"]            = json["ToiDanh"]["NoiDung"];
            jsonObject["donViRaQuyetDinh"]      = json["QuyetDinhKhoiTo"]["TenDonVi"];
            jsonObject["tenVuAn"]             = json["TenVuAn"];
            jsonObject["maVuCuaToaAn"]        = json["MaSoVuAn"];
            jsonObject["loaiToiPham"]         = json["LoaiToiPham"];
            jsonObject["txtNgayXayRa"]        = json["NgayVuAn"];
            jsonObject["noiXayRa"]            = json["NoiXayRa"];
            jsonObject["chiTietNoiXayRa"]     = json["NoiXayRa"];
            jsonObject["txtNgayQDKhoiToVuAn"] = json["QuyetDinhKhoiTo"]["NgayRaQuyetDinh"];
            jsonObject["ghiChu"]             = json["TomTatSuKienPhamToi"];
            jsonObject["DieuLuatKhoiToVuAn"] = json["DieuLuatKhoiToVuAn"];
            taoMoiVuAnPopUp.DienThongTin(jsonObject);

            taoThuLy();
            taoKiemSatVien();

            TaoBiCan();
            TaoQuyetDinhBiCan();
            TaoQuyetDinhVuAn();
            TaoKetLuanDieuTra();
            TaoGiaoNhanHoSo();

            TaoKiemSatVienTruyTo();
            TaoQuyetDinhBiCanTruyTo();
            TaoQuyetDinhVuAnTruyTo();
            TaoCaoTrang();
            TaoGiaoNhanHoSoTruyTo();
            chromeDriver.Quit();
        }
        public void TaoBiCan()
        {
            JObject json       = JsonDataFromWs.Instance(id).get();//    null;//
            dynamic jsonObject = new JObject();

            BiCan biCan = new BiCan();

            biCan.driver = chromeDriver;
            JToken[] taoBiCan = json["BiCanHoSo"].ToArray();

            foreach (JToken jTokenI in taoBiCan)
            {
                jsonObject["bcSoQuyetDinh"]     = jTokenI["QDKhoiToBiCan"]["SoQuyetDinh"];
                jsonObject["bcNgayRaQuyetDinh"] = jTokenI["QDKhoiToBiCan"]["NgayRaQuyetDinh"];
                jsonObject["bcTenCoQuan"]       = jTokenI["QDKhoiToBiCan"]["TenCoQuan"];
                jsonObject["bcTenDonVi"]        = jTokenI["QDKhoiToBiCan"]["TenDonVi"];

                // Bị can - thông tin bị can
                jsonObject["bcHoTen"]                       = jTokenI["ThongTinBiCan"]["HoTen"];
                jsonObject["bcTenDanToc"]                   = jTokenI["ThongTinBiCan"]["TenDanToc"];
                jsonObject["bcTenQuocTich"]                 = jTokenI["ThongTinBiCan"]["TenQuocTich"];
                jsonObject["bcCMND"]                        = jTokenI["ThongTinBiCan"]["SoCMT"] != null ? jTokenI["ThongTinBiCan"]["SoCMT"] : "null";
                jsonObject["bcNoiOHienTai"]                 = jTokenI["ThongTinBiCan"]["NoiOHienTai"] != null ? jTokenI["ThongTinBiCan"]["NoiOHienTai"] : "null";
                jsonObject["bcTenNgheNghiep"]               = jTokenI["ThongTinBiCan"]["TenNgheNghiep"];
                jsonObject["bcTenDangVien"]                 = jTokenI["ThongTinBiCan"]["TenDangVien"];
                jsonObject["bcLaBiCanDauVu"]                = jTokenI["ThongTinBiCan"]["LaBiCanDauVu"];
                jsonObject["bcTenKhac"]                     = jTokenI["ThongTinBiCan"]["TenKhac"];
                jsonObject["bcNgaySinh"]                    = jTokenI["ThongTinBiCan"]["NgaySinh"];
                jsonObject["bcGioiTinh"]                    = jTokenI["ThongTinBiCan"]["GioiTinh"];
                jsonObject["bcTenHocVan"]                   = jTokenI["ThongTinBiCan"]["TenHocVan"];
                jsonObject["bcTenTonGiao"]                  = jTokenI["ThongTinBiCan"]["TenTonGiao"];
                jsonObject["bcTenChucVu"]                   = jTokenI["ThongTinBiCan"]["TenChucVuChinhQuyen"];
                jsonObject["bcSoTienAn"]                    = jTokenI["ThongTinBiCan"]["SoTienAn"] == null? 0 : jTokenI["ThongTinBiCan"]["SoTienAn"];
                jsonObject["bcSoTienSu"]                    = jTokenI["ThongTinBiCan"]["SoTienSu"] == null? 0 : jTokenI["ThongTinBiCan"]["SoTienSu"];
                jsonObject["bcNoiOHienTai"]                 = jTokenI["ThongTinBiCan"]["NoiOHienTai"];
                jsonObject["bcLaCanBoCongNhanVienChuc"]     = jTokenI["ThongTinBiCan"]["LaCanBoCongNhanVienChuc"];
                jsonObject["bcLaNgheNghiepKhongOnDinh"]     = jTokenI["ThongTinBiCan"]["LaNgheNghiepKhongOnDinh"];
                jsonObject["bcLaCoNguoiBaoChua"]            = jTokenI["ThongTinBiCan"]["LaCoNguoiBaoChua"];
                jsonObject["bcLaDoiTuongLangThang"]         = jTokenI["ThongTinBiCan"]["LaDoiTuongLangThang"];
                jsonObject["bcLaHanhNgheTonGiao"]           = jTokenI["ThongTinBiCan"]["LaHanhNgheTonGiao"];
                jsonObject["bcLaHocSinhTruongChuyenNghiep"] = jTokenI["ThongTinBiCan"]["LaHocSinhTruongChuyenNghiep"];
                jsonObject["bcLaLuuManh"]                   = jTokenI["ThongTinBiCan"]["LaLuuManh"];
                jsonObject["bcLaNghienHut"]                 = jTokenI["ThongTinBiCan"]["LaNghienHut"];
                jsonObject["bcLaTapTrungCaiTaoTuHinhSu"]    = jTokenI["ThongTinBiCan"]["LaTapTrungCaiTaoTuHinhSu"];
                jsonObject["bcLaThuongBinhBoDoiPhucVien"]   = jTokenI["ThongTinBiCan"]["LaThuongBinhBoDoiPhucVien"];
                jsonObject["DieuLuatKhoiTo"]                = jTokenI["DieuLuatKhoiTo"];

                biCan.DienThongTin(jsonObject);
            }


            //jsonObject["bcSoQuyetDinh"] = jTokenI["QDKhoiToBiCan"]["SoQuyetDinh"];
            //jsonObject["bcNgayRaQuyetDinh"] = jTokenI["QDKhoiToBiCan"]["NgayRaQuyetDinh"];
            //jsonObject[""] = jTokenI["QDKhoiToBiCan"]["TenCoQuan"];
            //jsonObject[""] = jTokenI["QDKhoiToBiCan"]["TenDonVi"];

            //// Bị can - thông tin bị can
            //jsonObject["bcHoTen"] = jTokenI["ThongTinBiCan"]["HoTen"];
            //jsonObject["bcTenDanTocCT"] = jTokenI["ThongTinBiCan"]["TenDanToc"];
            //jsonObject[""] = jTokenI["ThongTinBiCan"]["TenQuocTich"];
            //jsonObject[""] = jTokenI["ThongTinBiCan"]["SoCMT"];
            //jsonObject[""] = jTokenI["ThongTinBiCan"]["NoiOHienTai"];
            //jsonObject[""] = jTokenI["ThongTinBiCan"]["TenNgheNghiep"];
            //jsonObject[""] = jTokenI["ThongTinBiCan"]["TenDangVien"];
            //jsonObject[""] = jTokenI["ThongTinBiCan"]["LaBiCanDauVu"];
            //jsonObject[""] = jTokenI["ThongTinBiCan"]["TenKhac"];
            //jsonObject["bcNgaySinh"] = jTokenI["ThongTinBiCan"]["NgaySinh"];
            //jsonObject[""] = jTokenI["ThongTinBiCan"]["GioiTinh"];
            //jsonObject[""] = jTokenI["ThongTinBiCan"]["TenHocVan"];
            //jsonObject[""] = jTokenI["ThongTinBiCan"]["TenChucVuChinhQuyen"];
            //jsonObject[""] = jTokenI["ThongTinBiCan"]["SoTienAn"];
            //jsonObject[""] = jTokenI["ThongTinBiCan"]["SoTienSu"];
            //jsonObject[""] = jTokenI["ThongTinBiCan"]["LaCanBoCongNhanVienChuc"];
            //jsonObject[""] = jTokenI["ThongTinBiCan"]["LaCoNguoiBaoChua"];
            //jsonObject[""] = jTokenI["ThongTinBiCan"]["LaDoiTuongLangThang"];
            //jsonObject[""] = jTokenI["ThongTinBiCan"]["LaHanhNgheTonGiao"];
            //jsonObject[""] = jTokenI["ThongTinBiCan"]["LaHocSinhTruongChuyenNghiep"];
            //jsonObject[""] = jTokenI["ThongTinBiCan"]["LaLuuManh"];
            //jsonObject[""] = jTokenI["ThongTinBiCan"]["LaNghienHut"];
            //jsonObject[""] = jTokenI["ThongTinBiCan"]["LaTapTrungCaiTaoTuHinhSu"];
            //jsonObject[""] = jTokenI["ThongTinBiCan"]["LaThuongBinhBoDoiPhucVien"];

            //BiCan biCan = new BiCan();
            //biCan.driver = chromeDriver;
            //biCan.DienThongTin(jsonObject);
        }
Esempio n. 14
0
        public void Go()
        {
            //r.Text += "Go\n";
            //ChromeDriver chromeDriver = new ChromeDriver("C:/lqa/automationdotnet");
            //ChromeDriver chromeDriver = new ChromeDriver("D:/chromedriver_win32");
            ChromeDriver chromeDriver = new ChromeDriver(Application.StartupPath);

            chromeDriver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(20);
            // r.Text += "new ChromeDriver\n";
            LoginPage lp = new LoginPage();

            lp.driver = chromeDriver;
            //lp.r = r;
            lp.Come();

            JObject json       = JsonDataFromWs.Instance(id).get();
            dynamic jsonObject = new JObject();

            jsonObject.username = "******";
            jsonObject.password = "******";

            lp.DangNhap(jsonObject);

            KiemSatDieuTraTruyTo kiemSatDieuTraTruyTo = new KiemSatDieuTraTruyTo();

            kiemSatDieuTraTruyTo.driver = chromeDriver;

            //g3.r = r;
            kiemSatDieuTraTruyTo.Come();



            //dynamic obj = new JObject();
            //obj["soQuyetDinhKhoiTo"] = 1;
            //obj["ngayBatDauQDKhoiTo"] = 1;
            //obj["coQuanraQD"] = 1;
            //obj["coQuanRaQDtxtSearch"] = "Công an";
            //obj["ngayKetThucQDKhoiTo"] = 1;
            //obj["loaiToiPham"] = 1;
            //obj["ngayBatDau"] = 1;
            //obj["ngaySinhTu"] = 1;
            //obj["chiTietNoidkhktt"] = 1;
            //obj["TinhTrang"] = 1;
            //obj["ngayBatDauThuLy"] = 1;
            //obj["banAnSo"] = 1;
            //obj["ngayBatDauraBanAn"] = 1;
            //obj["ngayKetThuc"] = 1;
            //obj["ngaySinhDen"] = 1;
            //obj["chiTietNoiOHienTai"] = 1;
            //obj["thuLySo"] = 1;
            //obj["ngayKetThucThuLy"] = 1;
            //obj["tenKiemSatVien"] = 1;
            //obj["ngayKetThucraBanAn"] = 1;
            //obj["donVi"] = 1;
            //obj["chiTietVuAn"] = 1;


            //obj["maVuAn"] = 1;
            //obj["tenVuAn"] = 1;
            //obj["toidanh"] = "tội vu khống";
            //obj["tenbican"] = "Nguyen";

            jsonObject["soQuyetDinhKhoiTo"]   = json["QuyetDinhKhoiTo"]["SoQuyetDinh"];
            jsonObject["tenVuAn"]             = json["TenVuAn"];
            jsonObject["donVi"]               = json["QuyetDinhKhoiTo"]["TenDonVi"];
            jsonObject["toidanh"]             = json["ToiDanh"]["ToiDanhKhoanLuat"];
            jsonObject["coQuanRaQDtxtSearch"] = "Công an";


            kiemSatDieuTraTruyTo.DienThongTin(jsonObject);
            kiemSatDieuTraTruyTo.TimKiem();

            chromeDriver.Quit();
        }
        public void Go()
        {
            JObject json       = JsonDataFromWs.Instance(id).get();//    null;//
            dynamic jsonObject = new JObject();

            jsonObject["quyetĐinhKhoiToVuAnSo"] = json["QuyetDinhKhoiTo"]["SoQuyetDinh"];
            chromeDriver = new ChromeDriver(Application.StartupPath);
            //ChromeDriver chromeDriver = new ChromeDriver("C:/lqa/automationdotnet");
            chromeDriver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(20);
            LoginPage lp = new LoginPage();

            lp.driver = chromeDriver;
            lp.Come();

            jsonObject.username = username;
            jsonObject.password = password;

            lp.DangNhap(jsonObject);


            dynamic obj = new JObject();

            obj["soQuyetDinhKhoiTo"]   = 1;
            obj["ngayBatDauQDKhoiTo"]  = 1;
            obj["coQuanraQD"]          = 1;
            obj["coQuanRaQDtxtSearch"] = "Công an";
            obj["ngayKetThucQDKhoiTo"] = 1;
            obj["loaiToiPham"]         = 1;
            obj["ngayBatDau"]          = 1;
            obj["ngaySinhTu"]          = 1;
            obj["chiTietNoidkhktt"]    = 1;
            obj["TinhTrang"]           = 1;
            obj["ngayBatDauThuLy"]     = 1;
            obj["banAnSo"]             = 1;
            obj["ngayBatDauraBanAn"]   = 1;
            obj["ngayKetThuc"]         = 1;
            obj["ngaySinhDen"]         = 1;
            obj["chiTietNoiOHienTai"]  = 1;
            obj["thuLySo"]             = 1;
            obj["ngayKetThucThuLy"]    = 1;
            obj["tenKiemSatVien"]      = 1;
            obj["ngayKetThucraBanAn"]  = 1;
            obj["donVi"]       = 1;
            obj["chiTietVuAn"] = 1;


            obj["maVuAn"]   = 1;
            obj["tenVuAn"]  = 1;
            obj["toidanh"]  = "tội vu khống";
            obj["tenbican"] = "Nguyen";

            G3 g3 = new G3();

            g3.driver = chromeDriver;
            //g3.r = r;
            g3.Come();
            g3.DienThongTin(obj);
            g3.TimKiem();

            chromeDriver.Quit();
        }
Esempio n. 16
0
 private void Button1Nap_Click(object sender, EventArgs e)
 {
     JsonDataFromWs.Instance(textBox1MaVuAn.Text);
 }