Exemplo n.º 1
0
        public string SaveSanitationInfo(tb_attachment _attachment)
        {
            _attachment.type1      = "供应商管理";
            _attachment.updateDate = DateTime.Now;
            _attachment.updateUser = CurrentUserInfo.PersonnelID;
            string flag = "0";

            if (_attachment.id > 0)
            {
                if (_attachmentbll.Update(_attachment))
                {
                    flag = "1";
                }
            }
            else
            {
                _attachment.createUser = CurrentUserInfo.PersonnelID;
                if (_attachmentbll.Add(_attachment) > 0)
                {
                    flag = "1";
                }
            }
            return(flag);
        }