public TPhieuCapphatChitietCollection FetchAll()
 {
     TPhieuCapphatChitietCollection coll = new TPhieuCapphatChitietCollection();
     Query qry = new Query(TPhieuCapphatChitiet.Schema);
     coll.LoadAndCloseReader(qry.ExecuteReader());
     return coll;
 }
Example #2
0
 public ActionResult Kiemtratonthuoc(TPhieuCapphatChitietCollection lstChitiet, short ID_KHO)
 {
     ActionResult _result = ActionResult.Success;
     try
     {
         foreach (TPhieuCapphatChitiet pres in lstChitiet)
         {
             if (pres.DaLinh == 1)//Chưa được lĩnh mới kiểm tra
             {
                 _result = Kiemtrasoluongthuoctrongkho(pres, ID_KHO);
                 if (_result != ActionResult.Success) return _result;
             }
         }
         return ActionResult.Success;
     }
     catch (Exception)
     {
         return ActionResult.Error;
     }
 }
Example #3
0
        public ActionResult Kiemtratonthuoc(TPhieuCapphatChitietCollection lstChitiet, short ID_KHO)
        {
            ActionResult _result = ActionResult.Success;

            try
            {
                foreach (TPhieuCapphatChitiet pres in lstChitiet)
                {
                    if (pres.DaLinh == 1)//Chưa được lĩnh mới kiểm tra
                    {
                        _result = Kiemtrasoluongthuoctrongkho(pres, ID_KHO);
                        if (_result != ActionResult.Success)
                        {
                            return(_result);
                        }
                    }
                }
                return(ActionResult.Success);
            }
            catch (Exception)
            {
                return(ActionResult.Error);
            }
        }
 public TPhieuCapphatChitietCollection FetchByQuery(Query qry)
 {
     TPhieuCapphatChitietCollection coll = new TPhieuCapphatChitietCollection();
     coll.LoadAndCloseReader(qry.ExecuteReader());
     return coll;
 }
 public TPhieuCapphatChitietCollection FetchByID(object IdCapphat)
 {
     TPhieuCapphatChitietCollection coll = new TPhieuCapphatChitietCollection().Where("id_capphat", IdCapphat).Load();
     return coll;
 }