コード例 #1
0
        /// <summary>
        /// 콤보박스 바인딩
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ComboBinding()
        {
            try
            {
                CommonService      service    = new CommonService();
                List <ComboItemVO> Commonlist = service.GetITEMCmCode();

                //수입검사
                var listINSPECT = (from item in Commonlist where item.COMMON_PARENT == "수입검사" select item).ToList();
                CommonUtil.ComboBinding <ComboItemVO>(INSPECT, listINSPECT, "COMMON_CODE", "COMMON_NAME", "");

                ////납품업체
                //var listREORDER_CODE = (from item in Commonlist where item.COMMON_PARENT == "업체명" select item).ToList();
                //CommonUtil.ComboBinding<ComboItemVO>(REORDER_CODE, listREORDER_CODE, "COMMON_CODE", "COMMON_NAME", "");

                //납품업체
                var listREORDER_COM = (from item in Commonlist where item.COMMON_PARENT == "업체명" select item).ToList();
                CommonUtil.ComboBinding <ComboItemVO>(REORDER_COM, listREORDER_COM, "COMMON_CODE", "COMMON_NAME", "");
            }
            catch (Exception err)
            {
                this.Log.WriteError($"[[RECV {this.Name}]]:{err.Message}");
            }
        }
コード例 #2
0
        private void ComboBinding()
        {
            try
            {
                CommonService      service    = new CommonService();
                List <ComboItemVO> Commonlist = service.GetITEMCmCode();

                //단위
                var listUNIT = (from item in Commonlist where item.COMMON_PARENT == "ITEM_UNIT" select item).ToList();
                CommonUtil.ComboBinding <ComboItemVO>(ITEM_UNIT, listUNIT, "COMMON_CODE", "COMMON_NAME", "");

                //품목유형
                var listTYP = (from item in Commonlist where item.COMMON_PARENT == "품목유형" select item).ToList();
                CommonUtil.ComboBinding <ComboItemVO>(ITEM_TYP, listTYP, "COMMON_CODE", "COMMON_NAME", "");

                //수입검사여부
                var listINCOME_YN = (from item in Commonlist where item.COMMON_PARENT == "사용여부" select item).ToList();
                CommonUtil.ComboBinding <ComboItemVO>(ITEM_INCOME_YN, listINCOME_YN, "COMMON_CODE", "COMMON_NAME", "");

                //공정검사여부
                var listPROCS_YN = (from item in Commonlist where item.COMMON_PARENT == "사용여부" select item).ToList();
                CommonUtil.ComboBinding <ComboItemVO>(ITEM_PROCS_YN, listPROCS_YN, "COMMON_CODE", "COMMON_NAME", "");

                //출하검사여부
                var listXPORT_YN = (from item in Commonlist where item.COMMON_PARENT == "사용여부" select item).ToList();
                CommonUtil.ComboBinding <ComboItemVO>(ITEM_XPORT_YN, listXPORT_YN, "COMMON_CODE", "COMMON_NAME", "");

                //유무상구분
                var listFREE_YN = (from item in Commonlist where item.COMMON_PARENT == "유무상구분" select item).ToList();
                CommonUtil.ComboBinding <ComboItemVO>(ITEM_FREE_YN, listFREE_YN, "COMMON_CODE", "COMMON_NAME", "");

                //납품업체
                var listCOM_DLVR = (from item in Commonlist where item.COMMON_PARENT == "업체명" select item).ToList();
                CommonUtil.ComboBinding <ComboItemVO>(ITEM_COM_DLVR, listCOM_DLVR, "COMMON_CODE", "COMMON_NAME", "");

                //발주업체
                var listCOM_REORDER = (from item in Commonlist where item.COMMON_PARENT == "업체명" select item).ToList();
                CommonUtil.ComboBinding <ComboItemVO>(ITEM_COM_REORDER, listCOM_REORDER, "COMMON_CODE", "COMMON_NAME", "");

                //입고창고
                var listWRHS_IN = (from item in Commonlist where item.COMMON_PARENT == "창고" select item).ToList();
                CommonUtil.ComboBinding <ComboItemVO>(ITEM_WRHS_IN, listWRHS_IN, "COMMON_CODE", "COMMON_NAME", "");

                //출고창고
                var listWRHS_OUT = (from item in Commonlist where item.COMMON_PARENT == "창고" select item).ToList();
                CommonUtil.ComboBinding <ComboItemVO>(ITEM_WRHS_OUT, listWRHS_OUT, "COMMON_CODE", "COMMON_NAME", "");

                //관리등급
                var listMANAGE_LEVEL = (from item in Commonlist where item.COMMON_PARENT == "관리등급" select item).ToList();
                CommonUtil.ComboBinding <ComboItemVO>(ITEM_MANAGE_LEVEL, listMANAGE_LEVEL, "COMMON_CODE", "COMMON_NAME", "");

                //담당자
                var listMANAGER = (from item in Commonlist where item.COMMON_PARENT == "담당자" select item).ToList();
                CommonUtil.ComboBinding <ComboItemVO>(ITEM_MANAGER, listMANAGER, "COMMON_CODE", "COMMON_NAME", "");

                //환산단위
                var listUNIT_CNVR = (from item in Commonlist where item.COMMON_PARENT == "ITEM_UNIT" select item).ToList();
                CommonUtil.ComboBinding <ComboItemVO>(ITEM_UNIT_CNVR, listUNIT_CNVR, "COMMON_CODE", "COMMON_NAME", "");

                //사용유무
                var listUSE_YN = (from item in Commonlist where item.COMMON_PARENT == "사용여부" select item).ToList();
                CommonUtil.ComboBinding <ComboItemVO>(ITEM_USE_YN, listUSE_YN, "COMMON_CODE", "COMMON_NAME", "");

                //발주방식
                var listLAST_REORDER_TYP = (from item in Commonlist where item.COMMON_PARENT == "발주방식" select item).ToList();
                CommonUtil.ComboBinding <ComboItemVO>(ITEM_REORDER_TYP, listLAST_REORDER_TYP, "COMMON_CODE", "COMMON_NAME", "");

                //단종유무
                var listDSCN_YN = (from item in Commonlist where item.COMMON_PARENT == "사용여부" select item).ToList();
                CommonUtil.ComboBinding <ComboItemVO>(ITEM_DSCN_YN, listDSCN_YN, "COMMON_CODE", "COMMON_NAME", "");
            }
            catch (Exception err)
            {
                this.Log.WriteError($"[[RECV {this.Name}]]:{err.Message}");
            }
        }