| | |
| | | { |
| | | try |
| | | { |
| | | string sql = "select b.* from Xt_DefineBillMainSetMain as a inner join Xt_DefineBillMainSetSub as b on a.HInterID = b.HInterID where a.HModName ='" + HModName + "' and a.HUser ='" + user + "' order by b.HArrangeOrder,b.HArrangeOrderSub"; |
| | | string sql = "select * from h_v_Xt_DefineBillMainSet_AutoLoadList where HModName ='" + HModName + "' and HUser ='" + user + "' order by HArrangeOrder,HArrangeOrderSub"; |
| | | ds = oCN.RunProcReturn(sql, "Xt_DefineBillMainSet"); |
| | | |
| | | if(ds!=null && ds.Tables[0].Rows.Count == 0) |
| | | { |
| | | sql = "select b.* from Xt_DefineBillMainSetMain as a inner join Xt_DefineBillMainSetSub as b on a.HInterID = b.HInterID where a.HModName ='" + HModName + "' and a.HUser ='admin' order by b.HArrangeOrder,b.HArrangeOrderSub"; |
| | | ds = oCN.RunProcReturn(sql, "Xt_DefineBillMainSet"); |
| | | sql = "select * from h_v_Xt_DefineBillMainSet_AutoLoadList where HModName ='" + HModName + "' and HUser ='admin' order by HArrangeOrder,HArrangeOrderSub"; |
| | | ds = oCN.RunProcReturn(sql, "h_v_Xt_DefineBillMainSet_AutoLoadList"); |
| | | } |
| | | |
| | | objJsonResult.code = "1"; |