コード例 #1
0
ファイル: Form3.cs プロジェクト: jetoutman/Pms
 private void btnPay_Click(object sender, EventArgs e)
 {
     string cardNo = txtCardNo.Text.Trim();
     string password = txtPassword.Text.Trim();
     string shopId = txtShopId.Text.Trim();
     string posId = txtPosId.Text.Trim();
     string cashierId = txtCashierId.Text.Trim();
     string payValue = txtPayValue.Text.Trim();
     string owenerId = txtOwner.Text.Trim();
     string cdSeq = txtCdseq.Text.Trim();
     string date = DateTime.Now.ToString("YYYYMMdd");
     string time = DateTime.Now.ToString("hhmmss");
     Header negativePayHeader = new NegativePayHeader(cardNo, password, shopId, posId, cashierId, date, time, payValue, owenerId, cdSeq);
     CardConn cardCon = new CardConn();
        // textBox1.Text = cardCon.NegativePayCard(negativePayHeader);
 }
コード例 #2
0
 private void btnPay_Click(object sender, EventArgs e)
 {
     string        cardNo            = txtCardNo.Text.Trim();
     string        password          = txtPassword.Text.Trim();
     string        shopId            = txtShopId.Text.Trim();
     string        posId             = txtPosId.Text.Trim();
     string        cashierId         = txtCashierId.Text.Trim();
     string        payValue          = txtPayValue.Text.Trim();
     string        owenerId          = txtOwner.Text.Trim();
     string        cdSeq             = txtCdseq.Text.Trim();
     string        date              = DateTime.Now.ToString("YYYYMMdd");
     string        time              = DateTime.Now.ToString("hhmmss");
     Header        negativePayHeader = new NegativePayHeader(cardNo, password, shopId, posId, cashierId, date, time, payValue, owenerId, cdSeq);
     CardConn      cardCon           = new CardConn();
     ProcessResult proccessResult    = cardCon.NegativePayCard(negativePayHeader);
 }