From 0adb1764be5e72e64fc76986e458d0fc6750f4e6 Mon Sep 17 00:00:00 2001 From: hyunho Date: Thu, 18 Mar 2021 02:25:04 +0000 Subject: [PATCH] --- BO/BO.csproj | 1 + BO/Controllers/croomController.cs | 30 +++++++ BO/Views/croom/asrpop.cshtml | 131 ++++++++++++++++++++++++++++++ BO/Views/croom/cmlects.cshtml | 27 ++++-- Dao/MyBatis/Maps/Lect.xml | 7 +- Model/CM.cs | 1 + Model/VMCM.cs | 1 + 7 files changed, 192 insertions(+), 6 deletions(-) create mode 100644 BO/Views/croom/asrpop.cshtml diff --git a/BO/BO.csproj b/BO/BO.csproj index 8a80240..80630a5 100644 --- a/BO/BO.csproj +++ b/BO/BO.csproj @@ -673,6 +673,7 @@ + diff --git a/BO/Controllers/croomController.cs b/BO/Controllers/croomController.cs index 0483142..382ec64 100644 --- a/BO/Controllers/croomController.cs +++ b/BO/Controllers/croomController.cs @@ -189,8 +189,38 @@ namespace NP.BO.Controllers vm.CM = Dao.Get("cm.cm", new System.Collections.Hashtable() { { "cmno", vm.intval } }).First(); ht.Remove("cmno"); ht.Add("cmno", vm.CM.cmno); + ht.Add("searchtext", vm.addstringval5); vm.Lects = Dao.Get("lect.lects", ht); } + + return View(vm); + } + public ActionResult asrpop(VMCM vm) + { + vm.FileList = new List() { }; + vm.Assign = new Assign() { isjoin = 1, status = 1 }; + if (vm.intval > 0) + { + vm.Assign = Dao.Get("users.assigns2", new System.Collections.Hashtable() { { "asno", vm.intval }, { "excel1", ",a.post" }, { "orderby", "a.asname" } }).First(); + LogSet(new ActLog() { logtype = 50, logtarget = 31, logdata = vm.Assign.asname, userno = vm.Assign.asno, uno = SUserInfo.UserNo, uip = GetUserIP() }); + var fnos = ""; + if ((vm.Assign.fgnobno ?? 0) > 0) + { + fnos += vm.Assign.fgnobno.Value.ToString(); + } + if ((vm.Assign.fgnobank ?? 0) > 0) + { + fnos += "," + vm.Assign.fgnobank.Value.ToString(); + } + if (fnos != "") + { + vm.FileList = GetFiles(fnos.StartsWith(",") ? fnos.Substring(1) : fnos); + } + } + else + { + vm.Assign.ascode = Dao.Get("users.assign.newascode", 1).First(); + } return View(vm); } public ActionResult cmstandbylects(VMCM vm) diff --git a/BO/Views/croom/asrpop.cshtml b/BO/Views/croom/asrpop.cshtml new file mode 100644 index 0000000..0907492 --- /dev/null +++ b/BO/Views/croom/asrpop.cshtml @@ -0,0 +1,131 @@ +@model NP.Model.VMCM +@{ + Layout = "~/Views/Shared/_PopupLayout.cshtml"; +} +
+
고객사
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @Html.HiddenFor(m => m.intval) + @Html.HiddenFor(m => m.Assign.asno) + +
회원번호 + @if (!Model.IsAdmin) + { + @Html.HiddenFor(m => m.Assign.ascode)@Model.Assign.ascode + } + else + { + @Html.TextBoxFor(m => m.Assign.ascode, new { @class = "form-control int nocomma text-center" }) + } +
법인명@Html.TextBoxFor(m => m.Assign.asname, new { @class = "form-control", @maxlength = "100" })대표자@Html.TextBoxFor(m => m.Assign.ceoname, new { @class = "form-control", @maxlength = "50" })
사업자등록번호@Html.TextBoxFor(m => m.Assign.brno, new { @class = "form-control int nocomma", @maxlength = "10" })고용보험관리번호@Html.TextBoxFor(m => m.Assign.eino, new { @class = "form-control int nocomma", @maxlength = "13" })
업태@Html.TextBoxFor(m => m.Assign.btype, new { @class = "form-control", @maxlength = "50" })종목@Html.TextBoxFor(m => m.Assign.bkind, new { @class = "form-control", @maxlength = "50" })
주소 + @Html.TextBoxFor(m => m.Assign.post, new { @readonly = "readonly", @style = "width: 70px; background-color: #ddd;", @class = "postno form-control disp-init" }) 주소찾기(클릭 후 상단검색) +
@Html.TextBoxFor(m => m.Assign.address1, new { @readonly = "readonly", @style = "background-color: #ddd; width: 300px;", @class = "postadr form-control disp-init", @placeholder = "주소" }) + @Html.TextBoxFor(m => m.Assign.address2, new { @class = "postadrsub form-control disp-init", @placeholder = "상세주소", @style = "width: 400px;" }) +
사업자등록증 + @Html.Partial("./Partial/File", Model.FileList.Where(w=>w.fgno==Model.Assign.fgnobno).ToList(), new ViewDataDictionary { + { "name", "Assign.fgnobno" },{"value", Model.Assign.fgnobno },{ "fname", "fgnobno"}, + {"width", null },{"table", "assign" },{ "column", "fgnobno"},{"filecount", 1 }, + {"readmode", 0 },{"hidemode", 0 }, + { "isimage", 0 },{ "imageid", "" },{ "dftsrc", "/img/common/profile_sample.jpg" }, + { "fileext", "png,jpg,gif,pdf" }, { "loginfo",Model.Assign.asno+"|9"}}) +
기본담당자명@Html.TextBoxFor(m => m.Assign.mname, new { @class = "form-control", @maxlength = "50" })
기본담당자연락처@Html.TextBoxFor(m => m.Assign.mphone, new { @class = "form-control mobilefmt nocomma", @data_zero = "1", @maxlength = "13" })
계산서이메일@Html.TextBoxFor(m => m.Assign.taxemail, new { @class = "form-control", @maxlength = "50" })
상태 + @Html.Partial("./Partial/Radio", null, new ViewDataDictionary() { { "valuetext", "1:가입;2:탈퇴;9:정지" }, { "checked", Model.Assign.status }, { "name", "Assign.status" } }) +
+
+ +
+
+ 저장 +
+ +@section scriptsHeader{ + @Html.Partial("./Partial/ScriptPost") + @Html.Partial("./Partial/FileScript") + @Html.Partial("./Partial/ScriptDate") +} + +@section scripts{ + +} diff --git a/BO/Views/croom/cmlects.cshtml b/BO/Views/croom/cmlects.cshtml index 8097972..1c40000 100644 --- a/BO/Views/croom/cmlects.cshtml +++ b/BO/Views/croom/cmlects.cshtml @@ -21,11 +21,11 @@ else { - / (@(Model.CM.studydays)일) + / (@(Model.CM.studydays)일) } - +
@@ -58,6 +58,9 @@
@Html.Partial("./Partial/Select", null, new ViewDataDictionary { { "valuetext", ":-수강상태;3:신청중;1:수강중;8:수강취소" }, { "name", "addstringval" }, { "selected", Model.addstringval }, { "onchange", "submit()" } }) @Html.Partial("./Partial/Select", null, new ViewDataDictionary { { "valuetext", ":-결제상태;0:결제대기;1:입금대기;2:결제완료;3:결제취소;4:환불신청;5:부분환불;6:전액환불" }, { "name", "addstringval2" }, { "selected", Model.addstringval2 }, { "onchange", "submit()" } }) + + @Html.Partial("./Partial/Text", Model.addstringval5, Helpers.DicText(new NP.Model.TextDic() { Name = "addstringval5", Value = Model.addstringval5, PH = "ID 또는 이름을 입력하세요.", CssClass = "", Style = "width:250px; display:inline-block;" })) + 검색    @Html.Partial("./Partial/sembtns", "#tbody1;0;1;0;0;0;교육생안내")    @@ -86,7 +89,7 @@ @d.rnorvt - @d.asname + @d.asname @(d.cnoname)(@d.cnoid) @d.username@Html.Raw(string.IsNullOrEmpty(d.fileurl) ? "" : (" ")) @d.cdtymd @@ -151,6 +154,9 @@ 선택완료
+ + + @section styles{