|  |  | 
 |  |  |         { | 
 |  |  |             try | 
 |  |  |             { | 
 |  |  |  | 
 |  |  |  | 
 |  |  |                 //判断权限 | 
 |  |  |                 if (!DBUtility.ClsPub.Security_Log("Sc_MouldLifeUseBill_Query", 3, false, user)) | 
 |  |  |                 { | 
 |  |  |                     objJsonResult.code = "0"; | 
 |  |  |                     objJsonResult.count = 0; | 
 |  |  |                     objJsonResult.Message = "您没有该模块权限,请与管理员联系!"; | 
 |  |  |                     objJsonResult.data = null; | 
 |  |  |                     return objJsonResult; | 
 |  |  |                 } | 
 |  |  |  | 
 |  |  |                 if (sWhere == null || sWhere.Equals("")) | 
 |  |  |                 { | 
 |  |  |                     ds = oCN.RunProcReturn("select * from h_v_Sc_MouldLifeUseBillList order by HMainID asc", "h_v_Sc_MouldLifeUseBillList"); | 
 |  |  | 
 |  |  |         /// </summary> | 
 |  |  |         [Route("Sc_MouldLifeUseReport/GetSc_MouldLifeUseReport")] | 
 |  |  |         [HttpGet] | 
 |  |  |         public object GetSc_MouldLifeUseReport(string sWhere, string user, string userid) | 
 |  |  |         public object GetSc_MouldLifeUseReport(string sWhere, string user) | 
 |  |  |         { | 
 |  |  |             try | 
 |  |  |             { | 
 |  |  | 
 |  |  |                 //查询 | 
 |  |  |                 if (sWhere == null || sWhere.Equals("")) | 
 |  |  |                 { | 
 |  |  |                     string sql = "exec h_p_Sc_MouldLifeUseReport '','" + userid + "'"; | 
 |  |  |                     string sql = "exec h_p_Sc_MouldLifeUseReport ''"; | 
 |  |  |                     ds = oCN.RunProcReturn(sql, "h_p_Sc_MouldLifeUseReport"); | 
 |  |  |                 } | 
 |  |  |                 else | 
 |  |  |                 { | 
 |  |  |                     string sql = "exec h_p_Sc_MouldLifeUseReport  '" + sWhere + "','" + userid + "'"; | 
 |  |  |                     string sql = "exec h_p_Sc_MouldLifeUseReport  '" + sWhere + "'"; | 
 |  |  |                     ds = oCN.RunProcReturn(sql, "h_p_Sc_MouldLifeUseReport"); | 
 |  |  |                 } | 
 |  |  |  |