Ejemplo n.º 1
0
 private void UpdateKillBatchDetail()
 {
     int id = 1;
     IKillBatchDetailService cs = new KillBatchDetailService();
     var data   = cs.GetKillBatchDetailById(id);
     var result = cs.UpdateSingleKillBatchDetail(data);
 }
Ejemplo n.º 2
0
        private void AddKillBatchDetail()
        {
            KillBatchDetailModel data = new KillBatchDetailModel();

            data.KillBatchID    = 2;
            data.CultivationID  = 2;
            data.BreedID        = 2;
            data.AreaID         = 2;
            data.HomeID         = 2;
            data.CultivationEpc = "test";
            data.Remark         = "test";
            data.IsLocked       = false;
            data.IsShow         = true;

            IKillBatchDetailService cs = new KillBatchDetailService();
            var result = cs.InsertSingleKillBatchDetail(data);
        }
Ejemplo n.º 3
0
 private void DeleteKillBatchDetail()
 {
     int id = 1;
     IKillBatchDetailService cs = new KillBatchDetailService();
     var result = cs.DeleteSingleKillBatchDetail(id);
 }