예제 #1
0
파일: FormMain.cs 프로젝트: gudaling/hotel
        private void tsmAddPay_Click(object sender, EventArgs e)
        {
            BasRoomModel mRoomNo = GetSelectRoomNo(GetSelectPBX(ptcts));

            if (mRoomNo != null)
            {
                CustomerStayModel mCustomerStay = hml.GetStayInRoomInfo(mRoomNo, 'I', "M");
                if (mCustomerStay != null)
                {
                    FormAddPay frmAddPay = new FormAddPay(mCustomerStay);
                    if (frmAddPay.ShowDialog() == DialogResult.OK)
                    {
                        ShowRoom(mRoomNo.FloorInfo.FloorId);
                    }
                }
                else
                {
                    cmn.Show("非占用房间无法使用本功能");
                }
            }
        }
예제 #2
0
파일: FormMain.cs 프로젝트: gudaling/hotel
 private void tsmAddPay_Click(object sender, EventArgs e)
 {
     BasRoomModel mRoomNo = GetSelectRoomNo(GetSelectPBX(ptcts));
     if (mRoomNo != null)
     {
         CustomerStayModel mCustomerStay = hml.GetStayInRoomInfo(mRoomNo, 'I', "M");
         if (mCustomerStay != null)
         {
             FormAddPay frmAddPay = new FormAddPay(mCustomerStay);
             if (frmAddPay.ShowDialog() == DialogResult.OK)
             {
                 ShowRoom(mRoomNo.FloorInfo.FloorId);
             }
         }
         else
         {
             cmn.Show("非占用房间无法使用本功能");
         }
     }
 }