Exemplo n.º 1
0
        public List <Sensitivities> GetAllSensitivities(string Id)
        {
            DASensitivities DAS    = new DASensitivities();
            ListDictionary  Params = new ListDictionary();

            Params.Add("@MyId", Id);
            DataSet              ds  = DAS.GetAllSensitivities(Params);
            Sensitivities        S   = new Sensitivities();
            List <Sensitivities> MyS = new List <Sensitivities>();

            foreach (DataRow item in ds.Tables[0].Rows)
            {
                S.Code         = BLCtrl.getInt(item, "Code", 0);
                S.Sensitivity  = BLCtrl.getInt(item, "Sensitivity", 0);
                S.Medicine     = BLCtrl.getInt(item, "Medicine", 0);
                S.Kind         = BLCtrl.getString(item, "Kind", "");
                S.DesicionDate = BLCtrl.getDateTime(item, "DesicionDate", new DateTime(2018 - 1 - 1));
                S.Desided      = BLCtrl.getString(item, "Desided", "");
                S.Influenss    = BLCtrl.getString(item, "Influenss", "");
                S.By           = BLCtrl.getInt(item, "By", 0);
                S.PatiantCode  = BLCtrl.getString(item, "PatiantCode", "");
                MyS.Add(S);
            }

            return(MyS);
        }
Exemplo n.º 2
0
        public ActionResult UpdateSensitives(Sensitivities s)
        {
            BL_AddMedicineVitaminAndSensitivities b =
                new BL_AddMedicineVitaminAndSensitivities();

            return(View(s));
        }
Exemplo n.º 3
0
        [HttpPost]// הוספת תרופות ורגישויות
        public ActionResult addSensitivities(Sensitivities s)
        {
            BL_AddMedicineVitaminAndSensitivities b =
                new BL_AddMedicineVitaminAndSensitivities();

            int result = b.Add_Sensitivities(s.Sensitivity, s.Medicine, s.Influenss, s.DesicionDate, s.Desided);

            return(View());
        }
Exemplo n.º 4
0
        public IEnumerable <Sensitivities> Get()
        {
            Sensitivities s = new Sensitivities();

            return(s.Read());
        }