{
	"info": "",
	"field": {
		"wcr_kWork_Capacity_ID": [],
		"wcr_kRecord_ID": [],
		"wcr_kName": [],
		"wcr_kType": [],
		"wcr_kState": [],
		"wcr_kChange_ID": [],
		"wcr_kCreator_id": [],
		"wcr_kModifier_id": [],
		"wcr_kTransfer_id": [],
		"wcr_kTransfer_State": [],
		"wcr_kRepeat_Rule": [],
		"wcr_kGross_Capacity": [
			["wcr_GROSS_CAPACITY_CALCULATE"],
			["wcap_INPUT_VAR_CALCULATE"]
		],
		"wcr_kFirm_id": [],
		"wcr_kWork_Load_Group_id": [],
		"wcr_kEmployee_id": [],
		"wcr_kStart_Date": [
			["wcr_WEEKDAY_SET"],
			["wcr_GROSS_CAPACITY_CALCULATE"],
			["wcr_NAME_SET"],
			["wcap_INPUT_VAR_CALCULATE"]
		],
		"wcr_kStart_Time": [
			["wcr_GROSS_CAPACITY_CALCULATE"],
			["wcr_NAME_SET"],
			["wcap_INPUT_VAR_CALCULATE"]
		],
		"wcr_kEnd_Date": [
			["wcr_GROSS_CAPACITY_CALCULATE"],
			["wcr_NAME_SET"],
			["wcap_INPUT_VAR_CALCULATE"]
		],
		"wcr_kEnd_Time": [
			["wcr_GROSS_CAPACITY_CALCULATE"],
			["wcr_NAME_SET"],
			["wcap_INPUT_VAR_CALCULATE"]
		],
		"wcr_kWeekday": [
			["wcr_tWeekdayName", "=", ["_date_DayNumberToName2", ["wcr_Weekday"]]],
			["wcr_NAME_SET"]
		],
		"wcr_kShift": [
			["wcr_NAME_SET"]
		],
		"wcr_kColor": [],
		"wcr_kInfo": []


	},
	"function": {
		"wcr_GROSS_CAPACITY_CALCULATE": [
			["_wcr_rStart", "=", "_dt_ToReal", ["wcr_Start_Date", "wcr_Start_Time"]],
			["_wcr_hEnd", "=", "wcr_End_Time"],
			"if", ["_wcr_hEnd", "=", "00:00:00"],
			[
				["_wcr_hEnd", "=", "24:00:00"]
			],
			["_wcr_rEnd", "=", "_dt_ToReal", ["wcr_End_Date", "wcr_hEnd"]],
			["wcr_Gross_Capacity", "=", "_dt_Difference", ["_wcr_rEnd", "_wcr_rStart"]]
		],
		"wcr_WEEKDAY_SET": [
			["wcr_Weekday", "=", "Day_number", ["wcr_Start_Date"]],
			"if", ["wcr_Weekday", "=", 1],
			[
				["wcr_Weekday", "=", 7]
			],
			[
				["wcr_Weekday", "=", "wcr_Weekday", "-", 1]
			],
			"if", ["wcr_Start_Date", "=", "!00.00.0000!"],
			[
				["wcr_tWeekdayName", "=", ""]
			],
			[
				["wcr_tWeekdayName", "=", "_date_DayNumberToName2", ["wcr_Weekday"]]
			]
		],
		"wcr_NAME_SET": [
			["COMPILER_wcr_"],
			"if", ["_el_InInput", "=", "kFalse"],
			[
				"if", ["wcap_Work_Capacity_ID", "<>", "wcr_Work_Capacity_id"],
				[
					["_sel_RELATE_ONE", ["wcap_kWork_Capacity_ID", "wcr_kWork_Capacity_id"]]
				]
			],
			"if", ["_rec_CurrentExist", ["wcap_kTbl"], "=", "kTrue"],
			[
				["_wcr_lType", "=", "_fld_ValueLong", "wcap_kType"]
			],
			[
				["_wcr_lType", "=", 1]
			],
			"if", ["_wcr_lType", "=", 1], "|", ["_wcr_lType", "=", 2],
			[
				["wcr_Name", "=", "wcap_Name", "+", "ksSpace"],

				["_wcr_tName", "=", "wcr_ShiftNumToName", ["wcr_Shift"]],
				["_wcr_tName", "=", "Substring", ["_wcr_tName", 1, 2]],
				["wcr_Name", "=", "wcr_Name", "+", "_wcr_tName", "+", "/"],

				["_wcr_tName", "=", "_time_ToString", ["wcr_Start_Time", "HH MM"]],
				["_wcr_tName", "=", "_str_EndTxtRemove", ["_wcr_tName", ":00", "kFalse"]],
				["wcr_Name", "=", "wcr_Name", "+", "_wcr_tName", "+", "-"],

				["_wcr_tName", "=", "_time_ToString_", ["wcr_End_Time", "HH MM"]],
				["_wcr_tName", "=", "_str_EndTxtRemove", ["_wcr_tName", ":00", "kFalse"]],
				["wcr_Name", "=", "wcr_Name", "+", "_wcr_tName", "+", "/"],

				["_wcr_tName", "=", "_date_DayNumberToName2", ["wcr_Weekday"]],
				["_wcr_tName", "=", "Substring", ["_wcr_tName", 1, 2]],
				["wcr_Name", "=", "wcr_Name", "+", "_wcr_tName"]
			]
		]
	}
}
