Merged PR 100: BUG678 [日時加減算]フロー上表示の結果変数修正
BUG678 [日時加減算]フロー上表示の変数が結果変数修正 Related work items: #678
This commit is contained in:
@@ -5,9 +5,9 @@ import { IAction, IActionResult, IActionNode, IActionProperty, IField ,IContext,
|
|||||||
* アクションの属性定義
|
* アクションの属性定義
|
||||||
*/
|
*/
|
||||||
interface IDateTimeCalcProps{
|
interface IDateTimeCalcProps{
|
||||||
verName:IVarName;
|
verNameGet:string;
|
||||||
calcOption:string;
|
calcOption:string;
|
||||||
resultVerName:string;
|
verName:IVarName;
|
||||||
year:string;
|
year:string;
|
||||||
month:string;
|
month:string;
|
||||||
date:string;
|
date:string;
|
||||||
@@ -28,9 +28,9 @@ export class DateTimeCalcAction implements IAction{
|
|||||||
this.actionProps=[];
|
this.actionProps=[];
|
||||||
//プロパティ属性の初期化
|
//プロパティ属性の初期化
|
||||||
this.props={
|
this.props={
|
||||||
verName:{name:''},
|
verNameGet:'',
|
||||||
calcOption:'',
|
calcOption:'',
|
||||||
resultVerName:'',
|
verName:{name:''},
|
||||||
year:"0",
|
year:"0",
|
||||||
month:"0",
|
month:"0",
|
||||||
date:"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){
|
if(!dateValue){
|
||||||
@@ -179,7 +179,7 @@ export class DateTimeCalcAction implements IAction{
|
|||||||
calculatedDate = this.calcDate(dateValue,year,month,date,hour,minute,second);
|
calculatedDate = this.calcDate(dateValue,year,month,date,hour,minute,second);
|
||||||
|
|
||||||
//計算結果を変数に代入する
|
//計算結果を変数に代入する
|
||||||
context.variables[this.props.resultVerName] = calculatedDate;
|
context.variables[this.props.verName.name] = calculatedDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
result= {
|
result= {
|
||||||
|
|||||||
Reference in New Issue
Block a user