Пример #1
0
        private void form_2_us_object()
        {
            m_us.strMA_QUYET_DINH    = m_txt_ma_quyet_dinh.Text.Trim();
            m_us.strNOI_DUNG         = m_txt_noi_dung.Text.Trim();
            m_us.datNGAY_CO_HIEU_LUC = m_dat_ngay_co_hieu_luc.Value.Date;

            if (m_dat_ngay_het_hieu_luc.Checked)
            {
                m_us.datNGAY_HET_HIEU_LUC = m_dat_ngay_het_hieu_luc.Value.Date;
            }
            else
            {
                m_us.SetNGAY_HET_HIEU_LUCNull();
            }
            m_us.datNGAY_KY   = m_dat_ngay_ky.Value.Date;
            m_us.dcID_LOAI_QD = CIPConvert.ToDecimal(m_cbo_loai_quyet_dinh.SelectedValue.ToString());
            m_us.strLINK      = m_lbl_file_name.Text;
        }
Пример #2
0
 private void form_to_us_object_quyet_dinh()
 {
     if (m_txt_ma_quyet_dinh.Text.Trim() == "")
     {
         m_us_quyet_dinh.dcID = -1;
     }
     //    m_us_quyet_dinh.strMA_QUYET_DINH = m_lbl_ma_qd.Text;
     m_us_quyet_dinh.strMA_QUYET_DINH    = m_txt_ma_quyet_dinh.Text.Trim();
     m_us_quyet_dinh.strNOI_DUNG         = m_txt_noi_dung.Text.Trim();
     m_us_quyet_dinh.strLINK             = m_lbl_file_name.Text;
     m_us_quyet_dinh.dcID_LOAI_QD        = CIPConvert.ToDecimal(m_cbo_loai_quyet_dinh.SelectedValue);
     m_us_quyet_dinh.datNGAY_KY          = m_dat_ngay_ky.Value;
     m_us_quyet_dinh.datNGAY_CO_HIEU_LUC = m_dat_ngay_co_hieu_luc_qd.Value;
     if (m_dat_ngay_het_hieu_luc_qd.Checked)
     {
         m_us_quyet_dinh.datNGAY_HET_HIEU_LUC = m_dat_ngay_het_hieu_luc_qd.Value;
     }
     else
     {
         m_us_quyet_dinh.SetNGAY_HET_HIEU_LUCNull();
     }
 }