예제 #1
0
 private void moveoutBtn_Click(object sender, EventArgs e) {
     MoveOut move = new MoveOut(parkId);
     move.ShowDialog();
     if (move.newTenant) {
         fillParkSpaceInfo(parkId, move.orderId, move.spaceId);
     } else {
         fillParkSpaceInfo(parkId);
     }
 }
예제 #2
0
파일: TenantBill.cs 프로젝트: mchuang/PUB
 private void moveOut_Click(object sender, EventArgs e)
 {
     MoveOut move = new MoveOut(parkId, parkSpaceId);
     Object[] tempInfo = DatabaseControl.getSingleRecord(new String[] { "OrderID", "SpaceID" }, DatabaseControl.spaceTable, "ParkSpaceID=@value0",
         new Object[] { parkSpaceId });
     move.ShowDialog();
     if (move.newTenant) {
         ParkSpaceInfo newTenant = new ParkSpaceInfo();
         newTenant.fillParkSpaceInfo(parkId, (int)tempInfo[0], tempInfo[1].ToString());
         newTenant.ShowDialog();
     }
     tenantList_SelectedIndexChanged(sender, e);
 }