public US_GD_BAN_HANH_VAN_BAN(decimal i_dbID) { pm_objDS = new DS_GD_BAN_HANH_VAN_BAN(); pm_strTableName = c_TableName; IMakeSelectCmd v_objMkCmd = new CMakeAndSelectCmd(pm_objDS, c_TableName); v_objMkCmd.AddCondition("ID", i_dbID, eKieuDuLieu.KieuNumber, eKieuSoSanh.Bang); SqlCommand v_cmdSQL; v_cmdSQL = v_objMkCmd.getSelectCmd(); this.FillDatasetByCommand(pm_objDS, v_cmdSQL); pm_objDR = getRowClone(pm_objDS.Tables[pm_strTableName].Rows[0]); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { string v_str_email = ""; decimal v_dc_id_cong_van = 0; if (Request.QueryString["mail"] != null) { v_str_email = Request.QueryString["mail"]; } else { Response.Redirect("../../QuanLyHanhChinh"); } if (Request.QueryString["id_cong_van"] != null) { v_dc_id_cong_van = CIPConvert.ToDecimal(Request.QueryString["id_cong_van"]); } else { Response.Redirect("../../QuanLyHanhChinh"); } v_str_email = v_str_email.Replace("@topica.edu.vn", "").Replace("@gmail.com", ""); DS_GD_BAN_HANH_VAN_BAN v_ds_gd_ban_hanh = new DS_GD_BAN_HANH_VAN_BAN(); US_GD_BAN_HANH_VAN_BAN v_us_gd_ban_hanh = new US_GD_BAN_HANH_VAN_BAN(); v_us_gd_ban_hanh.FillDataset(v_ds_gd_ban_hanh, "where id=" + v_dc_id_cong_van); if (v_ds_gd_ban_hanh.GD_BAN_HANH_VAN_BAN.Count > 0) { // update lai danh sach email xac nhan VanThu v_van_thu = new VanThu(); v_van_thu.nhan_van_ban(v_dc_id_cong_van, DateTime.Now); //Ghi lich su v_us_gd_ban_hanh = new US_GD_BAN_HANH_VAN_BAN(v_dc_id_cong_van); string v_str_van_ban_so = ""; US_GD_VAN_THU v_us_gd_van_thu = new US_GD_VAN_THU(v_us_gd_ban_hanh.dcID_VAN_BAN); if (v_us_gd_van_thu.dcID_LOAI_CONG_VAN == ID_LOAI_VAN_THU.CONG_VAN_DEN) { v_str_van_ban_so = v_us_gd_van_thu.strSO_CV_DEN; } else v_str_van_ban_so = v_us_gd_van_thu.strSO_VA_KY_HIEU; //v_van_thu.ghi_lich_su_hanh_dong(Person.get_user_id(), DateTime.Now, "Nhận văn bản số: " + v_str_van_ban_so); m_lbl_thong_bao.Text = "Cám ơn bạn đã xác nhận công văn! Từ bây giờ, bạn có thể tra cứu công văn này trong chức năng!"; m_hpl_chuc_nang.NavigateUrl = "f603_tra_cuu_van_ban.aspx"; m_hpl_chuc_nang.Text = "Tra cứu văn thư"; } else Response.Redirect("../../QuanLyHanhChinh"); } }
public void display(decimal ip_dc_id_van_ban) { m_dc_id_gd_van_ban = ip_dc_id_van_ban; US_V_GD_VAN_THU_ALL v_us = new US_V_GD_VAN_THU_ALL(ip_dc_id_van_ban); US_CM_DM_TU_DIEN v_us_loai_van_ban = new US_CM_DM_TU_DIEN(v_us.dcID_LOAI_CONG_VAN); m_lbl_loai_van_ban.Text = v_us_loai_van_ban.strTEN; m_lbl_so_va_ky_hieu.Text = v_us.strSO_CV_DEN + " " + v_us.strSO_VA_KY_HIEU; m_lbl_ten_loai_va_trich_yeu_noi_dung.Text = v_us.strTEN_LOAI_VA_TRICH_YEU_ND; //Hien thi thong tin danh sach da ban hanh cua van ban nay US_GD_BAN_HANH_VAN_BAN v_us_ban_hanh = new US_GD_BAN_HANH_VAN_BAN(); DS_GD_BAN_HANH_VAN_BAN v_ds_ban_hanh = new DS_GD_BAN_HANH_VAN_BAN(); v_us_ban_hanh.FillDataset(v_ds_ban_hanh, "where " + GD_BAN_HANH_VAN_BAN.ID_VAN_BAN + " = " + ip_dc_id_van_ban); string v_str_danh_sach_email_da_ban_hanh = ""; string v_str_danh_sach_email_da_xac_nhan = ""; decimal v_dc_so_email_ban_hanh = 0; decimal v_dc_so_email_da_nhan_mail = 0; for (int i = 0; i < v_ds_ban_hanh.GD_BAN_HANH_VAN_BAN.Count; i++) { v_str_danh_sach_email_da_ban_hanh += v_ds_ban_hanh.Tables[0].Rows[i][GD_BAN_HANH_VAN_BAN.GHI_CHU];//GHi chu luu du lieu email v_dc_so_email_ban_hanh++; if (!v_ds_ban_hanh.Tables[0].Rows[i][GD_BAN_HANH_VAN_BAN.NGAY_NHAN].ToString().Equals("")) { v_str_danh_sach_email_da_xac_nhan += v_ds_ban_hanh.Tables[0].Rows[i][GD_BAN_HANH_VAN_BAN.GHI_CHU]; v_dc_so_email_da_nhan_mail++; } } v_str_danh_sach_email_da_ban_hanh = v_dc_so_email_ban_hanh + " email"; v_str_danh_sach_email_da_xac_nhan = v_dc_so_email_da_nhan_mail + " email"; m_lbl_danh_sach_mail_da_ban_hanh.Text = v_str_danh_sach_email_da_ban_hanh; m_lbl_danh_sach_mail_da_xac_nhan.Text = v_str_danh_sach_email_da_xac_nhan; this.ShowDialog(); }
public US_GD_BAN_HANH_VAN_BAN() { pm_objDS = new DS_GD_BAN_HANH_VAN_BAN(); pm_strTableName = c_TableName; pm_objDR = pm_objDS.Tables[pm_strTableName].NewRow(); }