Ejemplo n.º 1
0
        private void Tsmi_print_Click(object sender, EventArgs e)
        {
            if (common_file.common_roles.get_user_qx("B_syjll_print", common_file.common_app.user_type) == false)
            {
                return;
            }

            if (dg_yjll.CurrentRow != null && dg_yjll.CurrentRow.Index > -1 && dg_yjll.CurrentRow.Index < ds.Tables[0].Rows.Count)
            {
                if (dg_yjll.CurrentRow != null && common_file.common_app.message_box_show_select(common_file.common_app.message_title, "确定要打印单房押金嘛?") == true)
                {
                    int         i   = dg_yjll.CurrentRow.Index;
                    DataRowView dgr = dg_yjll.CurrentRow.DataBoundItem as DataRowView;
                    i = ds.Tables[0].Rows.IndexOf(dgr.Row);

                    //DataSet ds_tmp_0 = B_Qcounter.GetList("  id>=0  and yydh='" + common_file.common_app.yydh + "'");
                    string sk_tt   = "";
                    string sk_tt_0 = ds.Tables[0].Rows[i]["sktt"].ToString();
                    if (sk_tt_0 == common_file.common_sktt.sktt_hy || sk_tt_0 == common_file.common_sktt.sktt_tt)
                    {
                        sk_tt = "tt";
                    }
                    else
                    {
                        sk_tt = "sk";
                    }
                    //Szw_print_jzd Szw_print_jzd_new;
                    common_file.common_PrintFrm PrintFrm = new Hotel_app.common_file.common_PrintFrm(ds.Tables[0].Rows[i]["lsbh"].ToString(), ds.Tables[0].Rows[i]["sjxfje"].ToString(), "", "Syjcz", "yjd", sk_tt, ds.Tables[0].Rows[i]["jzbh"].ToString());
                    //Szw_print_jzd_new = new Szw_print_jzd(ds.Tables[0].Rows[i]["lsbh"].ToString(), ds.Tables[0].Rows[i]["sjxfje"].ToString(), "", "Syjcz", "yjd", sk_tt, ds.Tables[0].Rows[i]["jzbh"].ToString()); Szw_print_jzd_new.Visible = false;
                }
            }
        }
Ejemplo n.º 2
0
 private void b_dy_Click(object sender, EventArgs e)
 {
     if (common_file.common_roles.get_user_qx("B_zwcz_print", common_file.common_app.user_type) == false)
     {
         return;
     }
     if (common_file.common_app.message_box_show_select(common_file.common_app.message_title, "确定要打印此账单嘛?") == true)
     {
         //Szw_print_jzd Szw_print_jzd_new;
         common_file.common_app.get_czsj();
         common_file.common_PrintFrm PrintFrm = new Hotel_app.common_file.common_PrintFrm(lsbh_gd, tB_fk.Text.Trim(), tB_xf.Text.Trim(), "Sjzmx", "jzd_gd", sktt, jzbh_gd);
         //Szw_print_jzd_new = new Szw_print_jzd(lsbh_gd, tB_fk.Text.Trim(), tB_xf.Text.Trim(), "Sjzmx", "jzd_gd", sktt, jzbh_gd); Szw_print_jzd_new.Visible = false;
         string gd_bz = "";
         if (jzbh_gd.Trim() == "")
         {
             gd_bz = "结账前的改单打印";
         }
         if (jzbh_gd.Trim() != "")
         {
             gd_bz = "结账后的改单打印";
         }
         common_file.common_czjl.add_czjl(common_file.common_app.yydh, common_file.common_app.qymc, common_file.common_app.czy, "改单打印", "改单的临时编号为:" + lsbh_gd + "当前为:" + gd_bz, "改单后的消费金额为:" + tB_xf.Text.Trim() + "改单后付款金额为:" + tB_fk.Text.Trim(), DateTime.Now);
         Cursor.Current = Cursors.Default;
     }
 }
Ejemplo n.º 3
0
        private void Tsmi_print_gl_Click(object sender, EventArgs e)
        {
            if (common_file.common_roles.get_user_qx("B_syjll_print", common_file.common_app.user_type) == false)
            {
                return;
            }
            BLL.Common B_common    = new Hotel_app.BLL.Common();
            DataSet    ds_gl_print = B_common.GetList(" select * from Syjcz ", sql_condition + ls_condition);

            if (ds_gl_print != null && ds_gl_print.Tables[0].Rows.Count > 0)
            {
                if (common_file.common_app.message_box_show_select(common_file.common_app.message_title, "确定要打印当前过滤出的押金记录嘛?") == true)
                {
                    //dgvprint_app dgv_print_new = new dgvprint_app("", "", "multi", ds_gl_print);
                    common_file.common_PrintFrm PrintFrm = new Hotel_app.common_file.common_PrintFrm("zd_yjd_gl", ds_gl_print);
                }
            }
        }