Example #1
0
        /// <summary>
        /// Test new MakeRequest
        /// </summary>
        public void Run()
        {
            state      = 0;
            phone      = "27026503011810";
            account    = "938744";
            attributes = new AttributesCollection();
            attributes.Add("id2", "9521822210");
            int r = MakeRequest(0);

            if (r == 0)
            {
                Console.WriteLine(stRequest);
            }
            else
            {
                Console.WriteLine($"Err = {r}");
            }
        }
Example #2
0
        public GWXsolllaRequest(GWRequest src) : base(src)
        {
            provider = src.Provider;

            templateName = src.TemplateName;

            tid            = src.Tid;
            transaction    = src.Transaction;
            terminal       = src.Terminal;
            terminalType   = src.TerminalType;
            realTerminalId = src.RealTerminalId;
            service        = src.Service;
            gateway        = src.Gateway;
            operdate       = src.Operdate;
            pcdate         = src.Pcdate;
            terminalDate   = src.TerminalDate;
            tz             = src.Tz;
            transaction    = src.Transaction;
            checkNumber    = src.CheckNumber;
            oid            = src.Oid;
            cur            = src.Cur;

            session = Properties.Settings.Default.SessionPrefix + tid.ToString();
            // session = src.Session;

            state = src.State;

            lastcode = src.Lastcode;
            lastdesc = src.Lastdesc;
            times    = src.Times;

            phone        = src.Phone;
            phoneParam   = src.PhoneParam;
            account      = src.Account;
            accountParam = src.AccountParam;
            card         = src.Card;

            amount    = src.Amount;
            amountAll = src.AmountAll;
            number    = src.Number;
            orgname   = src.Orgname;
            docnum    = src.Docnum;
            docdate   = src.Docdate;
            purpose   = src.Purpose;
            fio       = src.Fio;
            address   = src.Address;
            agree     = 1;
            contact   = src.Contact;
            inn       = src.Inn;
            comment   = src.Comment;

            acceptdate = src.Acceptdate;
            acceptCode = src.AcceptCode;
            outtid     = src.Outtid;
            addinfo    = src.AddInfo;
            errMsg     = src.ErrMsg;
            opname     = src.Opname;
            opcode     = src.Opcode;

            pause = src.Pause;

            kpp      = src.Kpp;
            payerInn = src.PayerInn;
            ben      = src.Ben;
            bik      = src.Bik;
            tax      = src.Tax;
            kbk      = src.KBK;
            okato    = src.OKATO;
            payType  = src.PayType;
            reason   = src.Reason;

            statusType = src.StatusType;
            startDate  = src.StartDate;
            endDate    = src.EndDate;

            attributes = new AttributesCollection();
            attributes.Add(src.Attributes);


            InitializeComponents();
        }
 public static AttributesCollection GetAll() {
     resourceSchema.Dal.Attributes dbo = null;
     try {
         dbo = new resourceSchema.Dal.Attributes();
         System.Data.DataSet ds = dbo.Attributes_Select_All();
         AttributesCollection collection = new AttributesCollection();
         if (GlobalTools.IsSafeDataSet(ds)) {
             for (int i = 0; (i < ds.Tables[0].Rows.Count); i = (i + 1)) {
                 Attributes obj = new Attributes();
                 obj.Fill(ds.Tables[0].Rows[i]);
                 if ((obj != null)) {
                     collection.Add(obj);
                 }
             }
         }
         return collection;
     }
     catch (System.Exception ) {
         throw;
     }
     finally {
         if ((dbo != null)) {
             dbo.Dispose();
         }
     }
 }