for Push.
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
INSERT INTO Jisseki_t (module_id, line_id, process_id, part_no, seisan_date, jisseki_su)
|
||||
VALUES (@@@ModuleId@@@, @@@LineId@@@, @@@ProcessGroup@@@, '@@@PartNo@@@', '@@@ProductionDate@@@', @@@ActualQty@@@);
|
||||
@@ -0,0 +1,38 @@
|
||||
INSERT INTO cmn.t_product_plan
|
||||
(
|
||||
working_day,
|
||||
module_id,
|
||||
line_id,
|
||||
ptn_group,
|
||||
employee_no,
|
||||
work_ptn_id,
|
||||
parts_id,
|
||||
process_id,
|
||||
product_type,
|
||||
quantity,
|
||||
note,
|
||||
create_date,
|
||||
create_user,
|
||||
update_date,
|
||||
update_user
|
||||
)
|
||||
VALUES
|
||||
(
|
||||
'@@@ProductionDate@@@', /* PK:working_day */
|
||||
@@@ModuleId@@@, /* PK:module_id */
|
||||
@@@LineId@@@, /* PK:line_id */
|
||||
/* PK:ptn_group (character varying(20)) */
|
||||
'', /* employee_no (character varying(10)) */
|
||||
0, /* PK:work_ptn_id (integer) */
|
||||
0, /* PK:parts_id (integer) */
|
||||
0, /* PK:process_id (integer) */
|
||||
'@@@PartNo@@@', /* PK:product_type (character varying(15)) */
|
||||
@@@PlanQty@@@, /* quantity (integer) */
|
||||
'', /* note (text) */
|
||||
NOW(), /* create_date (timestamp(6) without time zone) */
|
||||
'SYSTEM', /* create_user (character varying(20)) */
|
||||
NOW(), /* update_date (timestamp(6) without time zone) */
|
||||
'SYSTEM' /* update_user (character varying(20)) */
|
||||
);
|
||||
--INSERT INTO cmn.t_product_plan (module_id, line_id, process_id, part_no, seisan_date, keikaku_su)
|
||||
-- VALUES (@@@ModuleId@@@, @@@LineId@@@, @@@ProcessGroup@@@, '@@@PartNo@@@', '@@@ProductionDate@@@', @@@PlanQty@@@);
|
||||
Binary file not shown.
@@ -0,0 +1,58 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<system.data>
|
||||
<DbProviderFactories>
|
||||
<add name="Npgsql Data Provider" invariant="Npgsql" description=".Net Framework Data Provider for PostgreSQL" type="Npgsql.NpgsqlFactory, Npgsql" />
|
||||
</DbProviderFactories>
|
||||
</system.data>
|
||||
<configSections>
|
||||
|
||||
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
|
||||
</configSections>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Serilog" publicKeyToken="24c2f752a8e58a10" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.3.0.0" newVersion="4.3.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Npgsql" publicKeyToken="5d8b90d52f46fda7" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.1.8.0" newVersion="4.1.8.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Memory" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.1.2" newVersion="4.0.1.2" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.ValueTuple" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Threading.Tasks.Extensions" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.2.0.1" newVersion="4.2.0.1" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Microsoft.Bcl.AsyncInterfaces" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-8.0.0.0" newVersion="8.0.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Numerics.Vectors" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.1.4.0" newVersion="4.1.4.0" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
<entityFramework>
|
||||
<providers>
|
||||
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
|
||||
<provider invariantName="Npgsql" type="Npgsql.NpgsqlServices, EntityFramework6.Npgsql" />
|
||||
</providers>
|
||||
</entityFramework>
|
||||
</configuration>
|
||||
@@ -0,0 +1,54 @@
|
||||
1,1
|
||||
2,1
|
||||
3,1
|
||||
4,1
|
||||
5,1
|
||||
6,1
|
||||
7,2
|
||||
8,2
|
||||
9,2
|
||||
10,2
|
||||
11,2
|
||||
12,2
|
||||
13,2
|
||||
14,2
|
||||
15,2
|
||||
16,2
|
||||
17,2
|
||||
18,3
|
||||
19,3
|
||||
20,3
|
||||
21,3
|
||||
22,3
|
||||
23,3
|
||||
24,3
|
||||
25,3
|
||||
26,3
|
||||
27,4
|
||||
28,4
|
||||
29,4
|
||||
30,4
|
||||
31,4
|
||||
32,4
|
||||
33,4
|
||||
34,7
|
||||
35,7
|
||||
36,7
|
||||
37,7
|
||||
44,6
|
||||
45,6
|
||||
46,6
|
||||
47,6
|
||||
48,6
|
||||
49,6
|
||||
50,6
|
||||
51,6
|
||||
52,6
|
||||
53,6
|
||||
54,7
|
||||
55,7
|
||||
57,6
|
||||
58,6
|
||||
64,6
|
||||
65,6
|
||||
66,6
|
||||
|
@@ -0,0 +1,27 @@
|
||||
11100_ MKS_CB DCT一体φ140 11100MKS_CBDCT
|
||||
11100_ MKS_CB MT一体φ140 11100MKS_CBMT
|
||||
11100_ HL4M_LC一体φ120 11100HL4MLC
|
||||
11100_ MLB_LC一体φ120 11100MLB_LC120
|
||||
11100_ HL4M_CB一体φ140 11100HL4M_CB
|
||||
11210_MKC_L_CB一体φ140 11210MKCLCB
|
||||
MKT_CB_DCT MKTCBDCT
|
||||
11100MKRG UP一体φ120 11100MKRGUP
|
||||
11100MKT_CB DCT一体φ140 11100MKTCBDCT
|
||||
11100_MLB UC一体φ120 11100MLBUC
|
||||
11100_MFJ_CB分割φ140 11100MFJCB
|
||||
11100_MKZ_CB分割φ140 11100MKZCB
|
||||
11200MKRG_LC一体φ130 11200MKRGLC
|
||||
11200_MKS_LC一体φ120 11200MKSLC
|
||||
11200_MKT_LC DCT 一体φ120 11200MKTLCDCT
|
||||
11200_MKW_LC MT一体φ120 11200MKWLCMT
|
||||
11100_MKF_UC一体φ120 11100MKFUC
|
||||
11200_MGP_LC一体φ120 11200MGPLC
|
||||
11100_HR0_FRφ100 11100HR0FR
|
||||
11100_HR6_FRφ100 11100HR6FR
|
||||
11200_HR6_RRφ100 11200HR6RR
|
||||
12101_ZDY Φ90 12101ZDY
|
||||
11100-K95-RCφ110 11100K95RC
|
||||
11100-K95-LCφ110 11100K95LC
|
||||
11100MKER_RCφ110 11100MKERRC
|
||||
11100MKER_LCφ110 11100MKERLC
|
||||
11100_HM8_FRφ78 11100HM8FR
|
||||
|
@@ -0,0 +1,6 @@
|
||||
DELETE
|
||||
FROM
|
||||
vap.t_harahara
|
||||
WHERE
|
||||
seisan_date >= :[D]START_DATE
|
||||
;
|
||||
@@ -0,0 +1,7 @@
|
||||
DELETE
|
||||
FROM
|
||||
vap.t_weorder
|
||||
WHERE
|
||||
line_id >= :[I]LINE_ID
|
||||
AND plan_date >= :[D]START_DATE
|
||||
;
|
||||
@@ -0,0 +1,18 @@
|
||||
--select
|
||||
-- 0
|
||||
--union all
|
||||
--select
|
||||
-- 2
|
||||
--;
|
||||
|
||||
SELECT
|
||||
COUNT(*) AS CNT
|
||||
FROM
|
||||
vap.t_tact_management
|
||||
WHERE
|
||||
--line_id = :[I]line_id AND
|
||||
--model_cd = :[S]model_cd AND
|
||||
basic_parts_no = :[S]basic_parts_no --AND
|
||||
--derivation = :[S]derivation AND
|
||||
--tact = :[I]tact
|
||||
;
|
||||
@@ -0,0 +1,31 @@
|
||||
INSERT
|
||||
INTO vap.t_harahara(
|
||||
plan_cd
|
||||
, moto
|
||||
, saki
|
||||
, model_cd
|
||||
, seppen_buban
|
||||
, target_color
|
||||
, kako_color
|
||||
, biko
|
||||
, buhin_mei
|
||||
, kotei_cd
|
||||
, seisan_date
|
||||
, daisu
|
||||
, sp_buban
|
||||
)
|
||||
VALUES (
|
||||
:[S]PlanCd
|
||||
,:[S]HaraiMoto
|
||||
,:[S]HaraiSaki
|
||||
,:[S]ModelCd
|
||||
,:[S]SeppenBuban
|
||||
,:[S]TargetColor
|
||||
,:[S]KakoColor
|
||||
,:[S]Biko
|
||||
,:[S]Buhinmei
|
||||
,:[I]KoteiCd
|
||||
,:[D]SeisanHiduke
|
||||
,:[I]Daisu
|
||||
,:[S]SpBuban
|
||||
)
|
||||
@@ -0,0 +1,37 @@
|
||||
INSERT
|
||||
INTO
|
||||
vap.t_tact_management
|
||||
(
|
||||
tact_id,
|
||||
line_id,
|
||||
model_cd,
|
||||
basic_parts_no,
|
||||
derivation,
|
||||
tact
|
||||
)
|
||||
SELECT
|
||||
CASE
|
||||
WHEN Q1.tact_id IS NULL THEN 'TA' || :[S]basic_parts_no || '0001'
|
||||
ELSE 'TA' || :[S]basic_parts_no || Q1.tact_id
|
||||
END AS tact_id,
|
||||
:[I]line_id AS line_id,
|
||||
:[S]model_cd AS model_cd,
|
||||
:[S]basic_parts_no AS basic_parts_no,
|
||||
:[S]derivation AS derivation,
|
||||
:[I]tact AS tact
|
||||
FROM
|
||||
(
|
||||
SELECT
|
||||
LPAD((MAX(SUBSTRING(tact_id FROM '.{4}$')::INTEGER) + 1)::TEXT, 4, '0') AS tact_id
|
||||
FROM
|
||||
vap.t_tact_management
|
||||
WHERE
|
||||
LENGTH(tact_id) > 4 AND
|
||||
tact_id ~ '\d{4}$' AND -- 末尾4桁が数字
|
||||
LEFT(tact_id, LENGTH(tact_id) - 4) = 'TA' || :[S]basic_parts_no
|
||||
) Q1
|
||||
--INNER JOIN
|
||||
-- md.m_line L
|
||||
--ON
|
||||
-- L.line_name=:line_name
|
||||
;
|
||||
@@ -0,0 +1,32 @@
|
||||
INSERT
|
||||
INTO
|
||||
vap.t_weorder
|
||||
(
|
||||
--we_production_id,
|
||||
--tact_id,
|
||||
--we_product_date,
|
||||
create_record_date,
|
||||
line_id,
|
||||
basic_parts_no,
|
||||
plan_date,
|
||||
af_amount,
|
||||
we_amount,
|
||||
production_lur,
|
||||
model_cd,
|
||||
derivation,
|
||||
tact_time
|
||||
)
|
||||
VALUES
|
||||
(
|
||||
:[D]create_record_date,
|
||||
:[I]line_id,
|
||||
:[S]basic_parts_no,
|
||||
:[D]work_date,
|
||||
:[I]we_amount,
|
||||
0,
|
||||
:[I]production_lur,
|
||||
:[S]model_cd,
|
||||
:[S]derivation,
|
||||
:[I]tact_time
|
||||
)
|
||||
;
|
||||
@@ -0,0 +1,48 @@
|
||||
-- 一時テーブルはCSVの全カラムを持つテーブルで、コミットしたら消される
|
||||
DROP TABLE IF EXISTS work_csv;
|
||||
CREATE TEMP TABLE work_csv (
|
||||
create_record_date timestamp without time zone,
|
||||
line_id integer,
|
||||
line_name text,
|
||||
basic_parts_no text,
|
||||
work_date date,
|
||||
af_amount integer,
|
||||
we_amount integer,
|
||||
kd_we_amount integer,
|
||||
production_lur integer,
|
||||
model_cd text,
|
||||
derivation text,
|
||||
tact_time integer
|
||||
);
|
||||
-- ON COMMIT DROP;
|
||||
-- SPLIT --
|
||||
COPY work_csv FROM STDIN WITH (FORMAT CSV, HEADER);
|
||||
-- SPLIT --
|
||||
INSERT
|
||||
INTO
|
||||
vap.t_weorder
|
||||
(
|
||||
create_record_date,
|
||||
line_id,
|
||||
basic_parts_no,
|
||||
plan_date,
|
||||
af_amount,
|
||||
we_amount,
|
||||
production_lur,
|
||||
model_cd,
|
||||
derivation,
|
||||
tact_time
|
||||
)
|
||||
SELECT
|
||||
create_record_date,
|
||||
line_id,
|
||||
basic_parts_no,
|
||||
work_date,
|
||||
af_amount,
|
||||
we_amount + kd_we_amount,
|
||||
production_lur,
|
||||
model_cd,
|
||||
derivation,
|
||||
tact_time
|
||||
FROM
|
||||
work_csv;
|
||||
@@ -0,0 +1,390 @@
|
||||
[ExcelToSqlChuzo]
|
||||
Title=Excel→SQL 処理(鋳造計画実績取込用)
|
||||
001=ExcelToCsv_Eazy(ExcelToSqlChuzoIni)
|
||||
[ExcelToCsvPoSp]
|
||||
Title=Excel→CSV 処理(PO塗装SP計画取込)
|
||||
001=ExcelToCsv_Eazy(ExcelToCsvPoSpIni)
|
||||
;002=CsvToDb(CsvToDbEazyIni)
|
||||
;002=SFTPUpload(SFTPUploadIni)
|
||||
;003=Cleanup(CleanupAfterUploadIni)
|
||||
[ExcelToCsvWeOrderMc]
|
||||
Title=Excel→CSV 処理(溶接加工向けデータ連携ツール:鉄)
|
||||
001=ExcelToCsv_WeOrder(ExcelToCsvIniMc)
|
||||
002=SFTPUpload(SFTPUploadIni)
|
||||
003=Cleanup(CleanupAfterUploadIni)
|
||||
[ExcelToCsvWeOrderAlumi]
|
||||
Title=Excel→CSV 処理(溶接加工向けデータ連携ツール:アルミ)
|
||||
001=ExcelToCsv_WeOrder(ExcelToCsvAlumiIni)
|
||||
002=SFTPUpload(SFTPUploadIni)
|
||||
003=Cleanup(CleanupAfterUploadIni)
|
||||
[ExcelToCsvWeOrderNew001]
|
||||
Title=Excel→CSV 処理(溶接加工向けデータ連携ツール:新溶接1ライン)
|
||||
001=ExcelToCsv_WeOrder(ExcelToCsvWeNew001Ini)
|
||||
002=SFTPUpload(SFTPUploadIni)
|
||||
003=Cleanup(CleanupAfterUploadIni)
|
||||
[ExcelToCsvWeOrderNewFormat]
|
||||
Title=Excel→CSV 処理(溶接加工向けデータ連携ツール:Excel新共通書式)
|
||||
001=ExcelToCsv_WeOrder(ExcelToCsvWeNewFormatIni)
|
||||
;002=SFTPUpload(SFTPUploadIni)
|
||||
;003=Cleanup(CleanupAfterUploadIni)
|
||||
|
||||
;★★★★★★★★★★★★★★★★★★★★★
|
||||
[ExcelToSqlChuzoIni]
|
||||
DaysToStartOffset=0
|
||||
DaysToEndOffset=30
|
||||
InFolderPath=C:\CSV\Chuzo
|
||||
|
||||
;FileNamePattern=*.xlsm
|
||||
;その1(鋳造HPDC)
|
||||
;FileNamePattern=*【*期*期】生産管理* 最新.xlsm
|
||||
;その2(上下割)機械加工のMA1(アルミ)
|
||||
;FileNamePattern=*【*期*月】上下割加工計画.xlsx
|
||||
;その3(鋳造LPDC)
|
||||
;FileNamePattern=*_FMsuper生産管理表_ver*.xlsm
|
||||
;その4(鋳造GDC)
|
||||
FileNamePattern=*■*期-*月仕上げ計画.xlsx
|
||||
|
||||
|
||||
;以下はExcelに移動!
|
||||
;IncludedSheetNames=生産管理
|
||||
;ExcludedSheetNames=作成控え,取説,設定?,Net&Loss,設定,WeDB,CostDB,生産計画?,準備,AF所要量,SP所要量,CKD,SPDB,検討?,Planning,各ライン?
|
||||
;ExcelSheetCheckItems=C4,M/C|D4,機種|E4,稼働日
|
||||
|
||||
;ExcelLineJudgeCol=B
|
||||
;ExcelLineJudgeValue=ライン
|
||||
;ExcelLineKeyCell=C5
|
||||
;ExcelLineKeyValuePair=20,1|16,1|14,1|17,1|19,1|7,1
|
||||
ExcelFileNamePatternToLine=*.xlsx,1|*【*期*期】生産管理* 最新.xlsm,2|*【*期*月】上下割加工計画.xlsx,3|*_FMsuper生産管理表_ver*.xlsm,4|*■*期-*月仕上げ計画.xlsx,5
|
||||
ExcelSettingFileByLineId=1,.\ライン毎定義\ライン1.xlsx|2,.\ライン毎定義\ライン2.xlsx|3,.\ライン毎定義\ライン3.xlsx|4,.\ライン毎定義\ライン4.xlsx|5,.\ライン毎定義\ライン5.xlsx
|
||||
|
||||
;以下はExcelに移動!
|
||||
;ExcelDateYMGetMode=FromDateCell
|
||||
|
||||
;ExcelNenGetsuCellAddress=D2
|
||||
|
||||
;以下はExcelに移動!
|
||||
;ExcelDateRowMode=Fixed
|
||||
;ExcelDateRow=888
|
||||
;;ExcelDateRowJudgeValue=日付
|
||||
;ExcelDateRowStartCol=V
|
||||
;ExcelDateRowEndValue=
|
||||
|
||||
;ExcelSkipSameMonthSheets=false
|
||||
|
||||
;以下はExcelに移動!
|
||||
;ExcelHiddenRowHandling=skip
|
||||
;ExcelDataStartRowJudgeCol=C
|
||||
;ExcelDataStartRowJudgeValues=M/C
|
||||
;ExcelDataEndJudgeCol=M
|
||||
;ExcelDataEndJudgeValue=,10
|
||||
;ExcelMcSeisanFukaEnabled=false
|
||||
|
||||
;ExcelMcSeisanFukaJudgeCol=B
|
||||
;ExcelMcSeisanFukaJudgeValuePattern=*生産負荷*
|
||||
;ExcelAfWeCol=B
|
||||
|
||||
;以下はExcelに移動!
|
||||
;ExcelRowKindCol=M
|
||||
;ExcelRowKindTargets=鋳造計画,鋳造実績
|
||||
|
||||
;ExcelItemNameAndColumnLetterMapping=BasicPartsNo:B|ModelCd:|Derivation:C|TactTime:D
|
||||
;Col001=PlanCd:"K*SP**"
|
||||
;Col002=HaraiMoto:"PO"
|
||||
;Col003=HaraiSaki:B
|
||||
;Col004=ModelCd:Substring(C,1,3)
|
||||
;Col005=SeppenBuban:D
|
||||
;Col006=TargetColor:E
|
||||
;Col007=KakoColor:F
|
||||
;Col008=Biko:G
|
||||
;Col009=Buhinmei:H
|
||||
;Col010=KoteiCd:変換値,AI,1=1521,2=1521,3=1521,4=1521,5=1521,=1513
|
||||
;Col011=SeisanHiduke:横日付
|
||||
;Col012=Daisu:数
|
||||
;Col013=SpBuban:Replace(AN,"-","")
|
||||
|
||||
;その1(HPDC)
|
||||
;Col001=ModuleId:モジュールID
|
||||
;Col002=LineId:ラインID
|
||||
;Col003=ProcessGroup:変換値,C,14=2,16=3,20=4,17=117,19=119,7=107
|
||||
;Col004=PartNo:ファイル変換値,D,PartNo.tsv
|
||||
;Col005=ProductionDate:横日付
|
||||
;Col006=PlanQty:数(M,鋳造計画)
|
||||
;Col007=ActualQty:数(M,鋳造実績)
|
||||
|
||||
;ExcelLinesOnSheet=1
|
||||
;ExcelShimukeTactRowZure=1
|
||||
;ExcelKihonBubanGyosu=2
|
||||
;OutputTypeはCSV(デフォルト)or FormattedText
|
||||
;OutputType=FormattedText
|
||||
OutputType=CSV
|
||||
FormattedTextFormatFile=PlanQty,@@@NOT_EMPTY@@@,KeikakuFormat.txt|JissekiFormat.txt
|
||||
OutFolderPath=C:\Output\Chuzo
|
||||
CsvFileName=Chuzo
|
||||
FileDtPrefix=yyyyMMdd-HHmmss_
|
||||
FileDtSuffix=_yyyyMMdd_HHmmss
|
||||
CsvEncoding=UTF-8 With BOM
|
||||
[ExcelToCsvPoSpIni]
|
||||
DaysToStartOffset=1
|
||||
InFolderPath=C:\CSV\PoSp
|
||||
FileNamePattern=*.xlsx
|
||||
IncludedSheetNames=SP計画(総合)
|
||||
;ExcludedSheetNames=作成控え,取説,設定?,Net&Loss,設定,WeDB,CostDB,生産計画?,準備,AF所要量,SP所要量,CKD,SPDB,検討?,Planning,各ライン?
|
||||
ExcelSheetCheckItems=E2,SP計画[総合]|A5,追加|B5,払出先|C5,機種|D5,設変部番|E5,TARGET色|F5,加工色|G5,備考|H5,部品名|I5,TOTAL
|
||||
;ExcelLineJudgeCol=B
|
||||
;ExcelLineJudgeValue=ライン
|
||||
ExcelDateYMGetMode=TargetCellDate
|
||||
ExcelNenGetsuCellAddress=D2
|
||||
ExcelDateRowMode=Fixed
|
||||
ExcelDateRow=5
|
||||
;ExcelDateRowJudgeValue=日付
|
||||
ExcelDateRowStartCol=J
|
||||
ExcelDateRowEndValue=係数
|
||||
ExcelSkipSameMonthSheets=false
|
||||
ExcelHiddenRowHandling=skip
|
||||
ExcelDataStartRowJudgeCol=C
|
||||
ExcelDataStartRowJudgeValues=機種
|
||||
ExcelDataEndJudgeCol=D
|
||||
ExcelDataEndJudgeValue=
|
||||
ExcelMcSeisanFukaEnabled=false
|
||||
;ExcelMcSeisanFukaJudgeCol=B
|
||||
;ExcelMcSeisanFukaJudgeValuePattern=*生産負荷*
|
||||
ExcelAfWeCol=B
|
||||
ExcelItemNameAndColumnLetterMapping=BasicPartsNo:B|ModelCd:|Derivation:C|TactTime:D
|
||||
Col001=PlanCd:"K*SP**"
|
||||
Col002=HaraiMoto:"PO"
|
||||
Col003=HaraiSaki:B
|
||||
Col004=ModelCd:Substring(C,1,3)
|
||||
Col005=SeppenBuban:D
|
||||
Col006=TargetColor:E
|
||||
Col007=KakoColor:F
|
||||
Col008=Biko:G
|
||||
Col009=Buhinmei:H
|
||||
Col010=KoteiCd:変換値,AI,1=1521,2=1521,3=1521,4=1521,5=1521,=1513
|
||||
Col011=SeisanHiduke:横日付
|
||||
Col012=Daisu:数
|
||||
Col013=SpBuban:Replace(AN,"-","")
|
||||
ExcelLinesOnSheet=1
|
||||
ExcelShimukeTactRowZure=1
|
||||
ExcelKihonBubanGyosu=2
|
||||
OutFolderPath=C:\CSV\PoSp
|
||||
CsvFileName=PoSpPlan
|
||||
FileDtPrefix=yyyyMMdd-HHmmss_
|
||||
FileDtSuffix=_yyyyMMdd_HHmmss
|
||||
CsvEncoding=UTF-8 With BOM
|
||||
[ExcelToCsvIniMc]
|
||||
DaysToStartOffset=1
|
||||
InFolderPath=C:\CSV\溶接加工計画
|
||||
;FileNamePattern=*生産計画*.xlsx
|
||||
FileNamePattern=*新書式*.xlsx
|
||||
NameToIdListForLine=MC,57|マルチ,58
|
||||
ExcelSheetCheckItems=D2[or]D1,ライン|E2[or]E1,シフト|D5[or]C5,機種コード[or]コード|E5,仕向|F5,タクト|G5,日付
|
||||
ExcelLineJudgeCol=D
|
||||
ExcelLineJudgeValue=ライン
|
||||
ExcelDateRowMode=Fixed
|
||||
ExcelDateRow=5
|
||||
ExcelDateRowStartCol=H
|
||||
ExcelDateRowEndValue=TOTAL
|
||||
;ExcelDateYMGetMode=FromYMCells
|
||||
ExcelDateYMGetMode=FromDateCell
|
||||
ExcelHiddenRowHandling=skip
|
||||
ExcelDataStartRowJudgeCol=D
|
||||
ExcelDataStartRowJudgeValues=コード,機種,機種コード,基本部番
|
||||
ExcelDataEndJudgeCol=G
|
||||
ExcelDataEndJudgeValue=
|
||||
ExcelMcSeisanFukaEnabled=true
|
||||
ExcelMcSeisanFukaJudgeCol=B
|
||||
ExcelMcSeisanFukaJudgeValuePattern=*生産負荷*
|
||||
ExcelAfWeCol=G
|
||||
;ExcelItemNameAndColumnLetterMapping=BasicPartsNo:D|ModelCd:C|Derivation:E|TactTime:F
|
||||
OutFolderPath=C:\CSV\溶接加工計画
|
||||
CsvFileName=WeOrder
|
||||
FileDtPrefix=yyyyMMdd-HHmmss_
|
||||
FileDtSuffix=_yyyyMMdd_HHmmss
|
||||
;CsvEncoding=UTF-8 With BOM
|
||||
[ExcelToCsvAlumiIni]
|
||||
DaysToStartOffset=1
|
||||
InFolderPath=C:\CSV\溶接加工計画
|
||||
NameToIdListForLine=FWL/NO2,78
|
||||
FileNamePattern=*アルミ*.xlsx
|
||||
IncludedSheetNames=FWL
|
||||
;↓IncludedSheetNamesが指定されているとき無効です
|
||||
;ExcludedSheetNames=SUB,COM
|
||||
;IncludedLineNames=FWL/NO2
|
||||
;↓IncludedSheetNamesが指定されているとき無効です
|
||||
;ExcludedLineNames=SUB,COM
|
||||
ExcelSheetCheckItems=A3,YEAR|B3,MONTH|C3,ライン名|G4[or]K4,生産計画|A7[or]A8,部番|G7[or]G8,日付|G8[or]G9,刻印
|
||||
ExcelLineJudgeCol=C
|
||||
ExcelLineJudgeValue=ライン名
|
||||
ExcelDateYMGetMode=FromYMCells
|
||||
;ExcelDateYMGetMode=FromDateCell
|
||||
ExcelDateYearCell=A4
|
||||
ExcelDateMonthCell=B4
|
||||
ExcelDateRowMode=Judge
|
||||
ExcelDateRow=5
|
||||
ExcelDateRowJudgeCol=G
|
||||
ExcelDateRowJudgeValue=日付
|
||||
ExcelDateRowStartCol=H
|
||||
ExcelDateRowEndValue=当月
|
||||
ExcelHiddenRowHandling=skip
|
||||
ExcelDataStartRowJudgeCol=G
|
||||
ExcelDataStartRowJudgeValues=刻印
|
||||
ExcelDataEndJudgeCol=A
|
||||
ExcelDataEndJudgeValue=*TOTAL*
|
||||
ExcelMcSeisanFukaEnabled=false
|
||||
ExcelMcSeisanFukaJudgeCol=B
|
||||
ExcelMcSeisanFukaJudgeValuePattern=*生産負荷*
|
||||
ExcelAfWeCol=G
|
||||
ExcelItemNameAndColumnLetterMapping=BasicPartsNo:A|ModelCd:A|Derivation:F|TactTime:ZZ
|
||||
OutFolderPath=C:\CSV\溶接加工計画
|
||||
CsvFileName=WeOrder
|
||||
FileDtPrefix=yyyyMMdd-HHmmss_
|
||||
FileDtSuffix=_yyyyMMdd_HHmmss
|
||||
;CsvEncoding=UTF-8 With BOM
|
||||
[ExcelToCsvWeNew001Ini]
|
||||
DaysToStartOffset=1
|
||||
InFolderPath=C:\CSV\溶接加工計画
|
||||
NameToIdListForLine=鉄ライン1,101|溶接1ライン,102
|
||||
FileNamePattern=*溶接1ライン*.xlsx
|
||||
IncludedLineNames=鉄ライン1,溶接1ライン
|
||||
;ExcludedSheetNames=2025.12月 日別,2025.11月 6名加工負荷
|
||||
ExcelSheetCheckItems=D2,ライン|E2,シフト|D5,機種コード|E5,仕向|F5,タクト|G5,日付
|
||||
ExcelLineJudgeCol=D
|
||||
ExcelLineJudgeValue=ライン
|
||||
ExcelDateYMGetMode=FromDateCell
|
||||
ExcelDateRowMode=Judge
|
||||
ExcelDateRowJudgeCol=G
|
||||
ExcelDateRowJudgeValue=日付
|
||||
ExcelDateRowStartCol=H
|
||||
ExcelDateRowEndValue=TOTAL
|
||||
ExcelSkipSameMonthSheets=true
|
||||
ExcelHiddenRowHandling=skip
|
||||
ExcelDataStartRowJudgeCol=D
|
||||
ExcelDataStartRowJudgeValues=機種コード
|
||||
ExcelDataEndJudgeCol=B
|
||||
ExcelDataEndJudgeValue=*TOTAL台数*
|
||||
ExcelMcSeisanFukaEnabled=true
|
||||
ExcelMcSeisanFukaJudgeCol=B
|
||||
ExcelMcSeisanFukaJudgeValuePattern=*生産負荷*
|
||||
ExcelAfWeCol=G
|
||||
ExcelItemNameAndColumnLetterMapping=BasicPartsNo:D|ModelCd:C|Derivation:E|TactTime:F
|
||||
OutFolderPath=C:\CSV\溶接加工計画
|
||||
CsvFileName=WeOrder001
|
||||
FileDtPrefix=yyyyMMdd-HHmmss_
|
||||
FileDtSuffix=_yyyyMMdd_HHmmss
|
||||
;CsvEncoding=UTF-8 With BOM
|
||||
[ExcelToCsvWeNewFormatIni]
|
||||
DaysToStartOffset=1
|
||||
InFolderPath=C:\CSV\新共通書式
|
||||
NameToIdListForLine=MC,101|溶接1,102|マルチ,103|50号機,104|RF@@@COMMA@@@S/A,105|T/T,106
|
||||
FileNamePattern=*.xlsm
|
||||
IncludedLineNames=MC,溶接1,マルチ,50号機,RF@@@COMMA@@@S/A,T/T
|
||||
ExcludedSheetNames=作成控え,取説,設定?,Net&Loss,設定,WeDB,CostDB,生産計画?,準備,AF所要量,SP所要量,CKD,SPDB,検討?,Planning,各ライン?
|
||||
ExcelSheetCheckItems=B2,ライン|C2,シフト|B5,フレーム部番|C5,区分|D5,タクト|E5,日付
|
||||
ExcelLineJudgeCol=B
|
||||
ExcelLineJudgeValue=ライン
|
||||
ExcelDateYMGetMode=FromDateCell
|
||||
ExcelDateRowMode=Judge
|
||||
ExcelDateRowJudgeCol=E
|
||||
ExcelDateRowJudgeValue=日付
|
||||
ExcelDateRowStartCol=F
|
||||
ExcelDateRowEndValue=TOTAL
|
||||
ExcelSkipSameMonthSheets=false
|
||||
ExcelHiddenRowHandling=skip
|
||||
ExcelDataStartRowJudgeCol=B
|
||||
ExcelDataStartRowJudgeValues=フレーム部番
|
||||
ExcelDataEndJudgeCol=B
|
||||
ExcelDataEndJudgeValue=*TOTAL台数*
|
||||
ExcelMcSeisanFukaEnabled=true
|
||||
ExcelMcSeisanFukaJudgeCol=B
|
||||
ExcelMcSeisanFukaJudgeValuePattern=*生産負荷*
|
||||
ExcelAfWeCol=E
|
||||
ExcelItemNameAndColumnLetterMapping=BasicPartsNo:B|ModelCd:別シート,WeDB,D,B,5|Derivation:C|TactTime:D
|
||||
ExcelLinesOnSheet=1
|
||||
ExcelShimukeTactRowZure=1
|
||||
ExcelKihonBubanGyosu=2
|
||||
OutFolderPath=C:\CSV\新共通書式
|
||||
CsvFileName=WeOrderNewFormat
|
||||
FileDtPrefix=yyyyMMdd-HHmmss_
|
||||
FileDtSuffix=_yyyyMMdd_HHmmss
|
||||
;CsvEncoding=UTF-8 With BOM
|
||||
[SFTPUploadIni]
|
||||
Host={[SFTP]Host}
|
||||
Port={[SFTP]Port}
|
||||
UserName={[SFTP]UserName}
|
||||
PrivateKeyFilePath={[SFTP]PrivateKeyFilePath}
|
||||
PassPhrase={[SFTP]PassPhrase}
|
||||
RemotePath={[SFTP]RemotePath}
|
||||
InFolderPath=C:\CSV\新共通書式
|
||||
FileNamePatterns={[CSV]FileNamePatterns}
|
||||
[CleanupAfterUploadIni]
|
||||
FolderPath=C:\CSV\DL
|
||||
MaxDays=90
|
||||
MaxFileCount=100
|
||||
[CsvToDbWeOrder]
|
||||
Title=CSV→DB 処理
|
||||
;001=SFTPDownload(SFTPDownloadIni)
|
||||
002=CsvToDb(CsvToDbIni)
|
||||
;003=SFTPDelete(SFTPDeleteIni)
|
||||
;004=Backup(BackupIni)
|
||||
[SFTPDownloadIni]
|
||||
Host={[SFTP]Host}
|
||||
Port={[SFTP]Port}
|
||||
UserName={[SFTP]UserName}
|
||||
PrivateKeyFilePath={[SFTP]PrivateKeyFilePath}
|
||||
PassPhrase={[SFTP]PassPhrase}
|
||||
RemotePath={[SFTP]RemotePath}
|
||||
OutFolderPath=C:\CSV\DL
|
||||
FileNamePatterns={[CSV]FileNamePatterns}
|
||||
[CsvToDbIni]
|
||||
SqlFolderPath=SQL
|
||||
DaysToStartOffset=1
|
||||
CsvFileNamePatterns={[CSV]FileNamePatterns}
|
||||
CsvFolderPath=C:\CSV\DL
|
||||
;CsvEncoding=UTF-8 With BOM
|
||||
DbProviderName=ポスグレ
|
||||
DbConnectionString=Host=localhost;Port=5432;Database=postgres;Username=postgres;Password=sfsadmin
|
||||
DeleteBeforeInsertSqlFiles=DeleteBeforeInsertWeOrder
|
||||
InsertProcessingMode=Bulk
|
||||
InsertSqlFiles=InsertWeOrder
|
||||
DupCheckSqlFiles=
|
||||
SqlNameInsertBulk=InsertWeOrderBulk
|
||||
[CsvToDbEazyIni]
|
||||
SqlFolderPath=SQL
|
||||
DaysToStartOffset=1
|
||||
CsvFileNamePatterns=*.csv
|
||||
CsvFolderPath=C:\CSV\PoSp
|
||||
;CsvEncoding=UTF-8 With BOM
|
||||
DbProviderName=ポスグレ
|
||||
DbConnectionString=Host=localhost;Port=5432;Database=postgres;Username=postgres;Password=sfsadmin
|
||||
DeleteBeforeInsertSqlFiles=DeleteBeforeInsertEazy
|
||||
InsertSqlFiles=InsertEazy
|
||||
DupCheckSqlFiles=
|
||||
[SFTPDeleteIni]
|
||||
Host={[SFTP]Host}
|
||||
Port={[SFTP]Port}
|
||||
UserName={[SFTP]UserName}
|
||||
PrivateKeyFilePath={[SFTP]PrivateKeyFilePath}
|
||||
PassPhrase={[SFTP]PassPhrase}
|
||||
RemotePath={[SFTP]RemotePath}
|
||||
FileNamePatterns={[CSV]FileNamePatterns}
|
||||
[BackupIni]
|
||||
SourceFolderPath=C:\CSV\DL
|
||||
DestinationFolderPath=C:\CSV\DL\Backup001
|
||||
FileNamePatterns={[CSV]FileNamePatterns}
|
||||
MaxDays=30
|
||||
MaxFileCount=30
|
||||
PrefixDtFormat=yyyy-MM-dd-HH-mm-ss_
|
||||
SuffixDtFormat=_yyyyMMddHHmmss
|
||||
[Logging]
|
||||
LogLevel=Information
|
||||
LogFilePath=Log\ExcelToCsvToDbLog.log
|
||||
RollingInterval=Month
|
||||
[SFTP]
|
||||
Host=172.23.231.166
|
||||
Port=22
|
||||
UserName=noboru
|
||||
PrivateKeyFilePath=C:\Users\jpa01378\id_rsa_dotnet
|
||||
PassPhrase=uI14MRtLpR7iLxWvaTGFfw==
|
||||
RemotePath=bbb
|
||||
[CSV]
|
||||
FileNamePatterns=*WeOrder*.csv
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user