Ejemplo n.º 1
0
        public static bool Correct(string refNo, string payType, string oriTxnId, decimal amount, out CorrectResponseModel response)
        {
            bool result;

            try
            {
                string text = new CorrectService
                {
                    payType     = payType,
                    refNo       = refNo,
                    oriTxnId    = oriTxnId,
                    transAmount = int.Parse(amount.ToString())
                }.DefContent();
                response = null;
                bool flag = text != "无法查询该订单" && text != "冲正失败!";
                if (flag)
                {
                    result = false;
                }
                else
                {
                    response = JsonHelper.JsonDeserialize <List <CorrectResponseModel> >(text)[0];
                    result   = true;
                }
            }
            catch
            {
                response = null;
                result   = false;
            }
            return(result);
        }
Ejemplo n.º 2
0
        public Dictionary <string, string> MenuGetPatientInfo()
        {
            string name = string.Empty, IIN = string.Empty;

            Dictionary <string, string> patient = new Dictionary <string, string>();

            Console.Write("Введите Ваше ФИО: ");
            name = Console.ReadLine();

            Console.Write("Введите Ваш ИИН (12 символов): ");
            IIN = Console.ReadLine();

            if (CorrectService.CorrectIIN(IIN))
            {
                patient.Add("name", name);
                patient.Add("IIN", IIN);
            }

            return(patient);
        }
Ejemplo n.º 3
0
 public HomeController(CorrectService _correctService, WorkBaseService _workBaseService)
 {
     this.correctService  = _correctService;
     this.workBaseService = _workBaseService;
 }
Ejemplo n.º 4
0
 public HomeController(CorrectService _correctService)
 {
     this.correctService = _correctService;
 }