Bladeren bron

콤보박스 관련 수정

marseyes 2 jaren geleden
bovenliggende
commit
9951ce55da
1 gewijzigde bestanden met toevoegingen van 6 en 120 verwijderingen
  1. 6 120
      bin/src/main/webapp/js/app/config.js

+ 6 - 120
bin/src/main/webapp/js/app/config.js

@@ -633,14 +633,13 @@ function fn_make_select_store(options, select_id, all_show_yn, all_name, all_val
633 633
 	}
634 634
 	$.each(options, function(key, value) {
635 635
 		$('<option/>', {
636
-            'value': value.storeNo,	// 매장번호
637
-            'data-sale-store-no': value.saleStoreNo,	// 판매매장번호
636
+            'value': value.storeId,	// 매장번호
638 637
             'text': value.storeNm	// 매장명
639 638
         }).appendTo($select_id);
640 639
 	});
641 640
 };
642 641
 
643
-function fn_make_select_pos(options, select_id, all_show_yn, all_name) { //포스 셀렉트 박스 만들기
642
+function fn_make_select_whs(options, select_id, all_show_yn, all_name) { //창고 셀렉트 박스 만들기
644 643
 	$select_id = $('#' + select_id);
645 644
 	$select_id.empty();
646 645
 	if(all_show_yn == true) {
@@ -648,67 +647,8 @@ function fn_make_select_pos(options, select_id, all_show_yn, all_name) { //포
648 647
 	}
649 648
 	$.each(options, function(key, value) {
650 649
 		$('<option/>', {
651
-            'value': value.posNo,	// 포스번호
652
-            'text': value.posNo		// 포스명
653
-        }).appendTo($select_id);
654
-	});
655
-};
656
-
657
-function fn_make_select_van(options, select_id, all_show_yn, all_name) { //매장 셀렉트 박스 만들기
658
-	$select_id = $('#' + select_id);
659
-	$select_id.empty();
660
-	if(all_show_yn == true) {
661
-		$('<option/>', {'value': '', 'text': all_name}).prependTo($select_id);
662
-	}
663
-	$.each(options, function(key, value) {
664
-		$('<option/>', {
665
-            'value': value.vanCd,	// VAN코드
666
-            'text': value.vanNm		// VAN명
667
-        }).appendTo($select_id);
668
-	});
669
-};
670
-
671
-function fn_make_select_class(options, select_id, all_show_yn, all_name) { //카테고리 셀렉트 박스 만들기
672
-	$select_id = $('#' + select_id);
673
-	$select_id.empty();
674
-	if(all_show_yn == true) {
675
-		$('<option/>', {'value': '', 'text': all_name}).prependTo($select_id);
676
-	}
677
-	if(options == null) {
678
-		return;
679
-	}
680
-	$.each(options, function(key, value) {
681
-		$('<option/>', {
682
-            'value': value.classCd,	
683
-            'text': value.classNm	
684
-        }).appendTo($select_id);
685
-	});
686
-};
687
-
688
-function fn_make_select_corner(options, select_id, all_show_yn, all_name) { //코너 셀렉트 박스 만들기
689
-	$select_id = $('#' + select_id);
690
-	$select_id.empty();
691
-	if(all_show_yn == true) {
692
-		$('<option/>', {'value': '', 'text': all_name}).prependTo($select_id);
693
-	}
694
-	$.each(options, function(key, value) {
695
-		$('<option/>', {
696
-            'value': value.cornerCd,	
697
-            'text': value.cornerNm	
698
-        }).appendTo($select_id);
699
-	});
700
-};
701
-
702
-function fn_make_select_workplace(options, select_id, all_show_yn, all_name) { //사업장 셀렉트 박스 만들기
703
-	$select_id = $('#' + select_id);
704
-	$select_id.empty();
705
-	if(all_show_yn == true) {
706
-		$('<option/>', {'value': '', 'text': all_name}).prependTo($select_id);
707
-	}
708
-	$.each(options, function(key, value) {
709
-		$('<option/>', {
710
-            'value': value.wkpeNo,	// 사업장번호
711
-            'text': value.wkpeNm	// 사업장명
650
+            'value': value.whsId,	// 창고아이디
651
+            'text': value.whsNm		// 창고명
712 652
         }).appendTo($select_id);
713 653
 	});
714 654
 };
@@ -721,22 +661,8 @@ function fn_make_select_location(options, select_id, all_show_yn, all_name) { //
721 661
 	}
722 662
 	$.each(options, function(key, value) {
723 663
 		$('<option/>', {
724
-            'value': value.lctnNo,	// 위치번호
725
-            'text': value.lctnNm	// 위치명
726
-        }).appendTo($select_id);
727
-	});
728
-};
729
-
730
-function fn_make_select_category(options, select_id, all_show_yn, all_name) { //카테고리 셀렉트 박스 만들기
731
-	$select_id = $('#' + select_id);
732
-	$select_id.empty();
733
-	if(all_show_yn == true) {
734
-		$('<option/>', {'value': '', 'text': all_name}).prependTo($select_id);
735
-	}
736
-	$.each(options, function(key, value) {
737
-		$('<option/>', {
738
-            'value': value.cateNo,	// 카테고리번호
739
-            'text': value.cateNm	// 카테고리명
664
+            'value': value.location,	// 로케이션
665
+            'text': value.locationNm	// 로케이션명
740 666
         }).appendTo($select_id);
741 667
 	});
742 668
 };
@@ -899,46 +825,6 @@ function fn_make_common_cd_list(options, code, all_show_yn) { // 공통코드 
899 825
 	return return_val;
900 826
 };
901 827
 
902
-function fn_make_input_store_print(options, input_id, all_show_yn) { //HIDDEN 매장프린터 리스트 만들기
903
-	$input_id = $('#' + input_id);
904
-	$input_id.val('');
905
-	let list = '';
906
-	if(all_show_yn == true) {
907
-		list = list + ':';
908
-	}
909
-	$.each(options, function(key, value) {		
910
-		if(key > 0) {
911
-			list = list + ';';
912
-		} else if(key == 0 && all_show_yn == true) {
913
-			list = list + ';';
914
-		}
915
-		list = list + value.printNo;
916
-		list = list + ':';
917
-		list = list + value.printNo;		
918
-	});
919
-	$input_id.val(list);
920
-};
921
-
922
-function fn_make_input_store_kds(options, input_id, all_show_yn) { //HIDDEN 매장KDS 리스트 만들기
923
-	$input_id = $('#' + input_id);
924
-	$input_id.val('');
925
-	let list = '';
926
-	if(all_show_yn == true) {
927
-		list = list + ':';
928
-	}
929
-	$.each(options, function(key, value) {		
930
-		if(key > 0) {
931
-			list = list + ';';
932
-		} else if(key == 0 && all_show_yn == true) {
933
-			list = list + ';';
934
-		}
935
-		list = list + value.kdsNo;
936
-		list = list + ':';
937
-		list = list + value.kdsNo;		
938
-	});
939
-	$input_id.val(list);
940
-};
941
-
942 828
 function fnHashed(code) { //유니코드로 들어오는 해쉬키를 스트링으로 변환
943 829
 	return decodeURIComponent(JSON.parse('"' + code.replace(/\"/g, '\\"') + '"'));
944 830
 };