예제 #1
0
 private void UpdateKillDrug()
 {
     int id = 1;
     IKillDrugService cs = new KillDrugService();
     var data            = cs.GetKillDrugById(id);
     var result          = cs.UpdateSingleKillDrug(data);
 }
예제 #2
0
        private void AddKillDrug()
        {
            KillDrugModel data = new KillDrugModel();

            data.KillCullID = 2;
            data.KillEpc    = "test";
            data.People     = "test";
            data.DrugTime   = DateTime.Now;
            data.IsNormal   = true;
            data.Pic        = "test";
            data.Remark     = "test";
            data.IsLocked   = false;
            data.IsShow     = true;

            IKillDrugService cs = new KillDrugService();
            var result          = cs.InsertSingleKillDrug(data);
        }
예제 #3
0
 private void DeleteKillDrug()
 {
     int id = 1;
     IKillDrugService cs = new KillDrugService();
     var result          = cs.DeleteSingleKillDrug(id);
 }