Beispiel #1
0
        private void load_data_to_grid_nhan_su(US_V_GD_CONG_TAC ip_us)
        {
            US_V_GD_CONG_TAC v_us = new US_V_GD_CONG_TAC();
            DS_V_GD_CONG_TAC v_ds = new DS_V_GD_CONG_TAC();

            v_us.FillDatasetSearchByIdQuyetDinh(v_ds, ip_us.dcID_QUYET_DINH);
            if (v_ds.V_GD_CONG_TAC.Rows.Count < 1)
            {
                return;
            }
            CGridUtils.Dataset2C1Grid(v_ds, m_fg, get_trans_object(m_fg));
            m_fg.Rows.Add();
        }
Beispiel #2
0
        private void chon_quyet_dinh()
        {
            m_e_form_mode            = DataEntryFormMode.UpdateDataState;
            m_grb_quyet_dinh.Enabled = true;
            f600_v_dm_quyet_dinh v_frm = new f600_v_dm_quyet_dinh();

            v_frm.select_data(CHON_QUYET_DINH.CONG_TAC, ref m_us_dm_quyet_dinh);

            if (m_us_dm_quyet_dinh.dcID == -1)
            {
                return;
            }
            m_grb_quyet_dinh.Enabled = false;

            // Dùng QĐ vừa có để lấy ra Quyết định công tác (GD_CONG_TAC)
            var v_us = new US_V_GD_CONG_TAC();
            var v_ds = new DS_V_GD_CONG_TAC();

            v_us.FillDatasetSearchByIdQuyetDinh(v_ds, m_us_dm_quyet_dinh.dcID);
            v_us.DataRow2Me(v_ds.V_GD_CONG_TAC.Rows[0]);
            us_quyet_dinh_to_form(v_us);
        }