コード例 #1
0
ファイル: Form1.cs プロジェクト: JinNamKim/API_TEST
        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;
            }
        }
コード例 #2
0
ファイル: Form1.cs プロジェクト: JinNamKim/API_TEST
        private void button16_Click(object sender, EventArgs e)
        {
            //AJWebDatabase.AJ_Set_IP("192.10.60.92");       //사무실
            //AJWebDatabase.AJ_Set_IP("192.168.1.100");       //사무실
            //AJWebDatabase.AJ_Set_IP("112.216.153.186");         //테스트 서버
            //AJWebDatabase.AJ_Set_IP("uiwang1.iptime.org");    //의왕
            //AJWebDatabase.AJ_Set_IP("ajkd.asuscomm.com");    //검단 오류

            //AJWebDatabase.AJ_Set_IP("192.10.60.100");       //

            //AJWebDatabase.AJ_Set_IP("192.10.60.96");         //사무실
            //AJWebDatabase.AJ_Set_IP("ajautohub.asuscomm.com");         //오토허브
            //AJWebDatabase.AJ_Set_IP("ajpuravida.asuscomm.com");         //문정 프라비다

            AJWebDatabase.AJ_Set_IP(tb_IP.Text);       //테스트

            AJWebDatabase.AJ_Set_PORT(tb_PORT.Text);
            //AJWebDatabase.AJ_Set_PORT("8080");

            //AJParkLib.AJCommon.CommonClass.SendLog("test");
        }
コード例 #3
0
ファイル: Form1.cs プロジェクト: JinNamKim/API_TEST
 private void button32_Click(object sender, EventArgs e)
 {
     AJWebDatabase.AJ_Set_IP(tb_IP.Text);       //테스트
     AJWebDatabase.AJ_Set_PORT("2080");
 }