本周问题总结

1.父页面打开Dialog,在对话框关闭后执行回调函数。

比如:在UnfishedList打开处理环节的页面,处理完毕后对话框关闭,待处理流程页面刷新。

           //处理当前步骤
                dealStep: function (formPageUrl, stepID,stepName,projectName) {
                    var that = this;
                     //row = that.uiStore.gvUnfinishedTaskList.getSelectRow(); 
                    xUI.dialog.open(formPageUrl + "?stepId=" + stepID + "&callback=modObj.loadUnfinishedTaskListList", projectName + " - " + stepName, "100%", "100%");
                },

对话框关闭后,会自动执行这个回调函数。

2.根据Key值获取Dictionary类型数据的Value值

temp数据类型:

1.获取key="G_SORT"的value值,并且输出为value1,类型为string。

2.将value1转换为int类型,输出为gsort1。

 var temp1 = gradeMars1.Where(c => c.Values.Contains(gra1)).Select(c => c).ToList();
                string value1;
                temp1[0].TryGetValue("G_SORT", out value1);          
                int gsort1;
                int.TryParse(value1, out gsort1);

 3.操作Datable某行某列的数据

process数据类型:

                        var process = FlowCtrlProjIndivService.GetService().GetProcessInfo(p_code);
                        hdv_project_type.Value = process.Rows[0][4].ToString();//获取第一行第五列数据

 4.当返回的数据出现null时,处理方式:

例:待处理页面是批量评级债券的时候,按我之前的方式来看,O_NAME:null, MULT_O_NAME就是受评债券的拼接字符串,

之前我想的是根据流程模板类型判断,单流程模板命名是任意的,这样是不对的。

看了静姐修改后的存储过程,赶紧拿小本本几下来。。。。

 NVL(B.O_NAME, B.MULT_O_NAME) AS O_NAME,

解释: 当B.O_NAME is null,就用B.MULT_O_NAME,这样就不需要再前端判断了,传出去的都是O_NAME

猜你喜欢

转载自www.cnblogs.com/ChenMM/p/10043352.html
今日推荐