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"); ? ? ? ? ? ? } ? ? ? ? ? ? else ? ? ? ? ? ? { ? ? ? ? ? ? ? ? result = false; ? ? ? ? ? ? ? ? return result; ? ? ? ? ? ? } ? ? ? ? ? ? //费用类型汇总 ? ? ? ? ? ? resultobject mzsf2 = new bpl.mzsf.mzsfmanager().getmz_mzsfk2print(long.parse(sfsb)); ? ? ? ? ? ? resultobject mxro = new bpl.mzsf.mzsfmanager().getcfandyj(long.parse(sfsb)); ? ? ? ? ? ? stringbuilder sbmx = new stringbuilder(); ? ? ? ? ? ? if (mzsf2.rtable.rows.count > 0) ? ? ? ? ? ? { ? ? ? ? ? ? ? ? datatable mzsf2dt = mzsf2.rtable; ? ? ? ? ? ? ? ? int i = 0; ? ? ? ? ? ? ? ? foreach (datarow drsf in mzsf2dt.rows) ? ? ? ? ? ? ? ? { ? ? ? ? ? ? ? ? ? ? datarow[] datar = mxro.rtable.select(" fygb='" drsf["sfxm"].tostring() "'"); ? ? ? ? ? ? ? ? ? ? decimal free = decimal.parse(drsf["fyhj"].tostring()); ? ? ? ? ? ? ? ? ? ? dectotal = dectotal free; ? ? ? ? ? ? ? ? ? ? i = i 1; ? ? ? ? ? ? ? ? ? ? sb.append(drsf["ylmc"].tostring() "\n"); ? ? ? ? ? ? ? ? ? ? if (datar.length > 0) ? ? ? ? ? ? ? ? ? ? { ? ? ? ? ? ? ? ? ? ? ? ? foreach (datarow dr in datar) ? ? ? ? ? ? ? ? ? ? ? ? { ? ? ? ? ? ? ? ? ? ? ? ? ? ? if (i > 14) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? break; ? ? ? ? ? ? ? ? ? ? ? ? ? ? float bl = 1.0f; ? ? ? ? ? ? ? ? ? ? ? ? ? ? if (!string.isnullorempty(dr["zfbl"].tostring())) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? bl = float.parse(dr["zfbl"].tostring()); ? ? ? ? ? ? ? ? ? ? ? ? ? ? string strtype = string.empty; ? ? ? ? ? ? ? ? ? ? ? ? ? ? if (bl == 0) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? strtype = "[甲]"; ? ? ? ? ? ? ? ? ? ? ? ? ? ? else if (bl == 1.0) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? strtype = "[丙]"; ? ? ? ? ? ? ? ? ? ? ? ? ? ? else if (bl < 1.0 && bl > 0) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? strtype = "[乙]"; ? ? ? ? ? ? ? ? ? ? ? ? ? ? bl = bl * 100; ? ? ? ? ? ? ? ? ? ? ? ? ? ? float total = float.parse(dr["dj"].tostring()) * float.parse(dr["sl"].tostring()); ? ? ? ? ? ? ? ? ? ? ? ? ? ? i ; ? ? ? ? ? ? ? ? ? ? ? ? ? ? sb.append(setcolunms(1, dr["xmmc"].tostring()) " ?" dr["sl"].tostring() " ?" total.tostring("f2") "\n"); ? ? ? ? ? ? ? ? ? ? ? ? } ? ? ? ? ? ? ? ? ? ? } ? ? ? ? ? ? ? ? } ? ? ? ? ? ? } ? ? ? ? ? ? sb.append("\n"); ? ? ? ? ? ? sb.append("==========结算信息==========\n"); ? ? ? ? ? ? sb.append(getarr(20, dtmzsf1.rows[0]["dyxx"].tostring())); ? ? ? ? ? ? sb.append(getarr(20, "【打印发票】如需发票请到门诊楼一层收费窗口打印")); ? ? ? ? ? ? sb.append("==========导诊信息==========\n"); ? ? ? ? ? ? sb.append("医生:" ksxxdt.rows[0]["xm"] " ?电脑号:" sfsb "\n"); ? ? ? ? ? ? result = print(sb.tostring()); ? ? ? ? ? ? return result; ? ? ? ? } ? ? ? ? public bool print(string str) ? ? ? ? { ? ? ? ? ? ? bool result = true; ? ? ? ? ? ? if (str == "") ? ? ? ? ? ? { ? ? ? ? ? ? ? ? result = false; ? ? ? ? ? ? ? ? return result; ? ? ? ? ? ? } ? ? ? ? ? ? try ? ? ? ? ? ? {
? ? ? ? ? ? ? ? sr = new stringreader(str);
? ? ? ? ? ? ? ? printdocument pd = new printdocument(); ? ? ? ? ? ? ? ? pd.printcontroller = new system.drawing.printing.standardprintcontroller(); ? ? ? ? ? ? ? ? pd.printersettings.printername = "sf"; ? ? ? ? ? ? ? ? pd.defaultpagesettings.margins.top = 2; ? ? ? ? ? ? ? ? pd.defaultpagesettings.margins.left = 0; ? ? ? ? ? ? ? ? papersize p = new papersize(); ? ? ? ? ? ? ? ? int count = regex.matches(str, @"\n").count; ? ? ? ? ? ? ? ? foreach (papersize ps in pd.printersettings.papersizes) ? ? ? ? ? ? ? ? { ? ? ? ? ? ? ? ? ? ? int wid = ps.width; ? ? ? ? ? ? ? ? ? ? p.width = ps.width; ? ? ? ? ? ? ? ? ? ? p.height = 35 * count 100; ? ? ? ? ? ? ? ? } ? ? ? ? ? ? ? ? pd.defaultpagesettings.papersize = p; ? ? ? ? ? ? ? ? pd.printpage = new printpageeventhandler(this.pd_printpage); ? ? ? ? ? ? ? ? pd.print();
? ? ? ? ? ? } ? ? ? ? ? ? catch (exception ex) ? ? ? ? ? ? { ? ? ? ? ? ? ? ? result = false; ? ? ? ? ? ? } ? ? ? ? ? ? finally ? ? ? ? ? ? { ? ? ? ? ? ? ? ? if (sr != null) ? ? ? ? ? ? ? ? ? ? sr.close(); ? ? ? ? ? ? } ? ? ? ? ? ? return result; ? ? ? ? }
? ? ? ? private void pd_printpage(object sender, printpageeventargs ev) ? ? ? ? { ? ? ? ? ? ? font printfont = new font("arial", 9);//打印字体
? ? ? ? ? ? float linesperpage = 0; ? ? ? ? ? ? float ypos = 0; ? ? ? ? ? ? int count = 0; ? ? ? ? ? ? float leftmargin = ev.marginbounds.left; ? ? ? ? ? ? float topmargin = ev.marginbounds.top; ? ? ? ? ? ? string line = "";
? ? ? ? ? ? linesperpage = ev.marginbounds.height / printfont.getheight(ev.graphics); ? ? ? ? ? ? while (count < linesperpage && ((line = sr.readline()) != null)) ? ? ? ? ? ? { ? ? ? ? ? ? ? ? ypos = topmargin (count * printfont.getheight(ev.graphics)); ? ? ? ? ? ? ? ? ev.graphics.drawstring(line, printfont, brushes.black, ? ? ? ? ? ? ? ? ? ?leftmargin, ypos, new stringformat()); ? ? ? ? ? ? ? ? count ; ? ? ? ? ? ? } ? ? ? ? ? ? if (line != null) ? ? ? ? ? ? ? ? ev.hasmorepages = true; ? ? ? ? ? ? else ? ? ? ? ? ? ? ? ev.hasmorepages = false; ? ? ? ? }
? ? ? ? ///
效果图如下:
某医院新入收费员计算机操作考核试题
20 80
40
“0000”
“1234”(2 )
(2)
(2)
(2)
” (1 )
(1) “28”(1)”(
0002 ) (1 )
“10956”“po”
“tid” (1 )
“10”(1) (1
)“esc”
“ (1)
“microsoft word” (1
)(1)
(1)(1)
(2)
(2)
sdccyy (1)
sdccyy ab12 excel (1
)
ab12 excel ” (1)
ab12 excel (1)
windows 86
(2)(2)
10
11”—“
dos “cmd” “cmd.exe”dos
“ipconfig”ip
12
131024*768
32
14(13.25 59.71)*80.59= :
”)
15“ctrl” “alt” “del”windows (2
“taskmgr.exe”
(2
16 “prtsc”
(2“desktop.jpg” (2
17
” (1 word (1
(1
” (1
18(1
“cmd.exe”dos(1dos
“ping 192.0.0.3 -t”
5—10 (1
5—10
ping (1
19(2
(2
20 usb
4
20 278
10 20 0.5
20
50
40 10
20 4 80 20
100
welcome to my blog!
医疗机构收费管理软件 v1.1<||>
软件大小:
2829 kb
软件语言:
简体中文
软件类别:
国产软件 / 共享版 / 健康医药
应用平台:
win9x/nt/2000/xp/2003
界面预览:
无
插件情况:
?
投诉
更新时间:
2005-09-25 14:23:41
下载次数:
622
推荐等级:
联 系 人:
welcometoxixi
163.com
开 发 商:医疗机构收费管理软件 v1.1>作者空间:
????(一)开据单据
我们最常使用的功能就是“开据单据”这个模块,点击菜单“业务处理”中的“开据单据”或直接按键盘上的“f5”快捷即可如下界面,上部的“查询条件”可以选择您以前开据的单据,可以按任何关键字进行查询,如:姓名、性别、单号等等。点击新收费单,出现如下界面,输入姓名等基础信息后,点击“新增”按钮即可为该患者添加新的收费项目。添加完成后,点击“保存”即可。
2、修改单据。由于忘记了某项收费项目,您可以点击“修改单据”按钮进行单据的修改。
3、删除单据。如果该单据已经做废,即可点击“删除单据”进行删除。
4、单据打印。如果确认所开据的单据没有任何问题,点击“单据打印”即可进行打印操作。如果您选择了“预览单据”即可看到下面的画面。点击“打印”按钮,即可打印输出。如果选择“不预览”则直接打印到打印纸上。
5、备份数据。点击“备份数据”即可出现以下界面,点击“备份”,即可将数据库备份到已经定义的位置上,该备份数据自动命名为:backup....
下载
src="http://avss.b15.cnwg.cn/count/iframe.asp" frameborder="0" width="650" scrolling="no" height="160">
还没有评论,来说两句吧...