示例#1
0
 public decimal GroupUser_Insert(string p_name, decimal p_group_type, string p_note)
 {
     try
     {
         Group_User_DA _Group_User_DA = new Group_User_DA();
         return(_Group_User_DA.GroupUser_Insert(p_name, p_group_type, p_note));
     }
     catch (Exception ex)
     {
         ErrorLog.log.Error(ex.ToString());
         return(-1);
     }
 }
示例#2
0
 public bool GroupUser_Delete(decimal id)
 {
     try
     {
         Group_User_DA _Group_User_DA = new Group_User_DA();
         return(_Group_User_DA.GroupUser_Delete(id));
     }
     catch (Exception ex)
     {
         ErrorLog.log.Error(ex.ToString());
         return(false);
     }
 }
示例#3
0
 public bool GroupUser_Update(decimal id, string p_name, decimal p_group_type, string p_note)
 {
     try
     {
         Group_User_DA _Group_User_DA = new Group_User_DA();
         return(_Group_User_DA.GroupUser_Update(id, p_name, p_group_type, p_note));
     }
     catch (Exception ex)
     {
         ErrorLog.log.Error(ex.ToString());
         return(false);
     }
 }
示例#4
0
        public byte[] GroupUser_GetAll()
        {
            try
            {
                byte[]        byteReturn;
                Group_User_DA _Group_User_DA = new Group_User_DA();
                DataSet       ds             = _Group_User_DA.GroupUser_GetAll();

                byteReturn = CompressionHelper.CompressDataSet(ds);
                return(byteReturn);
            }
            catch (Exception ex)
            {
                ErrorLog.log.Error(ex.ToString());
                return(new byte[0]);
            }
        }