现在的位置: 首页 > 综合 > 正文

Sample – Invoke Business Service

2012年08月07日 ⁄ 综合 ⁄ 共 659字 ⁄ 字号 评论关闭
                    var custTimeZone = "";
                    var Input = TheApplication().NewPropertySet();
                    var Output = TheApplication().NewPropertySet();
                    var bs;
                    custTimeZone = this.GetFieldValue("Service Address Timezone");
                    bs = TheApplication().GetService("AVAYA Time Service");                
                    Input.SetProperty("To Time Zone Id", custTimeZone);
                    Input.SetProperty("DateTime in Site Time" ,FieldValue);
                    bs.InvokeMethod("CalculateToSiteTime",Input, Output);
                    if (!CheckCommitDate(Output.GetProperty("DateTime in UserTime"))) {
                        sReturnValue = CancelOperation;
                    }

抱歉!评论已关闭.