yusijie
2023-09-25 95255ca3442f07dee956391309b4f7b8001fc599
WebAPI/Controllers/Æ·ÖʹÜÀí/¹¤Ðò¼ìÑéµ¥/QC_ProcessCheckBillController.cs
@@ -23,6 +23,57 @@
        //获取系统参数
        Pub_Class.ClsXt_SystemParameter oSystemParameter = new Pub_Class.ClsXt_SystemParameter();
        //#region å·¥åºæ£€éªŒå•列表
        //[Route("QC_ProcessCheckBill/QC_ProcessCheckBillList")]
        //[HttpGet]
        //public object QC_ProcessCheckBillList(string sWhere, string user)
        //{
        //    try
        //    {
        //        List<object> columnNameList = new List<object>();
        //        string sql1 = "select * from h_v_QC_ProcessCheckBill where 1 = 1  ";
        //        string sql = sql1 + sWhere + " order by hmainid desc";
        //        ds = oCN.RunProcReturn(sql, "h_v_QC_ProcessCheckBill");
        //        //添加列名
        //        foreach (DataColumn col in ds.Tables[0].Columns)
        //        {
        //            Type dataType = col.DataType;
        //            string ColmString = "{\"ColmCols\":\"" + col.ColumnName + "\",\"ColmType\":\"" + dataType.Name + "\"}";
        //            columnNameList.Add(JsonConvert.DeserializeObject(ColmString));//获取到DataColumn列对象的列名
        //        }
        //        if (ds.Tables[0].Rows.Count > 0)
        //        {
        //            objJsonResult.code = "1";
        //            objJsonResult.count = 1;
        //            objJsonResult.Message = "Sucess!";
        //            objJsonResult.list = columnNameList;
        //            objJsonResult.data = ds.Tables[0];
        //            return objJsonResult;
        //        }
        //        else
        //        {
        //            objJsonResult.code = "0";
        //            objJsonResult.count = 0;
        //            objJsonResult.Message = "没有查询到数据";
        //            objJsonResult.list = columnNameList;
        //            objJsonResult.data = ds.Tables[0];
        //            return objJsonResult;
        //        }
        //    }
        //    catch (Exception e)
        //    {
        //        objJsonResult.code = "0";
        //        objJsonResult.count = 0;
        //        objJsonResult.Message = "Exception!" + e.ToString();
        //        objJsonResult.data = null;
        //        return objJsonResult;
        //    }
        //}
        //#endregion
        #region å·¥åºæ£€éªŒå•列表
        [Route("QC_ProcessCheckBill/QC_ProcessCheckBillList")]
        [HttpGet]
@@ -61,7 +112,7 @@
                    objJsonResult.list = columnNameList;
                    objJsonResult.data = ds.Tables[0];
                    return objJsonResult;
                }
                }
            }
            catch (Exception e)
            {
@@ -72,7 +123,7 @@
                return objJsonResult;
            }
        }
        #endregion
        #endregion
        /// <summary>
        /// è¿”回工序检验单列表