예제 #1
0
        /// <summary>
        /// 删除
        /// </summary>
        /// <returns>是否操作成功(true成功,false失败)</returns>
        public bool Update(Tz888.Model.Commend com)
        {
            bool blRet = false;

            SqlParameter[] parameters =
            {
                new SqlParameter("@ID",        SqlDbType.BigInt),
                new SqlParameter("@LoginName", SqlDbType.Char, 16)
            };
            parameters[0].Value = com.ID;
            parameters[1].Value = com.LoginName;
            blRet = DbHelperSQL.RunProcLob("CommendTab_Delete", parameters);
            return(blRet);
        }
예제 #2
0
        /// <summary>
        /// 发送
        /// </summary>
        /// <returns>是否操作成功(true成功,false失败)</returns>
        public bool Send(Tz888.Model.Commend com)
        {
            bool blRet = false;

            SqlParameter[] parameters = { new SqlParameter("@InfoID",     SqlDbType.BigInt),
                                          new SqlParameter("@SendBy",     SqlDbType.Char, 16),
                                          new SqlParameter("@receivedBy", SqlDbType.Char, 16) };
            parameters[0].Value = com.InfoID;
            parameters[1].Value = com.SendBy;
            parameters[2].Value = com.receivedBy;

            blRet = DbHelperSQL.RunProcLob("CommendTab_Send", parameters);
            return(blRet);
        }