コード例 #1
0
 /// <summary>
 /// 删除
 /// </summary>
 /// <param name="mod"></param>
 /// <returns></returns>
 public void DeleteMod(Model.Pos.DsPosWebSocketManage mod)
 {
     IDsPosWebSocketManageDao.Instance.DeleteMod(mod);
 }
コード例 #2
0
 /// <summary>
 /// 更改状态
 /// </summary>
 /// <param name="mod"></param>
 /// <returns></returns>
 public void ChangeStatus(Model.Pos.DsPosWebSocketManage mod)
 {
     IDsPosWebSocketManageDao.Instance.ChangeStatus(mod);
 }
コード例 #3
0
 /// <summary>
 /// 添加
 /// </summary>
 /// <param name="mod"></param>
 /// <returns></returns>
 public int InsertMod(Model.Pos.DsPosWebSocketManage mod)
 {
     return(IDsPosWebSocketManageDao.Instance.InsertMod(mod));
 }
コード例 #4
0
        /// <summary>
        /// 更改状态
        /// </summary>
        /// <param name="mod"></param>
        /// <returns></returns>
        public override void ChangeStatus(Model.Pos.DsPosWebSocketManage mod)
        {
            string sql = " update DsPosWebSocketManage set WS_Status='" + mod.WS_Status + "' where SysNo = '" + mod.SysNo + "'  ";

            Context.Sql(sql).Execute();
        }
コード例 #5
0
 /// <summary>
 /// 删除
 /// </summary>
 /// <param name="mod"></param>
 /// <returns></returns>
 public override void DeleteMod(Model.Pos.DsPosWebSocketManage mod)
 {
     Context.Delete("DsPosWebSocketManage", mod).Where(p => p.SysNo).Execute();
 }
コード例 #6
0
 /// <summary>
 /// 修改
 /// </summary>
 /// <param name="mod"></param>
 /// <returns></returns>
 public override void UpdateMod(Model.Pos.DsPosWebSocketManage mod)
 {
     Context.Update("DsPosWebSocketManage", mod).AutoMap(p => p.SysNo).Where(p => p.SysNo).Execute();
 }
コード例 #7
0
 /// <summary>
 /// 添加
 /// </summary>
 /// <param name="mod"></param>
 /// <returns></returns>
 public override int InsertMod(Model.Pos.DsPosWebSocketManage mod)
 {
     return(Context.Insert("DsPosWebSocketManage", mod).AutoMap(p => p.SysNo).ExecuteReturnLastId <int>());
 }