Exemplo n.º 1
0
        public JsonResult AuthorizeOutgoingTT([FromQuery] int NIK, [FromQuery] string JenisProses, [FromQuery] bool isProcess, [FromQuery] string BillId, [FromQuery] string RemittanceNumber)
        {
            bool   blnResult = false;
            string ErrMsg    = "";

            string[] selectedBillId;
            int      intBillId = 0;

            BillId         = (BillId + "***").Replace("|***", "");
            selectedBillId = BillId.Split('|');

            foreach (string s in selectedBillId)
            {
                int.TryParse(s, out intBillId);
                blnResult = cls.ReksaAuthorizeOutgoingTT(NIK, JenisProses, isProcess, intBillId, RemittanceNumber, out ErrMsg);
                ErrMsg    = ErrMsg.Replace("ReksaAuthorizeOutgoingTT - Core .Net SqlClient Data Provider\n", "");
            }
            return(Json(new { blnResult, ErrMsg }));
        }