Ejemplo n.º 1
0
 private static void LoadDoanhThu()
 {
     try
     {
         DataTable dtHuMan = SQLExec.ExecuteReturnDt("EXEC sp_HRM_GetHumanValue 'GIOITINH'");
         rptChar.fHeight = viewDoanhThuHeight;
         rptChar.fWidth  = viewDoanhThuWidth;
         rptChar.SetLicense("RGN,RGN Warez Group,DD-APN-30-C01339,W44SSM949SWJ449HSHMF");
         rptChar.Load(dtHuMan, "ID", "Value");
         try
         {
             rptChar.Run();
         }
         catch (Exception)
         {
             rptChar.Run();
         }
     }
     catch (Exception ex)
     {
         EpointMessage.MsgOk(ex.ToString());
     }
 }
Ejemplo n.º 2
0
        void cboChiTieu_SelectedValueChanged(object sender, EventArgs e)
        {
            string strChitieu = cboChiTieu.SelectedValue.ToString();

            rptChar = new rptReportChart();
            this.viewDoanhThu.HorizontalScroll.Visible = false;
            this.viewDoanhThu.VerticalScroll.Visible   = false;
            this.viewDoanhThu.Document = rptChar.Document;
            DataTable dtHuMan;

            dtHuMan         = SQLExec.ExecuteReturnDt("EXEC sp_HRM_GetHumanValue '" + strChitieu + "'");
            rptChar.fHeight = viewDoanhThuHeight;
            rptChar.fWidth  = viewDoanhThuWidth;
            rptChar.SetLicense("RGN,RGN Warez Group,DD-APN-30-C01339,W44SSM949SWJ449HSHMF");
            rptChar.Load(dtHuMan, "ID", "Value");
            try
            {
                rptChar.Run();
            }
            catch (Exception)
            {
                rptChar.Run();
            }
        }