Esempio n. 1
0
        private void button33_Click(object sender, EventArgs e)
        {
            AJWebDatabase.AJ_Set_IP(tb_IP.Text);       //테스트
            AJWebDatabase.AJ_Set_PORT("2080");


            string[] my_time = tb_시간.Text.Split(':');

            AJ_RESPONSE_payment test_14 = new AJ_RESPONSE_payment();

            //test_14 = AJWebDatabase.temp_name_14(tb_차번.Text, /*new DateTime(2017, 4, 26, 11, 00, 00)*/DateTime.Now, Convert.ToInt32(tb_정산번호.Text), "c:\\enter_lpr_error.jpg", "n");    //테스트
            test_14 = AJWebDatabase.temp_name_14(tb_차번.Text, new DateTime(2019, 1, 3, Convert.ToInt32(my_time[0]), Convert.ToInt32(my_time[1]), Convert.ToInt32(my_time[2])), Convert.ToInt32(tb_정산번호.Text), "c:\\enter_lpr_error.jpg", "n");    //테스트

            //AJParkLib.AJWebdataClass.AJ_RESPONSE_payment fee_data = AJWebDatabase.temp_name_14(CurrentVehicleData.VehicleNumber, CurrentVehicleData.ExitPassTime, Convert.ToInt32(CommonVariable.DeviceNumber), CurrentVehicleData.ImagePath, "n");

            if (test_14.code == "0")
            {
                lb_응답.Text   = "응답 : 정상";
                lb_내용.Text   = "내용 : ";
                tb_요금.Text   = test_14.price;
                tb_할인요금.Text = test_14.discountPrice;

                tb_결과.Text = string.Format("{0:###,0}", Convert.ToInt32(test_14.price) - Convert.ToInt32(test_14.discountPrice));
            }
            else
            {
                lb_응답.Text = "응답 : 에러";
                lb_내용.Text = test_14.errmsg;
            }
        }
Esempio n. 2
0
        private void button13_Click(object sender, EventArgs e)
        {
            AJ_RESPONSE_payment test_14 = new AJ_RESPONSE_payment();

            //test_14 = AJWebDatabase.temp_name_14("12가1239", DateTime.Now);
            //test_14 = AJWebDatabase.temp_name_14("12가1239", new DateTime(2017, 1, 2, 7, 30, 1));
            //test_14 = AJWebDatabase.temp_name_14("12가1239", "c:\\123123.jpg", new DateTime(2017, 1, 2, 7, 30, 1), 1, "n");
            //test_14 = AJWebDatabase.temp_name_14("62호7239", /*new DateTime(2017, 1, 2, 7, 30, 1)*/DateTime.Now, 1, "n");    //0.8버전 변경(이미지 리퀘스트 삭제)
            //test_14 = AJWebDatabase.temp_name_14(1, "62호7239", /*new DateTime(2017, 1, 2, 7, 30, 1)*/DateTime.Now, 1, "n");    //1.1버전 변경(localParkingId 파라미터 추가)
            //test_14 = AJWebDatabase.temp_name_14(1, "62호7239", /*new DateTime(2017, 1, 2, 7, 30, 1)*/DateTime.Now, 1, "c:\\123123.jpg", "n");    //1.3버전 변경(이미지 파라미터 추가)
            //test_14 = AJWebDatabase.temp_name_14("12가5479", /*new DateTime(2017, 1, 2, 7, 30, 1)*/DateTime.Now, 1, "c:\\123123.jpg", "n");    //대리님이 파라미터 위치 변경
            test_14 = AJWebDatabase.temp_name_14("22테2223", /*new DateTime(2017, 4, 26, 11, 00, 00)*/ new DateTime(2020, 6, 20, 17, 00, 1), 3, "c:\\123123.jpg", "n");    //테스트


            AJ_RESPONSE_payment asdad = test_14;
        }