Beispiel #1
0
        /*   -----------------------------------------------------------   */

        public override void AccountList(AccountListInfo oInfo)
        {
            StringBuilder sb = new StringBuilder();

            oInfo.Dump(sb);
            sb.AppendFormat("\n");
            System.Console.Out.Write(sb);
        }
Beispiel #2
0
        private void SessionHolderOnAccounts(AccountListInfo info)
        {
            ProcessErrorCode(info.RpCode);
            //if (!ProcessErrorCode(info.RpCode))
            //	return;

            foreach (var account in info.Accounts)
            {
                ProcessAccount(account);
            }
        }
    /// <summary>
    /// Sets the dialog parameters to the context.
    /// </summary>
    private void SetDialogParameters(bool allData)
    {
        string condition = allData ? SqlHelperClass.AddWhereCondition(gridElem.WhereCondition, gridElem.WhereClause) : SqlHelperClass.GetWhereCondition("AccountID", gridElem.SelectedItems);

        Hashtable parameters = new Hashtable();

        parameters["MergedAccounts"] = new AccountListInfo().Generalized.GetData(null, condition, null, -1, null, false);
        parameters["ParentAccount"]  = Account;
        parameters["issitemanager"]  = ContactHelper.IsSiteManager;

        WindowHelper.Add(Identifier, parameters);
    }
Beispiel #4
0
    /// <summary>
    /// Sets the dialog parameters to the context.
    /// </summary>
    private void SetDialogParameters(bool allData)
    {
        var selectedItems = gridElem.SelectedItems.Select(item => item.ToInteger(0)).Where(id => id != 0).ToList();

        string condition = allData ? SqlHelper.AddWhereCondition(gridElem.WhereCondition, gridElem.WhereClause) : SqlHelper.GetWhereCondition("AccountID", selectedItems);

        Hashtable parameters = new Hashtable();

        parameters["MergedAccounts"] = new AccountListInfo().Generalized.GetData(null, condition, null, -1, null, false);
        parameters["ParentAccount"]  = Account;
        parameters["issitemanager"]  = ContactHelper.IsSiteManager;

        WindowHelper.Add(Identifier.ToString(), parameters);
    }
