1
wtt
4 天以前 7141e956ca8488f6feb082828cd60653382b6c89
WebAPI/Controllers/CJGL/Mes_OrderProcFlowAllReportController.cs
@@ -86,13 +86,17 @@
        #region 车间工序全程跟踪报表 查询
        [Route("Mes_OrderProcFlowAllReport/OrderProcFlowAllReportList")]
        [HttpGet]
        public object OrderProcFlowAllReportList(string sWhere)
        public object OrderProcFlowAllReportList(string txtHOrderProcNo, string txtHMaterNumber, string check, string txtHDeptName, string sWhere)
        {
            try
            {
                //反序列化传递的值
                if (sWhere != null)
                {
                    sWhere = sWhere.Replace("'", "''");
                }
                ds = oCN.RunProcReturn($"exec h_p_Mes_OrderProcFlowAllReport " +sWhere+"", "h_p_Mes_OrderProcFlowAllReport");
                ds = oCN.RunProcReturn($"exec h_p_Mes_OrderProcFlowAllReport '" + txtHOrderProcNo +"','"+ txtHMaterNumber +"','"+ check +"','"+ txtHDeptName + "','"+sWhere+"'", "h_p_Mes_OrderProcFlowAllReport");
                List<object> listCol = new List<object>();
                foreach (DataColumn col in ds.Tables[0].Columns)
@@ -123,13 +127,19 @@
        #region 车间工序全程跟踪报表 查询
        [Route("Mes_OrderProcFlowAllReport/OrderProcFlowAllReportList_TK")]
        [HttpGet]
        public object OrderProcFlowAllReportList_TK(string sWhere)
        public object OrderProcFlowAllReportList_TK(string txtHOrderProcNo, string txtHMaterNumber, string check, string txtHDeptName, string sWhere)
        {
            try
            {
                //反序列化传递的值
                if (sWhere != null)
                {
                    sWhere = sWhere.Replace("'", "''");
                }
                ds = oCN.RunProcReturn($"exec h_p_Mes_OrderProcFlowAllReport_TK " + sWhere + "", "h_p_Mes_OrderProcFlowAllReport_TK");
                ds = oCN.RunProcReturn($"exec h_p_Mes_OrderProcFlowAllReport '" + txtHOrderProcNo + "','" + txtHMaterNumber + "','" + check + "','" + txtHDeptName + "','" + sWhere + "'", "h_p_Mes_OrderProcFlowAllReport");
                // ds = oCN.RunProcReturn($"exec h_p_Mes_OrderProcFlowAllReport_TK " + sWhere + "", "h_p_Mes_OrderProcFlowAllReport_TK");
                List<object> listCol = new List<object>();
                foreach (DataColumn col in ds.Tables[0].Columns)