private void NewWork(Principal principal, Resource resource, double ken, Smen smen) { //if (resource.GlobalId == null) throw new NotImplementedException(); WorkPkg.InsertWork(connection, Id, null, null, principal.Untn, null, ken, resource.SprOborId, resource.GlobalId, smen.Date, smen.Num, principal.BrigadaId, null); }
internal void CompleteWork(Resource resource) { var ctx = new SessionContext(connection); CompleteWork((int)ctx.Untn, resource); }