コード例 #1
0
        public void FillDataset(DS_RPT_NHAN_SU_PERFECT op_ds, decimal ip_id_phap_nhan, DateTime ip_thoi_diem)
        {
            CStoredProc v_sp = new CStoredProc("pr_RPT_NHAN_SU_PERFECT_FillData");

            v_sp.addDecimalInputParam("@ip_id_phap_nhan", ip_id_phap_nhan);
            v_sp.addDatetimeInputParam("@ip_thoi_diem", ip_thoi_diem);
            v_sp.fillDataSetByCommand(this, op_ds);
        }
コード例 #2
0
 private void load_data_2_grid()
 {
     m_ds = new DS_RPT_NHAN_SU_PERFECT();
     m_us.FillDataset(m_ds, CAppContext_201.getCurrentIDPhapnhan(), m_dat_thoi_diem.Value.Date);
     m_fg.Redraw = false;
     CGridUtils.Dataset2C1Grid(m_ds, m_fg, m_obj_trans);
     m_fg.Redraw = true;
 }
コード例 #3
0
        public US_RPT_NHAN_SU_PERFECT(decimal i_dbID)
        {
            pm_objDS        = new DS_RPT_NHAN_SU_PERFECT();
            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]);
        }
コード例 #4
0
 public US_RPT_NHAN_SU_PERFECT()
 {
     pm_objDS        = new DS_RPT_NHAN_SU_PERFECT();
     pm_strTableName = c_TableName;
     pm_objDR        = pm_objDS.Tables[pm_strTableName].NewRow();
 }