123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- /* ---------------------------------------------------------------------
-
- SMRSC08200_구매인터페이스거래처정보.xrw (SMRSC08200.xfm - JScript )
- - Version :
- 1) : Ver.1.00.01
- : Create By HR Choi
- : 2015.05.02
- ---------------------------------------------------------------------- */
-
-
- var vGoodNew = "U"; //U:UPDATE, N:NEW
- // --------------------------------------------------
- // 사용자권한 Check
- // --------------------------------------------------
- function fInitForm() {
- fInitialize();
- }
-
- // --------------------------------------------------
- // 사용자권한 Check
- // --------------------------------------------------
- function fCheckAuth() {
- // btn_search.disabled = rAuth ;
- btn_save.disabled = xAuth ;
- }
- // --------------------------------------------------
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- // --------------------------------------------------
- function fInitialize() {
- model.resetInstanceNode("/root/send");
- misfGridInit(grd_rscifcust);
-
- rszfUserInstList(cmb_instcd,getUserInfo("userid"),"Y");
-
- //기관코드 읽어오는 부분 넣기
- var instcd = getUserInfo("dutplceinstcd");
- var instnm = getUserInfo("dutplceinstnm");
-
- model.setValue(ipt_maindeptcd.attribute("ref") , getUserInfo("dutplcecd")); // 부서코드
- model.setValue(opt_mngtdeptnm.attribute("ref") , getUserInfo("dutplcenm")); // 부서명칭
-
-
- if(instcd.length > 0)model.setValue(cmb_instcd.attribute("ref"), instcd);
- else
- {
- if(cmb_instcd.length> 0) cmb_instcd.selectedindex= 0;
- }
-
- misfMsterDetailSet(grd_rscifcust,null, "TRRSC08200" ,"Y");
-
- grd_rscifcust.explorerbar = "sortshow";
-
- model.refresh();
- }
-
- function fSaveDataSetting(pSubmit_Id) {
- fgrid = grd_rscifcust;
-
- // var insfromdd = model.getValue(ipt_insfromdd.attribute("ref"));
-
- model.removenode("/root/send/rscifcustlist");
- model.makeNode("/root/send/rscifcustlist");
-
- model.setValue("/root/send/rscifcustlist" , grd_rscifcust.getUpdateData());
-
- submit(pSubmit_Id);
-
- if (model.getValue(gvErrorMsgPath + "/type") != "error") btn_search.dispatch("DOMActivate");
- }
- //
- function fOnButtonClick(pGrid) {
- if (pGrid.col == pGrid.colRef("entrregno")) {
- rszfOpenPopUpListByWndName(pGrid,"","entrregno,entrregnonnm","SPRSD00220","instcd","instcd");
- }
-
- //
- if (pGrid.col == pGrid.colRef("maindeptcd")) {
-
- misfOpenPopUpList("02", pGrid,"", "maindeptcd,maindeptcdnm",pGrid.valueMatrix(pGrid.row, pGrid.colRef("instcd")),"instcd" );
- }
-
- model.refresh();
- }
-
- //
- function fValueChanged(pGrid) {
- if (pGrid.col == pGrid.colRef("entrregno")) {
- rszfOpenPopUpListByWndName(pGrid,"","entrregno,entrregnonnm","SPRSD00220","instcd","instcd");
- }
- //
- if (pGrid.col == pGrid.colRef("maindeptcd")) {
- misfValidationCheck("02", "", "maindeptcd,maindeptcdnm" );
- }
-
- model.refresh();
- }
- /* ------------------------------------------------- */
- /* ------End Of List ------------------------------- */
- /* -------------------------------------------------- */
|