using System;
|
using System.Collections.Generic;
|
using System.Text;
|
using System.Data;
|
using SQLHelper;
|
using DBUtility;
|
|
namespace BLL
|
{
|
class ClsXt_AccountPeriodHlp
|
{
|
private string mvarReportTitle;
|
|
public string MvarReportTitle
|
{
|
get { return mvarReportTitle; }
|
set { mvarReportTitle = value; }
|
}
|
public string WherePart;
|
public string ClsName;
|
//
|
ClsCN oCN = new ClsCN();
|
public int HYear;
|
public int HPeriod;
|
public string HBeginDate;
|
public string HEndDate;
|
public bool HEndFlag;
|
//
|
//
|
public ClsXt_AccountPeriodHlp()
|
{
|
mvarReportTitle = "会计期间设置";
|
ClsName = "会计期间";
|
}
|
|
//返回项目信息
|
public bool GetInfoByID(int sYear,int sPeriod)
|
{
|
DataSet DS ;
|
try
|
{
|
DS = oCN.RunProcReturn("Select * from Xt_AccountPeriod Where HYear=" + sYear.ToString() + " and HPeriod=" +sPeriod.ToString(), "Xt_AccountPeriod");
|
if (DS.Tables[0].Rows.Count == 0)
|
return false;
|
else
|
{
|
HYear = ClsPub.isInt(DS.Tables[0].Rows[0]["HYear"]);
|
HPeriod = ClsPub.isInt(DS.Tables[0].Rows[0]["HPeriod"]);
|
HBeginDate = ClsPub.isDate(DS.Tables[0].Rows[0]["HBeginDate"]).ToShortDateString();
|
HEndDate = ClsPub.isDate(DS.Tables[0].Rows[0]["HEndDate"]).ToShortDateString();
|
HEndFlag = (bool)DS.Tables[0].Rows[0]["HEndFlag"];
|
return true;
|
}
|
}
|
catch (Exception e)
|
{
|
return false;
|
}
|
}
|
}
|
}
|