public frmSearchCustomer()
 {
     InitializeComponent();
     customerDataTable = new DataTable();
     customerBUS = new BUSCustomer();
     customerObject = new DTOCustomer();
     customerMultiSelect = new GridCheckMarksSelection(grdvListCustomer);
     ruleBUS = new BUSRule();
     CustomerSno.VisibleIndex = 1;
 }
        public frmRoomType()
        {
            InitializeComponent();

            roomTypeMulitiSelect = new GridCheckMarksSelection(grdvListRoomType);
            roomTypeBUS = new BUSRoomType();
            roomTypeDataTable = new DataTable();
            RoomTypeSno.VisibleIndex = 1;
            m_IsAdd = false;
            btnSave.Enabled = false;
        }
Exemple #3
0
        public frmStatus()
        {
            InitializeComponent();

            statusMulitiSelect = new GridCheckMarksSelection(grdvListStatus);
            statusBUS = new BUSStatus();
            statusDataTable = new DataTable();
            StatusSno.VisibleIndex = 1;
            m_IsAdd = false;
            btnSave.Enabled = false;
        }
 public frmSearchRoom()
 {
     InitializeComponent();
     statusDataTable = new DataTable();
     roomTypeDataTable = new DataTable();
     statusBUS = new BUSStatus();
     roomTypeBUS = new BUSRoomType();
     roomsMulitSelect = new GridCheckMarksSelection(grdvListRooms);
     roomBUS = new BUSRoom();
     roomDataTable = new DataTable();
     RoomsSno.VisibleIndex = 1;
 }
 public frmSearchStaff()
 {
     InitializeComponent();
     rolePermissionDataTable = new DataTable();
     rolePermissionBUS = new BUSRolePermission();
     rolePermissionObject = new DTORolePermission();
     _StaffDT = new DataTable();
     staffBUS = new BUSStaff();
     staffObject = new DTOStaff();
     staffMultiSelect = new GridCheckMarksSelection(grdvListStaff);
     ruleBUS = new BUSRule();
     StaffSno.VisibleIndex = 1;
 }
 public frmServiceDetail()
 {
     InitializeComponent();
     serviceDataTable = new DataTable();
     servicesBUS = new BUSServices();
     serviceDetailDataTable = new DataTable();
     serviceDetailBUS = new BUSServiceDetail();
     listServiceDetailObject = new List<DTOServiceDetail>();
     orderDetailDataTable = new DataTable();
     orderDetailBUS = new BUSOrderDetail();
     serviceDetailMultiselect = new GridCheckMarksSelection(grdvServiceDetail);
     customerBUS = new BUSCustomer();
     orderBUS = new BUSOrder();
 }
        public frmServices()
        {
            InitializeComponent();

            unitDataTable = new DataTable();
            servicesTypeDataTable = new DataTable();
            servicesMulitiSelect = new GridCheckMarksSelection(grdvListServices);
            servicesBUS = new BUSServices();
            unitBUS = new BUSUnit();
            servicesTypeBUS = new BUSServicesType();
            servicesDataTable = new DataTable();
            ServicesSno.VisibleIndex = 1;
            m_IsAdd = false;
            btnSave.Enabled = false;
        }
Exemple #8
0
        private void frmOrder_Load(object sender, EventArgs e)
        {
            OrderOfDate.EditValue = DateTime.Now;
            dateStart.EditValue = DateTime.Now;
            dateEnd.EditValue = DateTime.Now;
            //
            //roomTypeDataTable = roomTypeBUS.GetAllRoomType();
            //lkRoomType.Properties.DataSource = roomTypeDataTable;
            //lkRoomType.Properties.DisplayMember = "RoomTypeName";
            //lkRoomType.Properties.ValueMember = "RoomTypeID";
            //
            roomTypeDataTable = roomTypeBUS.GetAllRoomType();
            chkCmbRoomTypeName.Properties.DataSource = roomTypeDataTable;
            chkCmbRoomTypeName.Properties.DisplayMember = "RoomTypeName";
            chkCmbRoomTypeName.Properties.ValueMember = "RoomTypeID";
            chkCmbRoomTypeName.CheckAll();
            //
            customerDataTable = customerBUS.GetAllCustomer();
            lkCustomer.Properties.DataSource = customerDataTable;
            lkCustomer.Properties.DisplayMember = "CustomerName";
            lkCustomer.Properties.ValueMember = "CustomerID";

            //
            grdColRomSno.VisibleIndex = 1;
            roomResultDataTable = roomBUS.GetAllRoomByDateFromTo(dateStart.DateTime, dateEnd.DateTime);
            roomResultDataTableClone = roomResultDataTable.Clone();
            roomMulitiSelect = new GridCheckMarksSelection(grdvSearchRoomResult);
            grdSearchRoomResult.DataSource = roomResultDataTableClone;
            //
            grdCol1RoomSno.VisibleIndex = 1;
            roomSelectsMulitiSelect = new GridCheckMarksSelection(grdvListRoom);
            roomSelectsDataTable = new DataTable();
            makeDataTable(new string[] { "RoomID", "RoomName", "RoomTypeName", "StartDate", "EndDate", "NumberOfBeds", "Price", "Monetized", "StatusName" }, ref roomSelectsDataTable);
            grdListRoom.DataSource = roomSelectsDataTable;
            //grdListRoom.DataSource = roomResultDataTable;
            //
            grdvListRoom.OptionsSelection.EnableAppearanceFocusedRow = false;
            grdvListRoom.Columns["CheckMarkSelection"].OptionsColumn.AllowEdit = true;
        }