123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- /* ---------------------------------------------------------------------
- CaseBag공급관리(SMMNP03400.xfm - JScript )
- - Version :
- 1) : Ver.1.00.01
- : Create By 김진명
- : 2007.10.08
- ---------------------------------------------------------------------- */
- /* --------------------------------------------------*/
- /* type : function */
- /* access : public */
- /* desc : CaseBag공급관리 초기화 */
- /* param : */
- /* return : */
- /* --------------------------------------------------*/
- function fInit() {
- var curtDate = getCurrentDate();
- curtDate = curtDate.substr(0, 8);
- model.setValue("/root/main/cond/opdd", curtDate);
- submit("TRMNP03004");
- addComboItem("cmb_rosette", "전 체", "", "above" );
- model.removenode("/root/send");
- model.makeNode("/root/send");
- model.makeValue("/root/send/opcnfmdd" ,model.getValue("/root/main/cond/opdd") );
- model.makeValue("/root/send/rosette" ,model.getValue("/root/main/cond/rosette"));
- submit("TRMNP03002"); // 수술실코드 가져오기
- addComboItem("cmb_oproomlist","전체","","above");
- model.removeNodeset("/root/main/cartbaglist");
- model.refresh();
- //fSearch();
- }
- /* --------------------------------------------------*/
- /* type : function */
- /* access : public */
- /* desc : 콤보아이템 제거 */
- /* param : */
- /* return : */
- /* --------------------------------------------------*/
- function removeComboItem( comboID ) {
- var comboObj = document.all.item(comboID);
- var comboItemNodeSet = comboObj.choices.itemset.attribute("nodeset");
- model.removenode(comboItemNodeSet + "[1]");//CCR
- model.removenode(comboItemNodeSet + "[1]");//C-C(Clean-Zone)
- model.removenode(comboItemNodeSet + "[1]");//C-O(OR창고)
- model.refresh();
- }
- /* --------------------------------------------------*/
- /* type : function */
- /* access : public */
- /* desc : CaseBag공급관리 조회 */
- /* param : */
- /* return : */
- /* --------------------------------------------------*/
- function fSearch() {
- var iRows = -1;
- //var deliveoproom, realdeliveoproom;
- var opstatcd;
- model.removenode("/root/send");
- model.makeNode("/root/send/reqdata");
- model.copyNode("/root/send/reqdata", "/root/main/cond");
- submit("TRMNP03402");
- iRows = getNodesetCount("/root/main/cartbaglist");
- for(var i = 1; i <= iRows; i++ ) {
- opstatcd = model.getValue("/root/main/cartbaglist[" + i + "]/opstatcd").substr(1,1);
- if( opstatcd == "9" ) {//취소이면
- grd_cartbaglist.rowstyle( i , "data", "color") = "#D22D2D";
- }
- }
- model.refresh();
- }
- /* --------------------------------------------------*/
- /* type : function */
- /* access : public */
- /* desc : CaseBag공급관리 저장 */
- /* param : */
- /* return : */
- /* --------------------------------------------------*/
- function fSave() {
- var iRows = -1;
- var rtnflag, oprsrvno, oproomcd;
- var cnt = 0;
- iRows = grd_cartbaglist.rows;
- var cartbaglist = "m▦rownum▦oprsrvno▦oproomcd";
- for( var i = 1; i <= iRows; i++ ) {
- rtnflag = model.getValue("/root/main/cartbaglist["+i+"]/rtnflag");
- oprsrvno = model.getValue("/root/main/cartbaglist["+i+"]/oprsrvno");
- oproomcd = model.getValue("/root/main/cartbaglist["+i+"]/oproomcd");
- if( rtnflag == "true" ) {
- cartbaglist = cartbaglist + "▩" + "u" + "▦" + i + "▦" + oprsrvno + "▦" + oproomcd;
- cnt += 1;
- }
- }
- if( cnt > 0 ) {
- model.copyNode("/root/send/reqdata", "/root/main/cond");
- model.setValue("/root/send/savedata", cartbaglist);
- submit("TXMNP03401");
- }else {
- messageBox("선택한것이", "I004");
- }
- }
|