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);
        }
 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;
 }
Exemple #3
0
        public TestWorkList(Int64 recipeNo)
        {
            testSet = new TestWorkDataSet(AppRes.DB.Connect, null, null);
            indexes = new Dictionary <int, TestWorkObject>();
            names   = new Dictionary <string, TestWorkObject>();

            Load(recipeNo);
        }
        public TestWorkList(Int64 recipeNo, EWorkType type)
        {
            testSet = new TestWorkDataSet(AppRes.DB.Connect, null, null);
            indexes = new Dictionary <int, TestWorkItem>();
            names   = new Dictionary <string, TestWorkItem>();

            Load(recipeNo, type);
        }
        private void InsertTestWork(FbTransaction trans, TestWorkDataSet set, Int64 recipeNo)
        {
            CtrlTestWorkGrid workGrid;

            workGrid = testProcPanel.Controls[0] as CtrlTestWorkGrid;
            foreach (TestWorkRow row in workGrid.Rows)
            {
                SetTestWorkDataSet(trans, set, row);
            }
        }
        private void Initialize()
        {
            CtrlTestWorkGrid   ctrlTestWork;
            CtrlReportWorkGrid ctrlReportWork;

            recipeNo = 0;

            mode     = EDataSetMode.View;
            bookmark = new GridBookmark(recipeGridView);

            ctrlTestWork = new CtrlTestWorkGrid();
            testProcPanel.Controls.Add(ctrlTestWork);

            ctrlReportWork          = new CtrlReportWorkGrid();
            ctrlReportWork.TestRows = ctrlTestWork.Rows;
            reportProcPanel.Controls.Add(ctrlReportWork);

            recipeSet     = new RecipeDataSet(AppRes.DB.Connect, null, null);
            slaveSet      = new SlavePatternDataSet(AppRes.DB.Connect, null, null);
            testWorkSet   = new TestWorkDataSet(AppRes.DB.Connect, null, null);
            reportWorkSet = new ReportWorkDataSet(AppRes.DB.Connect, null, null);
            rankSet       = new RankDataSet(AppRes.DB.Connect, null, null);
            smuSet        = new SmuDataSet(AppRes.DB.Connect, null, null);
        }