From 3c682a6bedf9a78c764cec45c8b7e5c2fe20c076 Mon Sep 17 00:00:00 2001 From: ch <37327@LLOOCCY> Date: 星期日, 16 一月 2022 15:31:12 +0800 Subject: [PATCH] 修改了生产领料多源单方法 --- DBUtility/业务单据/Xt_BaseBillFun.cs | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git "a/DBUtility/\344\270\232\345\212\241\345\215\225\346\215\256/Xt_BaseBillFun.cs" "b/DBUtility/\344\270\232\345\212\241\345\215\225\346\215\256/Xt_BaseBillFun.cs" index dac18f2..12d414a 100644 --- "a/DBUtility/\344\270\232\345\212\241\345\215\225\346\215\256/Xt_BaseBillFun.cs" +++ "b/DBUtility/\344\270\232\345\212\241\345\215\225\346\215\256/Xt_BaseBillFun.cs" @@ -762,7 +762,11 @@ grdMain.AlternatingRowsDefaultCellStyle.BackColor = Color.Lavender; grdMain.ColumnHeadersDefaultCellStyle.BackColor = Color.LightGray; // - ClsPub.GetGridView(grdMain, Name, ClsPub.AppPath);//设置列宽 + if (grdMain.ColumnCount > 0 && grdMain.RowCount > 0) + { + ClsPub.GetGridView(grdMain, Name, ClsPub.AppPath);//设置列宽 + } + } public static void initGridRpt(DataGridView grdMain, string Name, bool VisualStyles) -- Gitblit v1.9.1