public static List<string> GetListMei(geNameKbn nameKbn) { List<string> lst = new List<string>(); List<ListData> lstData = new List<ListData>(); switch (nameKbn) { case geNameKbn.TAX_CHANGE_ID: // 税転換ID lstData = glstTaxChange; break; case geNameKbn.BUSINESS_DIVISION_ID: // 取引区分ID lstData = glstBusinessDivison; break; case geNameKbn.BREAKDOWN_ID: // 内訳ID lstData = glstBreakdown; break; case geNameKbn.DELIVER_DIVISION_ID: // 納品区分ID lstData = glstDeliverDivision; break; case geNameKbn.UNIT_ID: // 単位ID lstData = glstUnit; break; case geNameKbn.TAX_DIVISION_ID: // 課税区分ID lstData = glstTaxDivision; break; case geNameKbn.INVENTORY_DIVISION_ID: // 在庫管理区分ID lstData = glstInventoryDivison; break; case geNameKbn.UNIT_PRICE_DIVISION_ID: // 単価区分ID lstData = glstUnitPriceDivision; break; case geNameKbn.DISPLAY_DIVISION_ID: // 表示区分ID lstData = glstDisplayDivision; break; case geNameKbn.TITLE_ID: // 敬称ID lstData = glstTitle; break; case geNameKbn.FRACTION_PROC_ID: // 端数処理ID lstData = glstFractionProc; break; case geNameKbn.COLLECT_CYCLE_ID: // 回収サイクルID lstData = glstCollectCycle; break; case geNameKbn.CLASS: // 分類区分ID lstData = glstClass; break; case geNameKbn.DIVIDE_PERMISSION_ID: // 分納許可ID lstData = glstDividePermission; break; case geNameKbn.INQUIRY_DIVISION_ID: // 問い合わせ区分ID lstData = glstInquiryDivision; break; case geNameKbn.LEVEL_ID: // 問い合わせ緊急度ID lstData = glstLevel; break; case geNameKbn.INQUIRY_STATE_ID: // 問い合わせ状態ID lstData = glstInquiryState; break; case geNameKbn.APPROVAL_STATE_ID: // 承認状態ID lstData = glstApprovalState; break; case geNameKbn.ACCOUNT_KBN: // 預金種別 lstData = glstAccountKbn; break; case geNameKbn.OPEN_CLOSE_STATE_ID: // 状態ID lstData = glstOpenCloseState; break; case geNameKbn.BUSINESS_DIVISION_PU_ID: // 取引区分ID(仕入) lstData = glstBusinessDivisonPu; break; case geNameKbn.SEND_KBN: // 発送区分 lstData = glstSendkbn; break; case geNameKbn.TAX_CHANGE_PU_ID: // 税転換ID(仕入) lstData = glstTaxChangePu; break; case geNameKbn.UNIT_PRICE_DIVISION_PU_ID: // 単価区分ID(仕入) lstData = glstInOutDeliveryKbn; break; case geNameKbn.IN_OUT_DELIVERY_KBN: // 入出庫区分 lstData = glstUnitPriceDivisionPu; break; case geNameKbn.IN_OUT_DELIVERY_PROC_KBN: // 入出庫処理区分 lstData = glstInOutDeliveryProcKbn; break; case geNameKbn.IN_OUT_DELIVERY_TO_KBN: // 入出庫先区分 lstData = glstInOutDeliveryToKbn; break; } for (int i = 0; i <= lstData.Count - 1; i++) { lst.Add(lstData[i].DESCRIPTION); } return lst; }
public static List <string> GetListMei(geNameKbn nameKbn) { List <string> lst = new List <string>(); List <ListData> lstData = new List <ListData>(); switch (nameKbn) { case geNameKbn.TAX_CHANGE_ID: // 税転換ID lstData = glstTaxChange; break; case geNameKbn.BUSINESS_DIVISION_ID: // 取引区分ID lstData = glstBusinessDivison; break; case geNameKbn.BREAKDOWN_ID: // 内訳ID lstData = glstBreakdown; break; case geNameKbn.DELIVER_DIVISION_ID: // 納品区分ID lstData = glstDeliverDivision; break; case geNameKbn.UNIT_ID: // 単位ID lstData = glstUnit; break; case geNameKbn.TAX_DIVISION_ID: // 課税区分ID lstData = glstTaxDivision; break; case geNameKbn.INVENTORY_DIVISION_ID: // 在庫管理区分ID lstData = glstInventoryDivison; break; case geNameKbn.UNIT_PRICE_DIVISION_ID: // 単価区分ID lstData = glstUnitPriceDivision; break; case geNameKbn.DISPLAY_DIVISION_ID: // 表示区分ID lstData = glstDisplayDivision; break; case geNameKbn.TITLE_ID: // 敬称ID lstData = glstTitle; break; case geNameKbn.FRACTION_PROC_ID: // 端数処理ID lstData = glstFractionProc; break; case geNameKbn.COLLECT_CYCLE_ID: // 回収サイクルID lstData = glstCollectCycle; break; case geNameKbn.CLASS: // 分類区分ID lstData = glstClass; break; case geNameKbn.DIVIDE_PERMISSION_ID: // 分納許可ID lstData = glstDividePermission; break; case geNameKbn.INQUIRY_DIVISION_ID: // 問い合わせ区分ID lstData = glstInquiryDivision; break; case geNameKbn.LEVEL_ID: // 問い合わせ緊急度ID lstData = glstLevel; break; case geNameKbn.INQUIRY_STATE_ID: // 問い合わせ状態ID lstData = glstInquiryState; break; case geNameKbn.APPROVAL_STATE_ID: // 承認状態ID lstData = glstApprovalState; break; case geNameKbn.ACCOUNT_KBN: // 預金種別 lstData = glstAccountKbn; break; case geNameKbn.OPEN_CLOSE_STATE_ID: // 状態ID lstData = glstOpenCloseState; break; case geNameKbn.BUSINESS_DIVISION_PU_ID: // 取引区分ID(仕入) lstData = glstBusinessDivisonPu; break; case geNameKbn.SEND_KBN: // 発送区分 lstData = glstSendkbn; break; case geNameKbn.TAX_CHANGE_PU_ID: // 税転換ID(仕入) lstData = glstTaxChangePu; break; case geNameKbn.UNIT_PRICE_DIVISION_PU_ID: // 単価区分ID(仕入) lstData = glstInOutDeliveryKbn; break; case geNameKbn.IN_OUT_DELIVERY_KBN: // 入出庫区分 lstData = glstUnitPriceDivisionPu; break; case geNameKbn.IN_OUT_DELIVERY_PROC_KBN: // 入出庫処理区分 lstData = glstInOutDeliveryProcKbn; break; case geNameKbn.IN_OUT_DELIVERY_TO_KBN: // 入出庫先区分 lstData = glstInOutDeliveryToKbn; break; } for (int i = 0; i <= lstData.Count - 1; i++) { lst.Add(lstData[i].DESCRIPTION); } return(lst); }
// 名称マスタID取得 public static int GetID(geNameKbn nameKbn, string description) { switch (nameKbn) { case geNameKbn.TAX_CHANGE_ID: // 税転換ID for (int i = 0; i <= glstTaxChange.Count - 1; i++) { if (glstTaxChange[i].DESCRIPTION == description) return i + 1; } return 0; case geNameKbn.BUSINESS_DIVISION_ID: // 取引区分ID for (int i = 0; i <= glstBusinessDivison.Count - 1; i++) { if (glstBusinessDivison[i].DESCRIPTION == description) return i + 1; } return 0; case geNameKbn.BREAKDOWN_ID: // 内訳ID for (int i = 0; i <= glstBreakdown.Count - 1; i++) { if (glstBreakdown[i].DESCRIPTION == description) return i + 1; } return 0; case geNameKbn.DELIVER_DIVISION_ID: // 納品区分ID for (int i = 0; i <= glstDeliverDivision.Count - 1; i++) { if (glstDeliverDivision[i].DESCRIPTION == description) return i + 1; } return 0; case geNameKbn.UNIT_ID: // 単位ID for (int i = 0; i <= glstUnit.Count - 1; i++) { if (glstUnit[i].DESCRIPTION == description) return i + 1; } return 0; case geNameKbn.TAX_DIVISION_ID: // 課税区分ID for (int i = 0; i <= glstTaxDivision.Count - 1; i++) { if (glstTaxDivision[i].DESCRIPTION == description) return i + 1; } return 0; case geNameKbn.INVENTORY_DIVISION_ID: // 在庫管理区分ID for (int i = 0; i <= glstInventoryDivison.Count - 1; i++) { if (glstInventoryDivison[i].DESCRIPTION == description) return i + 1; } return 0; case geNameKbn.UNIT_PRICE_DIVISION_ID: // 単価区分ID for (int i = 0; i <= glstUnitPriceDivision.Count - 1; i++) { if (glstUnitPriceDivision[i].DESCRIPTION == description) return i + 1; } return 0; case geNameKbn.DISPLAY_DIVISION_ID: // 表示区分ID for (int i = 0; i <= glstDisplayDivision.Count - 1; i++) { if (glstDisplayDivision[i].DESCRIPTION == description) return i + 1; } return 0; case geNameKbn.TITLE_ID: // 敬称ID for (int i = 0; i <= glstTitle.Count - 1; i++) { if (glstTitle[i].DESCRIPTION == description) return i + 1; } return 0; case geNameKbn.FRACTION_PROC_ID: // 端数処理ID for (int i = 0; i <= glstFractionProc.Count - 1; i++) { if (glstFractionProc[i].DESCRIPTION == description) return i + 1; } return 0; case geNameKbn.COLLECT_CYCLE_ID: // 回収サイクルID for (int i = 0; i <= glstCollectCycle.Count - 1; i++) { if (glstCollectCycle[i].DESCRIPTION == description) return i + 1; } return 0; case geNameKbn.CLASS: // 分類区分ID for (int i = 0; i <= glstClass.Count - 1; i++) { if (glstClass[i].DESCRIPTION == description) return i + 1; } return 0; case geNameKbn.DIVIDE_PERMISSION_ID: // 分納許可ID for (int i = 0; i <= glstDividePermission.Count - 1; i++) { if (glstDividePermission[i].DESCRIPTION == description) return i + 1; } return 0; case geNameKbn.INQUIRY_DIVISION_ID: // 問い合わせ区分ID for (int i = 0; i <= glstInquiryDivision.Count - 1; i++) { if (glstInquiryDivision[i].DESCRIPTION == description) return i + 1; } return 0; case geNameKbn.LEVEL_ID: // 問い合わせ緊急度ID for (int i = 0; i <= glstLevel.Count - 1; i++) { if (glstLevel[i].DESCRIPTION == description) return i + 1; } return 0; case geNameKbn.INQUIRY_STATE_ID: // 問い合わせ状態ID for (int i = 0; i <= glstInquiryState.Count - 1; i++) { if (glstInquiryState[i].DESCRIPTION == description) return i + 1; } return 0; case geNameKbn.APPROVAL_STATE_ID: // 承認状態ID for (int i = 0; i <= glstApprovalState.Count - 1; i++) { if (glstApprovalState[i].DESCRIPTION == description) return i + 1; } return 0; case geNameKbn.ACCOUNT_KBN: // 預金種別 for (int i = 0; i <= glstAccountKbn.Count - 1; i++) { if (glstAccountKbn[i].DESCRIPTION == description) return i + 1; } return 0; case geNameKbn.OPEN_CLOSE_STATE_ID: // 状態ID for (int i = 0; i <= glstOpenCloseState.Count - 1; i++) { if (glstOpenCloseState[i].DESCRIPTION == description) return i + 1; } return 0; case geNameKbn.BUSINESS_DIVISION_PU_ID: // 取引区分ID(仕入) for (int i = 0; i <= glstBusinessDivisonPu.Count - 1; i++) { if (glstBusinessDivisonPu[i].DESCRIPTION == description) return i + 1; } return 0; case geNameKbn.SEND_KBN: // 発送区分 for (int i = 0; i <= glstSendkbn.Count - 1; i++) { if (glstSendkbn[i].DESCRIPTION == description) return i + 1; } return 0; case geNameKbn.TAX_CHANGE_PU_ID: // 税転換ID(仕入) for (int i = 0; i <= glstTaxChangePu.Count - 1; i++) { if (glstTaxChangePu[i].DESCRIPTION == description) return i + 1; } return 0; case geNameKbn.UNIT_PRICE_DIVISION_PU_ID: // 単価区分ID(仕入) for (int i = 0; i <= glstUnitPriceDivisionPu.Count - 1; i++) { if (glstUnitPriceDivisionPu[i].DESCRIPTION == description) return i + 1; } return 0; case geNameKbn.IN_OUT_DELIVERY_KBN: // 入出庫区分 for (int i = 0; i <= glstInOutDeliveryKbn.Count - 1; i++) { if (glstInOutDeliveryKbn[i].DESCRIPTION == description) return i + 1; } return 0; case geNameKbn.IN_OUT_DELIVERY_PROC_KBN: // 入出庫処理区分 for (int i = 0; i <= glstInOutDeliveryProcKbn.Count - 1; i++) { if (glstInOutDeliveryProcKbn[i].DESCRIPTION == description) return i + 1; } return 0; case geNameKbn.IN_OUT_DELIVERY_TO_KBN: // 入出庫先区分 for (int i = 0; i <= glstInOutDeliveryToKbn.Count - 1; i++) { if (glstInOutDeliveryToKbn[i].DESCRIPTION == description) return i + 1; } return 0; default: return 0; } }
// 名称マスタID取得 public static int GetID(geNameKbn nameKbn, string description) { switch (nameKbn) { case geNameKbn.TAX_CHANGE_ID: // 税転換ID for (int i = 0; i <= glstTaxChange.Count - 1; i++) { if (glstTaxChange[i].DESCRIPTION == description) { return(i + 1); } } return(0); case geNameKbn.BUSINESS_DIVISION_ID: // 取引区分ID for (int i = 0; i <= glstBusinessDivison.Count - 1; i++) { if (glstBusinessDivison[i].DESCRIPTION == description) { return(i + 1); } } return(0); case geNameKbn.BREAKDOWN_ID: // 内訳ID for (int i = 0; i <= glstBreakdown.Count - 1; i++) { if (glstBreakdown[i].DESCRIPTION == description) { return(i + 1); } } return(0); case geNameKbn.DELIVER_DIVISION_ID: // 納品区分ID for (int i = 0; i <= glstDeliverDivision.Count - 1; i++) { if (glstDeliverDivision[i].DESCRIPTION == description) { return(i + 1); } } return(0); case geNameKbn.UNIT_ID: // 単位ID for (int i = 0; i <= glstUnit.Count - 1; i++) { if (glstUnit[i].DESCRIPTION == description) { return(i + 1); } } return(0); case geNameKbn.TAX_DIVISION_ID: // 課税区分ID for (int i = 0; i <= glstTaxDivision.Count - 1; i++) { if (glstTaxDivision[i].DESCRIPTION == description) { return(i + 1); } } return(0); case geNameKbn.INVENTORY_DIVISION_ID: // 在庫管理区分ID for (int i = 0; i <= glstInventoryDivison.Count - 1; i++) { if (glstInventoryDivison[i].DESCRIPTION == description) { return(i + 1); } } return(0); case geNameKbn.UNIT_PRICE_DIVISION_ID: // 単価区分ID for (int i = 0; i <= glstUnitPriceDivision.Count - 1; i++) { if (glstUnitPriceDivision[i].DESCRIPTION == description) { return(i + 1); } } return(0); case geNameKbn.DISPLAY_DIVISION_ID: // 表示区分ID for (int i = 0; i <= glstDisplayDivision.Count - 1; i++) { if (glstDisplayDivision[i].DESCRIPTION == description) { return(i + 1); } } return(0); case geNameKbn.TITLE_ID: // 敬称ID for (int i = 0; i <= glstTitle.Count - 1; i++) { if (glstTitle[i].DESCRIPTION == description) { return(i + 1); } } return(0); case geNameKbn.FRACTION_PROC_ID: // 端数処理ID for (int i = 0; i <= glstFractionProc.Count - 1; i++) { if (glstFractionProc[i].DESCRIPTION == description) { return(i + 1); } } return(0); case geNameKbn.COLLECT_CYCLE_ID: // 回収サイクルID for (int i = 0; i <= glstCollectCycle.Count - 1; i++) { if (glstCollectCycle[i].DESCRIPTION == description) { return(i + 1); } } return(0); case geNameKbn.CLASS: // 分類区分ID for (int i = 0; i <= glstClass.Count - 1; i++) { if (glstClass[i].DESCRIPTION == description) { return(i + 1); } } return(0); case geNameKbn.DIVIDE_PERMISSION_ID: // 分納許可ID for (int i = 0; i <= glstDividePermission.Count - 1; i++) { if (glstDividePermission[i].DESCRIPTION == description) { return(i + 1); } } return(0); case geNameKbn.INQUIRY_DIVISION_ID: // 問い合わせ区分ID for (int i = 0; i <= glstInquiryDivision.Count - 1; i++) { if (glstInquiryDivision[i].DESCRIPTION == description) { return(i + 1); } } return(0); case geNameKbn.LEVEL_ID: // 問い合わせ緊急度ID for (int i = 0; i <= glstLevel.Count - 1; i++) { if (glstLevel[i].DESCRIPTION == description) { return(i + 1); } } return(0); case geNameKbn.INQUIRY_STATE_ID: // 問い合わせ状態ID for (int i = 0; i <= glstInquiryState.Count - 1; i++) { if (glstInquiryState[i].DESCRIPTION == description) { return(i + 1); } } return(0); case geNameKbn.APPROVAL_STATE_ID: // 承認状態ID for (int i = 0; i <= glstApprovalState.Count - 1; i++) { if (glstApprovalState[i].DESCRIPTION == description) { return(i + 1); } } return(0); case geNameKbn.ACCOUNT_KBN: // 預金種別 for (int i = 0; i <= glstAccountKbn.Count - 1; i++) { if (glstAccountKbn[i].DESCRIPTION == description) { return(i + 1); } } return(0); case geNameKbn.OPEN_CLOSE_STATE_ID: // 状態ID for (int i = 0; i <= glstOpenCloseState.Count - 1; i++) { if (glstOpenCloseState[i].DESCRIPTION == description) { return(i + 1); } } return(0); case geNameKbn.BUSINESS_DIVISION_PU_ID: // 取引区分ID(仕入) for (int i = 0; i <= glstBusinessDivisonPu.Count - 1; i++) { if (glstBusinessDivisonPu[i].DESCRIPTION == description) { return(i + 1); } } return(0); case geNameKbn.SEND_KBN: // 発送区分 for (int i = 0; i <= glstSendkbn.Count - 1; i++) { if (glstSendkbn[i].DESCRIPTION == description) { return(i + 1); } } return(0); case geNameKbn.TAX_CHANGE_PU_ID: // 税転換ID(仕入) for (int i = 0; i <= glstTaxChangePu.Count - 1; i++) { if (glstTaxChangePu[i].DESCRIPTION == description) { return(i + 1); } } return(0); case geNameKbn.UNIT_PRICE_DIVISION_PU_ID: // 単価区分ID(仕入) for (int i = 0; i <= glstUnitPriceDivisionPu.Count - 1; i++) { if (glstUnitPriceDivisionPu[i].DESCRIPTION == description) { return(i + 1); } } return(0); case geNameKbn.IN_OUT_DELIVERY_KBN: // 入出庫区分 for (int i = 0; i <= glstInOutDeliveryKbn.Count - 1; i++) { if (glstInOutDeliveryKbn[i].DESCRIPTION == description) { return(i + 1); } } return(0); case geNameKbn.IN_OUT_DELIVERY_PROC_KBN: // 入出庫処理区分 for (int i = 0; i <= glstInOutDeliveryProcKbn.Count - 1; i++) { if (glstInOutDeliveryProcKbn[i].DESCRIPTION == description) { return(i + 1); } } return(0); case geNameKbn.IN_OUT_DELIVERY_TO_KBN: // 入出庫先区分 for (int i = 0; i <= glstInOutDeliveryToKbn.Count - 1; i++) { if (glstInOutDeliveryToKbn[i].DESCRIPTION == description) { return(i + 1); } } return(0); default: return(0); } }