コード例 #1
0
        private void save_data()
        {
            if (check_data_is_ok() == false)
            {
                return;
            }
            //Xử lý đơn vị
            form_2_us_object();
            switch (m_e_form_mode)
            {
            case DataEntryFormMode.InsertDataState:
                m_us.Insert();
                break;

            case DataEntryFormMode.UpdateDataState:
                m_us.Update();
                break;
            }
            //Xử lý đơn vị pháp nhân
            if (m_e_form_mode == DataEntryFormMode.InsertDataState)
            {
                form_to_us_don_vi_phap_nhan();
                m_us_dv_pn.Insert();
            }
            BaseMessages.MsgBox_Infor("Dữ liệu đã được cập nhật");
            Close();
        }
コード例 #2
0
        private void save_data()
        {
            if (check_data_is_ok() == false)
            {
                return;
            }
            form_2_us_object();
            switch (m_e_form_mode)
            {
            case DataEntryFormMode.InsertDataState:
                m_us.Insert();
                break;

            case DataEntryFormMode.UpdateDataState:
                m_us.Update();
                break;
            }
            BaseMessages.MsgBox_Infor("Dữ liệu đã được cập nhật");
            this.Close();
        }