예제 #1
0
        public bool setObj(DataRow _dr)
        {
            if (null == _dr)
            {
                return(false);
            }

            try
            {
                m_config_id           = KnUtil.parseInt32(KnUtil.getDataRowString(_dr, "config_id"));
                m_is_use              = KnUtil.parseInt32(KnUtil.getDataRowString(_dr, "is_use"));
                m_is_install          = KnUtil.parseInt32(KnUtil.getDataRowString(_dr, "is_install"));
                m_input_type          = KnUtil.getDataRowString(_dr, "input_type");
                m_input_port_num      = KnUtil.getDataRowString(_dr, "input_port_num");
                m_input_port_baud     = KnUtil.parseInt32(KnUtil.getDataRowString(_dr, "input_port_baud"));
                m_listen_port_num     = KnUtil.getDataRowString(_dr, "listen_port_num");
                m_listen_port_baud    = KnUtil.parseInt32(KnUtil.getDataRowString(_dr, "listen_port_baud"));
                m_conn_print_port_num = KnUtil.getDataRowString(_dr, "conn_print_port_num");
            }
            catch (Exception ex)
            {
                TsLog.writeLog(ex.Message);
                Debug.Assert(false);
                return(false);
            }
            return(true);
        }
예제 #2
0
        public bool setObj(DataRow _dr)
        {
            if (null == _dr)
            {
                return(false);
            }

            try
            {
                // Order
                m_order_num      = _dr["order_num"].ToString();
                m_order_biz_date = KnUtil.parseInt32(_dr["order_biz_date"].ToString());
                m_order_type     = KnUtil.parseInt32(_dr["order_type"].ToString());
                m_state_cd       = KnUtil.parseInt32(_dr["state_cd"].ToString());

                m_call_num      = _dr["call_num"].ToString();
                m_call_datetime = KnUtil.parseDateTime(_dr["call_datetime"].ToString());
                m_date_1        = KnUtil.parseDateTime(KnUtil.getDataRowString(_dr, "date_1"));
                m_date_2        = KnUtil.parseDateTime(KnUtil.getDataRowString(_dr, "date_2"));
                m_date_3        = KnUtil.parseDateTime(KnUtil.getDataRowString(_dr, "date_3"));
                m_date_4        = KnUtil.parseDateTime(KnUtil.getDataRowString(_dr, "date_4"));
                m_date_5        = KnUtil.parseDateTime(KnUtil.getDataRowString(_dr, "date_5"));
                m_date_6        = KnUtil.parseDateTime(KnUtil.getDataRowString(_dr, "date_6"));
                m_date_7        = KnUtil.parseDateTime(KnUtil.getDataRowString(_dr, "date_7"));

                // Shop
                m_shop_name           = KnUtil.getDataRowString(_dr, "shop_name");
                m_shop_request_time   = KnUtil.parseInt32(KnUtil.getDataRowString(_dr, "shop_request_time"));
                m_shop_request_option = KnUtil.parseInt32(KnUtil.getDataRowString(_dr, "shop_request_option"));
                m_shop_cost           = KnUtil.parseInt32(KnUtil.getDataRowString(_dr, "shop_cost"));

                // Customer
                m_customer_name                 = KnUtil.getDataRowString(_dr, "customer_name");
                m_customer_cost                 = KnUtil.parseInt32(KnUtil.getDataRowString(_dr, "customer_cost"));
                m_customer_additional_cost      = KnUtil.parseInt32(KnUtil.getDataRowString(_dr, "customer_additional_cost"));
                m_customer_additional_cost_memo = KnUtil.getDataRowString(_dr, "customer_additional_cost_memo");

                m_customer_pay_type_cd   = KnUtil.parseInt32(KnUtil.getDataRowString(_dr, "customer_pay_type_cd"));
                m_customer_pay_type_memo = KnUtil.getDataRowString(_dr, "customer_pay_type_memo");

                m_customer_request_option = KnUtil.parseInt32(KnUtil.getDataRowString(_dr, "customer_request_option"));
                m_customer_request_time   = KnUtil.parseInt32(KnUtil.getDataRowString(_dr, "customer_request_time"));
                m_customer_request_memo   = KnUtil.getDataRowString(_dr, "customer_request_memo");

                // Locate Arv
                m_arv_locate_name                = KnUtil.getDataRowString(_dr, "arv_locate_name");
                m_arv_locate_address             = KnUtil.getDataRowString(_dr, "arv_locate_address");
                m_arv_locate_alternative_address = KnUtil.getDataRowString(_dr, "arv_locate_alternative_address");
                m_arv_locate_memo                = KnUtil.getDataRowString(_dr, "arv_locate_memo");
                m_arv_person_tel_num             = KnUtil.getDataRowString(_dr, "arv_person_tel_num");
                m_arv_person_memo                = KnUtil.getDataRowString(_dr, "arv_person_memo");
            }
            catch (Exception ex)
            {
                TsLog.writeLog(ex.Message);
                return(false);
            }
            return(true);
        }