Esempio n. 1
0
 private void format_controls()
 {
     CControlFormat.setFormStyle(this, new CAppContext_201());
     CControlFormat.setC1FlexFormat(m_fg);
     CGridUtils.AddSearch_Handlers(m_fg);
     this.KeyPreview = true;
 }
Esempio n. 2
0
        private void format_controls()
        {
            CControlFormat.setFormStyle(this, new CAppContext_201(), IPFormStyle.DialogForm);
            CControlFormat.setC1FlexFormat(m_fg);
            CGridUtils.AddSearch_Handlers(m_fg);
            CGridUtils.AddSave_Excel_Handlers(m_fg);

            m_lbl_header.Font      = new Font("Arial", 16);
            m_lbl_header.ForeColor = Color.DarkRed;
            m_lbl_header.TextAlign = ContentAlignment.MiddleCenter;

            m_fg.Tree.Style  = TreeStyleFlags.SimpleLeaf;
            m_fg.Tree.Column = (int)e_col_Number.NOI_DUNG_CAU_HOI;

            m_fg.Cols[(int)e_col_Number.TEN_TO_CHUC].Visible               = false;
            m_fg.Cols[(int)e_col_Number.TEN_NHOM_CAU_HOI].Visible          = false;
            m_fg.Cols[(int)e_col_Number.NGAY_CAP_NHAP_CUOI].Visible        = false;
            m_fg.Cols[(int)e_col_Number.NGAY_TAO].Visible                  = false;
            m_fg.Cols[(int)e_col_Number.TEN_NGUOI_CAP_NHAT_CUOI].Visible   = false;
            m_fg.Cols[(int)e_col_Number.TEN_NGUOI_TAO].Visible             = false;
            m_fg.Cols[(int)e_col_Number.ID_TRANG_THAI_CAU_TRA_LOI].DataMap = get_data_map_trang_thai();
            this.MaximizeBox = true;
            this.MinimizeBox = true;
            m_txt_key_cau_hoi.Focus();
            set_define_events();
            this.KeyPreview = true;
        }
Esempio n. 3
0
 private void format_controls()
 {
     CControlFormat.setFormStyle(this, new CAppContext_201(), IPFormStyle.DialogForm);
     CControlFormat.setC1FlexFormat(m_fg);
     set_define_events();
     this.KeyPreview = true;
 }
Esempio n. 4
0
        private void format_controls()
        {
            CControlFormat.setFormStyle(this, new CAppContext_201(), IPFormStyle.DialogForm);
            CControlFormat.setC1FlexFormat(m_fg);
            CGridUtils.AddSearch_Handlers(m_fg);
            CGridUtils.AddSave_Excel_Handlers(m_fg);

            m_lbl_header.Font      = new Font("Arial", 16);
            m_lbl_header.ForeColor = Color.DarkRed;
            m_lbl_header.TextAlign = ContentAlignment.MiddleCenter;

            m_fg.Tree.Style  = TreeStyleFlags.SimpleLeaf;
            m_fg.Tree.Column = (int)e_col_Number.NOI_DUNG_CAU_HOI;

            m_fg.Cols[(int)e_col_Number.TEN_TO_CHUC].Visible      = false;
            m_fg.Cols[(int)e_col_Number.TEN_NHOM_CAU_HOI].Visible = false;

            this.MaximizeBox = true;
            this.MinimizeBox = true;

            m_cmd_view.Visible   = false;
            m_cmd_delete.Visible = false;
            m_cbo_don_vi.Focus();

            set_define_events();
            this.KeyPreview = true;
        }
