//web public void Initialize(string reportid, ReportStates reportstate, string usertoken, string taskid, string subid, string url, string userid, string langid, string accid, string filterclass, string authstring, string ciyear, string curdate) { _usertoken = usertoken; _taskid = taskid; _subid = subid; _login = new U8LoginInfor(); _login.UserToken = _usertoken; _login.TaskID = _taskid; _login.SubID = _subid; _login.LocaleID = langid; Initialize(reportid, reportstate, null, true, url, userid, langid, accid, filterclass, authstring, ciyear, curdate); }
//prewivew / static public void Initialize(string id, ReportStates reportstate, ReportType type) { _reportstate = reportstate; if (reportstate == ReportStates.Preview) { _viewid = id; } else { _staticid = id; } _type = type; }
protected Cells(SerializationInfo info, StreamingContext context) : base() { _understate = (ReportStates)info.GetValue("UnderState", typeof(ReportStates)); int count = info.GetInt32("Count"); if (count > 0) { for (int i = 0; i < count; i++) { Add((Cell)info.GetValue("Cell" + i.ToString(), typeof(Cell))); } } }
private void Initialize(string reportid, ReportStates reportstate, object rawfilter, bool bshowui, string url, string userid, string langid, string accid, string filterclass, string authstring, string ciyear, string curdate) { try { _reportid = reportid; _reportstate = reportstate; _localeid = langid; this._accYear = ciyear; this._accId = accid; this._userId = userid; _reportstate = reportstate; _filterargs = new FilterArgs(_reportid, filterclass, url.Length > 0 ? null : _login.U8Login); _filterargs.Login = _login != null ? _login.U8Login : null; _filterargs.bShowUI = bshowui; _filterargs.RawFilter = rawfilter; _filterargs.UFBaseLibUrl = url; _filterargs.IsWebFilter = url.Length > 0; _filterargs.UserID = userid; _filterargs.LangID = langid; _filterargs.AccID = accid; _filterargs.UserToken = _usertoken; if (authstring != null) { _filterargs.Args.Add("AuthString", authstring); } if (ciyear != null && ciyear != "") { _filterargs.Args.Add("CIYear", ciyear); } if (!string.IsNullOrEmpty(curdate)) { _filterargs.Args.Add("CurDate", curdate); } if (_reportstate == ReportStates.Preview || bWebOrOutU8)//ReportStates.WebBrowse { _filterargs.Args.Add("previeworweb", "1"); } } catch (TargetInvocationException ex) { throw new ReportException(ex.InnerException.Message); } }
public static ReportEngine GetRemoteEngine(U8LoginInfor login, ReportStates state) { try { object[] attrs = new object[] { new UrlAttribute(_url) }; object[] objs = new object[] { login, state }; return((ReportEngine)Activator.CreateInstance(typeof(ReportEngine), objs, attrs)); } catch (TargetInvocationException e) { throw new ReportException(LanError + ((e.InnerException is TargetInvocationException)?e.InnerException.InnerException.Message:e.InnerException.Message) + CheckLan); } catch (Exception e) { throw new ReportException(LanError + e.Message + CheckLan); } }
protected DataHelper(SerializationInfo info, StreamingContext context) { _htprecision = (Hashtable)info.GetValue("Precision", typeof(Hashtable)); _htcompany = (Hashtable)info.GetValue("Company", typeof(Hashtable)); _htcusdefine = (Hashtable)info.GetValue("CusDefine", typeof(Hashtable)); _htcusname = (Hashtable)info.GetValue("CusName", typeof(Hashtable)); _understate = ReportStates.Static; _username = info.GetString("UserName"); _year = info.GetInt32("Year"); _month = info.GetInt32("Month"); _day = info.GetInt32("Day"); _accountmonth = info.GetInt32("AccountMonth"); _accountyear = info.GetInt32("AccountYear"); _date = info.GetString("Date"); _time = info.GetString("Time"); }
private void bw_ProgressChanged(object sender, ProgressChangedEventArgs e) { ReportStates reportStates = (ReportStates)e.UserState; WorkerType workerType = reportStates.workerType; int progressPercentage = e.ProgressPercentage; switch (workerType) { case WorkerType.CountingFiles: pbInfoSession.Maximum = _nudEncryptTimesValue; pbInfoTotal.Maximum = progressPercentage * _nudEncryptTimesValue; labDragDropHints.Text = "Counting files: " + progressPercentage + " files found."; break; case WorkerType.Encryption: pbInfoSession.Maximum = reportStates.total; pbInfoSession.Value = reportStates.current; pbInfoTotal.Value += progressPercentage; labDragDropHints.Text = pbInfoTotal.Value + " files Encrypted..."; break; case WorkerType.Decryption: pbInfoTotal.Value += progressPercentage; labLayerDecrypted.Text = labLayerDecryptedString + pbInfoTotal.Value; break; case WorkerType.ASCII: pbInfoSession.Maximum = reportStates.total; pbInfoSession.Value = reportStates.current; pbInfoTotal.Value += progressPercentage; double d1 = ((double)pbInfoTotal.Value / pbInfoTotal.Maximum); int pec = (int)Math.Floor(d1 * 100); labDragDropHints.Text = pec + "% finished..."; break; default: break; } }
public ReportDataSource(ReportDataSource rds) { _functionname = rds.FunctionName; _understate = rds.UnderState; _datasources = (DataSources)rds.DataSources.Clone(); }
//browse public void Initialize(string reportid, ReportStates reportstate, object rawfilter, bool bshowui) { Initialize(reportid, reportstate, rawfilter, bshowui, "", _login.UserID, _login.LocaleID, _login.cAccId, null, null, _login.Year.ToString(), _login.Date); }
public DataHelper(U8LoginInfor login, ReportStates understate) : this(login) { _understate = understate; }