Exemplo n.º 1
0
        public static bool Login(string Username, string Password)
        {
            string    EncryptedPass = Encrypt(Password);
            DataTable data          = ExecuteQuery.ExecuteReader("QLKS_SearchAccount @Username , @Password", new object[] { Username, EncryptedPass });

            return(data.Rows.Count == 1);
        }
Exemplo n.º 2
0
        public static DataTable GetBillDetailInfo(int BillID, int RoomReservation, int RoomID)
        {
            string Query = "QLKS_GetBillDetailInfo @BillID , @RoomeReservationID , @RoomID";

            return(ExecuteQuery.ExecuteReader(Query, new object[] { BillID, RoomReservation, RoomID }));
        }
Exemplo n.º 3
0
 public static DataTable GetCustomerInfo(int RoomID)
 {
     ///return Name, birthday, PhoneNumber, Sex, IdentityNumber, Passport, Addr, Note, ArrivalDate
     return(ExecuteQuery.ExecuteReader("QLKS_GetCustomerInfo @ID", new object[] { RoomID }));
 }
Exemplo n.º 4
0
 public static DataTable GetStaffInfor(string Username)
 {
     return(ExecuteQuery.ExecuteReader("QLKS_GetStaffInfo @Username", new object[] { Username }));
 }
Exemplo n.º 5
0
 public static DataTable GetAllStaffInfo(int sortIndex)
 {
     return(ExecuteQuery.ExecuteReader("QLKS_GetAllStaffInfo @Sort", new object[] { sortIndex }));
 }
Exemplo n.º 6
0
 public static DataTable GetLaudryServiceRevenue(int RevenueType, DateTime FromDate, DateTime ToDate)
 {
     return(ExecuteQuery.ExecuteReader("QLKS_GetLaudryServiceRevenue @RevenueType , @FromDate , @ToDate",
                                       new object[] { RevenueType, FromDate, ToDate }));
 }
Exemplo n.º 7
0
 public static DataTable GetAllServicesBillOnlyInfo(DateTime FromDate, DateTime ToDate, int staffID, int sort)
 {
     return(ExecuteQuery.ExecuteReader("QLKS_GetAllServicesBillOnlyInfo @FromDate , @ToDate , @StaffID , @Sort",
                                       new object[] { FromDate, ToDate, staffID, sort }));
 }
Exemplo n.º 8
0
 public static DataTable GetBillInfoOfCustomer(int customerID)
 {
     return(ExecuteQuery.ExecuteReader("QLKS_GetBillInfoOfCustomer @CustomerID", new object[] { customerID }));
 }
Exemplo n.º 9
0
 public static DataTable GetServiceIdOfNewService()
 {
     return(ExecuteQuery.ExecuteReader("QLKS_GetServiceIdOfNewService"));
 }
Exemplo n.º 10
0
 public static DataTable GetStaffIdOfNewStaff()
 {
     return(ExecuteQuery.ExecuteReader("QLKS_GetStaffIdOfNewStaff"));
 }
Exemplo n.º 11
0
 public static DataTable GetAllCustomer(int sort)
 {
     return(ExecuteQuery.ExecuteReader("QLKS_GetAllCustomer @Sort", new object[] { sort }));
 }
Exemplo n.º 12
0
 public static DataTable GetData(int BillID)
 {
     return(ExecuteQuery.ExecuteReader("QLKS_GetAdditionalInfoForBillViewing @BillID", new object[] { BillID }));
 }
Exemplo n.º 13
0
 public static DataTable GetRoomInfo(int IDRoom)
 {
     return(ExecuteQuery.ExecuteReader("QLKS_GetRoomInfo @ID", new object[] { IDRoom }));
 }
Exemplo n.º 14
0
 public static DataTable GetRoomIdOfNewRoom()
 {
     return(ExecuteQuery.ExecuteReader("QLKS_GetRoomIdOfNewRoom"));
 }
Exemplo n.º 15
0
 public static DataTable GetServicesInfo(ServiceType type)
 {
     return(ExecuteQuery.ExecuteReader("QLKS_GetServiceInfo @SeviceType", new object[] { type }));
 }
Exemplo n.º 16
0
 public static DataTable GetServiceBillOnlyDetail(int SvcBillID)
 {
     return(ExecuteQuery.ExecuteReader("QLKS_GetServicesBillOnlyDetailInfo @ServiceBillID", new object[] { SvcBillID }));
 }