This commit is contained in:
parent
bad900c3b9
commit
0adb1764be
|
|
@ -673,6 +673,7 @@
|
|||
<Content Include="Views\croom\cmstandbylects.cshtml" />
|
||||
<Content Include="Views\croom\Documents.cshtml" />
|
||||
<Content Include="Views\croom\documentspast.cshtml" />
|
||||
<Content Include="Views\croom\asrpop.cshtml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="App_Data\" />
|
||||
|
|
|
|||
|
|
@ -189,8 +189,38 @@ namespace NP.BO.Controllers
|
|||
vm.CM = Dao.Get<CM>("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>("lect.lects", ht);
|
||||
}
|
||||
|
||||
return View(vm);
|
||||
}
|
||||
public ActionResult asrpop(VMCM vm)
|
||||
{
|
||||
vm.FileList = new List<File>() { };
|
||||
vm.Assign = new Assign() { isjoin = 1, status = 1 };
|
||||
if (vm.intval > 0)
|
||||
{
|
||||
vm.Assign = Dao.Get<Assign>("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<int>("users.assign.newascode", 1).First();
|
||||
}
|
||||
return View(vm);
|
||||
}
|
||||
public ActionResult cmstandbylects(VMCM vm)
|
||||
|
|
|
|||
|
|
@ -0,0 +1,131 @@
|
|||
@model NP.Model.VMCM
|
||||
@{
|
||||
Layout = "~/Views/Shared/_PopupLayout.cshtml";
|
||||
}
|
||||
<section class="panel panel-default">
|
||||
<header class="panel-heading"><strong><i class="fa fa-bars"></i> 고객사<span class=""></span></strong></header>
|
||||
<form id="mform" method="post">
|
||||
<table class="regtable" style="margin-top: 0;">
|
||||
<colgroup>
|
||||
<col width="140" />
|
||||
<col width="450" />
|
||||
<col width="140" />
|
||||
<col />
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr style="display:none">
|
||||
<th>회원번호</th>
|
||||
<td>
|
||||
@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" })
|
||||
}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>법인명</th>
|
||||
<td>@Html.TextBoxFor(m => m.Assign.asname, new { @class = "form-control", @maxlength = "100" })</td>
|
||||
<th>대표자</th>
|
||||
<td>@Html.TextBoxFor(m => m.Assign.ceoname, new { @class = "form-control", @maxlength = "50" })</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>사업자등록번호</th>
|
||||
<td>@Html.TextBoxFor(m => m.Assign.brno, new { @class = "form-control int nocomma", @maxlength = "10" })</td>
|
||||
<th>고용보험관리번호</th>
|
||||
<td>@Html.TextBoxFor(m => m.Assign.eino, new { @class = "form-control int nocomma", @maxlength = "13" })</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>업태</th>
|
||||
<td>@Html.TextBoxFor(m => m.Assign.btype, new { @class = "form-control", @maxlength = "50" })</td>
|
||||
<th>종목</th>
|
||||
<td>@Html.TextBoxFor(m => m.Assign.bkind, new { @class = "form-control", @maxlength = "50" })</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>주소</th>
|
||||
<td colspan="3" class="postbox">
|
||||
@Html.TextBoxFor(m => m.Assign.post, new { @readonly = "readonly", @style = "width: 70px; background-color: #ddd;", @class = "postno form-control disp-init" }) <a href="#" onclick="javascript: getpost2(this);" title="주소찾기"><i class="fa fa-map-marker" style="font-size: 13px;"></i> 주소찾기(클릭 후 상단검색)</a>
|
||||
<br />@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;" })
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>사업자등록증</th>
|
||||
<td colspan="3">
|
||||
@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"}})
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>기본담당자명</th>
|
||||
<td colspan="3">@Html.TextBoxFor(m => m.Assign.mname, new { @class = "form-control", @maxlength = "50" })</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>기본담당자연락처</th>
|
||||
<td colspan="3">@Html.TextBoxFor(m => m.Assign.mphone, new { @class = "form-control mobilefmt nocomma", @data_zero = "1", @maxlength = "13" })</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>계산서이메일</th>
|
||||
<td colspan="3">@Html.TextBoxFor(m => m.Assign.taxemail, new { @class = "form-control", @maxlength = "50" })</td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<th>상태</th>
|
||||
<td colspan="3">
|
||||
@Html.Partial("./Partial/Radio", null, new ViewDataDictionary() { { "valuetext", "1:가입;2:탈퇴;9:정지" }, { "checked", Model.Assign.status }, { "name", "Assign.status" } })
|
||||
</td>
|
||||
</tr>
|
||||
@Html.HiddenFor(m => m.intval)
|
||||
@Html.HiddenFor(m => m.Assign.asno)
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
</section>
|
||||
<div style="text-align:center" id="btnsaveasr">
|
||||
<a href="#" class="btn btn-primary" onclick="save();">저장</a>
|
||||
</div>
|
||||
|
||||
@section scriptsHeader{
|
||||
@Html.Partial("./Partial/ScriptPost")
|
||||
@Html.Partial("./Partial/FileScript")
|
||||
@Html.Partial("./Partial/ScriptDate")
|
||||
}
|
||||
|
||||
@section scripts{
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
});
|
||||
|
||||
function save() {
|
||||
setv("Assign_brno", val("Assign_brno").replace(/-/gi, ''));
|
||||
setv("Assign_grno", val("Assign_grno").replace(/-/gi, ''));
|
||||
if (check("Assign_asname", null, "법인명을 입력해주세요.")) { }
|
||||
else if (confirm("저장하시겠습니까?")) {
|
||||
capfileform("/acommon/assignsave", "mform", "cbsave");
|
||||
}
|
||||
}
|
||||
function cbsave() {
|
||||
if (capResult.code == 1000) {
|
||||
msgok(1, "", true);
|
||||
setTimeout(function () {
|
||||
location.reload();
|
||||
},800);
|
||||
} else if (capResult.code == 1) {
|
||||
focus("Assign_ascode");
|
||||
msg("이미 사용중인 회원번호입니다.");
|
||||
} else if (capResult.code == 2) {
|
||||
focus("Assign_brno");
|
||||
msg("이미 사용중인 사업자등록번호입니다.");
|
||||
}
|
||||
else { msgdev(); }
|
||||
}
|
||||
</script>
|
||||
}
|
||||
|
|
@ -21,11 +21,11 @@
|
|||
else
|
||||
{
|
||||
<span>
|
||||
/ (@(Model.CM.studydays)일)
|
||||
/ (@(Model.CM.studydays)일)
|
||||
</span>
|
||||
}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="line line-dashed line-lg pull-in"></div><div class="form-group">
|
||||
<label class="col-sm-4 col-md-2 control-label">제한인원</label>
|
||||
|
|
@ -58,6 +58,9 @@
|
|||
<div style="padding: 5px 20px; background-color: #fff;">
|
||||
@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;" }))
|
||||
<a href="#" class="btn btn-default" onclick="submit()" id="btnsearchtext">검색</a>
|
||||
|
||||
@Html.Partial("./Partial/sembtns", "#tbody1;0;1;0;0;0;교육생안내")
|
||||
|
||||
|
|
@ -86,7 +89,7 @@
|
|||
<tr>
|
||||
<td><input type="checkbox" class="autocheck" value="@d.lectno" data-userno="@d.userno" /></td>
|
||||
<td>@d.rnorvt</td>
|
||||
<td>@d.asname</td>
|
||||
<td class="link text-center"><a href="#" onclick="viewas(@d.asno);">@d.asname</a></td>
|
||||
<td>@(d.cnoname)(@d.cnoid)</td>
|
||||
<td class="link text-center"><a href="#" onclick="viewlect(this, @d.ustatus, @d.lectno, @d.fileno, '@d.fileurl', '@d.orgname', @d.status, @d.pstatus,@d.rstatus,'@string.Format("{0}:{1}:{2}:{3}:{4}:{5}:{6}:{7}:{8}:{9}:{10}:{11}:{12}",d.asname??"",d.username, d.userid??"", d.uduty??"", d.depart??"", d.email, d.telno, d.mobile,d.ckfcfyear,d.assignuser,d.edus,d.sdate==null?"":d.sdate.Value.ToString("yyyy-MM-dd"),d.edate==null?"":d.edate.Value.ToString("yyyy-MM-dd"))')">@d.username</a>@Html.Raw(string.IsNullOrEmpty(d.fileurl) ? "" : ("<a href=\"/aCommon/DownFile?fno=" + d.fileno + "&loginfo=\"> <i class=\"fa fa-paperclip\"></i></a>"))</td>
|
||||
<td>@d.cdtymd</td>
|
||||
|
|
@ -151,6 +154,9 @@
|
|||
<a href="#" class="btn btn-primary" onclick="updateScd();">선택완료</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
@section styles{
|
||||
<style type="text/css">
|
||||
#changelist {
|
||||
|
|
@ -176,13 +182,20 @@
|
|||
@section scriptsHeader{
|
||||
@Html.Partial("./Partial/semscript")
|
||||
@Html.Partial("./Partial/ScriptDate")
|
||||
@Html.Partial("./Partial/FileScript")
|
||||
@Html.Partial("./Partial/ScriptDate")
|
||||
|
||||
}
|
||||
@section scripts{
|
||||
<script>
|
||||
var selectedLectno;
|
||||
var selectedCmisno;
|
||||
$(document).ready(function () {
|
||||
|
||||
$(document).ready(function () {
|
||||
$("#addstringval5").on("keydown", function (e) {
|
||||
if (e.keyCode == 13) {
|
||||
submit();
|
||||
}
|
||||
});
|
||||
});
|
||||
function leave() {
|
||||
if ($("#tbody1 tr input.autocheck:checked").length < 1) {
|
||||
|
|
@ -401,5 +414,9 @@
|
|||
return;
|
||||
}
|
||||
}
|
||||
|
||||
function viewas(asno) {
|
||||
winopen("/croom/asrpop?intval=" + asno, 'asrpop', 1200, screen.height - 500);
|
||||
}
|
||||
</script>
|
||||
}
|
||||
|
|
|
|||
|
|
@ -153,7 +153,7 @@
|
|||
<select id="lect.lects" parameterClass="hashtable" resultClass="lect">
|
||||
select a.lectno,a.cdt,a.status,a.userno,a.oktime,a.cmisno
|
||||
,af.fileurl,af.fileno,af.orgname
|
||||
,f.asname
|
||||
,f.asname,e.asno
|
||||
,d.username cnoname,d.userid cnoid
|
||||
,e.username,e.status ustatus,e.depart,e.userid,e.uduty
|
||||
,e.kfcfyear,e.isassignuser,e.edus
|
||||
|
|
@ -190,6 +190,11 @@
|
|||
<isNotNull property="status" prepend="and">a.status=#status#</isNotNull>
|
||||
<isNotNull property="statusin" prepend="and">a.status in ($statusin$)</isNotNull>
|
||||
<isNotNull property="refundcall">and (rfd.rstatus = 0 and rfdi.rfdno is not null)</isNotNull>
|
||||
<isNotNull property="searchtext" prepend="and">
|
||||
(d.username like concat('%', #searchtext#,'%')
|
||||
or
|
||||
d.userid like concat('%', #searchtext#,'%'))
|
||||
</isNotNull>
|
||||
and (rfdi.rfdno is null or rfd.rfdno is not null)
|
||||
order by rno
|
||||
</select>
|
||||
|
|
|
|||
|
|
@ -950,6 +950,7 @@ namespace NP.Model
|
|||
}
|
||||
public String mobile { get; set; }
|
||||
public String asname { get; set; }
|
||||
public Int64 asno { get; set; }
|
||||
public int ustatus { get; set; }
|
||||
public String depart { get; set; }
|
||||
public String ccpositionname { get; set; }
|
||||
|
|
|
|||
|
|
@ -55,6 +55,7 @@ namespace NP.Model
|
|||
public ExamUserRenew ExamUserRenew { get; set; }
|
||||
public IList<ExamUserRenew> ExamUserRenews { get; set; }
|
||||
public IList<UserAuth> userauths { get; set; }
|
||||
public Assign Assign { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue