using Newtonsoft.Json.Linq; 
 | 
using System; 
 | 
using System.Collections.Generic; 
 | 
using System.Data; 
 | 
using System.Web.Http; 
 | 
using WebAPI.Models; 
 | 
namespace WebAPI.Controllers 
 | 
{ 
 | 
    /** 
 | 
     * 找货单单 
 | 
     */ 
 | 
    public class Sc_CheckToolsRepairWorkBillController : ApiController 
 | 
    { 
 | 
        private json objJsonResult = new json(); 
 | 
        public DataSet ds = new DataSet(); 
 | 
        public WebServer webserver = new WebServer(); 
 | 
  
 | 
        /// <summary> 
 | 
        /// 根据包装单 返回此包装单内的相关信息 
 | 
        /// </summary> 
 | 
        /// <returns></returns> 
 | 
  
 | 
        /// <summary> 
 | 
        /// 检具维修工单列表 
 | 
        /// </summary> 
 | 
        /// <returns></returns> 
 | 
        [Route("Sc_CheckToolsRepair/GetCheckToolsRepairWorkBillList")] 
 | 
        [HttpGet] 
 | 
        public object GetCheckToolsRepairWorkBillList(string sWhere) 
 | 
        { 
 | 
            try 
 | 
            { 
 | 
                 
 | 
                    ds = Sc_CheckToolsRepairWorkBillList_s(sWhere); 
 | 
                if (ds == null || ds.Tables[0].Rows.Count <= 0) 
 | 
                { 
 | 
                    objJsonResult.code = "0"; 
 | 
                    objJsonResult.count = 0; 
 | 
                    objJsonResult.Message = "没有返回任何记录!"; 
 | 
                    objJsonResult.data = null; 
 | 
                    return objJsonResult; 
 | 
                } 
 | 
                else 
 | 
                { 
 | 
                    objJsonResult.code = "1"; 
 | 
                    objJsonResult.count = 1; 
 | 
                    objJsonResult.Message = "返回记录成功!"; 
 | 
                    objJsonResult.data = ds.Tables[0]; 
 | 
                    return objJsonResult; 
 | 
                } 
 | 
            } 
 | 
            catch (Exception ex) 
 | 
            { 
 | 
                objJsonResult.code = "0"; 
 | 
                objJsonResult.count = 0; 
 | 
                objJsonResult.Message = "没有返回任何记录!" + ex.ToString(); 
 | 
                objJsonResult.data = null; 
 | 
                return objJsonResult; 
 | 
            } 
 | 
        } 
 | 
  
 | 
        #region sql语句 
 | 
  
 | 
       
 | 
        public static DataSet Sc_CheckToolsRepairWorkBillList_s(string sWhere) 
 | 
        { 
 | 
            return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_Sc_CheckToolsRepairWorkBillList ", "h_v_Sc_CheckToolsRepairWorkBillList"); 
 | 
        } 
 | 
  
 | 
  
 | 
        /// <summary> 
 | 
        /// 检具点检计划表列表 
 | 
        /// </summary> 
 | 
        /// <returns></returns> 
 | 
        [Route("Sc_CheckToolsDotCheckPlan/GetCheckToolsDotCheckPlanBillList")] 
 | 
        [HttpGet] 
 | 
        public object GetCheckToolsDotCheckPlanBillList(string sWhere) 
 | 
        { 
 | 
            try 
 | 
            { 
 | 
  
 | 
                ds = Sc_CheckToolsDotCheckPlanBillList_s(sWhere); 
 | 
                if (ds == null || ds.Tables[0].Rows.Count <= 0) 
 | 
                { 
 | 
                    objJsonResult.code = "0"; 
 | 
                    objJsonResult.count = 0; 
 | 
                    objJsonResult.Message = "没有返回任何记录!"; 
 | 
                    objJsonResult.data = null; 
 | 
                    return objJsonResult; 
 | 
                } 
 | 
                else 
 | 
                { 
 | 
                    objJsonResult.code = "1"; 
 | 
                    objJsonResult.count = 1; 
 | 
                    objJsonResult.Message = "返回记录成功!"; 
 | 
                    objJsonResult.data = ds.Tables[0]; 
 | 
                    return objJsonResult; 
 | 
                } 
 | 
            } 
 | 
            catch (Exception ex) 
 | 
            { 
 | 
                objJsonResult.code = "0"; 
 | 
                objJsonResult.count = 0; 
 | 
                objJsonResult.Message = "没有返回任何记录!" + ex.ToString(); 
 | 
                objJsonResult.data = null; 
 | 
                return objJsonResult; 
 | 
            } 
 | 
        } 
 | 
  
 | 
        #region sql语句 
 | 
  
 | 
  
 | 
        public static DataSet Sc_CheckToolsDotCheckPlanBillList_s(string sWhere) 
 | 
        { 
 | 
            return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_Sc_CheckToolsDotCheckPlanBillList ", "h_v_Sc_CheckToolsDotCheckPlanBillList"); 
 | 
        } 
 | 
        #endregion 
 | 
  
 | 
        /// <summary> 
 | 
        /// 检具保养记录表列表 
 | 
        /// </summary> 
 | 
        /// <returns></returns> 
 | 
        [Route("Sc_CheckToolsMaintainBill/GetCheckToolsMaintainBillList")] 
 | 
        [HttpGet] 
 | 
        public object GetCheckToolsMaintainBillList(string sWhere) 
 | 
        { 
 | 
            try 
 | 
            { 
 | 
  
 | 
                ds = Sc_CheckToolsMaintainBillList_s(sWhere); 
 | 
                if (ds == null || ds.Tables[0].Rows.Count <= 0) 
 | 
                { 
 | 
                    objJsonResult.code = "0"; 
 | 
                    objJsonResult.count = 0; 
 | 
                    objJsonResult.Message = "没有返回任何记录!"; 
 | 
                    objJsonResult.data = null; 
 | 
                    return objJsonResult; 
 | 
                } 
 | 
                else 
 | 
                { 
 | 
                    objJsonResult.code = "1"; 
 | 
                    objJsonResult.count = 1; 
 | 
                    objJsonResult.Message = "返回记录成功!"; 
 | 
                    objJsonResult.data = ds.Tables[0]; 
 | 
                    return objJsonResult; 
 | 
                } 
 | 
            } 
 | 
            catch (Exception ex) 
 | 
            { 
 | 
                objJsonResult.code = "0"; 
 | 
                objJsonResult.count = 0; 
 | 
                objJsonResult.Message = "没有返回任何记录!" + ex.ToString(); 
 | 
                objJsonResult.data = null; 
 | 
                return objJsonResult; 
 | 
            } 
 | 
        } 
 | 
  
 | 
        #region sql语句 
 | 
  
 | 
  
 | 
        public static DataSet Sc_CheckToolsMaintainBillList_s(string sWhere) 
 | 
        { 
 | 
            return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_Sc_CheckToolsMaintainBillList ", "h_v_Sc_CheckToolsMaintainBillList"); 
 | 
        } 
 | 
        #endregion 
 | 
  
 | 
        /// <summary> 
 | 
        /// 模具保养记录表列表 
 | 
        /// </summary> 
 | 
        /// <returns></returns> 
 | 
        [Route("Sc_MouldMaintainBill/GetMouldMaintainBillList")] 
 | 
        [HttpGet] 
 | 
        public object GetMouldMaintainBillList(string sWhere) 
 | 
        { 
 | 
            try 
 | 
            { 
 | 
  
 | 
                ds = Sc_MouldMaintainBillList_s(sWhere); 
 | 
                if (ds == null || ds.Tables[0].Rows.Count <= 0) 
 | 
                { 
 | 
                    objJsonResult.code = "0"; 
 | 
                    objJsonResult.count = 0; 
 | 
                    objJsonResult.Message = "没有返回任何记录!"; 
 | 
                    objJsonResult.data = null; 
 | 
                    return objJsonResult; 
 | 
                } 
 | 
                else 
 | 
                { 
 | 
                    objJsonResult.code = "1"; 
 | 
                    objJsonResult.count = 1; 
 | 
                    objJsonResult.Message = "返回记录成功!"; 
 | 
                    objJsonResult.data = ds.Tables[0]; 
 | 
                    return objJsonResult; 
 | 
                } 
 | 
            } 
 | 
            catch (Exception ex) 
 | 
            { 
 | 
                objJsonResult.code = "0"; 
 | 
                objJsonResult.count = 0; 
 | 
                objJsonResult.Message = "没有返回任何记录!" + ex.ToString(); 
 | 
                objJsonResult.data = null; 
 | 
                return objJsonResult; 
 | 
            } 
 | 
        } 
 | 
  
 | 
        #region sql语句 
 | 
  
 | 
  
 | 
        public static DataSet Sc_MouldMaintainBillList_s(string sWhere) 
 | 
        { 
 | 
            return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_Sc_MouldMaintainBillList ", "h_v_Sc_MouldMaintainBillList"); 
 | 
        } 
 | 
        #endregion 
 | 
  
 | 
  
 | 
  
 | 
        /// <summary> 
 | 
        /// 模具点检计划表列表 
 | 
        /// </summary> 
 | 
        /// <returns></returns> 
 | 
        [Route("Sc_MouldDotCheckPlanBill/GetMouldDotCheckPlanBillList")] 
 | 
        [HttpGet] 
 | 
        public object GetMouldDotCheckPlanBillList(string sWhere) 
 | 
        { 
 | 
            try 
 | 
            { 
 | 
  
 | 
                ds = Sc_MouldDotCheckPlanBillList_s(sWhere); 
 | 
                if (ds == null || ds.Tables[0].Rows.Count <= 0) 
 | 
                { 
 | 
                    objJsonResult.code = "0"; 
 | 
                    objJsonResult.count = 0; 
 | 
                    objJsonResult.Message = "没有返回任何记录!"; 
 | 
                    objJsonResult.data = null; 
 | 
                    return objJsonResult; 
 | 
                } 
 | 
                else 
 | 
                { 
 | 
                    objJsonResult.code = "1"; 
 | 
                    objJsonResult.count = 1; 
 | 
                    objJsonResult.Message = "返回记录成功!"; 
 | 
                    objJsonResult.data = ds.Tables[0]; 
 | 
                    return objJsonResult; 
 | 
                } 
 | 
            } 
 | 
            catch (Exception ex) 
 | 
            { 
 | 
                objJsonResult.code = "0"; 
 | 
                objJsonResult.count = 0; 
 | 
                objJsonResult.Message = "没有返回任何记录!" + ex.ToString(); 
 | 
                objJsonResult.data = null; 
 | 
                return objJsonResult; 
 | 
            } 
 | 
        } 
 | 
  
 | 
        #region sql语句 
 | 
  
 | 
  
 | 
        public static DataSet Sc_MouldDotCheckPlanBillList_s(string sWhere) 
 | 
        { 
 | 
            return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_Sc_MouldDotCheckPlanBillList ", "h_v_Sc_MouldDotCheckPlanBillList"); 
 | 
        } 
 | 
        #endregion 
 | 
  
 | 
        /// <summary> 
 | 
        /// 模具点检记录表列表 
 | 
        /// </summary> 
 | 
        /// <returns></returns> 
 | 
        [Route("Sc_MouldDotCheckBill/GetMouldDotCheckBillList")] 
 | 
        [HttpGet] 
 | 
        public object GetMouldDotCheckBillList(string sWhere) 
 | 
        { 
 | 
            try 
 | 
            { 
 | 
  
 | 
                ds = Sc_MouldDotCheckBillList_s(sWhere); 
 | 
                if (ds == null || ds.Tables[0].Rows.Count <= 0) 
 | 
                { 
 | 
                    objJsonResult.code = "0"; 
 | 
                    objJsonResult.count = 0; 
 | 
                    objJsonResult.Message = "没有返回任何记录!"; 
 | 
                    objJsonResult.data = null; 
 | 
                    return objJsonResult; 
 | 
                } 
 | 
                else 
 | 
                { 
 | 
                    objJsonResult.code = "1"; 
 | 
                    objJsonResult.count = 1; 
 | 
                    objJsonResult.Message = "返回记录成功!"; 
 | 
                    objJsonResult.data = ds.Tables[0]; 
 | 
                    return objJsonResult; 
 | 
                } 
 | 
            } 
 | 
            catch (Exception ex) 
 | 
            { 
 | 
                objJsonResult.code = "0"; 
 | 
                objJsonResult.count = 0; 
 | 
                objJsonResult.Message = "没有返回任何记录!" + ex.ToString(); 
 | 
                objJsonResult.data = null; 
 | 
                return objJsonResult; 
 | 
            } 
 | 
        } 
 | 
  
 | 
        #region sql语句 
 | 
  
 | 
  
 | 
        public static DataSet Sc_MouldDotCheckBillList_s(string sWhere) 
 | 
        { 
 | 
            return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_Sc_MouldDotCheckBillList ", "h_v_Sc_MouldDotCheckBillList"); 
 | 
        } 
 | 
        #endregion 
 | 
  
 | 
  
 | 
        /// <summary> 
 | 
        /// 检具保养计划表列表 
 | 
        /// </summary> 
 | 
        /// <returns></returns> 
 | 
        [Route("Sc_CheckToolsMaintainPlanBill/GetCheckToolsMaintainPlanBillList")] 
 | 
        [HttpGet] 
 | 
        public object GetCheckToolsMaintainPlanBillList(string sWhere) 
 | 
        { 
 | 
            try 
 | 
            { 
 | 
  
 | 
                ds = Sc_CheckToolsMaintainPlanBillList_s(sWhere); 
 | 
                if (ds == null || ds.Tables[0].Rows.Count <= 0) 
 | 
                { 
 | 
                    objJsonResult.code = "0"; 
 | 
                    objJsonResult.count = 0; 
 | 
                    objJsonResult.Message = "没有返回任何记录!"; 
 | 
                    objJsonResult.data = null; 
 | 
                    return objJsonResult; 
 | 
                } 
 | 
                else 
 | 
                { 
 | 
                    objJsonResult.code = "1"; 
 | 
                    objJsonResult.count = 1; 
 | 
                    objJsonResult.Message = "返回记录成功!"; 
 | 
                    objJsonResult.data = ds.Tables[0]; 
 | 
                    return objJsonResult; 
 | 
                } 
 | 
            } 
 | 
            catch (Exception ex) 
 | 
            { 
 | 
                objJsonResult.code = "0"; 
 | 
                objJsonResult.count = 0; 
 | 
                objJsonResult.Message = "没有返回任何记录!" + ex.ToString(); 
 | 
                objJsonResult.data = null; 
 | 
                return objJsonResult; 
 | 
            } 
 | 
        } 
 | 
  
 | 
        #region sql语句 
 | 
  
 | 
  
 | 
        public static DataSet Sc_CheckToolsMaintainPlanBillList_s(string sWhere) 
 | 
        { 
 | 
            return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_Sc_CheckToolsMaintainPlanBillList ", "h_v_Sc_CheckToolsMaintainPlanBillList"); 
 | 
        } 
 | 
        #endregion 
 | 
  
 | 
  
 | 
        /// <summary> 
 | 
        /// 模具保养计划表列表 
 | 
        /// </summary> 
 | 
        /// <returns></returns> 
 | 
        [Route("Sc_MouldMaintainPlanBill/GetMouldMaintainPlanBillList")] 
 | 
        [HttpGet] 
 | 
        public object GetMouldMaintainPlanBillList(string sWhere) 
 | 
        { 
 | 
            try 
 | 
            { 
 | 
  
 | 
                ds = Sc_MouldMaintainPlanBillList_s(sWhere); 
 | 
                if (ds == null || ds.Tables[0].Rows.Count <= 0) 
 | 
                { 
 | 
                    objJsonResult.code = "0"; 
 | 
                    objJsonResult.count = 0; 
 | 
                    objJsonResult.Message = "没有返回任何记录!"; 
 | 
                    objJsonResult.data = null; 
 | 
                    return objJsonResult; 
 | 
                } 
 | 
                else 
 | 
                { 
 | 
                    objJsonResult.code = "1"; 
 | 
                    objJsonResult.count = 1; 
 | 
                    objJsonResult.Message = "返回记录成功!"; 
 | 
                    objJsonResult.data = ds.Tables[0]; 
 | 
                    return objJsonResult; 
 | 
                } 
 | 
            } 
 | 
            catch (Exception ex) 
 | 
            { 
 | 
                objJsonResult.code = "0"; 
 | 
                objJsonResult.count = 0; 
 | 
                objJsonResult.Message = "没有返回任何记录!" + ex.ToString(); 
 | 
                objJsonResult.data = null; 
 | 
                return objJsonResult; 
 | 
            } 
 | 
        } 
 | 
  
 | 
        #region sql语句 
 | 
  
 | 
  
 | 
        public static DataSet Sc_MouldMaintainPlanBillList_s(string sWhere) 
 | 
        { 
 | 
            return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_Sc_MouldMaintainPlanBillList ", "h_v_Sc_MouldMaintainPlanBillList"); 
 | 
        } 
 | 
        #endregion 
 | 
  
 | 
  
 | 
        /// <summary> 
 | 
        /// 模具故障登记表列表 
 | 
        /// </summary> 
 | 
        /// <returns></returns> 
 | 
        [Route("Sc_MouldConkBookBill/GetMouldConkBookBillList")] 
 | 
        [HttpGet] 
 | 
        public object GetMouldConkBookBillList(string sWhere) 
 | 
        { 
 | 
            try 
 | 
            { 
 | 
  
 | 
                ds = Sc_MouldConkBookBillList_s(sWhere); 
 | 
                if (ds == null || ds.Tables[0].Rows.Count <= 0) 
 | 
                { 
 | 
                    objJsonResult.code = "0"; 
 | 
                    objJsonResult.count = 0; 
 | 
                    objJsonResult.Message = "没有返回任何记录!"; 
 | 
                    objJsonResult.data = null; 
 | 
                    return objJsonResult; 
 | 
                } 
 | 
                else 
 | 
                { 
 | 
                    objJsonResult.code = "1"; 
 | 
                    objJsonResult.count = 1; 
 | 
                    objJsonResult.Message = "返回记录成功!"; 
 | 
                    objJsonResult.data = ds.Tables[0]; 
 | 
                    return objJsonResult; 
 | 
                } 
 | 
            } 
 | 
            catch (Exception ex) 
 | 
            { 
 | 
                objJsonResult.code = "0"; 
 | 
                objJsonResult.count = 0; 
 | 
                objJsonResult.Message = "没有返回任何记录!" + ex.ToString(); 
 | 
                objJsonResult.data = null; 
 | 
                return objJsonResult; 
 | 
            } 
 | 
        } 
 | 
  
 | 
        #region sql语句 
 | 
  
 | 
  
 | 
        public static DataSet Sc_MouldConkBookBillList_s(string sWhere) 
 | 
        { 
 | 
            return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_Sc_MouldConkBookBillList ", "h_v_Sc_MouldConkBookBillList"); 
 | 
        } 
 | 
        #endregion 
 | 
  
 | 
  
 | 
  
 | 
        /// <summary> 
 | 
        /// 模具故障登记表列表 
 | 
        /// </summary> 
 | 
        /// <returns></returns> 
 | 
        [Route("Sc_MouldRepairCheckBill/GetMouldRepairCheckBillList")] 
 | 
        [HttpGet] 
 | 
        public object GetMouldRepairCheckBillList(string sWhere) 
 | 
        { 
 | 
            try 
 | 
            { 
 | 
  
 | 
                ds = Sc_MouldRepairCheckBillList_s(sWhere); 
 | 
                if (ds == null || ds.Tables[0].Rows.Count <= 0) 
 | 
                { 
 | 
                    objJsonResult.code = "0"; 
 | 
                    objJsonResult.count = 0; 
 | 
                    objJsonResult.Message = "没有返回任何记录!"; 
 | 
                    objJsonResult.data = null; 
 | 
                    return objJsonResult; 
 | 
                } 
 | 
                else 
 | 
                { 
 | 
                    objJsonResult.code = "1"; 
 | 
                    objJsonResult.count = 1; 
 | 
                    objJsonResult.Message = "返回记录成功!"; 
 | 
                    objJsonResult.data = ds.Tables[0]; 
 | 
                    return objJsonResult; 
 | 
                } 
 | 
            } 
 | 
            catch (Exception ex) 
 | 
            { 
 | 
                objJsonResult.code = "0"; 
 | 
                objJsonResult.count = 0; 
 | 
                objJsonResult.Message = "没有返回任何记录!" + ex.ToString(); 
 | 
                objJsonResult.data = null; 
 | 
                return objJsonResult; 
 | 
            } 
 | 
        } 
 | 
  
 | 
        #region sql语句 
 | 
  
 | 
  
 | 
        public static DataSet Sc_MouldRepairCheckBillList_s(string sWhere) 
 | 
        { 
 | 
            return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_Sc_MouldRepairCheckBillList ", "h_v_Sc_MouldRepairCheckBillList"); 
 | 
        } 
 | 
        #endregion 
 | 
  
 | 
        /// <summary> 
 | 
        /// 检具维修验收单列表 
 | 
        /// </summary> 
 | 
        /// <returns></returns> 
 | 
        [Route("Sc_CheckToolsRepairCheckBill/GetCheckToolsRepairCheckBillList")] 
 | 
        [HttpGet] 
 | 
        public object GetCheckToolsRepairCheckBillList(string sWhere) 
 | 
        { 
 | 
            try 
 | 
            { 
 | 
  
 | 
                ds = Sc_CheckToolsRepairCheckBillList_s(sWhere); 
 | 
                if (ds == null || ds.Tables[0].Rows.Count <= 0) 
 | 
                { 
 | 
                    objJsonResult.code = "0"; 
 | 
                    objJsonResult.count = 0; 
 | 
                    objJsonResult.Message = "没有返回任何记录!"; 
 | 
                    objJsonResult.data = null; 
 | 
                    return objJsonResult; 
 | 
                } 
 | 
                else 
 | 
                { 
 | 
                    objJsonResult.code = "1"; 
 | 
                    objJsonResult.count = 1; 
 | 
                    objJsonResult.Message = "返回记录成功!"; 
 | 
                    objJsonResult.data = ds.Tables[0]; 
 | 
                    return objJsonResult; 
 | 
                } 
 | 
            } 
 | 
            catch (Exception ex) 
 | 
            { 
 | 
                objJsonResult.code = "0"; 
 | 
                objJsonResult.count = 0; 
 | 
                objJsonResult.Message = "没有返回任何记录!" + ex.ToString(); 
 | 
                objJsonResult.data = null; 
 | 
                return objJsonResult; 
 | 
            } 
 | 
        } 
 | 
  
 | 
        #region sql语句 
 | 
  
 | 
  
 | 
        public static DataSet Sc_CheckToolsRepairCheckBillList_s(string sWhere) 
 | 
        { 
 | 
            return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_Sc_CheckToolsRepairCheckBillList ", "h_v_Sc_CheckToolsRepairCheckBillList"); 
 | 
        } 
 | 
        #endregion 
 | 
  
 | 
  
 | 
        #region sql语句 
 | 
  
 | 
  
 | 
        //public static DataSet Sc_MouldRepairCheckBillList_s(string sWhere) 
 | 
        //{ 
 | 
        //    return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_Sc_MouldRepairCheckBillList ", "h_v_Sc_MouldRepairCheckBillList"); 
 | 
        //} 
 | 
        #endregion 
 | 
  
 | 
        /// <summary> 
 | 
        /// 模具维修工单表列表 
 | 
        /// </summary> 
 | 
        /// <returns></returns> 
 | 
        [Route("Sb_MouldRepairWorkBill/GetMouldRepairWorkBillList")] 
 | 
        [HttpGet] 
 | 
        public object GetMouldRepairWorkBillList(string sWhere) 
 | 
        { 
 | 
            try 
 | 
            { 
 | 
  
 | 
                ds = Sc_MouldRepairWorkBillList_s(sWhere); 
 | 
                if (ds == null || ds.Tables[0].Rows.Count <= 0) 
 | 
                { 
 | 
                    objJsonResult.code = "0"; 
 | 
                    objJsonResult.count = 0; 
 | 
                    objJsonResult.Message = "没有返回任何记录!"; 
 | 
                    objJsonResult.data = null; 
 | 
                    return objJsonResult; 
 | 
                } 
 | 
                else 
 | 
                { 
 | 
                    objJsonResult.code = "1"; 
 | 
                    objJsonResult.count = 1; 
 | 
                    objJsonResult.Message = "返回记录成功!"; 
 | 
                    objJsonResult.data = ds.Tables[0]; 
 | 
                    return objJsonResult; 
 | 
                } 
 | 
            } 
 | 
            catch (Exception ex) 
 | 
            { 
 | 
                objJsonResult.code = "0"; 
 | 
                objJsonResult.count = 0; 
 | 
                objJsonResult.Message = "没有返回任何记录!" + ex.ToString(); 
 | 
                objJsonResult.data = null; 
 | 
                return objJsonResult; 
 | 
            } 
 | 
        } 
 | 
  
 | 
        #region sql语句 
 | 
  
 | 
  
 | 
        public static DataSet Sc_MouldRepairWorkBillList_s(string sWhere) 
 | 
        { 
 | 
            return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_Sc_MouldRepairWorkBillList ", "h_v_Sc_MouldRepairWorkBillList"); 
 | 
        } 
 | 
        #endregion 
 | 
  
 | 
  
 | 
        /// <summary> 
 | 
        /// 检具故障登记表列表 
 | 
        /// </summary> 
 | 
        /// <returns></returns> 
 | 
        [Route("Sc_CheckToolsConkBookBill/GetCheckToolsConkBookBillList")] 
 | 
        [HttpGet] 
 | 
        public object GetCheckToolsConkBookBillList(string sWhere) 
 | 
        { 
 | 
            try 
 | 
            { 
 | 
  
 | 
                ds = Sc_CheckToolsConkBookBillList_s(sWhere); 
 | 
                if (ds == null || ds.Tables[0].Rows.Count <= 0) 
 | 
                { 
 | 
                    objJsonResult.code = "0"; 
 | 
                    objJsonResult.count = 0; 
 | 
                    objJsonResult.Message = "没有返回任何记录!"; 
 | 
                    objJsonResult.data = null; 
 | 
                    return objJsonResult; 
 | 
                } 
 | 
                else 
 | 
                { 
 | 
                    objJsonResult.code = "1"; 
 | 
                    objJsonResult.count = 1; 
 | 
                    objJsonResult.Message = "返回记录成功!"; 
 | 
                    objJsonResult.data = ds.Tables[0]; 
 | 
                    return objJsonResult; 
 | 
                } 
 | 
            } 
 | 
            catch (Exception ex) 
 | 
            { 
 | 
                objJsonResult.code = "0"; 
 | 
                objJsonResult.count = 0; 
 | 
                objJsonResult.Message = "没有返回任何记录!" + ex.ToString(); 
 | 
                objJsonResult.data = null; 
 | 
                return objJsonResult; 
 | 
            } 
 | 
        } 
 | 
  
 | 
        #region sql语句 
 | 
  
 | 
  
 | 
        public static DataSet Sc_CheckToolsConkBookBillList_s(string sWhere) 
 | 
        { 
 | 
            return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_Sc_CheckToolsConkBookBillList ", "h_v_Sc_CheckToolsConkBookBillList"); 
 | 
        } 
 | 
        #endregion 
 | 
  
 | 
  
 | 
        /// <summary> 
 | 
        /// 检具点检记录表列表 
 | 
        /// </summary> 
 | 
        /// <returns></returns> 
 | 
        [Route("Sc_CheckToolsDotCheckBill/GetCheckToolsDotCheckBillList")] 
 | 
        [HttpGet] 
 | 
        public object GetCheckToolsDotCheckBillList(string sWhere) 
 | 
        { 
 | 
            try 
 | 
            { 
 | 
  
 | 
                ds = Sc_CheckToolsDotCheckBillList_s(sWhere); 
 | 
                if (ds == null || ds.Tables[0].Rows.Count <= 0) 
 | 
                { 
 | 
                    objJsonResult.code = "0"; 
 | 
                    objJsonResult.count = 0; 
 | 
                    objJsonResult.Message = "没有返回任何记录!"; 
 | 
                    objJsonResult.data = null; 
 | 
                    return objJsonResult; 
 | 
                } 
 | 
                else 
 | 
                { 
 | 
                    objJsonResult.code = "1"; 
 | 
                    objJsonResult.count = 1; 
 | 
                    objJsonResult.Message = "返回记录成功!"; 
 | 
                    objJsonResult.data = ds.Tables[0]; 
 | 
                    return objJsonResult; 
 | 
                } 
 | 
            } 
 | 
            catch (Exception ex) 
 | 
            { 
 | 
                objJsonResult.code = "0"; 
 | 
                objJsonResult.count = 0; 
 | 
                objJsonResult.Message = "没有返回任何记录!" + ex.ToString(); 
 | 
                objJsonResult.data = null; 
 | 
                return objJsonResult; 
 | 
            } 
 | 
        } 
 | 
  
 | 
        #region sql语句 
 | 
  
 | 
  
 | 
        public static DataSet Sc_CheckToolsDotCheckBillList_s(string sWhere) 
 | 
        { 
 | 
            return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_Sc_CheckToolsDotCheckBillList ", "h_v_Sc_CheckToolsDotCheckBillList"); 
 | 
        } 
 | 
        #endregion 
 | 
  
 | 
  
 | 
        //测试专用接口 
 | 
        [Route("LookingFor/Test")] 
 | 
        [HttpGet] 
 | 
        public object Test(string HbillNo)//Sc_CheckToolsRepair/GetCheckToolsRepairWorkBillList 
 | 
        { 
 | 
            DataSet ds; 
 | 
            ds = new SQLHelper.ClsCN().RunProcReturn("EXEC h_p_Xs_SellOutFindSP '" + HbillNo + "'", "h_p_Xs_SellOutFindSP"); 
 | 
  
 | 
            if (Pub_Class.ClsPub.isLong(ds.Tables[0].Rows.Count) >= 0 ) 
 | 
            { 
 | 
                objJsonResult.code = "1"; 
 | 
                objJsonResult.count = 1; 
 | 
                objJsonResult.Message = "true!"; 
 | 
                objJsonResult.data = ds.Tables[0];//ds.Tables[0].Rows[1][0] 
 | 
                return objJsonResult; 
 | 
            } 
 | 
            else 
 | 
            { 
 | 
                objJsonResult.code = "0"; 
 | 
                objJsonResult.count = 0; 
 | 
                objJsonResult.Message = "false!"; 
 | 
                objJsonResult.data = null; 
 | 
                return objJsonResult; 
 | 
            } 
 | 
        } 
 | 
  
 | 
  
 | 
  
 | 
        #endregion 
 | 
  
 | 
    } 
 | 
} 
 |