Exemplo n.º 1
0
        private void them_chuc_vu()
        {
            US_V_GD_QUA_TRINH_LAM_VIEC v_us = new US_V_GD_QUA_TRINH_LAM_VIEC();
            DS_V_GD_QUA_TRINH_LAM_VIEC v_ds = new DS_V_GD_QUA_TRINH_LAM_VIEC();

            v_us.FillDatasetByManhanvien(v_ds, m_us_nhan_su.strMA_NV, DateTime.Parse("1/1/1900"), DateTime.Today);
            v_us.DataRow2Me((DataRow)v_ds.V_GD_QUA_TRINH_LAM_VIEC.Rows[0]);

            f202_v_gd_qua_trinh_lam_viec_de v_frm = new f202_v_gd_qua_trinh_lam_viec_de();

            v_frm.display_for_bo_nhiem(v_us, "kiem_nhiem");
        }
Exemplo n.º 2
0
        private void load_data_2_grid(US_DM_NHAN_SU ip_us_dm_nhan_su)
        {
            m_ds_qua_trinh_lam_viec = new DS_V_GD_QUA_TRINH_LAM_VIEC();
            m_us_qua_trinh_lam_viec.FillDatasetByManhanvien(m_ds_qua_trinh_lam_viec, ip_us_dm_nhan_su.strMA_NV, CIPConvert.ToDatetime("01/01/1800"), DateTime.Now);
            m_grv_qua_trinh_lam_viec.Redraw = false;
            m_obj_trans = get_trans_object(m_grv_qua_trinh_lam_viec);

            CGridUtils.Dataset2C1Grid(m_ds_qua_trinh_lam_viec, m_grv_qua_trinh_lam_viec, m_obj_trans);
            m_grv_qua_trinh_lam_viec.Subtotal(C1.Win.C1FlexGrid.AggregateEnum.None // chỗ này dùng hàm count tức là để đếm, có thể dùng các hàm khác thay thế
                                              , 0
                                              , (int)e_col_Number.MA_NV            // chỗ này là tên trường mà mình nhóm
                                              , (int)e_col_Number.TEN_CV           // chỗ này là tên trường mà mình Count
                                              , "{0}"
                                              );
            m_grv_qua_trinh_lam_viec.Redraw = true;
        }