From 558dae4a18d393ac38daa43a354e8bc9a22e4e26 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期四, 02 十一月 2023 16:52:59 +0800
Subject: [PATCH] 班次安排座位
---
zhengcaioa/zhengcaioa/Views/AdmAsk/CustomerWithdrawal.cshtml | 123 +++++++++++++++++++++++++++++++++++++++-
1 files changed, 118 insertions(+), 5 deletions(-)
diff --git a/zhengcaioa/zhengcaioa/Views/AdmAsk/CustomerWithdrawal.cshtml b/zhengcaioa/zhengcaioa/Views/AdmAsk/CustomerWithdrawal.cshtml
index afa3bab..39a6f8c 100644
--- a/zhengcaioa/zhengcaioa/Views/AdmAsk/CustomerWithdrawal.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/AdmAsk/CustomerWithdrawal.cshtml
@@ -11,8 +11,11 @@
List<WfHistoryDTO> lishiyijian = ViewData["lishiyijian"] as List<WfHistoryDTO>; //瀹℃壒杩涘害
+ List<FiSubjectDTO> FiSubject = ViewData["FiSubject"] as List<FiSubjectDTO>; //绉戠洰
-
+
+ List<SysCodeDtl> accounttype = ViewData["accounttype"] as List<SysCodeDtl>; //璐︽埛绫诲瀷
+
}
<!DOCTYPE html>
@@ -127,6 +130,60 @@
</div>
</div>
+ @if (dangqianbuzhou == "璐㈠姟瀹℃壒")
+ {
+ <div class="clearfix layer-area" style="padding-bottom:15px;">
+ <label class="text-right col-sm-1 col-md-1 control-label">璐︽埛绫诲瀷 </label>
+ <div class="col-sm-2 col-md-2">
+ <select id="Accounttype" class="form-control" name="Accounttype" data-placeholder="閫夋嫨 搴忓垪 ..." style="font-weight:normal;">
+ @foreach (var item in accounttype)
+ {
+
+ <option value="@item.CodeSn" hassubinfo="true" >
+ @item.Comments
+ </option>
+
+ }
+
+ </select>
+
+ </div>
+ </div>
+ <div class="clearfix layer-area" style="padding-bottom:15px;">
+
+ <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">璐︽埛鍚嶇О<i class="red">*</i></label>
+ <div class="col-sm-2 col-md-2" grouptype="Vdata">
+ <select id="AccountId" class="form-control" name="AccountId" data-placeholder="閫夋嫨 搴忓垪 ...">
+ <option value="" hassubinfo="true">璇烽�夋嫨</option>
+
+
+ </select>
+
+ </div>
+ </div>
+ <div class="clearfix layer-area" style="padding-bottom:15px;">
+
+ <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">绉戠洰鍚嶇О<i class="red">*</i></label>
+ <div class="col-sm-2 col-md-2" grouptype="Vdata">
+ <select id="SubjectId" class="form-control" name="SubjectId" data-placeholder="閫夋嫨 搴忓垪 ...">
+ <option value="" hassubinfo="true">璇烽�夋嫨</option>
+ @foreach (var item in FiSubject)
+ {
+
+ <option value="@item.Id" hassubinfo="true" >
+ @item.Subjectname
+ </option>
+
+
+ }
+
+ </select>
+
+ </div>
+
+ </div>
+ }
+
<div class="clearfix layer-area" style="padding-bottom:15px;" id="shenpiyijian">
<label class="text-right col-sm-1 col-md-1 control-label">瀹℃壒鎰忚</label>
@@ -162,6 +219,8 @@
</table>
</div>
</div>
+
+
<div class="clearfix layer-area" style="padding-bottom:60px;">
</div>
@@ -246,6 +305,10 @@
$('#shenpiyijian').hide();
}
+ $("#Accounttype").attr('disabled', false);
+ $("#AccountId").attr('disabled', false);
+ $("#SubjectId").attr('disabled', false);
+
} else {
@@ -254,7 +317,7 @@
if ("@sifoudangqian" == "A") {
$('#tongyi').hide();
$('#jujue').hide();
-
+
$(".ldate").each(function (el) {
laydate({
@@ -270,7 +333,7 @@
// console.log("234234234234324");
// end.min = datas; //寮�濮嬫棩閫夊ソ鍚庯紝閲嶇疆缁撴潫鏃ョ殑鏈�灏忔棩鏈�
// end.start = datas //灏嗙粨鏉熸棩鐨勫垵濮嬪�艰瀹氫负寮�濮嬫棩
- checktime();
+ //checktime();
}
});
@@ -299,13 +362,28 @@
toastr.warning("浼氬憳鍚嶇О涓嶈兘涓虹┖");
return;
}
-
+
if ($.trim($("#Jine").val()) == '') {
toastr.warning("鎻愮幇閲戦涓嶈兘涓虹┖");
return;
}
-
+ if ("@Html.Raw(dangqianbuzhou)" == "璐㈠姟瀹℃壒" && tongyi == "A") {
+ if ($.trim($("#Accounttype").val()) == '') {
+ toastr.warning("璐︽埛绫诲瀷涓嶈兘涓虹┖");
+ return;
+ }
+ if ($.trim($("#AccountId").val()) == '') {
+ toastr.warning("璐︽埛鍚嶇О涓嶈兘涓虹┖");
+ return;
+ }
+ if ($.trim($("#SubjectId").val()) == '') {
+ toastr.warning("绉戠洰鍚嶇О涓嶈兘涓虹┖");
+ return;
+ }
+ }
+
+
$("#Tongguojujue").val(tongyi);
@@ -356,6 +434,41 @@
}
}
+
+ $("#Accounttype").change(function () {
+
+ var Accounttype = $("#Accounttype").val();
+ $.ajax({
+ type: "GET",
+ url: "/FiAccountIncome/getAccount?Accounttype=" + Accounttype,
+ dataType: "json",
+ global: false,
+ data: "",
+ success: function (data) {
+
+ var city = $("#AccountId");
+ city.find('option').remove();
+ var aaa = '<option value="" hassubinfo="true">璇烽�夋嫨</option>';
+ city.append(aaa);
+ if (data.length > 0) {
+ for (var i = 0; i < data.length; i++) {
+
+ var o = '<option value="' + data[i].Id + '" hassubinfo="true">' + data[i].Accountname + '</option>';
+ city.append(o);
+ }
+ }
+
+ city.val("fa32da5c-56d4-4d53-8209-cc503e24ae92");
+ },
+ error: function () {
+
+
+ parent.layer.msg('澶辫触', { icon: 5 });
+ }
+ });
+ });
+ $("#Accounttype").val("05");
+ $("#Accounttype").trigger("change");
</script>
</body>
</html>
\ No newline at end of file
--
Gitblit v1.9.1