예제 #1
0
        private void pbtnAddOrder_Click(object sender, EventArgs e)
        {
            FormNewOrder frmNewOrder = new FormNewOrder();

            if (frmNewOrder.ShowDialog() == DialogResult.OK)
            {
                GetOrderInfo();
            }
        }
예제 #2
0
파일: FormMain.cs 프로젝트: gudaling/hotel
        private void tsmCustomerOrder_Click(object sender, EventArgs e)
        {
            BasRoomModel mRoomNo = GetSelectRoomNo(GetSelectPBX(ptcts));

            if (mRoomNo != null)
            {
                FormNewOrder frmNewOrder = new FormNewOrder(mRoomNo);
                if (frmNewOrder.ShowDialog() == DialogResult.OK)
                {
                    ShowRoom(mRoomNo.FloorInfo.FloorId);
                }
            }
        }
예제 #3
0
        private void pbtnEditOrder_Click(object sender, EventArgs e)
        {
            OrderInfoModel mOrder = GetSelectedOrder();

            if (mOrder != null)
            {
                if (mOrder.Status == 'I')
                {
                    cmn.Show("宾客已入住,不能编辑");
                    return;
                }
                FormNewOrder frmNewOrder = new FormNewOrder(mOrder);
                if (frmNewOrder.ShowDialog() == DialogResult.OK)
                {
                    GetOrderInfo();
                }
            }
        }
예제 #4
0
파일: FormMain.cs 프로젝트: gudaling/hotel
 private void tsmCustomerOrder_Click(object sender, EventArgs e)
 {
     BasRoomModel mRoomNo = GetSelectRoomNo(GetSelectPBX(ptcts));
     if (mRoomNo != null)
     {
         FormNewOrder frmNewOrder = new FormNewOrder(mRoomNo);
         if (frmNewOrder.ShowDialog() == DialogResult.OK)
         {
             ShowRoom(mRoomNo.FloorInfo.FloorId);
         }
     }
 }
예제 #5
0
 private void pbtnEditOrder_Click(object sender, EventArgs e)
 {
     OrderInfoModel mOrder = GetSelectedOrder();
     if (mOrder != null)
     {
         if (mOrder.Status == 'I')
         {
             cmn.Show("宾客已入住,不能编辑");
             return;
         }
         FormNewOrder frmNewOrder = new FormNewOrder(mOrder);
         if (frmNewOrder.ShowDialog() == DialogResult.OK)
         {
             GetOrderInfo();
         }
     }
 }
예제 #6
0
 private void pbtnAddOrder_Click(object sender, EventArgs e)
 {
     FormNewOrder frmNewOrder = new FormNewOrder();
     if (frmNewOrder.ShowDialog() == DialogResult.OK)
     {
         GetOrderInfo();
     }
 }