diff --git a/Base/Controller/FCommon.cs b/Base/Controller/FCommon.cs index 926028f..6e1f068 100644 --- a/Base/Controller/FCommon.cs +++ b/Base/Controller/FCommon.cs @@ -275,14 +275,19 @@ namespace NP.Base.Controllers } if (!string.IsNullOrEmpty(Request["cmisno"])) ppllog.cmisno = Convert.ToInt64(Request["cmisno"]); + if (!string.IsNullOrEmpty(Request["isrebate"])) ppllog.isrebate = Convert.ToInt32(Request["isrebate"]); - if (!string.IsNullOrEmpty(Request["rbankname"])) - ppllog.rbankname = Request["rbankname"].ToString(); - if (!string.IsNullOrEmpty(Request["rbankacc"])) - ppllog.rbankacc = Request["rbankacc"].ToString(); - if (!string.IsNullOrEmpty(Request["rbankowner"])) - ppllog.rbankowner = Request["rbankowner"].ToString(); + + if (!string.IsNullOrEmpty(Request["isrebate"]) && Convert.ToInt32(Request["isrebate"]) == 1) + { + if (!string.IsNullOrEmpty(Request["rbankname"])) + ppllog.rbankname = Request["rbankname"].ToString(); + if (!string.IsNullOrEmpty(Request["rbankacc"])) + ppllog.rbankacc = Request["rbankacc"].ToString(); + if (!string.IsNullOrEmpty(Request["rbankowner"])) + ppllog.rbankowner = Request["rbankowner"].ToString(); + } if (!string.IsNullOrEmpty(Request["isaccommodation"])) ppllog.isaccommodation = Convert.ToInt32(Request["isaccommodation"].ToString()); diff --git a/FO/Views/Course/ApplyEdu.cshtml b/FO/Views/Course/ApplyEdu.cshtml index b3b0f08..61aaa68 100644 --- a/FO/Views/Course/ApplyEdu.cshtml +++ b/FO/Views/Course/ApplyEdu.cshtml @@ -87,19 +87,15 @@ @if (Model.CM.cshape == 1) { -