public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { STATEMENTS_TYPE type = (STATEMENTS_TYPE)value; string str = string.Empty; switch (type) { case STATEMENTS_TYPE.MarketOrder: str = "订单报表"; break; case STATEMENTS_TYPE.PendingOrder: str = " 挂单报表"; break; case STATEMENTS_TYPE.Warehousing: str = "入库报表"; break; case STATEMENTS_TYPE.Chargeback: str = "平仓报表"; break; case STATEMENTS_TYPE.AdjustDeposit: str = "资金报表"; break; case STATEMENTS_TYPE.AccountBalance: str = "账户结余"; break; case STATEMENTS_TYPE.OrderTakeReport: str = "买涨交割单报表"; break; case STATEMENTS_TYPE.OrderBackReport: str = "买跌单报表"; break; case STATEMENTS_TYPE.OrderCheckReport: str = "买跌交割单报表"; break; case STATEMENTS_TYPE.JgjReport: str = "转金生金报表"; break; case STATEMENTS_TYPE.AgentDoDetail: str = "提货受理报表"; break; default: str = ""; break; } return(str); }
public StatementsRequestInformation( ) { StatementsType = STATEMENTS_TYPE.NULL; }
public ErrType GetExportStatementsWebAddrUser(string TradeAccount, string UserName, string TelPhone, string Broker, string orgid, string IsBroker, string loginID, DateTime startTime, DateTime endTime, STATEMENTS_TYPE type, out string webAddr) { webAddr = string.Empty; try { int int_type = (int)type; ReportForms report = _managerService.GetReportFormsUser(TradeAccount, UserName, TelPhone, Broker, orgid, IsBroker, startTime, endTime, int_type, loginID); if (!report.Result) return new ErrType(ERR.SERVICE, report.Desc); webAddr = report.ReportAddr; return GeneralErr.Success; } catch (TimeoutException te) { FileLog.WriteLog("", Assembly.GetExecutingAssembly().GetName().Name, this.GetType().Name, new StackTrace().GetFrame(0).GetMethod().Name, te.Message); return new ErrType(ERR.EXEPTION, ErrorText.TimeoutException); } catch (Exception ex) { FileLog.WriteLog("", Assembly.GetExecutingAssembly().GetName().Name, this.GetType().Name, new StackTrace().GetFrame(0).GetMethod().Name, ex.Message); return new ErrType(ERR.EXEPTION, ErrorText.GetExportStatementsWebAddr); } }
public StatementsRequestInformation( ) { StatementsType = STATEMENTS_TYPE.NULL; }