예제 #1
0
        public void Set_RPTIDS(DataTable tmp)
        {
            DB_GetConverter   DBCONVERT = new DB_GetConverter();
            List <RPTID_VIDS> list      = new List <RPTID_VIDS>();

            foreach (DataRow row in tmp.Rows)
            {
                RPTID_VIDS Params = new RPTID_VIDS();
                Params.comm_id     = DBCONVERT.GetInt32(row, "comm_id");
                Params.rptid       = DBCONVERT.GetInt32(row, "rptid");
                Params.sort_num    = DBCONVERT.GetInt32(row, "sort_num");
                Params.vid         = DBCONVERT.GetInt32(row, "vid");
                Params.description = DBCONVERT.GetString(row, "descriptions");
                list.Add(Params);
            }
            c_RPTIDS = list;
        }
예제 #2
0
        public void Set_Comms(DataTable tmp)
        {
            DB_GetConverter      DBCONVERT = new DB_GetConverter();
            List <Comm_Settings> list      = new List <Comm_Settings>();

            foreach (DataRow row in tmp.Rows)
            {
                Comm_Settings Params = new Comm_Settings();
                Params.machine_id     = DBCONVERT.GetInt32(row, "machine_id");
                Params.comm_id        = DBCONVERT.GetByte(row, "comm_id");
                Params.rs232_com_no   = DBCONVERT.GetInt32(row, "rs232c_com_no");
                Params.local_port_no  = DBCONVERT.GetInt32(row, "local_port_no");
                Params.secs_device_id = DBCONVERT.GetInt32(row, "secs_device_id");
                Params.recmote_ip     = DBCONVERT.GetString(row, "remote_ip");
                Params.remote_port_no = DBCONVERT.GetInt32(row, "remote_port");
                list.Add(Params);
            }
            c_Comms = list;
        }
예제 #3
0
        internal Quantity(DataRow lotInfo, bool Is_Abnormal)
        {
            DB_GetConverter DBCONVERT = new DB_GetConverter();

            In          = DBCONVERT.GetInt32(lotInfo, "QuantityIn");
            Pass        = DBCONVERT.GetInt32(lotInfo, "QuantityPass");
            Fail        = DBCONVERT.GetInt32(lotInfo, "QuantityFail");
            LastPass    = DBCONVERT.GetInt32(lotInfo, "QuantityLastPass");
            LastFail    = DBCONVERT.GetInt32(lotInfo, "QuantityLastFail");
            PassStepSum = DBCONVERT.GetInt32(lotInfo, "QuantityPassStepSum");
            FailStepSum = DBCONVERT.GetInt32(lotInfo, "QuantityFailStepSum");
            if (Is_Abnormal)
            {
                Pass = In - (PassStepSum + FailStepSum);
            }
        }
예제 #4
0
        public MachineComInfo(DataTable tmp) : base()
        {
            DB_GetConverter DBCONVERT = new DB_GetConverter();

            c_model_id  = DBCONVERT.GetInt32(tmp.Rows[0], "machine_model_id");
            c_comm_type = DBCONVERT.GetInt32(tmp.Rows[0], "comm_type");
            c_is_active = DBCONVERT.GetBool(tmp.Rows[0], "is_active");
            c_sesc_t1   = DBCONVERT.GetInt32(tmp.Rows[0], "t1");
            c_sesc_t2   = DBCONVERT.GetInt32(tmp.Rows[0], "t2");
            c_sesc_t3   = DBCONVERT.GetInt32(tmp.Rows[0], "t3");
            c_sesc_t4   = DBCONVERT.GetInt32(tmp.Rows[0], "t4");
            c_sesc_t5   = DBCONVERT.GetInt32(tmp.Rows[0], "t5");
            c_sesc_t6   = DBCONVERT.GetInt32(tmp.Rows[0], "t6");
            c_sesc_t7   = DBCONVERT.GetInt32(tmp.Rows[0], "t7");
            c_sesc_t8   = DBCONVERT.GetInt32(tmp.Rows[0], "t8");
            //c_sesc_t9 = DBCONVERT.GetInt32(tmp.Rows[0], "t9");
            //c_secs_tc = DBCONVERT.GetInt32(tmp.Rows[0], "tc");
            //c_secs_max_byte = DBCONVERT.GetInt32(tmp.Rows[0], "tp_code");
            c_secs_defalte_sid      = DBCONVERT.GetInt32(tmp.Rows[0], "default_sid");
            c_secs_retry_limit      = DBCONVERT.GetInt32(tmp.Rows[0], "retry_limit");
            c_secs_is_multi_block   = DBCONVERT.GetBool(tmp.Rows[0], "is_multi_block");
            c_secs_rcv_double_block = DBCONVERT.GetBool(tmp.Rows[0], "is_allow_double_block");
            c_rs232_baudrate        = DBCONVERT.GetInt32(tmp.Rows[0], "rs232c_baud_rate");
            c_rs232_databits        = DBCONVERT.GetInt32(tmp.Rows[0], "rs232c_data_bits");
            c_rs232_paritybit       = DBCONVERT.GetInt32(tmp.Rows[0], "rs232c_parity_bit");
            c_rs232_handshake       = DBCONVERT.GetInt32(tmp.Rows[0], "rs232c_handshake");
            //c_rs232_rts_enable = DBCONVERT.GetInt32(tmp.Rows[0], "tp_code");
            c_rs232_stop_bits = DBCONVERT.GetInt32(tmp.Rows[0], "rs232c_stop_bit");
            c_handler_type    = DBCONVERT.GetInt32(tmp.Rows[0], "handler_type");
            c_CEIDS           = null;
            c_RPTIDS          = null;
            c_Comms           = null;
        }