示例#1
0
        public void setObj(ObjOrder _obj_order)
        {
            Utility.Utility.LogWrite("setObj");
            // Order
            m_order_num      = _obj_order.m_order_num;
            m_order_biz_date = _obj_order.m_order_biz_date;
            m_order_type     = _obj_order.m_order_type;
            m_state_cd       = _obj_order.m_state_cd;

            m_call_num      = _obj_order.m_call_num;
            m_call_datetime = _obj_order.m_call_datetime;
            m_date_1        = _obj_order.m_date_1;
            m_date_2        = _obj_order.m_date_2;
            m_date_3        = _obj_order.m_date_3;
            m_date_4        = _obj_order.m_date_4;
            m_date_5        = _obj_order.m_date_5;
            m_date_6        = _obj_order.m_date_6;
            m_date_7        = _obj_order.m_date_7;

            // Shop
            m_shop_name           = _obj_order.m_shop_name;
            m_shop_request_time   = _obj_order.m_shop_request_time;
            m_shop_request_option = _obj_order.m_shop_request_option;
            m_shop_cost           = _obj_order.m_shop_cost;

            // Customer
            m_customer_name                 = _obj_order.m_customer_name;
            m_customer_cost                 = _obj_order.m_customer_cost;
            m_customer_additional_cost      = _obj_order.m_customer_additional_cost;
            m_customer_additional_cost_memo = _obj_order.m_customer_additional_cost_memo;

            m_customer_pay_type_cd   = _obj_order.m_customer_pay_type_cd;
            m_customer_pay_type_memo = _obj_order.m_customer_pay_type_memo;

            m_customer_request_option = _obj_order.m_customer_request_option;
            m_customer_request_time   = _obj_order.m_customer_request_time;
            m_customer_request_memo   = _obj_order.m_customer_request_memo;

            // Locate Arv
            m_arv_locate_name                = _obj_order.m_arv_locate_name;
            m_arv_locate_address             = _obj_order.m_arv_locate_address;
            m_arv_locate_alternative_address = _obj_order.m_arv_locate_alternative_address;
            m_arv_locate_memo                = _obj_order.m_arv_locate_memo;
            m_arv_person_tel_num             = _obj_order.m_arv_person_tel_num;
            m_arv_person_memo                = _obj_order.m_arv_person_memo;
        }
示例#2
0
        static public void setTableData(ref DataRow _des_row, ref ObjOrder _obj_order)
        {
            Utility.Utility.LogWrite("setTableData");
            // order 는 makeTableSchema 이후 ImportRow 통해서 넣는것이 아니라 한번에 넣기 때문에
            // 프로시저에서 불러온 DataTable Schema 따라간다.
            // 그래서 setDataRowData 함수 이용해서 없는것은 체크해서 넣어야 한다.
            try
            {
                _des_row.BeginEdit(); // start edit
                {
                    // Order
                    _des_row["order_num"]      = _obj_order.m_order_num;
                    _des_row["order_biz_date"] = _obj_order.m_order_biz_date;
                    _des_row["order_type"]     = _obj_order.m_order_type;
                    _des_row["state_cd"]       = _obj_order.m_state_cd;

                    _des_row["call_num"] = _obj_order.m_call_num;

                    _des_row["call_datetime"] = _obj_order.m_call_datetime;
                    _des_row["date_1"]        = _obj_order.m_date_1;
                    _des_row["date_2"]        = _obj_order.m_date_2;
                    _des_row["date_3"]        = _obj_order.m_date_3;
                    _des_row["date_4"]        = _obj_order.m_date_4;
                    _des_row["date_5"]        = _obj_order.m_date_5;
                    _des_row["date_6"]        = _obj_order.m_date_6;
                    _des_row["date_7"]        = _obj_order.m_date_7;

                    // Shop
                    _des_row["shop_name"]           = _obj_order.m_shop_name;
                    _des_row["shop_request_time"]   = _obj_order.m_shop_request_time;
                    _des_row["shop_request_option"] = _obj_order.m_shop_request_option;
                    _des_row["shop_cost"]           = _obj_order.m_shop_cost;

                    // Customer
                    _des_row["customer_name"]                 = _obj_order.m_customer_name;
                    _des_row["customer_cost"]                 = _obj_order.m_customer_cost;
                    _des_row["customer_additional_cost"]      = _obj_order.m_customer_additional_cost;
                    _des_row["customer_additional_cost_memo"] = _obj_order.m_customer_additional_cost_memo;

                    _des_row["customer_pay_type_cd"]   = _obj_order.m_customer_pay_type_cd;
                    _des_row["customer_pay_type_memo"] = _obj_order.m_customer_pay_type_memo;

                    _des_row["customer_request_option"] = _obj_order.m_customer_request_option;
                    _des_row["customer_request_time"]   = _obj_order.m_customer_request_time;
                    _des_row["customer_request_memo"]   = _obj_order.m_customer_request_memo;

                    // Locate Arv
                    _des_row["arv_locate_name"]                = _obj_order.m_arv_locate_name;
                    _des_row["arv_locate_address"]             = _obj_order.m_arv_locate_address;
                    _des_row["arv_locate_alternative_address"] = _obj_order.m_arv_locate_alternative_address;
                    _des_row["arv_locate_memo"]                = _obj_order.m_arv_locate_memo;
                    _des_row["arv_person_tel_num"]             = _obj_order.m_arv_person_tel_num;
                    _des_row["arv_person_memo"]                = _obj_order.m_arv_person_memo;
                }
            }
            catch (Exception ex)
            {
                TsLog.writeLog(ex.Message);
            }
            finally
            {
                _des_row.EndEdit(); // end edit
            }
        }