예제 #1
0
 public AddUserView(IFlexService service,string sessionId)
 {
     InitializeComponent();
     this._Service = service;
     this._SessionId = sessionId;
     this.DataContext = new UserModel();
 }
 public AccountLoadService(IFlexService service, string sessionID, SynchronizationContext sc, TopAccountGroupModel tagm, ObservableCollection<TopAccountGroupModel> accountGroupCol)
 {
     this._Service = service;
     this._SessionId = sessionID;
     this._SynchronizationContext = sc;
     this._TotalAccountGroupModel = tagm;
     this._AccountGroupCol = accountGroupCol;
 }
 public UpdateUserView(UserModel model,IFlexService service,string sessionID)
 {
     InitializeComponent();
     this._CurrentUser = new UserModel { ID = model.ID, LoginID = model.LoginID, Pwd = model.Pwd, LastModifiedDate = model.LastModifiedDate };
     this._Service = service;
     this._SessionId = sessionID;
     if (model.LoginID.ToLower() == "admin")
     {
         this.tbxName.IsEnabled = false;
     }
     this.DataContext = _CurrentUser;
 }
예제 #4
0
        public void Attach(IFlexService managerService, string sessionId)
        {
            lock (this._Lock)
            {
                this._ManagerService = managerService;
                this._SessionId = sessionId;

                if (this._AliveKeepThread == null)
                {
                    this._AliveKeepThread = new Thread(this.KeepAlive);
                    this._AliveKeepThread.IsBackground = true;
                    this._AliveKeepThread.Start();
                }
            }
        }
예제 #5
0
        public static void GeneratedContent(PLData[] data, FileStream fs, int startIndex, IFlexService service, string sessionId)
        {
            string voucherType = "HVHV";
            foreach (var item in data)
            {
                string line1 = MainWindowHelper.FormatString(voucherType, XmlProccessor.GetFormatString(startIndex.ToString(), false), item.TradeDay
                    , item.CustomerCode, item.TradeDay, item.TradeDay, item.CurrencyName,
                    Math.Abs(item.Amount), item.CurrencyRate, Math.Abs(item.Amount) * item.CurrencyRate, "D");
                MainWindowHelper.WriteToFile(line1, fs, false);

                string line2 = MainWindowHelper.FormatString(voucherType, XmlProccessor.GetFormatString(startIndex.ToString(), false), item.TradeDay,
                    item.AccountingCode, item.TradeDay, item.TradeDay, item.CurrencyName,
                    Math.Abs(item.Amount), item.CurrencyRate, Math.Abs(item.Amount) * item.CurrencyRate, "C");
                MainWindowHelper.WriteToFile(line2, fs, true);
                startIndex++;
            }

        }