Ejemplo n.º 1
0
 public TabC2Final(AqC2Entity parent)
 {
     m_Parent = parent;
 }
Ejemplo n.º 2
0
 public Tab22b(AqC2Entity parent)
 {
     m_Parent = parent;
 }
Ejemplo n.º 3
0
 public HttpResponseMessage Criteria2Calculate(AqC2Entity c2Entity)
 {
     c2Entity.Recalculate();
     return Request.CreateResponse(HttpStatusCode.OK, c2Entity);
 }
Ejemplo n.º 4
0
 public static AqC2Entity Load(int recommendationId)
 {
     EntityList<AqC2Entity> entities = new AqC2DL().Get(new SQLBuilder("Select * from AqC2 where RecommendationId = @0", recommendationId.ToString()));
     if (entities.Count == 0)
     {
         AqC2Entity entity = new AqC2Entity();
         //entity.RecommendationId = recommendationId;
         return entity;
     }
     entities[0].Recalculate();
     return entities[0];
 }
Ejemplo n.º 5
0
Archivo: Form1.cs Proyecto: joyoon/mb
        private void TestC2()
        {
            AqC2Entity e = new AqC2Entity();
            e.RecommendationId = 1;
            e.ProteinContentFeed = 20;
            e.eFCR = 1.5M;
            e.FertilizerNInput = 0;
            e.ProteinContentFish = 18;

            e.BasicDischargeScore = 1;
            e.BasicDischargeAdjustment = -0.1M;

            e.Q22a1 = 0.5M;
            e.Q22a2 = 0.5M;
            e.Q22a3 = 0.5M;
            e.Q22a4 = 0.5M;
            e.Q22a5 = 0.5M;

            e.Q22b1 = 0.5M;
            e.Q22b2 = 0.5M;
            e.Q22b3 = 0.5M;
            e.Q22b4 = 0.5M;
            e.Q22b5 = 0.5M;

            e.Recalculate();
            e.Commit();

            AqC2Entity e2 = AqC2Entity.Load(1);
        }