function printSffp(sfsb) {
var parm = "sfsb=" + sfsb + "&fplx=1";
$.ajax({
type: "POST", //必须要用POST
contentType: "application/x-www-form-urlencoded;charset=UTF-8",
url: "../mzsf/fpcx.aspx/printSfXP?" + parm,
success: function (result) {
if (result != false) { }
else { $.messager.alert('打印提醒', '收费记录不存在'); }
}
});
}
public bool printSfXP(string fplx, string sfsb)
{
bool result = true;
decimal decTotal = 0;
StringBuilder sb = new StringBuilder();
ResultObject mzsf1 = new BPL.mzsf.MzsfManager().GetMzsfk1(long.Parse(sfsb));
DataTable ksxxdt = DBVisitor.ExecuteTable(SqlLoad.GetFormat("ZJXP_GetKSZGxx_CF", sfsb));
if (ksxxdt.Rows.Count < 1)
{
ksxxdt = DBVisitor.ExecuteTable(SqlLoad.GetFormat("ZJXP_GetKSZGxx_YJ", sfsb));
}
DataTable dtmzsf1 = null;
ResultObject ObjBrxx = new ResultObject();
if (mzsf1.RTable.Rows.Count > 0)//收费记录存在 mz_mzsfk1
{
sb.Append(" " + Yljgmc + "\n");
sb.Append(" 结算电子凭证\n\n\n");
dtmzsf1 = mzsf1.RTable;
ObjBrxx = new BPL.Gy.GyManager().GetComplexBrxxByJzkh(dtmzsf1.Rows[0]["JZKH"].ToString());
sb.Append("就诊卡号:" + dtmzsf1.Rows[0]["JZKH"].ToString() + "\n");
sb.Append("就诊科室:" + ksxxdt.Rows[0]["KSMC"] + "\n");
sb.Append("姓名:" + dtmzsf1.Rows[0]["BRXM"].ToString() + " 性质:" + ObjBrxx.RTable.Rows[0]["XZMC"].ToString() + "\n");
sb.Append("交易日期:" + dtmzsf1.Rows[0]["SFRQ"].ToString() + "\n\n");
}