From 4edeec22721fe79ec3021252589f6c28a533136d Mon Sep 17 00:00:00 2001 From: yusijie <ysj@hz-kingdee.com> Date: 星期二, 10 六月 2025 13:44:11 +0800 Subject: [PATCH] Merge branch 'master' of http://101.37.171.70:10101/r/MES-WEB-API --- WebAPI/Controllers/基础资料/基础资料/Gy_SOPBillListController.cs | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git "a/WebAPI/Controllers/\345\237\272\347\241\200\350\265\204\346\226\231/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_SOPBillListController.cs" "b/WebAPI/Controllers/\345\237\272\347\241\200\350\265\204\346\226\231/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_SOPBillListController.cs" index 532a3be..f646d64 100644 --- "a/WebAPI/Controllers/\345\237\272\347\241\200\350\265\204\346\226\231/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_SOPBillListController.cs" +++ "b/WebAPI/Controllers/\345\237\272\347\241\200\350\265\204\346\226\231/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_SOPBillListController.cs" @@ -27,6 +27,7 @@ DataSet ds; DAL.ClsGy_SOPBill oBill = new DAL.ClsGy_SOPBill(); Pub_Class.ClsXt_SystemParameter oSystemParameter = new Pub_Class.ClsXt_SystemParameter(); + string fileip = System.Configuration.ConfigurationManager.AppSettings["FileIP"]; public DataGridView grdMain = new System.Windows.Forms.DataGridView(); @@ -49,12 +50,12 @@ if (sWhere == null || sWhere.Equals("")) { - ds = oCN.RunProcReturn("select * from h_v_Gy_SOPBillList order by hmainid ", "h_v_Gy_SOPBillList"); + ds = oCN.RunProcReturn("select * from h_v_Gy_SOPBillList order by hmainid desc ", "h_v_Gy_SOPBillList"); } else { string sql1 = "select * from h_v_Gy_SOPBillList where 1 = 1 "; - string sql = sql1 + sWhere + " order by hmainid "; + string sql = sql1 + sWhere + " order by hmainid desc"; ds = oCN.RunProcReturn(sql, "h_v_Gy_SOPBillList"); } @@ -388,5 +389,9 @@ } } #endregion + + + + } } \ No newline at end of file -- Gitblit v1.9.1