Пример #1
0
        private void SetTestWorkDataSet(FbTransaction trans, TestWorkDataSet set, TestWorkRow row)
        {
            set.RecNo          = AppRes.DB.GetGenNo("GN_TESTWORK");
            set.RecipeNo       = recipeNo;
            set.SlavePatternNo = AppHelper.ExtractRecNo(row.TestPattern);
            set.Index          = row.Index;
            set.ItemType       = row.ItemType;
            set.ItemCode       = row.ItemCode;
            set.ItemName       = row.ItemName;
            set.ItemRef        = row.ItemRef;
            set.BiasValue      = row.BiasValue;
            set.BiasRange      = row.BiasRange;
            set.BiasCH         = row.BiasCH;
            set.ApplyTime      = row.ApplyTime;
            set.TransientTime  = row.TransientTime;
            set.HumCount       = row.HumCounter;
            set.Optical        = row.Optical;
            set.IntegVL        = row.IntegVL;
            set.IntegX1        = row.IntegX1;
            set.IntegX2        = row.IntegX2;
            set.IntegZ         = row.IntegZ;
            set.Gain           = row.Gain;
            set.Offset         = row.Offset;
            set.LvGain         = row.LvGain;
            set.LvOffset       = row.LvOffset;
            set.CxGain         = row.CxGain;
            set.CxOffset       = row.CxOffset;
            set.CyGain         = row.CyGain;
            set.CyOffset       = row.CyOffset;

            set.Insert(trans);
        }
Пример #2
0
 private void SetTestWorkGridRow(TestWorkRow row, TestWorkDataSet set)
 {
     row.TestPattern   = slaveSet.GetNameRecNoString(set.SlavePatternNo);
     row.Index         = set.Index;
     row.ItemType      = set.ItemType;
     row.ItemCode      = set.ItemCode;
     row.ItemName      = set.ItemName;
     row.ItemRef       = set.ItemRef;
     row.BiasValue     = set.BiasValue;
     row.BiasRange     = set.BiasRange;
     row.BiasCH        = set.BiasCH;
     row.ApplyTime     = set.ApplyTime;
     row.TransientTime = set.TransientTime;
     row.HumCounter    = set.HumCount;
     row.Optical       = set.Optical;
     row.IntegVL       = set.IntegVL;
     row.IntegX1       = set.IntegX1;
     row.IntegX2       = set.IntegX2;
     row.IntegZ        = set.IntegZ;
     row.Gain          = set.Gain;
     row.Offset        = set.Offset;
     row.LvGain        = set.LvGain;
     row.LvOffset      = set.LvOffset;
     row.CxGain        = set.CxGain;
     row.CxOffset      = set.CxOffset;
     row.CyGain        = set.CyGain;
     row.CyOffset      = set.CyOffset;
 }