Ejemplo n.º 1
0
 private bool CheckPeriodExists(string strITEM, string strPERIOD)
 {
     CGDModel.VDS_CGD39_BCO BCO = new CGDModel.VDS_CGD39_BCO(ConntionDB);
     ParameterList.Clear();
     ParameterList.Add(DBPara(strITEM, ParaType.Varchar2));
     ParameterList.Add(DBPara(strPERIOD, ParaType.Varchar2));
     DataTable dt = BCO.QueryPeriod(ParameterList);
     if (dt.Rows.Count > 0)
         return true;
     else
         return false;
 }
Ejemplo n.º 2
0
    private bool CheckPeriodExist(string strItem, string strPeriod)
    {
        bool bResult = false;//true:存在 false:不存在

        CGDModel.VDS_CGD39_BCO BCO = new CGDModel.VDS_CGD39_BCO(ConntionDB);
        ParameterList.Clear();
        ParameterList.Add(strItem);
        ParameterList.Add(strPeriod);
        DataTable dt = BCO.QueryPeriod(ParameterList);
        if (dt.Rows.Count > 0)
        {
            bResult = true;
        }
        return bResult;
    }