Exemple #1
0
        private void ocmCreate_Click(object sender, EventArgs e)
        {
            oCallAPI = new cCallAPI();

            try
            {
                cmlCouponRes oCouponRes = new cmlCouponRes();
                cmlCouponReq oCouponReq = new cmlCouponReq();

                oCouponReq.tCML_WhoUpd  = otbWhoUpd.Text;
                oCouponReq.tCML_WhoIns  = otbWhoIns.Text;
                oCouponReq.tCML_StmCode = otbStmCode.Text;
                oCouponReq.tCML_TmnNum  = otbTmnNum.Text;
                oCouponReq.tCML_CpnCode = otbCpnCode.Text;
                oCouponReq.tCML_CpnExp  = otbCpnExp.Text;
                oCouponReq.tCML_CpnAmt  = otbCpnAmt.Text;
                // otbUrl.Text = "http://172.16.30.151:9000/api/coupon/Create";
                otbUrl.Text = "http://172.16.30.188:90/api/coupon/Create";
                // otbResult.Text = oCallAPI.C_SETtCreateCoupon(otbUrl.Text, oCouponReq, nW_TimeOut);
                otbResult.Text = oCallAPI.C_SETtCreateCoupon(otbUrl.Text, otbWhoIns.Text, otbWhoIns.Text, otbStmCode.Text, otbTmnNum.Text, otbCpnCode.Text, otbCpnExp.Text, otbCpnAmt.Text, nW_TimeOut);
            }
            catch (Exception oEx)
            {
                MessageBox.Show("wMain : ocmCreate_Click//" + oEx.Message);
            }
        }