12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
-
- var sINPATLIST_PATH = "/root/main/inpatinfo/inpatlist";
- var sDSCHDCLRT_PATH = "/root/main/dschdclrt/dschdclrt";
- var sORDERBY = "";
- function fInitialize_SMMMO04300(){
- model.removeNodeset(sINPATLIST_PATH);
- model.setValue(instance1.selectSingleNode("root/main/cond/indd"), String(getCurrentDate()));
- model.setValue("/root/main/cond/orddeptcd", getUserInfo("dutplcecd"));
- model.setValue("/root/main/cond/subdeptcd", "-");
- model.setValue("/root/main/cond/medispclid", "-");
- model.setValue("/root/main/cond/atdoctid", "-");
- model.setValue("/root/main/cond/wardcd", "-");
- fReqInPatList();
- }
- function fReqInPatList(){
- model.makeValue("/root/main/cond/srchdd", model.getValue(instance1.selectSingleNode("root/main/cond/indd")));
- model.copyNode("/root/send/reqdata", "/root/main/cond");
-
- var offset = parseInt(model.getValue("root/page/curpage"));
-
- if(offset == 1)
- {
- offset = offset - 1;
- }
- else
- {
- offset = (offset - 1) * 10;
- }
-
- model.makeValue("/root/send/reqdata/offset", String(offset));
- model.makeValue("/root/send/reqdata/pagesize", model.getValue("root/page/pagesize"));
-
-
-
- if(submit("TRMOB00001")){
- model.copyNode(parent.instance1.selectSingleNode("root/temp/inpatlist"), instance1.selectSingleNode("root/init"));
- model.copyNode(parent.instance1.selectSingleNode("root/cond/inpatlist"), instance1.selectSingleNode("root/main/cond"));
- }
-
- var maxpage = parseInt(model.getValue("/root/main/inpatinfo/retcnt/maxcnt"));
- if(maxpage < 10)
- {
- model.setValue("/root/page/maxpage", "1");
- }
- else
- {
- maxpage = (maxpage / 10) - ((maxpage % 10) / 10) + 1;
- model.setValue("/root/page/maxpage", String(maxpage));
- }
-
- model.setValue("/root/main/cond/totcnt", model.getValue("/root/main/inpatinfo/retcnt/maxcnt"));
- model.refresh();
-
- }
|