Beispiel #1
0
 void pr(string _msg)
 {
     if (verbose)
     {
         ProtocolST.pr(_msg);
     }
 }
Beispiel #2
0
 void pr(string _msg)
 {
     if (verbose)
     {
         ProtocolST.pr("JDemagnetizer:" + _msg);
     }
 }
Beispiel #3
0
        public void LoadFormRect(Control _form, ref int _splitter1, ref int _splitter2, ref int _splitterDistance, ref bool _IsVisible)
        {
            WindowLPars win = this[_form];

            if (win == null)
            {
                return;
            }
            try
            {
                SetWinSize(win);
                _form.Left   = win.Left;
                _form.Top    = win.Top;
                _form.Width  = win.Width;
                _form.Height = win.Height;
            }
            catch
            {
                //_form.Left = 100;
                //_form.Top = 100;
                //_form.Width = 200;
                //_form.Height = 100;
            }
            _splitter1        = win.Splitter1;
            _splitter2        = win.Splitter2;
            _splitterDistance = win.SplitterDistance;
            _IsVisible        = win.IsVisible;
            ProtocolST.pr("Load: " + win.ToStringFull());
        }
Beispiel #4
0
        void pr(string _msg)
        {
            if (verbose)
            {
                ProtocolST.pr(_msg);
            }
//            Application.DoEvents();
        }
Beispiel #5
0
 public void prsl(uint _level, string _msg)
 {
     if (_level == 0)
     {
         toolStripStatusLabel1.Text = _msg;
     }
     else
     {
         toolStripStatusLabel2.Text = _msg;
         if (_msg != null)
         {
             LErrors.Add(_msg);
         }
     }
     ProtocolST.pr("Uwork: " + _msg);
 }
Beispiel #6
0
        public void SaveFormRect(Control _form, int _splitter1, int _splitter2, int _splitterDistance, bool _IsVisible)
        {
            WindowLPars win = this[_form];

            if (win == null)
            {
                win      = this.AddNew() as WindowLPars;
                win.Name = GetName(_form);
            }
            win.Left             = _form.Left;
            win.Top              = _form.Top;
            win.Width            = _form.Width;
            win.Height           = _form.Height;
            win.Splitter1        = _splitter1;
            win.Splitter2        = _splitter2;
            win.SplitterDistance = _splitterDistance;
            win.IsVisible        = _IsVisible;
            ProtocolST.pr("Save: " + win.ToStringFull());
        }
Beispiel #7
0
 void pr(string _msg)
 {
     ProtocolST.pr("ThickResultLite: " + _msg);
 }
Beispiel #8
0
 void pr(string _msg)
 {
     ProtocolST.pr("JInverterTh: " + _msg);
 }
Beispiel #9
0
 void pr(string _msg)
 {
     ProtocolST.pr(_msg);
 }
Beispiel #10
0
 void pr(string _msg)
 {
     ProtocolST.pr("BankCLUnitA: " + _msg);
 }
Beispiel #11
0
 protected void pr(string _msg)
 {
     ProtocolST.pr(ToString() + " " + _msg);
 }
Beispiel #12
0
 void pr(string _msg)
 {
     ProtocolST.pr("FLBase[" + pr_nn++.ToString() + "]: " + _msg);
 }
Beispiel #13
0
 static void pr(string _msg)
 {
     ProtocolST.pr("RemoveFiles: " + _msg);
 }
Beispiel #14
0
 void pr(string _msg)
 {
     ProtocolST.pr("JTestThick: " + _msg);
 }
Beispiel #15
0
 void pr(string _msg)
 {
     ProtocolST.pr("Main: " + _msg);
 }
