| | |
| | | { |
| | | 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; |