コード例 #1
0
        public DishTableStatus GetCheckedStatus()
        {
            DishTableStatus status = DishTableStatus.None;

            if (this.chkEmpty.Checked)
            {
                status |= DishTableStatus.Empty;
            }
            if (this.chkOpened.Checked)
            {
                status |= DishTableStatus.Opened;
            }
            if (this.chkHasServed.Checked)
            {
                status |= DishTableStatus.HasServed;
            }
            //if (this.chkCheckOut.Checked)
            //{
            //    status |= DishTableStatus.Checkout;
            //}

            //if(this.chkMultiUnit.Checked)
            //{
            //    status |= DishTableStatus.MultiUnit;
            //}
            if (this.chkReservation.Checked)
            {
                status |= DishTableStatus.Reservation;
            }
            return(status);
        }
コード例 #2
0
ファイル: frmMain.cs プロジェクト: cang2016/RMS
        private string GetSqlStatement()
        {
            DishTableStatus status = m_mainInfo.GetCheckedStatus();

            frmMainScreenControl mainScreenControl = new frmMainScreenControl();

            frmMainScreenControl.Status = status;

            return(mainScreenControl.GetExeSql(CurrentAreaId, (CurrentSystemInfo.CurrentSysInfo[typeof(SalesPoint).FullName].FirstOrDefault() as SalesPoint).Id, m_mainInfo.txtSearchTable.Text));
        }