Beispiel #1
0
        /// <summary>
        /// 删除实体
        /// </summary>
        /// <param name="param">删除条件实体</param>
        /// <returns></returns>
        public WCFAddUpdateResult DelInfo(STK_InOutLinkParam param)
        {
            this.CheckSession();
            WCFAddUpdateResult ret = new WCFAddUpdateResult();
            int affect             = 0;

            try
            {
                #region 判断
                if (param.StkLinkGuid == null)
                {
                    throw new WarnException("请指定明细GUID!");
                }
                #endregion
                WhereClip           whereClip = GetWhereClip(param);
                STK_InOutLinkResult info      = new STK_InOutLinkResult();
                info.IsDeleted = true;
                affect         = this.Update <STK_InOutLinkResult>(info, whereClip);
                #region 设置返回值
                ret.Key = affect;
                #endregion
            }
            catch (WarnException exp)
            {
                throw exp;
            }
            catch (System.Exception exp)
            {
                LogInfoBLL.WriteLog(this.SessionInfo, exp);
                throw exp;
            }
            return(ret);
        }
Beispiel #2
0
        /// <summary>
        /// 获取一条信息记录
        /// </summary>
        /// <param name="param"></param>
        /// <returns></returns>
        public STK_InOutLinkResult GetInfo(STK_InOutLinkParam param)
        {
            this.CheckSession();
            STK_InOutLinkResult rst = new STK_InOutLinkResult();

            #region 判断
            if (param.StkLinkGuid == null)
            {
                throw new WarnException("请指定明细GUID!");
            }
            #endregion
            #region 获取实体

            rst = this.Select <STK_InOutLinkResult>(GetWhereClip(param));

            #endregion
            return(rst);
        }