private void Btn_fjbh_Click(object sender, EventArgs e) { common_file.common_app.get_czsj(); if (yddj_type == common_file.common_app.yddj_type_personal) { Ffjzt.Ffjzt_select Ffjzt_select_new = new Hotel_app.Ffjzt.Ffjzt_select(tB_fjrb.Text.Trim(), this.ddsj, this.lksj, this.yddj); Ffjzt_select_new.Left = this.Left + tB_fjbh.Left; Ffjzt_select_new.Top = this.Top + tB_fjbh.Top; Ffjzt_select_new.yddj_type = yddj_type; if (Ffjzt_select_new.ShowDialog() == DialogResult.OK) { string fjrb_temp = tB_fjrb.Text; tB_fjrb.Text = Ffjzt_select_new.get_fjrb; tB_fjbh.Text = Ffjzt_select_new.get_fjbh; if (tB_lzfs.Text.Trim() == "") { tB_lzfs.Text = "1"; } if (fjrb_temp != tB_fjrb.Text && tB_fjrb.Text != "") { get_gj(tB_fjrb.Text); } } Ffjzt_select_new.Dispose(); tB_fjbh.Focus(); } else if (yddj_type == common_file.common_app.yddj_type_group) { common_file.common_app.Message_box_show(common_file.common_app.message_title, "团体、会议不能直接在此排房!"); } Cursor.Current = Cursors.Default; }
private void btn_ydpf_Click(object sender, EventArgs e) { common_file.common_app.get_czsj(); if (tB_fjrb.Text.Trim() == "" || (tB_fjrb.Text != "" && judge_add_edit != common_file.common_app.get_edit)) { common_file.common_app.Message_box_show(common_file.common_app.message_title, "请先初始化房间类型再排房"); return; } if (M_Qskyd_fjrb.fjrb != tB_fjrb.Text.Trim()) { common_file.common_app.Message_box_show(common_file.common_app.message_title, "请先初始化房间类型再排房"); return; } Ffjzt.Ffjzt_select Ffjzt_select_new = new Hotel_app.Ffjzt.Ffjzt_select(tB_fjrb.Text.Trim(), this.ddsj, this.lksj, this.yddj); Ffjzt_select_new.Left = this.Left + tB_fjbh.Left; Ffjzt_select_new.Top = this.Top + tB_fjbh.Top; Ffjzt_select_new.yddj_type = yddj_type; //给团体多间排房的参数赋值 Ffjzt_select_new.tt_Qskdy_fjrb_id = this.Qskdj_fjrb_id; Ffjzt_select_new.tt_fjrb = tB_fjrb.Text.Trim(); Ffjzt_select_new.tt_fjjg = tB_fjjg.Text.Trim(); Ffjzt_select_new.tt_lsbh = this.lsbh; Ffjzt_select_new.tt_shqh = cB_shqh.Text.Trim(); Ffjzt_select_new.tt_yh = tB_yh.Text.Trim(); Ffjzt_select_new.tt_lzfs = tB_lzfs.Text.Trim(); Ffjzt_select_new.tt_bz = tB_bz.Text.Trim(); if (Ffjzt_select_new.ShowDialog() == DialogResult.OK) { if (Ffjzt_select_new.sh_ttpf != "tt") { tB_fjrb.Text = Ffjzt_select_new.get_fjrb; tB_fjbh.Text = Ffjzt_select_new.get_fjbh; } else { this.Close(); this.Dispose(); } } Ffjzt_select_new.Close(); Ffjzt_select_new.Dispose(); Cursor.Current = Cursors.Default; }