From 1d05d8dc3578aa5a03e8c139464dbd3a6e147ff6 Mon Sep 17 00:00:00 2001 From: jingh <jingh@LAPTOP-I53VDLOO> Date: 星期四, 11 十一月 2021 14:33:48 +0800 Subject: [PATCH] 会计期间设置改进 --- BLL/系统管理/会计期间/Xt_AccountPeriod.cs | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git "a/BLL/\347\263\273\347\273\237\347\256\241\347\220\206/\344\274\232\350\256\241\346\234\237\351\227\264/Xt_AccountPeriod.cs" "b/BLL/\347\263\273\347\273\237\347\256\241\347\220\206/\344\274\232\350\256\241\346\234\237\351\227\264/Xt_AccountPeriod.cs" index e098933..18e82c6 100644 --- "a/BLL/\347\263\273\347\273\237\347\256\241\347\220\206/\344\274\232\350\256\241\346\234\237\351\227\264/Xt_AccountPeriod.cs" +++ "b/BLL/\347\263\273\347\273\237\347\256\241\347\220\206/\344\274\232\350\256\241\346\234\237\351\227\264/Xt_AccountPeriod.cs" @@ -502,6 +502,19 @@ { SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); DataSet Ds; + //鑾峰彇褰撳墠浼氳鏈熼棿 + Ds = oCn.RunProcReturn("select top 1 HYear,HPeriod from xt_AccountPeriod Where HEndFlag=0 order by HYear,HPeriod ", "Xt_AccountPeriod"); + if(Ds==null) + { + MessageBox.Show("鑾峰彇褰撳墠浼氳鏈熼棿鍑洪敊锛�" + DBUtility.ClsPub.sErrInfo); + return; + } + else + { + ClsPub.CurYear = DBUtility.ClsPub.isInt(Ds.Tables[0].Rows[0]["HYear"]); + ClsPub.CurPeriod = DBUtility.ClsPub.isInt(Ds.Tables[0].Rows[0]["HPeriod"]); + } + // if (MessageBox.Show("纭畾瑕佺粨璐�" + ClsPub.CurYear + "-" + ClsPub.CurPeriod + "鏈熼棿锛�", "鎻愮ず", MessageBoxButtons.OKCancel) == DialogResult.Cancel) { return; -- Gitblit v1.9.1