Exemplo n.º 1
0
 public US_V_BAN_HANH_VAN_BAN(decimal i_dbID)
 {
     pm_objDS = new DS_V_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]);
 }
    private void load_data_to_grid()
    {
        if (m_cbo_phong_ban.SelectedValue == null) return;
        if (Session[SESSION.UserID] == null) return;
        decimal v_dc_id_user = CIPConvert.ToDecimal(Session[SESSION.UserID]);
        US_HT_NGUOI_SU_DUNG v_us_ht_nguoi_su_dung = new US_HT_NGUOI_SU_DUNG(v_dc_id_user);
        //format_control(v_us_ht_nguoi_su_dung.strTEN_TRUY_CAP);
        decimal v_dc_id_phong_ban = CIPConvert.ToDecimal(m_cbo_phong_ban.SelectedValue);

        US_V_BAN_HANH_VAN_BAN v_us_gd_van_thu = new US_V_BAN_HANH_VAN_BAN();
        DS_V_BAN_HANH_VAN_BAN v_ds_gd_van_thu = new DS_V_BAN_HANH_VAN_BAN();
        v_us_gd_van_thu.v_tra_cuu_van_ban(
            v_ds_gd_van_thu
            , v_dc_id_phong_ban
            , v_us_ht_nguoi_su_dung.strMAIL
            , m_txt_tu_khoa.Text.Trim());
        m_grv_dm_bill.DataSource = v_ds_gd_van_thu.V_BAN_HANH_VAN_BAN;
        m_grv_dm_bill.DataBind();
    }
 private void load_data_2_grid()
 {
     m_ds = new DS_V_BAN_HANH_VAN_BAN();
     m_us.v_ban_hanh_van_ban(m_ds
         , CIPConvert.ToDatetime(m_txt_tu_ngay.Text, "dd/MM/yyyy")
         , CIPConvert.ToDatetime(m_txt_den_ngay.Text, "dd/MM/yyyy")
         , m_txt_tu_khoa.Text.Trim());
     m_fg.Redraw = false;
     CGridUtils.Dataset2C1Grid(m_ds, m_fg, m_obj_trans);
     m_fg.Redraw = true;
 }
Exemplo n.º 4
0
 public void v_tra_cuu_van_ban(
     DS_V_BAN_HANH_VAN_BAN op_ds
     , decimal ip_dc_id_doi_tuong_nhan
     , string ip_str_email
     , string ip_str_tu_khoa)
 {
     CStoredProc v_sp = new CStoredProc("pr_v_ban_hanh_van_ban_F603");
     v_sp.addDecimalInputParam("@ip_dc_id_doi_tuong_nhan", ip_dc_id_doi_tuong_nhan);
     v_sp.addNVarcharInputParam("@ip_str_email", ip_str_email);
     v_sp.addNVarcharInputParam("@ip_str_tu_khoa", ip_str_tu_khoa);
     v_sp.fillDataSetByCommand(this, op_ds);
 }
Exemplo n.º 5
0
 public void v_ban_hanh_van_ban(
     DS_V_BAN_HANH_VAN_BAN op_ds
     , DateTime ip_dat_tu_ngay
     , DateTime ip_dat_den_ngay
     , string ip_str_tu_khoa)
 {
     CStoredProc v_sp = new CStoredProc("pr_v_ban_hanh_van_ban");
     v_sp.addDatetimeInputParam("@ip_dat_tu_ngay", ip_dat_tu_ngay);
     v_sp.addDatetimeInputParam("@ip_dat_den_ngay", ip_dat_den_ngay);
     v_sp.addNVarcharInputParam("@ip_str_tu_khoa", ip_str_tu_khoa);
     v_sp.fillDataSetByCommand(this, op_ds);
 }
Exemplo n.º 6
0
 public US_V_BAN_HANH_VAN_BAN()
 {
     pm_objDS = new DS_V_BAN_HANH_VAN_BAN();
     pm_strTableName = c_TableName;
     pm_objDR = pm_objDS.Tables[pm_strTableName].NewRow();
 }