コード例 #1
0
    private int GetItemByPara(string resType, string loginName, string auditStatus)
    {
        string strAudit = "";

        if (auditStatus != null)
        {
            strAudit = " and AuditingStatus=" + auditStatus;
        }

        Tz888.BLL.Info.MainInfoBLL mainInfo = new Tz888.BLL.Info.MainInfoBLL();
        try
        {
            DataSet dsTemp = mainInfo.GetList("InfoID", "InfoID", 1, 1, 1, "(InfoTypeID = '" + resType + "') and loginname='" + loginName + "'" + strAudit);
            return(dsTemp.Tables[0].Rows.Count);
        }
        catch (Exception exp)
        {
            return(0);
        }
    }