Beispiel #1
0
        /// <summary>
        /// 得到电子公告信息
        /// </summary>
        /// <param name="eID"></param>
        /// <returns></returns>
        public static DataSet GetNewNotify(int eID)
        {
            Hashtable ht = new Hashtable();

            ht.Add("@eID", eID);
            return(YKDataClass.RunSqlProcForDataSet("SM_GetMessage", ht));
        }
Beispiel #2
0
        /// <summary>
        /// 单据号自动编码
        /// 张镇波 2012年8月6日 08:56:02
        /// </summary>
        /// <param name="TableName"></param>
        /// <returns></returns>
        public static string AutoCodeByTable(string TableName, string CHN)
        {
            Hashtable ht = new Hashtable();

            ht.Add("@tableName", TableName);
            ht.Add("@chn", CHN);
            DataSet ds = new DataSet();

            ds = YKDataClass.RunSqlProcForDataSet("AutoCodeByTableAndCHN", ht);
            if (ds.Tables.Count > 0)
            {
                return(ds.Tables[ds.Tables.Count - 1].Rows[0][0].ToString());
            }
            else
            {
                return("");
            }
        }