Beispiel #16
0
        //public void SaveToDB(double? _revolutions = null)
        //{
        //    if (tubePars == null)
        //        return;
        //    if (tubePars.Local == true)
        //        return;
        //    string fieldPath = null;
        //    string fieldtresh = null;
        //    string tableResult = null;
        //    switch (Share.Current.UnitType)
        //    {
        //        case EUnit.Cross:
        //            fieldPath = "pathFileNameCross";
        //            fieldtresh = "thresholdC";
        //            tableResult = "resultCross";
        //            break;
        //        case EUnit.Line:
        //            fieldPath = "pathFileNameLong";
        //            fieldtresh = "thresholdL";
        //            tableResult = "resultLong";
        //            break;
        //    }

        //    string head = "update resultTubeShort set ";

        //    string where = string.Format(" where numFusion={0} and numTube={1}",
        //        tubePars.iFusion.ToString(),
        //        tubePars.iTube.ToString());

        //    string SQL = head;
        //    SQL += spar(fieldPath, FileName, true);
        //    SQL += spar("countZones", MZone.Count, true);

        //    DefCL dcl = new DefCL(Tp);
        //    SQL += spar(fieldtresh + "1", dcl.Border1, true);
        //    SQL += spar(fieldtresh + "2", dcl.Border2, false);

        //    SQL += where;
        //    ExecSQL E = new ExecSQL(SQL);
        //    if (E.RowsAffected != 1)
        //        throw new Exception("ResultDef.SaveToDB: Не смогли записать: " + SQL);

        //    head = string.Format("update {0} set ", tableResult);
        //    where = string.Format(" where numFusion={0} and numTube={1}",
        //        tubePars.iFusion.ToString(),
        //        tubePars.iTube.ToString());
        //    if (MZone.Count == 0)
        //        return;
        //    if (MZone[0].MSensor.Length == 0)
        //        return;
        //    int lsensors = MZone[0].MSensor.Length;
        //    L_L502Ch lch = dcl.LCh;
        //    for (int iS = 0; iS < lsensors; iS++)
        //    {
        //        SQL = head;
        //        for (int i = 0; i < MZone.Count; i++)
        //            //                    SQL += spar("Z" + (i + 1).ToString(), Classer.ToInt(MZone[i].MSensor[iS].Class), i != MZone.Count - 1);
        //            SQL += spar("Z" + (i + 1).ToString(), MZone[i].MSensor[iS].Level * lch[iS].Gain, i != MZone.Count - 1);
        //        SQL += where;
        //        SQL += " and sensorNum=" + (iS + 1).ToString();
        //        pr(SQL);
        //        E = new ExecSQL(SQL);
        //        if (E.RowsAffected != 1)
        //            throw new Exception("ResultDef.SaveToDB: Не смогли записать: " + SQL);
        //    }
        //    RDPars1 rt = new RDPars1(ParAll.ST.TSSet.Current, Tp);
        //    rt.Revolutions = _revolutions;
        //    rt.SaveToDB(tubePars);

        //    using (ExecSQL EE = new ExecSQL("update flags set isDataSendCompleet='true'"))
        //    {
        //        if (E.RowsAffected != 1)
        //            throw new Exception("ResultDef.SaveToDB: Не смогли записать во flags: " + SQL);
        //    }

        //}

        void pr(string _msg)
        {
            ProtocolST.pr("ResultDef: " + _msg);
        }
Beispiel #17
0
 void pr(string _msg)
 {
     ProtocolST.pr("JTransport: " + _msg);
 }
Beispiel #18
0
 void pr(string _msg)
 {
     ProtocolST.pr("USensorData: " + _msg);
 }
Beispiel #19
0
 void pr(string _msg)
 {
     ProtocolST.pr("FMeases: " + _msg);
 }
Beispiel #20
0
 void pr(string _msg)
 {
     ProtocolST.pr("UScanRotation: " + _msg);
 }
Beispiel #21
0
 void pr(string _msg)
 {
     ProtocolST.pr("BankTUnit: " + _msg);
 }
Beispiel #22
0
 void pr(string _msg)
 {
     ProtocolST.pr("LBLine: " + _msg);
 }
Beispiel #23
0
 void pr(string _msg)
 {
     ProtocolST.pr("UManage: " + _msg);
 }
Beispiel #24
0
 void pr(string _msg)
 {
     ProtocolST.pr("JWork: " + _msg);
 }
Beispiel #25
0
 void pr(string _msg)
 {
     ProtocolST.pr("JResult: " + _msg);
 }
Beispiel #26
0
 void pr(string _msg)
 {
     ProtocolST.pr("PDView: " + _msg);
 }
Beispiel #27
0
 //        int PointIndex = -1;
 void pr(string _msg)
 {
     ProtocolST.pr("FTubeGraph: " + _msg);
 }
Beispiel #28
0
 void pr(string _msg)
 {
     ProtocolST.pr("JRectifierTh" + _msg);
 }
Beispiel #29
0
 void pr(string _msg)
 {
     ProtocolST.pr("FTubeHalfPeriod: " + _msg);
 }