Beispiel #5
0
        /*   -----------------------------------------------------------   */



        public override void AccountList(AccountListInfo oInfo)
        {
            StringBuilder sb = new StringBuilder();

            oInfo.Dump(sb);
            sb.AppendFormat("\n");
            debug(sb);
            PRI_bGotAccounts = true;
            if (oInfo.Accounts.Count > 0)
            {
                PRI_oAccount = new AccountInfo(oInfo.Accounts[0].FcmId,
                                               oInfo.Accounts[0].IbId,
                                               oInfo.Accounts[0].AccountId);
            }
        }
    /// <summary>
    /// Sets the dialog parameters to the context.
    /// </summary>
    private void SetDialogParameters(bool mergeAll)
    {
        Hashtable parameters = new Hashtable();

        DataSet ds;

        if (mergeAll)
        {
            ds = new AccountListInfo().Generalized.GetData(null, gridElem.WhereCondition, null, -1, null, false);
        }
        else
        {
            ds = new AccountListInfo().Generalized.GetData(null, SqlHelper.GetWhereCondition("AccountID", gridElem.SelectedItems), null, -1, null, false);
        }

        parameters["MergedAccounts"] = ds;
        parameters["ParentAccount"]  = Account;
        parameters["issitemanager"]  = ContactHelper.IsSiteManager;
        WindowHelper.Add(Identifier.ToString(), parameters);
    }
    /// <summary>
    /// Sets the dialog parameters to the context.
    /// </summary>
    private void SetDialogParameters(bool mergeAll)
    {
        Hashtable parameters = new Hashtable();
        DataSet   ds         = null;

        if (mergeAll)
        {
            ds = new AccountListInfo().Generalized.GetData(null, gridElem.WhereCondition, null, -1, null, false);
        }
        else
        {
            string[] array = new string[gridElem.SelectedItems.Count];
            gridElem.SelectedItems.CopyTo(array);
            ds = new AccountListInfo().Generalized.GetData(null, SqlHelperClass.GetWhereCondition("AccountID", array), null, -1, null, false);
        }

        parameters["MergedAccounts"] = ds;
        parameters["ParentAccount"]  = this.Account;
        parameters["issitemanager"]  = ContactHelper.IsSiteManager;
        WindowHelper.Add(Identificator, parameters);
    }
    /// <summary>
    /// Sets the dialog parameters to the context.
    /// </summary>
    private void SetDialogParameters(bool mergeAll)
    {
        Hashtable parameters = new Hashtable();
        DataSet ds = null;
        if (mergeAll)
        {
            ds = new AccountListInfo().Generalized.GetData(null, gridElem.WhereCondition, null, -1, null, false);
        }
        else
        {
            string[] array = new string[gridElem.SelectedItems.Count];
            gridElem.SelectedItems.CopyTo(array);
            ds = new AccountListInfo().Generalized.GetData(null, SqlHelper.GetWhereCondition("AccountID", array), null, -1, null, false);
        }

        parameters["MergedAccounts"] = ds;
        parameters["ParentAccount"] = Account;
        parameters["issitemanager"] = ContactHelper.IsSiteManager;
        WindowHelper.Add(Identifier.ToString(), parameters);
    }
			public override void AccountList(AccountListInfo info)
			{
				_client.Accounts.WithDump(_receiver).WithError(TransactionError).SafeInvoke(info);
			}
    /// <summary>
    /// Sets the dialog parameters to the context.
    /// </summary>
    private void SetDialogParameters(bool allData)
    {
        var selectedItems = gridElem.SelectedItems.Select(item => item.ToInteger(0)).Where(id => id != 0).ToList();

        string condition = allData ? SqlHelper.AddWhereCondition(gridElem.WhereCondition, gridElem.WhereClause) : SqlHelper.GetWhereCondition("AccountID", selectedItems);

        Hashtable parameters = new Hashtable();
        parameters["MergedAccounts"] = new AccountListInfo().Generalized.GetData(null, condition, null, -1, null, false);
        parameters["ParentAccount"] = Account;
        parameters["issitemanager"] = ContactHelper.IsSiteManager;

        WindowHelper.Add(Identifier.ToString(), parameters);
    }
Beispiel #11
0
          /*   -----------------------------------------------------------   */

          public override void AccountList(AccountListInfo oInfo)
               {
               StringBuilder sb = new StringBuilder();
               oInfo.Dump(sb);
               sb.AppendFormat("\n");
               System.Console.Out.Write(sb);
               }
		private void SessionHolderOnAccounts(AccountListInfo info)
		{
			ProcessErrorCode(info.RpCode);
			//if (!ProcessErrorCode(info.RpCode))
			//	return;

			foreach (var account in info.Accounts)
			{
				ProcessAccount(account);
			}
		}
Beispiel #13
0
          /*   -----------------------------------------------------------   */

        
          

          public override void AccountList(AccountListInfo oInfo)
               {
               StringBuilder sb = new StringBuilder();
               oInfo.Dump(sb);
               sb.AppendFormat("\n");
               debug(sb);
              PRI_bGotAccounts = true;
              if (oInfo.Accounts.Count > 0)
                    {
                    PRI_oAccount = new AccountInfo(oInfo.Accounts[0].FcmId,
                                                   oInfo.Accounts[0].IbId,
                                                   oInfo.Accounts[0].AccountId);
                    }
               
               }
 public override void AccountList(AccountListInfo info)
 {
     _client.Accounts.WithDump(_receiver).WithError(TransactionError).SafeInvoke(info);
 }
    /// <summary>
    /// Sets the dialog parameters to the context.
    /// </summary>
    private void SetDialogParameters(bool allData)
    {
        string condition = allData ? SqlHelperClass.AddWhereCondition(gridElem.WhereCondition, gridElem.WhereClause) : SqlHelperClass.GetWhereCondition("AccountID", gridElem.SelectedItems);

        Hashtable parameters = new Hashtable();
        parameters["MergedAccounts"] = new AccountListInfo().Generalized.GetData(null, condition, null, -1, null, false);
        parameters["ParentAccount"] = Account;
        parameters["issitemanager"] = ContactHelper.IsSiteManager;

        WindowHelper.Add(Identifier, parameters);
    }