123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123 |
- /*---------------------------------------------------------------------
- 미불출, 응급불출 (SPMNP03100.xfm SPMNP03200.xfm - JScript )
- - Version :
- 1) : Ver.1.00.01
- : Create By 김 진 명
- : 2009.03.25
- ----------------------------------------------------------------------*/
- /* --------------------------------------------------*/
- /* type : function */
- /* access : public */
- /* desc : 초기화 */
- /* param : */
- /* return : */
- /* --------------------------------------------------*/
- function fInit(pFlag) {
- model.setValue("/root/main/cond/openflag", opener.javascript.getParameter("openflag"));
- model.removenode("/root/send");
- if( pFlag == "E" ) {
- model.removenode("/root/main/reqerlist");
- grd_erlist.explorerbar = "sort";
- grd_erlist.fixedcellcheckbox(0,3) = true;
- }else {
- model.removenode("/root/main/undelivelist");
- grd_undelivelist.explorerbar = "sort";
- grd_undelivelist.fixedcellcheckbox(0,3) = true;
- }
- model.setValue("/root/main/cond/fromdd", getCurrentDate().substr(0, 8));
- submit("TRMNP03004", false);
- addComboItem("cmb_rosette", "전 체", "", "above" );
- model.removenode("/root/send");
- model.makeNode("/root/send");
- model.makeValue("/root/send/opcnfmdd" ,model.getValue("/root/main/cond/fromdd") );
- model.makeValue("/root/send/rosette" ,model.getValue("/root/main/cond/oprosette"));
- submit("TRMNP03002", false); // 수술실코드 가져오기
- addComboItem("cmb_oproomlist","전체","","above");
- model.refresh();
- }
- /*--------------------------------------------------*/
- /*type : function */
- /*access : public */
- /*desc : 응급 요청 리스트 조회 */
- /*param : */
- /*return : */
- /*--------------------------------------------------*/
- function fSearch() {
- model.removenode("/root/send");
- model.makeNode("/root/send/reqdata");
- model.copyNode("/root/send/reqdata", "/root/main/cond");
- submit("TRMNP03005");
- }
- /*--------------------------------------------------*/
- /*type : function */
- /*access : public */
- /*desc : 미불출 리스트 조회 */
- /*param : */
- /*return : */
- /*--------------------------------------------------*/
- function fUnDeliveSearch() {
- model.removenode("/root/send");
- model.makeNode("/root/send/reqdata");
- model.copyNode("/root/send/reqdata", "/root/main/cond");
- submit("TRMNP03006");
- }
- /*--------------------------------------------------*/
- /*type : function */
- /*access : public */
- /*desc : 미불출, 응급청구 불출 */
- /*param : S:미불출, E:응급청구 */
- /*return : */
- /*--------------------------------------------------*/
- function fDeliveCnfm(pFlag) {
- var chkflag, goodcd, allsizespecid, oprsrvno, iRows, nodePath, oproomcd, undeliveresn, deliveqty;
- var cnt = 0;
- var delivelist = "m▦goodcd▦allsizespecid▦oproomcd▦oprsrvno▦undeliveresn▦deliveqty";
- if( pFlag == "S" ) {
- iRows = grd_undelivelist.rows;
- nodePath = "/root/main/undelivelist";
- }else {
- iRows = grd_erlist.rows;
- nodePath = "/root/main/reqerlist";
- }
- for(var i = 1; i <= iRows; i++ ) {
- chkflag = model.getValue(nodePath + "[" + i + "]/chkflag");
- goodcd = model.getValue(nodePath + "[" + i + "]/goodcd");
- allsizespecid = model.getValue(nodePath + "[" + i + "]/allsizespecid");
- oprsrvno = model.getValue(nodePath + "[" + i + "]/oprsrvno");
- oproomcd = model.getValue(nodePath + "[" + i + "]/oproomcd");
- undeliveresn = model.getValue(nodePath + "[" + i + "]/undeliveresn");
- deliveqty = model.getValue(nodePath + "[" + i + "]/deliveqty");
- if( chkflag == "true" ) {
- delivelist = delivelist + "▩" + "U" + "▦" + goodcd + "▦" + allsizespecid + "▦" + oproomcd + "▦" + oprsrvno + "▦" + undeliveresn + "▦" + deliveqty;
- cnt++
- }
- }
- if( cnt > 0 ) {
- model.removenode("/root/send");
- model.makeNode("/root/send/reqdata");
- model.copyNode("/root/send/reqdata", "/root/main/cond");
- model.makeValue("/root/send/savedata", delivelist);
- //submit("TXMNP03006");
- }else {
- messageBox("선택하신게 없습니다.!", "E000");
- }
- }
|