请问JSAction的Callback函数为什么没有回调
金蝶云社区-monmars
monmars
1人赞赏了该文章 642次浏览 未经作者许可,禁止转载编辑于2016年07月06日 12:04:00

请问JSAction的Callback函数为什么没有回调?请高手指点。 Cloud5.0版本

List printInfoList = new List();
PrintJobItem printInfoItem = new PrintJobItem();
printInfoItem.BillId = Convert.ToString(billitem.PKValue);
printInfoItem.FormId = "nan_PDL_CashRecord";
printInfoItem.TemplateId = Convert.ToString(templateid);//套打模版的ID
printInfoItem.SortString = "";
printInfoList.Add(printInfoItem);
string gkey = Guid.NewGuid().ToString();
this.View.Session[gkey] = printInfoList;
JSONObject jsonObj = new JSONObject();
jsonObj.Put("pageID", this.View.PageId);
jsonObj.Put("printJobId", gkey);
jsonObj.Put("action", JSAction.printPreview);//预览--printType赋值为"preview";打印--printType赋值为"print"
jsonObj.Put("printBarName", null);
this.View.AddAction(JSAction.printPreview, jsonObj, callback);