Esempio n. 5
0
        private void format_controls()
        {
            CControlFormat.setFormStyle(this, new CAppContext_201());
            this.KeyPreview = true;
            WinFormControls.load_data_to_cbo_tu_dien(WinFormControls.eLOAI_TU_DIEN.TRANG_THAI_LAO_DONG,
                                                     WinFormControls.eTAT_CA.NO,
                                                     m_cbo_trang_thai_moi);
            //WinFormControls.load_data_to_cbo_tu_dien(WinFormControls.eLOAI_TU_DIEN.LOAI_QUYET_DINH,
            //  WinFormControls.eTAT_CA.NO,
            //  m_cbo_loai_quyet_dinh);
            //
            BKI_HRM.DS.DS_CM_DM_TU_DIEN v_ds_loai_quyet_dinh = new BKI_HRM.DS.DS_CM_DM_TU_DIEN();
            BKI_HRM.US.US_CM_DM_TU_DIEN v_us_loai_quyet_dinh = new BKI_HRM.US.US_CM_DM_TU_DIEN();
            v_us_loai_quyet_dinh.FillDataset_load_loai_quyet_dinh(v_ds_loai_quyet_dinh, "Tất cả", "N");
            m_cbo_loai_quyet_dinh.DataSource    = v_ds_loai_quyet_dinh.CM_DM_TU_DIEN;
            m_cbo_loai_quyet_dinh.DisplayMember = CM_DM_TU_DIEN.TEN;
            m_cbo_loai_quyet_dinh.ValueMember   = CM_DM_TU_DIEN.ID;

            m_cmd_save.Visible    = true;
            m_cmd_refresh.Visible = true;
            m_cmd_exit.Visible    = true;
            m_cmd_save.Enabled    = true;
            m_cmd_refresh.Enabled = true;
            m_cmd_exit.Enabled    = true;

            load_cbo_ma_quyet_dinh();
        }
        private void format_control()
        {
            CControlFormat.setFormStyle(this);

            set_define_events();
            load_data_2_cbo_ma_trang_thai_cap_tren();
        }
Esempio n. 7
0
 private void format_controls()
 {
     CControlFormat.setFormStyle(this);
     CControlFormat.setC1FlexFormat(m_fg);
     set_define_events();
     this.KeyPreview = true;
 }
Esempio n. 8
0
        private void format_controls()
        {
            CControlFormat.setFormStyle(this, new CAppContext_201());
            CControlFormat.setC1FlexFormat(m_fg);
            CGridUtils.AddSave_Excel_Handlers(m_fg);
            CGridUtils.AddSearch_Handlers(m_fg);
            m_fg.Tree.Column = (int)e_col_Number.NGACH;
            m_fg.Tree.Style  = C1.Win.C1FlexGrid.TreeStyleFlags.SimpleLeaf;
            m_fg.Cols[(int)e_col_Number.TEN_TTLD].Visible = false;


            CControlFormat.setC1FlexFormat(m_fg_danh_sach);
            CGridUtils.AddSave_Excel_Handlers(m_fg_danh_sach);
            CGridUtils.AddSearch_Handlers(m_fg_danh_sach);
            m_fg_danh_sach.Tree.Column = (int)e_col_Number_ds.DIA_BAN;
            m_fg_danh_sach.Tree.Style  = TreeStyleFlags.SimpleLeaf;

            m_fg_danh_sach.Cols[(int)e_col_Number_ds.DIA_BAN].Visible     = false;
            m_fg_danh_sach.Cols[(int)e_col_Number_ds.CAP_DON_VI].Visible  = false;
            m_fg_danh_sach.Cols[(int)e_col_Number_ds.LOAI_DON_VI].Visible = false;
            m_fg_danh_sach.Cols[(int)e_col_Number_ds.LOAI_CV].Visible     = false;
            m_fg_danh_sach.Cols[(int)e_col_Number_ds.TEN_CV].Visible      = false;
            m_fg_danh_sach.Cols[(int)e_col_Number_ds.TEN_DON_VI].Visible  = false;
            set_define_events();
            this.KeyPreview = true;
        }
 private void fomat_control()
 {
     CControlFormat.setFormStyle(this);
     set_define_events();
     WinFormControls.load_data_to_cbo_tu_dien(WinFormControls.eLOAI_TU_DIEN.NGACH,
                                              WinFormControls.eTAT_CA.NO,
                                              m_cbo_ngach);
 }
Esempio n. 10
0
 private void format_controls()
 {
     CControlFormat.setFormStyle(this, new CAppContext_201(), IPFormStyle.DialogForm);
     m_cbo_trang_thai.SelectedIndex = 0;
     m_txt_email.Enabled            = false;
     m_txt_password_email.Enabled   = false;
     set_define_events();
 }
Esempio n. 11
0
 private void format_controls()
 {
     CControlFormat.setFormStyle(this, new CAppContext_201(), IPFormStyle.DialogForm);
     m_cbo_trang_thai.SelectedIndex = 0;
     m_fg.Cols[(int)e_col_number.ID_QUYEN].Visible = false;
     m_obj_trans = get_trans_object(m_fg);
     set_define_events();
 }
Esempio n. 12
0
 private void fomat_control()
 {
     CControlFormat.setFormStyle(this);
     set_define_events();
     load_data_2_combobox_ma_don_vi_cap_tren();
     load_data_2_combobox_loai_don_vi();
     load_data_2_combobox_ten_don_vi_cap_tren();
 }
