예제 #1
0
        public bool LogicDeleteInfo(long id, string loginUser)
        {
            PackageBarcodeInfo info = dal.GetInfo(id);

            if (info.Status != (int)PackageBarcodeStatusConstants.Created)
            {
                throw new Exception("MC:0x00000683");///状态必须为已创建
            }
            return(dal.LogicDelete(id, loginUser) > 0 ? true : false);
        }
예제 #2
0
        public bool UpdateInfo(string fields, long id)
        {
            PackageBarcodeInfo info = dal.GetInfo(id);

            if (info.Status != (int)PackageBarcodeStatusConstants.Created)
            {
                throw new Exception("MC:0x00000683");///状态必须为已创建
            }
            return(dal.UpdateInfo(fields, id) > 0 ? true : false);
        }
예제 #3
0
 public long InsertInfo(PackageBarcodeInfo info)
 {
     info.BarcodeNo = new SeqDefineDAL().GetCurrentCode("BARCODE_NO");
     return(dal.Add(info));
 }