code
stringlengths
1
2.01M
repo_name
stringlengths
3
62
path
stringlengths
1
267
language
stringclasses
231 values
license
stringclasses
13 values
size
int64
1
2.01M
using System; using System.Collections.Generic; using System.Linq; using System.Text; using PTTK_HTTT_06.DAO; namespace PTTK_HTTT_06.BUS { public class BO_PHAN { public int MaBoPhan { get; set; } public string TenBoPhan { get; set; } public decimal PhuCap { get; set; } ...
06httt0000143df58f4d886
trunk/PTTK_HTTT_06/PTTK_HTTT_06/BUS/BO_PHAN.cs
C#
asf20
538
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace PTTK_HTTT_06.BUS { public class PHAN_CONG_PHUC_VU { } }
06httt0000143df58f4d886
trunk/PTTK_HTTT_06/PTTK_HTTT_06/BUS/PHAN_CONG_PHUC_VU.cs
C#
asf20
179
using System; using System.Collections.Generic; using System.Linq; using System.Text; using PTTK_HTTT_06.DAO; using System.Data; namespace PTTK_HTTT_06.BUS { public class NGUYEN_LIEU { public int MaNguyenLieu { get; set; } public string TenNguyenLieu { get; set; } public i...
06httt0000143df58f4d886
trunk/PTTK_HTTT_06/PTTK_HTTT_06/BUS/NGUYEN_LIEU.cs
C#
asf20
1,067
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace PTTK_HTTT_06.BUS { public class DS_PHAN_CONG { } }
06httt0000143df58f4d886
trunk/PTTK_HTTT_06/PTTK_HTTT_06/BUS/DS_PHAN_CONG.cs
C#
asf20
174
using System; using System.Collections.Generic; using System.Linq; using System.Text; using PTTK_HTTT_06.DAO; namespace PTTK_HTTT_06.BUS { public class YC_XUAT_NGUYEN_LIEU { public int MaYCXuatNL { get; set; } public int MaNV { get; set; } public DateTime NgayLap { get; set...
06httt0000143df58f4d886
trunk/PTTK_HTTT_06/PTTK_HTTT_06/BUS/YC_XUAT_NGUYEN_LIEU.cs
C#
asf20
490
using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using PTTK_HTTT_06.DAO; namespace PTTK_HTTT_06.BUS { public class DON_VI_TINH { public int MaDonViTinh { get; set; } public string TenDonViTinh { get; set; } public s...
06httt0000143df58f4d886
trunk/PTTK_HTTT_06/PTTK_HTTT_06/BUS/DON_VI_TINH.cs
C#
asf20
556
using System; using System.Collections.Generic; using System.Linq; using System.Text; using PTTK_HTTT_06.DAO; namespace PTTK_HTTT_06.BUS { public class MON_AN { public int MaMonAn { get; set; } public string TenMonAn { get; set; } public static List<MON_AN> LayDanhSach() ...
06httt0000143df58f4d886
trunk/PTTK_HTTT_06/PTTK_HTTT_06/BUS/MON_AN.cs
C#
asf20
655
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace PTTK_HTTT_06.BUS { public class CT_PHAN_CONG { } }
06httt0000143df58f4d886
trunk/PTTK_HTTT_06/PTTK_HTTT_06/BUS/CT_PHAN_CONG.cs
C#
asf20
174
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTi...
06httt0000143df58f4d886
trunk/PTTK_HTTT_06/PTTK_HTTT_06/Properties/AssemblyInfo.cs
C#
asf20
1,436
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Linq; using System.Text; using System.Windows.Forms; using PTTK_HTTT_06.BUS; namespace PTTK_HTTT_06.GUI.other { public partial class MHThemMonAn : UserControl { ...
06httt0000143df58f4d886
trunk/PTTK_HTTT_06/PTTK_HTTT_06/GUI/other/MHThemMonAn.cs
C#
asf20
4,722
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Linq; using System.Text; using System.Windows.Forms; using PTTK_HTTT_06.BUS; namespace PTTK_HTTT_06.GUI.other { public partial class MHThemNhaCungCap : UserControl { ...
06httt0000143df58f4d886
trunk/PTTK_HTTT_06/PTTK_HTTT_06/GUI/other/MHThemNhaCungCap.cs
C#
asf20
3,837
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Linq; using System.Text; using System.Windows.Forms; using PTTK_HTTT_06.BUS; using PTTK_HTTT_06.DAO; namespace PTTK_HTTT_06.GUI.other { public partial class MHThemNguyenL...
06httt0000143df58f4d886
trunk/PTTK_HTTT_06/PTTK_HTTT_06/GUI/other/MHThemNguyenLieu.cs
C#
asf20
5,308
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Linq; using System.Text; using System.Windows.Forms; using PTTK_HTTT_06.BUS; namespace PTTK_HTTT_06.GUI.other { public partial class MHDangNhap : UserControl { ...
06httt0000143df58f4d886
trunk/PTTK_HTTT_06/PTTK_HTTT_06/GUI/other/MHDangNhap.cs
C#
asf20
2,911
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Linq; using System.Text; using System.Windows.Forms; using PTTK_HTTT_06.BUS; namespace PTTK_HTTT_06.GUI.other { public partial class MHQuanLy : UserControl { ...
06httt0000143df58f4d886
trunk/PTTK_HTTT_06/PTTK_HTTT_06/GUI/other/MHQuanLy.cs
C#
asf20
7,581
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Linq; using System.Text; using System.Windows.Forms; using PTTK_HTTT_06.BUS; namespace PTTK_HTTT_06.GUI.LenThucDon { public partial class MHDanhSachYeuCauNguyenLieu : User...
06httt0000143df58f4d886
trunk/PTTK_HTTT_06/PTTK_HTTT_06/GUI/LenThucDon/MHDanhSachYeuCauNguyenLieu.cs
C#
asf20
11,761
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Linq; using System.Text; using System.Windows.Forms; using PTTK_HTTT_06.BUS; namespace PTTK_HTTT_06.GUI.LenThucDon { public partial class MHLapThucDon : UserControl {...
06httt0000143df58f4d886
trunk/PTTK_HTTT_06/PTTK_HTTT_06/GUI/LenThucDon/MHLapThucDon.cs
C#
asf20
14,492
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using PTTK_HTTT_06.BUS; namespace PTTK_HTTT_06.GUI { public partial class frm_main : Form { //Thong tin ...
06httt0000143df58f4d886
trunk/PTTK_HTTT_06/PTTK_HTTT_06/GUI/frm_main.cs
C#
asf20
8,301
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Linq; using System.Text; using System.Windows.Forms; using PTTK_HTTT_06.BUS; namespace PTTK_HTTT_06.GUI.LapTheKhachHang { public partial class MHLapTheKhachHangThanThiet :...
06httt0000143df58f4d886
trunk/PTTK_HTTT_06/PTTK_HTTT_06/GUI/LapTheKhachHang/MHLapTheKhachHangThanThiet.cs
C#
asf20
2,437
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Linq; using System.Text; using System.Windows.Forms; using PTTK_HTTT_06.BUS; namespace PTTK_HTTT_06.GUI.DatHangNguyenLieu { public partial class MHDatHangNguyenLieu : User...
06httt0000143df58f4d886
trunk/PTTK_HTTT_06/PTTK_HTTT_06/GUI/DatHangNguyenLieu/MHDatHangNguyenLieu.cs
C#
asf20
6,819
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Linq; using System.Text; using System.Windows.Forms; using PTTK_HTTT_06.BUS; namespace PTTK_HTTT_06.GUI.LapDSYeuCauSanPham { public partial class MHLapBangYCSP : UserContr...
06httt0000143df58f4d886
trunk/PTTK_HTTT_06/PTTK_HTTT_06/GUI/LapDSYeuCauSanPham/MHLapBangYCSP.cs
C#
asf20
7,509
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Linq; using System.Text; using System.Windows.Forms; using PTTK_HTTT_06.BUS; namespace PTTK_HTTT_06.GUI.LapDSYeuCanNguyenLieu { public partial class MHLapBangYCNL : UserCo...
06httt0000143df58f4d886
trunk/PTTK_HTTT_06/PTTK_HTTT_06/GUI/LapDSYeuCauNguyenLieu/MHLapBangYCNL.cs
C#
asf20
7,167
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace PTTK_HTTT_06.DAO { class HOA_DON_BUFFET_DB { } }
06httt0000143df58f4d886
trunk/PTTK_HTTT_06/PTTK_HTTT_06/DAO/HOA_DON_BUFFET_DB.cs
C#
asf20
172
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace PTTK_HTTT_06.DAO { class NGHI_PHEP_DB { } }
06httt0000143df58f4d886
trunk/PTTK_HTTT_06/PTTK_HTTT_06/DAO/NGHI_PHEP_DB.cs
C#
asf20
167
using PTTK_HTTT_06.BUS; using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Text; namespace PTTK_HTTT_06.DAO { class DON_DAT_HANG_DB { public static void ThemDonDatHang(DON_DAT_HANG _nguyenLieu) { ...
06httt0000143df58f4d886
trunk/PTTK_HTTT_06/PTTK_HTTT_06/DAO/DON_DAT_HANG_DB.cs
C#
asf20
1,525
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace PTTK_HTTT_06.DAO { class DS_PHAN_CONG_DB { } }
06httt0000143df58f4d886
trunk/PTTK_HTTT_06/PTTK_HTTT_06/DAO/DS_PHAN_CONG_DB.cs
C#
asf20
170
using System; using System.Collections.Generic; using System.Linq; using System.Text; using PTTK_HTTT_06.BUS; using System.Data.SqlClient; namespace PTTK_HTTT_06.DAO { class CT_YC_XUAT_NGUYEN_LIEU_DB { public static int ThemCTYCNL(CT_YC_XUAT_NGUYEN_LIEU ctycnl) { DataP...
06httt0000143df58f4d886
trunk/PTTK_HTTT_06/PTTK_HTTT_06/DAO/CT_YC_XUAT_NGUYEN_LIEU_DB.cs
C#
asf20
999
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace PTTK_HTTT_06.DAO { class DS_CUNG_CAP_DB { } }
06httt0000143df58f4d886
trunk/PTTK_HTTT_06/PTTK_HTTT_06/DAO/DS_CUNG_CAP_DB.cs
C#
asf20
169
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace PTTK_HTTT_06.DAO { class PHAN_CONG_NAU_AN_DB { } }
06httt0000143df58f4d886
trunk/PTTK_HTTT_06/PTTK_HTTT_06/DAO/PHAN_CONG_NAU_AN_DB.cs
C#
asf20
174
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace PTTK_HTTT_06.DAO { class CT_PHAN_CONG_DB { } }
06httt0000143df58f4d886
trunk/PTTK_HTTT_06/PTTK_HTTT_06/DAO/CT_PHAN_CONG_DB.cs
C#
asf20
170
using System; using System.Collections.Generic; using System.Linq; using System.Text; using PTTK_HTTT_06.BUS; using System.Data; namespace PTTK_HTTT_06.DAO { class BO_PHAN_DB { #region public static List<BO_PHAN> LayDanhSach() public static List<BO_PHAN> LayDanhSach() { ...
06httt0000143df58f4d886
trunk/PTTK_HTTT_06/PTTK_HTTT_06/DAO/BO_PHAN_DB.cs
C#
asf20
1,447
using System; using System.Collections.Generic; using System.Linq; using System.Text; using PTTK_HTTT_06.BUS; using System.Data.SqlClient; namespace PTTK_HTTT_06.DAO { class CT_THUC_DON_DB { public static int ThemCTThucDon(CT_THUC_DON cttd){ DataProvider dataProvider = new Data...
06httt0000143df58f4d886
trunk/PTTK_HTTT_06/PTTK_HTTT_06/DAO/CT_THUC_DON_DB.cs
C#
asf20
1,017
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace PTTK_HTTT_06.DAO { class CT_PHIEU_NHAP_NGUYEN_LIEU_DB { } }
06httt0000143df58f4d886
trunk/PTTK_HTTT_06/PTTK_HTTT_06/DAO/CT_PHIEU_NHAP_NGUYEN_LIEU_DB.cs
C#
asf20
183
using System; using System.Collections.Generic; using System.Linq; using System.Text; using PTTK_HTTT_06.BUS; using System.Data; using System.Data.SqlClient; namespace PTTK_HTTT_06.DAO { class MON_AN_DB { #region public static List<MON_AN> LayDanhSach() public static List<MON_AN> ...
06httt0000143df58f4d886
trunk/PTTK_HTTT_06/PTTK_HTTT_06/DAO/MON_AN_DB.cs
C#
asf20
2,066
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace PTTK_HTTT_06.DAO { class PHIEU_XUAT_SAN_PHAM_DB { } }
06httt0000143df58f4d886
trunk/PTTK_HTTT_06/PTTK_HTTT_06/DAO/PHIEU_XUAT_SAN_PHAM_DB.cs
C#
asf20
177
using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Text; namespace PTTK_HTTT_06.DAO { class CT_DON_DAT_HANG_DB { internal static void ThemCTDonDatHang(BUS.CT_DON_DAT_HANG _nguyenLieu) { DataPr...
06httt0000143df58f4d886
trunk/PTTK_HTTT_06/PTTK_HTTT_06/DAO/CT_DON_DAT_HANG_DB.cs
C#
asf20
1,105
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace PTTK_HTTT_06.DAO { class HOA_DON_SAN_PHAM_DB { } }
06httt0000143df58f4d886
trunk/PTTK_HTTT_06/PTTK_HTTT_06/DAO/HOA_DON_SAN_PHAM_DB.cs
C#
asf20
174
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace PTTK_HTTT_06.DAO { class KHU_VUC_PHUC_VU_DB { } }
06httt0000143df58f4d886
trunk/PTTK_HTTT_06/PTTK_HTTT_06/DAO/KHU_VUC_PHUC_VU_DB.cs
C#
asf20
173
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace PTTK_HTTT_06.DAO { class PHAN_CONG_PHUC_VU_DB { } }
06httt0000143df58f4d886
trunk/PTTK_HTTT_06/PTTK_HTTT_06/DAO/PHAN_CONG_PHUC_VU_DB.cs
C#
asf20
175
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace PTTK_HTTT_06.DAO { class CT_PHIEU_XUAT_SAN_PHAM_DB { } }
06httt0000143df58f4d886
trunk/PTTK_HTTT_06/PTTK_HTTT_06/DAO/CT_PHIEU_XUAT_SAN_PHAM_DB.cs
C#
asf20
180
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace PTTK_HTTT_06.DAO { class CT_HOA_DON_SAN_PHAM_DB { } }
06httt0000143df58f4d886
trunk/PTTK_HTTT_06/PTTK_HTTT_06/DAO/CT_HOA_DON_SAN_PHAM_DB.cs
C#
asf20
177
using System; using System.Collections.Generic; using System.Linq; using System.Text; using PTTK_HTTT_06.BUS; using System.Data.SqlClient; namespace PTTK_HTTT_06.DAO { class THUC_DON_DB { public static int ThemThucDon(THUC_DON td) { DataProvider dataProvider = new Data...
06httt0000143df58f4d886
trunk/PTTK_HTTT_06/PTTK_HTTT_06/DAO/THUC_DON_DB.cs
C#
asf20
963
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace PTTK_HTTT_06.DAO { class DOI_DIEM_TICH_LUY_DB { } }
06httt0000143df58f4d886
trunk/PTTK_HTTT_06/PTTK_HTTT_06/DAO/DOI_DIEM_TICH_LUY_DB.cs
C#
asf20
175
using System; using System.Collections.Generic; using System.Linq; using System.Text; using PTTK_HTTT_06.BUS; using System.Data.SqlClient; namespace PTTK_HTTT_06.DAO { class CT_YC_XUAT_SAN_PHAM_DB { public static int ThemCTYCSP(CT_YC_XUAT_SAN_PHAM ctycsp) { DataProvide...
06httt0000143df58f4d886
trunk/PTTK_HTTT_06/PTTK_HTTT_06/DAO/CT_YC_XUAT_SAN_PHAM_DB.cs
C#
asf20
996
using System; using System.Collections.Generic; using System.Linq; using System.Text; using PTTK_HTTT_06.BUS; using System.Data; namespace PTTK_HTTT_06.DAO { class NHAN_VIEN_DB { #region public static int KiemTraTaiKhoan(string TenTaiKhoan, string MatKhau) public static int KiemTra...
06httt0000143df58f4d886
trunk/PTTK_HTTT_06/PTTK_HTTT_06/DAO/NHAN_VIEN_DB.cs
C#
asf20
3,468
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace PTTK_HTTT_06.DAO { class CT_PHIEU_XUAT_NGUYEN_LIEU_DB { } }
06httt0000143df58f4d886
trunk/PTTK_HTTT_06/PTTK_HTTT_06/DAO/CT_PHIEU_XUAT_NGUYEN_LIEU_DB.cs
C#
asf20
183
using System; using System.Collections.Generic; using System.Linq; using System.Text; using PTTK_HTTT_06.BUS; using System.Data.SqlClient; namespace PTTK_HTTT_06.DAO { class YC_XUAT_SAN_PHAM_DB { public static int ThemYCXuatSP(YC_XUAT_SAN_PHAM ycsp) { DataProvider data...
06httt0000143df58f4d886
trunk/PTTK_HTTT_06/PTTK_HTTT_06/DAO/YC_XUAT_SAN_PHAM_DB.cs
C#
asf20
977
using System; using System.Collections.Generic; using System.Linq; using System.Text; using PTTK_HTTT_06.BUS; using System.Data.SqlClient; namespace PTTK_HTTT_06.DAO { class KHACH_HANG_DB { public static int ThemKH(KHACH_HANG kh) { DataProvider dataProvider = new...
06httt0000143df58f4d886
trunk/PTTK_HTTT_06/PTTK_HTTT_06/DAO/KHACH_HANG_DB.cs
C#
asf20
1,011
using System; using System.Collections.Generic; using System.Linq; using System.Text; using PTTK_HTTT_06.BUS; using System.Data.SqlClient; namespace PTTK_HTTT_06.DAO { class YC_XUAT_NGUYEN_LIEU_DB { public static int ThemYCXuatNL(YC_XUAT_NGUYEN_LIEU ycnl) { DataProvide...
06httt0000143df58f4d886
trunk/PTTK_HTTT_06/PTTK_HTTT_06/DAO/YC_XUAT_NGUYEN_LIEU_DB.cs
C#
asf20
895
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace PTTK_HTTT_06.DAO { class TI_LE_GIAM_GIA_DB { } }
06httt0000143df58f4d886
trunk/PTTK_HTTT_06/PTTK_HTTT_06/DAO/TI_LE_GIAM_GIA_DB.cs
C#
asf20
172
using System; using System.Collections.Generic; using System.Linq; using System.Text; using PTTK_HTTT_06.BUS; using System.Data; namespace PTTK_HTTT_06.DAO { class DON_VI_TINH_DB { public static DataTable LoadDonViTinh() { DataProvider _provider = new DataProvider(); ...
06httt0000143df58f4d886
trunk/PTTK_HTTT_06/PTTK_HTTT_06/DAO/DON_VI_TINH_DB.cs
C#
asf20
1,595
using System; using System.Collections.Generic; using System.Linq; using System.Text; using PTTK_HTTT_06.BUS; using System.Data; namespace PTTK_HTTT_06.DAO { class SAN_PHAM_DB { public static List<SAN_PHAM> LayDanhSach() { DataProvider dataProvider = new DataProvider()...
06httt0000143df58f4d886
trunk/PTTK_HTTT_06/PTTK_HTTT_06/DAO/SAN_PHAM_DB.cs
C#
asf20
1,325
using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Text; namespace PTTK_HTTT_06.DAO { class DataProvider { public string connectionString { get; set; } private SqlConnection sqlConnection = null; ...
06httt0000143df58f4d886
trunk/PTTK_HTTT_06/PTTK_HTTT_06/DAO/DataProvider.cs
C#
asf20
6,061
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace PTTK_HTTT_06.DAO { class PHIEU_NHAP_NGUYEN_LIEU_DB { } }
06httt0000143df58f4d886
trunk/PTTK_HTTT_06/PTTK_HTTT_06/DAO/PHIEU_NHAP_NGUYEN_LIEU_DB.cs
C#
asf20
180
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace PTTK_HTTT_06.DAO { class DS_DIEM_DANH_DB { } }
06httt0000143df58f4d886
trunk/PTTK_HTTT_06/PTTK_HTTT_06/DAO/DS_DIEM_DANH_DB.cs
C#
asf20
170
using System; using System.Collections.Generic; using System.Linq; using System.Text; using PTTK_HTTT_06.BUS; using System.Data; using System.Data.SqlClient; namespace PTTK_HTTT_06.DAO { class CONG_THUC_DB { #region List<CONG_THUC> LayCongThuc(int _maMonAn) public static List<CONG...
06httt0000143df58f4d886
trunk/PTTK_HTTT_06/PTTK_HTTT_06/DAO/CONG_THUC_DB.cs
C#
asf20
1,967
using System; using System.Collections.Generic; using System.Data.SqlClient; using System.Linq; using System.Text; using PTTK_HTTT_06.BUS; using System.Data; namespace PTTK_HTTT_06.DAO { class NGUYEN_LIEU_DB { public static void ThemNguyenLieu(NGUYEN_LIEU _nguyenLieu) { ...
06httt0000143df58f4d886
trunk/PTTK_HTTT_06/PTTK_HTTT_06/DAO/NGUYEN_LIEU_DB.cs
C#
asf20
2,873
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace PTTK_HTTT_06.DAO { class THAM_SO_DB { } }
06httt0000143df58f4d886
trunk/PTTK_HTTT_06/PTTK_HTTT_06/DAO/THAM_SO_DB.cs
C#
asf20
165
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace PTTK_HTTT_06.DAO { class PHIEU_XUAT_NGUYEN_LIEU_DB { } }
06httt0000143df58f4d886
trunk/PTTK_HTTT_06/PTTK_HTTT_06/DAO/PHIEU_XUAT_NGUYEN_LIEU_DB.cs
C#
asf20
180
using PTTK_HTTT_06.BUS; using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Text; namespace PTTK_HTTT_06.DAO { class NHA_CUNG_CAP_DB { public static void ThemNhaCungCap(BUS.NHA_CUNG_CAP _nguyenLieu) { ...
06httt0000143df58f4d886
trunk/PTTK_HTTT_06/PTTK_HTTT_06/DAO/NHA_CUNG_CAP_DB.cs
C#
asf20
1,598
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace PTTK_HTTT_06.DAO { class KY_NANG_DB { } }
06httt0000143df58f4d886
trunk/PTTK_HTTT_06/PTTK_HTTT_06/DAO/KY_NANG_DB.cs
C#
asf20
165
using System; using System.Collections.Generic; using System.Linq; using System.Windows.Forms; namespace PTTK_HTTT_06 { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main() ...
06httt0000143df58f4d886
trunk/PTTK_HTTT_06/PTTK_HTTT_06/Program.cs
C#
asf20
511
#pragma once #include <stdlib.h> #include <string.h> #define DIGITS "0.123456789" #define WHITESPACE_CHARS " \n\r\t" class ScriptScanner { public: ScriptScanner(char* str); ~ScriptScanner(void); float NextFuncTime(); char* NextFunc(); float NextFuncArg(); void hasExec(); bool ReadOneLine(...
1294-top-gun-frc-2013
trunk/Tests/FrcCppTest/FrcCppTest/ScriptScanner.h
C++
gpl3
604
// stdafx.cpp : source file that includes just the standard includes // FrcCppTest.pch will be the pre-compiled header // stdafx.obj will contain the pre-compiled type information #include "stdafx.h" // TODO: reference any additional headers you need in STDAFX.H // and not in this file
1294-top-gun-frc-2013
trunk/Tests/FrcCppTest/FrcCppTest/stdafx.cpp
C++
gpl3
297
#pragma once #include <iostream> #include <fstream> #include <streambuf> #include <string> #include <sstream> #include <Windows.h> #include "ScriptScanner.h" typedef void (*FUNC)(float param); class ScriptInterpreter { public: ScriptInterpreter(void); ~ScriptInterpreter(void); void OpenScript(c...
1294-top-gun-frc-2013
trunk/Tests/FrcCppTest/FrcCppTest/ScriptInterpreter.h
C++
gpl3
471
#include "ScriptInterpreter.h" ScriptInterpreter::ScriptInterpreter(void) { } ScriptInterpreter::~ScriptInterpreter(void) { } float getelap() { return (float)GetTickCount64() / (float)1000; } void ScriptInterpreter::OpenScript(char* file) { std::fstream f(file); if(!f.is_open()) { p...
1294-top-gun-frc-2013
trunk/Tests/FrcCppTest/FrcCppTest/ScriptInterpreter.cpp
C++
gpl3
1,179
#include "ScriptScanner.h" bool strcont(char c, char* str) { for(int i = 0; str[i] != 0; i++) { if(str[i] == c) return 1; } return 0; } ScriptScanner::ScriptScanner(char* str) { this->str = str; } ScriptScanner::~ScriptScanner(void) { } bool ScriptScanner::ReadOneLine() { // A li...
1294-top-gun-frc-2013
trunk/Tests/FrcCppTest/FrcCppTest/ScriptScanner.cpp
C++
gpl3
2,662
//include "stdafx.h" //#include "ScriptInterpreter.h" #include <winsock2.h> #include <WS2tcpip.h> typedef struct DashboardDatatype { float voltage; }; #include <cstdio> int printf_wrap(const char* format, ...) { va_list args; va_start(args, format); int retVal = vprintf(format, args); v...
1294-top-gun-frc-2013
trunk/Tests/FrcCppTest/FrcCppTest/main.cpp
C++
gpl3
1,028
#pragma once // Including SDKDDKVer.h defines the highest available Windows platform. // If you wish to build your application for a previous Windows platform, include WinSDKVer.h and // set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. #include <SDKDDKVer.h>
1294-top-gun-frc-2013
trunk/Tests/FrcCppTest/FrcCppTest/targetver.h
C
gpl3
314
// stdafx.h : include file for standard system include files, // or project specific include files that are used frequently, but // are changed infrequently // #pragma once #include "targetver.h" #include <stdio.h> #include <tchar.h> // TODO: reference additional headers your program requires here
1294-top-gun-frc-2013
trunk/Tests/FrcCppTest/FrcCppTest/stdafx.h
C
gpl3
320
using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Linq; using System.Threading.Tasks; using System.Windows; namespace FRC_Turtle { /// <summary> /// Interaction logic for App.xaml /// </summary> public partial class App : Applicati...
1294-top-gun-frc-2013
trunk/FRCTurtle/FRC Turtle/App.xaml.cs
C#
gpl3
343
using System; using System.ComponentModel; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Runtime.CompilerServices; using System.Windows; namespace FRC_Turtle.ViewModels { /// <summary> /// Implementation of <see cref="INotifyProp...
1294-top-gun-frc-2013
trunk/FRCTurtle/FRC Turtle/ViewModels/BindableBase.cs
C#
gpl3
2,471
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Shapes; namespace FRC_Turtle.ViewModels { public class TGPoint : BindableBase { public TGPoi...
1294-top-gun-frc-2013
trunk/FRCTurtle/FRC Turtle/ViewModels/FRCTurtleViewModel.cs
C#
gpl3
6,405
using System; using System.Linq; using System.Windows; using System.Windows.Input; using FRC_Turtle.ViewModels; namespace FRC_Turtle { /// <summary> /// Interaction logic for MainWindow.xaml /// </summary> public partial class MainWindow : Window { FRCTurtleViewModel vm; ...
1294-top-gun-frc-2013
trunk/FRCTurtle/FRC Turtle/MainWindow.xaml.cs
C#
gpl3
2,048
using System.Reflection; using System.Resources; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Windows; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // ass...
1294-top-gun-frc-2013
trunk/FRCTurtle/FRC Turtle/Properties/AssemblyInfo.cs
C#
gpl3
2,284
#ifndef OI_H #define OI_H #include "WPILib.h" #include "Robotmap.h" class OI { private: Joystick* joystickDriveLeft; Joystick* joystickDriveRight; Joystick* joystickGameMech; // ************************************** // **************** Drive *************** // **********************************...
1294-top-gun-frc-2013
trunk/workspace/FRC2013CommandBased/OI.h
C++
gpl3
1,161
#ifndef COMMAND_BASE_H #define COMMAND_BASE_H #include "Commands/Command.h" #include "Subsystems/ClimberSubsystem.h" #include "Subsystems/DriveSubsystem.h" #include "Subsystems/FrisbeeLauncher.h" #include "Subsystems/FrisbeeLoader.h" #include "Subsystems/GyroSubsystem.h" #include "OI.h" /** * The base fo...
1294-top-gun-frc-2013
trunk/workspace/FRC2013CommandBased/CommandBase.h
C++
gpl3
940
#include "logging.h" #include "Robotmap.h" #include <cstdio> #include <stdarg.h> void log(LogType level, char* format, ...) { if (level >= MINIMUM_LOG_LEVEL) { va_list args; va_start(args, format); vprintf(format, args); printf("\n"); va_end(args); } }
1294-top-gun-frc-2013
trunk/workspace/FRC2013CommandBased/logging.cpp
C++
gpl3
287
#ifndef SCRIPT_SCANNER_H #define SCRIPT_SCANNER_H class ScriptScanner { public: ScriptScanner(char* str); ~ScriptScanner(void); float NextFuncTime(); char* NextFunc(); float NextFuncArg(); void hasExec(); bool ReadOneLine(); private: char* str; float _nextFuncTime; char* _nextFunc; f...
1294-top-gun-frc-2013
trunk/workspace/FRC2013CommandBased/ScriptParser/ScriptScanner.h
C++
gpl3
542
#ifndef SCRIPT_INTERPRETER_H #define SCRIPT_INTERPRETER_H #include "ScriptScanner.h" class ScriptInterpreter { public: typedef void (*ScriptInterpreterCallbackFunc)(const char* func, float param, void* ref); ScriptInterpreter(void); ~ScriptInterpreter(void); int OpenScript(const char* fileName); ...
1294-top-gun-frc-2013
trunk/workspace/FRC2013CommandBased/ScriptParser/ScriptInterpreter.h
C++
gpl3
558
#include "ScriptInterpreter.h" #include <iostream> #include <fstream> #include <streambuf> #include <string> #include <sstream> #include "stdlib.h" #include "Timer.h" #include "ScriptScanner.h" #include "../logging.h" #define GETELAP Timer::GetFPGATimestamp ScriptInterpreter::ScriptInterpreter(vo...
1294-top-gun-frc-2013
trunk/workspace/FRC2013CommandBased/ScriptParser/ScriptInterpreter.cpp
C++
gpl3
1,999
#include "ScriptScanner.h" #include <stdlib.h> #include <string.h> #define DIGITS "-0.123456789" #define WHITESPACE_CHARS " \n\r\t" bool strcont(char c, char* str) { for(int i = 0; str[i] != 0; i++) { if(str[i] == c) return 1; } return 0; } ScriptScanner::ScriptScanner(char* str) { ...
1294-top-gun-frc-2013
trunk/workspace/FRC2013CommandBased/ScriptParser/ScriptScanner.cpp
C++
gpl3
2,804
#include "WPILib.h" #include "Commands/Command.h" #include "CommandBase.h" #include "Commands/Autonomous/AutonomousCommand.h" #include "Commands/Drive/TankDriveCommand.h" class CommandBasedRobot: public IterativeRobot { private: Command *autonomousCommand; Command *tankControl; Compressor* c; virtu...
1294-top-gun-frc-2013
trunk/workspace/FRC2013CommandBased/CommandBasedRobot.cpp
C++
gpl3
1,218
#ifndef ROBOTMAP_H #define ROBOTMAP_H #include "logging.h" /** * The RobotMap is a mapping from the ports sensors and actuators are wired into * to a variable name. This provides flexibility changing wiring, makes checking * the wiring easier and significantly reduces the number of magic numbers * floati...
1294-top-gun-frc-2013
trunk/workspace/FRC2013CommandBased/Robotmap.h
C
gpl3
4,038
#ifndef GYROSUBSYSTEM_H #define GYROSUBSYSTEM_H #include "Commands/Subsystem.h" #include "WPILib.h" /** * * * @author Matthew */ class GyroSubsystem: public Subsystem { private: Gyro* gyroYaw; public: GyroSubsystem(); void InitDefaultCommand(); float GetYawAngle(); void ResetYaw(); }; ...
1294-top-gun-frc-2013
trunk/workspace/FRC2013CommandBased/Subsystems/GyroSubsystem.h
C++
gpl3
329
#include "FrisbeeLauncher.h" FrisbeeLauncher::FrisbeeLauncher() : Subsystem("FrisbeeLauncher") { firstStage = new CANJaguar(MOTOR_LAUNCHER_STAGE_1, CANJaguar::kVoltage); secondStage = new CANJaguar(MOTOR_LAUNCHER_STAGE_2, CANJaguar::kVoltage); this->firstStage->SetSafetyEnabled(false); this->firstStage-...
1294-top-gun-frc-2013
trunk/workspace/FRC2013CommandBased/Subsystems/FrisbeeLauncher.cpp
C++
gpl3
751
#include "DriveSubsystem.h" DriveSubsystem::DriveSubsystem() : Subsystem("DriveSubsystem") { shiftSolenoid = new Solenoid(SOLENOID_SHIFTER); motorLeft = new CANJaguar(MOTOR_LEFT, CANJaguar::kPercentVbus); motorRight = new CANJaguar(MOTOR_RIGHT, CANJaguar::kPercentVbus); //_isClosedLoop = false; dri...
1294-top-gun-frc-2013
trunk/workspace/FRC2013CommandBased/Subsystems/DriveSubsystem.cpp
C++
gpl3
1,049
#ifndef DRIVESUBSYSTEM_H #define DRIVESUBSYSTEM_H #include "WPILib.h" #include "Commands/Subsystem.h" #include "../Robotmap.h" /** * * * @author Matthew Kennedy of FRC1294 */ class DriveSubsystem: public Subsystem { private: // It's desirable that everything possible under private except // for m...
1294-top-gun-frc-2013
trunk/workspace/FRC2013CommandBased/Subsystems/DriveSubsystem.h
C++
gpl3
748
#include "ClimberSubsystem.h" #include "../Robotmap.h" ClimberSubsystem::ClimberSubsystem() : Subsystem("ClimberSubsystem") { //this->climbJagRight = new CANJaguar(MOTOR_CLIMBER_RIGHT, CANJaguar::kPercentVbus); //this->climbJagLeft = new CANJaguar(MOTOR_CLIMBER_LEFT, CANJaguar::kPercentVbus); this->climbJa...
1294-top-gun-frc-2013
trunk/workspace/FRC2013CommandBased/Subsystems/ClimberSubsystem.cpp
C++
gpl3
937
#ifndef FRISBEELAUNCHER_H #define FRISBEELAUNCHER_H #include "WPIlib.h" #include "Commands/Subsystem.h" #include "../Robotmap.h" /** * * * @author Matthew */ class FrisbeeLauncher: public Subsystem { private: CANJaguar* firstStage; CANJaguar* secondStage; bool _isRunning; public: FrisbeeLaun...
1294-top-gun-frc-2013
trunk/workspace/FRC2013CommandBased/Subsystems/FrisbeeLauncher.h
C++
gpl3
432
#ifndef CLIMBERSUBSYSTEM_H #define CLIMBERSUBSYSTEM_H #include "Commands/Subsystem.h" #include "WPILib.h" /** * * * @author Matthew */ class ClimberSubsystem: public Subsystem { private: Jaguar *climbJagLeft; Jaguar *climbJagRight; Solenoid* solenoidTip; Solenoid* solenoidArm; public: Climbe...
1294-top-gun-frc-2013
trunk/workspace/FRC2013CommandBased/Subsystems/ClimberSubsystem.h
C++
gpl3
528
#ifndef FRISBEELOADER_H #define FRISBEELOADER_H #include "Commands/Subsystem.h" #include "WPILib.h" /** * * * @author Matthew */ class FrisbeeLoader: public Subsystem { private: Solenoid* pusherSolenoid; DigitalInput* feedSwitch; CANJaguar* feedMotor; public: FrisbeeLoader(); void InitDefau...
1294-top-gun-frc-2013
trunk/workspace/FRC2013CommandBased/Subsystems/FrisbeeLoader.h
C++
gpl3
521
#include "GyroSubsystem.h" #include "../Robotmap.h" GyroSubsystem::GyroSubsystem() : Subsystem("GyroSubsystem") { this->gyroYaw = new Gyro(new AnalogChannel(GYRO_YAW_PIN)); } void GyroSubsystem::InitDefaultCommand() { } float GyroSubsystem::GetYawAngle() { return gyroYaw->GetAngle(); } void G...
1294-top-gun-frc-2013
trunk/workspace/FRC2013CommandBased/Subsystems/GyroSubsystem.cpp
C++
gpl3
372
#include "FrisbeeLoader.h" #include "../Robotmap.h" FrisbeeLoader::FrisbeeLoader() : Subsystem("FrisbeeLoader") { pusherSolenoid = new Solenoid(SOLENOID_FEEDER); feedSwitch = new DigitalInput(FEED_SWITCH); feedMotor = new CANJaguar(MOTOR_FEEDER, CANJaguar::kVoltage); } void FrisbeeLoader::InitDefaultCo...
1294-top-gun-frc-2013
trunk/workspace/FRC2013CommandBased/Subsystems/FrisbeeLoader.cpp
C++
gpl3
583
#ifndef LOGGING_H #define LOGGING_H typedef enum LogType { kInformation, kError, kCritical }; void log(LogType level, char* format, ...); #endif
1294-top-gun-frc-2013
trunk/workspace/FRC2013CommandBased/logging.h
C
gpl3
160
#include "AutonomousCommand.h" AutonomousCommand::AutonomousCommand(const char* autoScriptFile) { // Only require the launcher, because that is the only thing that we don't // set via another command. fireShot = NULL; gyroRotate = NULL; //driveCmd = NULL; Requires(launcher); si = new Script...
1294-top-gun-frc-2013
trunk/workspace/FRC2013CommandBased/Commands/Autonomous/AutonomousCommand.cpp
C++
gpl3
2,712
#ifndef AUTONOMOUSCOMMAND_H #define AUTONOMOUSCOMMAND_H #include "../../ScriptParser/ScriptInterpreter.h" #include "../../CommandBase.h" #include "../Launcher/FireShotCommand.h" #include "../Drive/ClosedLoop/GyroRotateCommand.h" /** * * * @author matthew */ class AutonomousCommand: public CommandBa...
1294-top-gun-frc-2013
trunk/workspace/FRC2013CommandBased/Commands/Autonomous/AutonomousCommand.h
C++
gpl3
859
#include "ClimbCommand.h" ClimbCommand::ClimbCommand() { Requires(drive); Requires(climber); } // Called just before this Command runs the first time void ClimbCommand::Initialize() { climber->SetArmPosition(true); climber->SetRobotTip(true); } // Called repeatedly when this Command is scheduled to...
1294-top-gun-frc-2013
trunk/workspace/FRC2013CommandBased/Commands/Climber/ClimbCommand.cpp
C++
gpl3
1,211
#ifndef CLIMBCOMMAND_H #define CLIMBCOMMAND_H #include "../../CommandBase.h" /** * * * @author Matthew */ class ClimbCommand: public CommandBase { public: ClimbCommand(); virtual void Initialize(); virtual void Execute(); virtual bool IsFinished(); virtual void End(); virtual void Interrupt...
1294-top-gun-frc-2013
trunk/workspace/FRC2013CommandBased/Commands/Climber/ClimbCommand.h
C++
gpl3
341
#ifndef LOADFRISBEECOMMAND_H #define LOADFRISBEECOMMAND_H #include "Commands/CommandGroup.h" /** * * * @author Matthew */ class LoadFrisbeeCommand: public CommandGroup { public: LoadFrisbeeCommand(); }; #endif
1294-top-gun-frc-2013
trunk/workspace/FRC2013CommandBased/Commands/Launcher/LoadFrisbeeCommand.h
C++
gpl3
235
#ifndef FEEDUNTILPRESSSTATECOMMAND_H #define FEEDUNTILPRESSSTATECOMMAND_H #include "../../CommandBase.h" /** * * * @author Matthew */ class FeedUntilPressStateCommand: public CommandBase { private: bool _waitState; public: FeedUntilPressStateCommand(bool waitState, double timeout); virtual void ...
1294-top-gun-frc-2013
trunk/workspace/FRC2013CommandBased/Commands/Launcher/FeedUntilPressStateCommand.h
C++
gpl3
456