Esempio n. 13
0
 private void format_controls()
 {
     CControlFormat.setFormStyle(this);
     CControlFormat.setC1FlexFormat(m_fg);
     m_fg.Cols[(int)e_col_Number.TRANG_THAI].DataMap = get_mapping_col_trang_thai();
     set_define_events();
     m_fg.AllowEditing = false;
     this.KeyPreview   = true;
 }
 private void format_control()
 {
     CControlFormat.setFormStyle(this, new CAppContext_201(), IPFormStyle.DialogForm);
     this.KeyPreview = true;
     set_define_event();
     m_lbl_title.Font = new Font("Arial", 16);
     m_lbl_title.ForeColor = Color.DarkRed;
     m_lbl_title.TextAlign = ContentAlignment.MiddleCenter;
 }
Esempio n. 15
0
 private void format_controls()
 {
     CControlFormat.setFormStyle(this, new CAppContext_201());
     this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 20F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     CControlFormat.setC1FlexFormat(m_fg);
     CGridUtils.AddSave_Excel_Handlers(m_fg);
     CGridUtils.AddSearch_Handlers(m_fg);
     set_define_events();
     this.KeyPreview = true;
 }
 private void format_controls()
 {
     CControlFormat.setFormStyle(this, new CAppContext_201());
     CControlFormat.setC1FlexFormat(m_fg);
     CGridUtils.AddSave_Excel_Handlers(m_fg);
     CGridUtils.AddSearch_Handlers(m_fg);
     set_define_events();
     this.KeyPreview = true;
     wrap_text_header();
 }
        public f301_V_GD_LUONG_THEO_QD_DE()
        {
            InitializeComponent();

            // Initialize
            init();

            // Format form
            CControlFormat.setFormStyle(this);
        }
Esempio n. 18
0
        private void format_controls()
        {
            CControlFormat.setFormStyle(this);

            this.ShowInTaskbar    = true;
            this.MaximizeBox      = true;
            this.MinimizeBox      = true;
            m_cbo_dich_vu.Visible = false;
            set_define_events();
        }
Esempio n. 19
0
 private void format_controls()
 {
     CControlFormat.setFormStyle(this);
     CControlFormat.setC1FlexFormat(m_fg);
     m_cmd_delete.Visible = false;
     m_cmd_insert.Visible = false;
     m_cmd_view.Visible   = false;
     set_define_events();
     this.KeyPreview = true;
 }
Esempio n. 20
0
 private void format_controls()
 {
     CControlFormat.setFormStyle(this, new CAppContext_201(), IPFormStyle.DialogForm);
     this.KeyPreview        = true;
     m_lbl_header.Font      = new Font("Arial", 16);
     m_lbl_header.ForeColor = Color.DarkRed;
     m_lbl_header.TextAlign = ContentAlignment.MiddleCenter;
     m_cbo_don_vi_truong.Focus();
     set_define_events();
 }
Esempio n. 21
0
 private void format_controls()
 {
     CControlFormat.setFormStyle(this, new CAppContext_201());
     CControlFormat.setC1FlexFormat(m_fg);
     CGridUtils.AddSave_Excel_Handlers(m_fg);
     CGridUtils.AddSearch_Handlers(m_fg);
     m_fg.Tree.Column = (int)e_col_Number.HO_DEM; //Cột chứa tiêu đề tree
     m_fg.Tree.Style  = TreeStyleFlags.Simple;
     set_define_events();
     KeyPreview = true;
 }
 private void format_controls()
 {
     CControlFormat.setFormStyle(this, new CAppContext_201());
     CControlFormat.setC1FlexFormat(m_fg);
     CGridUtils.AddSave_Excel_Handlers(m_fg);
     CGridUtils.AddSearch_Handlers(m_fg);
     m_fg.Tree.Column = (int)e_col_Number.MA_CAP;
     m_fg.Tree.Style  = C1.Win.C1FlexGrid.TreeStyleFlags.SimpleLeaf;
     set_define_events();
     this.KeyPreview = true;
 }
Esempio n. 23
0
 private void format_controls()
 {
     CControlFormat.setFormStyle(this, new CAppContext_201());
     this.KeyPreview         = true;
     m_lbl_ma_chuc_vu.Text   = String.Empty;
     m_lbl_ma_nhan_vien.Text = String.Empty;
     m_lbl_ho_va_ten.Text    = String.Empty;
     m_lbl_ma_don_vi.Text    = String.Empty;
     m_lbl_ngay_sinh.Text    = String.Empty;
     m_lbl_dia_chi.Text      = String.Empty;
 }
        private void format_controls()
        {
            CControlFormat.setFormStyle(this, new CAppContext_201(), IPFormStyle.DialogForm);
            CControlFormat.setC1FlexFormat(m_fg);
            this.KeyPreview = true;
            //m_fg.Cols[(int)e_col_Number.ID_TRANG_THAI].DataMap = get_data_map_trang_thai();



            set_define_events();
        }
