BUG678 [日時加減算]フロー上表示の変数が結果変数修正
This commit is contained in:
@@ -5,9 +5,9 @@ import { IAction, IActionResult, IActionNode, IActionProperty, IField ,IContext,
|
||||
* アクションの属性定義
|
||||
*/
|
||||
interface IDateTimeCalcProps{
|
||||
verName:IVarName;
|
||||
verNameGet:string;
|
||||
calcOption:string;
|
||||
resultVerName:string;
|
||||
verName:IVarName;
|
||||
year:string;
|
||||
month:string;
|
||||
date:string;
|
||||
@@ -28,9 +28,9 @@ export class DateTimeCalcAction implements IAction{
|
||||
this.actionProps=[];
|
||||
//プロパティ属性の初期化
|
||||
this.props={
|
||||
verName:{name:''},
|
||||
verNameGet:'',
|
||||
calcOption:'',
|
||||
resultVerName:'',
|
||||
verName:{name:''},
|
||||
year:"0",
|
||||
month:"0",
|
||||
date:"0",
|
||||
@@ -149,7 +149,7 @@ export class DateTimeCalcAction implements IAction{
|
||||
};
|
||||
|
||||
//基準日となる変数の値取得
|
||||
const dateValue = getContextVarByPath (context.variables,this.props.verName.name);
|
||||
const dateValue = getContextVarByPath (context.variables,this.props.verNameGet);
|
||||
|
||||
//基準日となる変数の値が空の場合、処理を終了する
|
||||
if(!dateValue){
|
||||
@@ -179,7 +179,7 @@ export class DateTimeCalcAction implements IAction{
|
||||
calculatedDate = this.calcDate(dateValue,year,month,date,hour,minute,second);
|
||||
|
||||
//計算結果を変数に代入する
|
||||
context.variables[this.props.resultVerName] = calculatedDate;
|
||||
context.variables[this.props.verName.name] = calculatedDate;
|
||||
}
|
||||
|
||||
result= {
|
||||
|
||||
Reference in New Issue
Block a user