Esempio n. 25
0
 private void format_controls()
 {
     CControlFormat.setFormStyle(this, new CAppContext_201());
     CControlFormat.setC1FlexFormat(m_grv_qua_trinh_lam_viec);
     CGridUtils.AddSave_Excel_Handlers(m_grv_qua_trinh_lam_viec);
     CGridUtils.AddSearch_Handlers(m_grv_qua_trinh_lam_viec);
     m_grv_qua_trinh_lam_viec.Tree.Column = (int)e_col_Number.HO_DEM;
     m_grv_qua_trinh_lam_viec.Cols[(int)e_col_Number.MA_NV].Visible = false;
     m_grv_qua_trinh_lam_viec.Tree.Style = C1.Win.C1FlexGrid.TreeStyleFlags.SimpleLeaf;
     set_define_events();
     this.KeyPreview = true;
 }
Esempio n. 26
0
        //private const String m_str_goi_y_tim_kiem = "Nhập Mã đơn vị, Họ tên, Mã nhân viên...";
        #endregion

        #region Private Methods

        private void format_controls()
        {
            CControlFormat.setFormStyle(this, new CAppContext_201());
            CControlFormat.setC1FlexFormat(m_fg);
            CGridUtils.AddSave_Excel_Handlers(m_fg);
            CGridUtils.AddSearch_Handlers(m_fg);
            m_fg.Tree.Column     = (int)e_col_Number.MA_DON_VI;
            m_fg.Tree.Style      = TreeStyleFlags.SimpleLeaf;
            m_txt_phap_nhan.Text = CAppContext_201.getCurrentIDPhapnhan().ToString();
            set_define_events();
            KeyPreview = true;
        }
 private void format_controls()
 {
     CControlFormat.setFormStyle(this, new CAppContext_201());
     this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 20F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     CControlFormat.setC1FlexFormat(m_fg);
     CGridUtils.AddSave_Excel_Handlers(m_fg);
     CGridUtils.AddSearch_Handlers(m_fg);
     m_fg.Tree.Column = (int)e_col_Number.MA_NV;
     m_fg.Tree.Style  = C1.Win.C1FlexGrid.TreeStyleFlags.SimpleLeaf;
     set_define_events();
     this.KeyPreview = true;
 }
 private void format_controls()
 {
     CControlFormat.setFormStyle(this);
     CControlFormat.setC1FlexFormat(m_fg);
     set_define_events();
     CGridUtils.AddSave_Excel_Handlers(m_fg);
     CGridUtils.AddSearch_Handlers(m_fg);
     m_lbl_title.Font      = new Font("Arial", 16);
     m_lbl_title.ForeColor = Color.DarkRed;
     m_lbl_title.TextAlign = ContentAlignment.MiddleCenter;
     this.KeyPreview       = true;
 }
Esempio n. 29
0
 private void format_controls()
 {
     KeyPreview = true;
     CControlFormat.setFormStyle(this, new CAppContext_201());
     CControlFormat.setC1FlexFormat(m_fg_left);
     CGridUtils.AddSave_Excel_Handlers(m_fg_left);
     CGridUtils.AddSearch_Handlers(m_fg_left);
     m_fg_left.Tree.Style = TreeStyleFlags.Simple;
     CControlFormat.setC1FlexFormat(m_fg_right);
     m_fg_right.AllowEditing = true;
     CGridUtils.AddSave_Excel_Handlers(m_fg_right);
     CGridUtils.AddSearch_Handlers(m_fg_right);
     m_fg_right.Tree.Style = TreeStyleFlags.Simple;
 }
        private void format_controls()
        {
            CControlFormat.setFormStyle(this);

            m_lbl_header.Font      = new Font("Arial", 16);
            m_lbl_header.ForeColor = Color.DarkRed;
            m_lbl_header.TextAlign = ContentAlignment.MiddleCenter;

            m_lbl_ngay_thuc_hien.Visible = false;
            m_dat_ngay_thuc_hien.Visible = false;
            m_dat_ngay_thuc_hien.Value   = DateTime.Today;

            set_define_events();
        }