master
cmj 4 days ago
parent eda2aea36b
commit dea08c9ea2

@ -0,0 +1,400 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="HT_CustomList.aspx.cs" Inherits="TradeManageNew.HT_CustomList" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>客户合同</title>
<link rel="stylesheet" type="text/css" href="css2/icon.css">
<link rel="stylesheet" type="text/css" href="css2/DataGrid.css" />
<script src="Scripts2/MicrosoftAjax.js" type="text/javascript"></script>
<script src="Scripts2/jquery.min.js" type="text/javascript"></script>
<script src="Scripts2/jquery.easyui.min.js" type="text/javascript"></script>
<script src="Scripts2/DataGrid.js?t=1" type="text/javascript"></script>
<script src="Scripts2/DataPager.js?t=1" type="text/javascript"></script>
<script src="Scripts2/Global.js?t=1" type="text/javascript"></script>
<script src="Scripts2/WindowLoad.js?t=1" type="text/javascript"></script>
<link href="css2/gray/easyui.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="font-awesome/css/font-awesome.min.css" />
<link href="css2/New.css" rel="stylesheet" type="text/css" />
<link href="Scripts2/fancybox/jquery.fancybox-1.3.4.css" rel="stylesheet" />
<script src="Scripts2/fancybox/jquery.fancybox-1.3.4.js" type="text/javascript"></script>
<script src="Scripts2/MaskedTextBox.js?t=1" type="text/javascript"></script>
<script src="Scripts/ajaxfileupload.js" type="text/javascript"></script>
<script src="Scripts/DatePicker/WdatePicker.js" type="text/javascript"></script>
<script src="Scripts2/jquery.url.js" type="text/javascript"></script>
<script type="text/javascript">
var datagrid1 = new nblf.ui.DataGrid("DataGrid1");
var WindowLoadModel = new WindowLoad();
var Model = null;
$(document).ready(function () {
WindowLoadModel.ApplicationPath = "../";
WindowLoadModel.Load();
ajaxInit(WindowLoadModel);
//var CurrentDate = new Date();
//$("#txt_StartDate").val(CurrentDate.localeFormat("yyyy-MM-01"));
//$("#txt_StopDate").val(CurrentDate.localeFormat("yyyy-MM-dd"));
TableAveColWidth("MainTable");
CreateDataGrid();
ReadData();
$("#cmdAdd").click(function () {
Model = new Object();
Model.id = 0;
ClearControlValue("MainTable"); //清空内容
//var CurrentDate = new Date();
//$("#txtInDate").val(CurrentDate.localeFormat("yyyy-MM-dd"));
ShowFancybox("MainTable");
});
$("#cmdGet").click(function () {
ReadData();
});
$("#cmdSave").click(function () {
Save();
});
$("#cmdBack").click(function () {
$.fancybox.close();
});
$("#DataGrid1 [CommandName]").live("click", function () {
var CommandName = $(this).attr("CommandName");
var index = $(this).parentsUntil("tr").parent().attr("index");
Model = datagrid1.Get_Model(index);
if (CommandName == "cmdEdit") {
//有审核时用
//if (Model.State == 1 || Model.State == 2) { $("#cmdSave").hide(); }
//else { $("#cmdSave").show(); }
//if (Model.State == 2) { $("#tr1").show(); }
//else { $("#tr1").hide(); }
CreateGetModel("MainTable", Model);
ShowFancybox("MainTable");
}
if (CommandName == "cmdDel") {
Delete(Model.id);
}
});
});
//#region 初始化DataGrid
function CreateDataGrid() {
col = new nblf.ui.DataGridColumn();
col.HeaderText = "客户";
col.CellTemplate ="<span>{Bind customname}</span>";
Array.add(datagrid1.Columns, col);
col = new nblf.ui.DataGridColumn();
col.HeaderText = "合同日期";
col.CellTemplate ="<span>{Bind htdate,yyyy-MM-dd}</span>";
Array.add(datagrid1.Columns, col);
col = new nblf.ui.DataGridColumn();
col.HeaderText = "htcode";
col.CellTemplate ="<span>{Bind htcode}</span>";
Array.add(datagrid1.Columns, col);
col = new nblf.ui.DataGridColumn();
col.HeaderText = "佣金";
col.CellTemplate ="<span>{Bind yjprice}</span>";
Array.add(datagrid1.Columns, col);
col = new nblf.ui.DataGridColumn();
col.HeaderText = "rmbprice";
col.CellTemplate ="<span>{Bind rmbprice}</span>";
Array.add(datagrid1.Columns, col);
col = new nblf.ui.DataGridColumn();
col.HeaderText = "usdprice";
col.CellTemplate ="<span>{Bind usdprice}</span>";
Array.add(datagrid1.Columns, col);
col = new nblf.ui.DataGridColumn();
col.HeaderText = "内际金额";
col.CellTemplate ="<span>{Bind njprice}</span>";
Array.add(datagrid1.Columns, col);
col = new nblf.ui.DataGridColumn();
col.HeaderText = "海运费";
col.CellTemplate ="<span>{Bind hyprice}</span>";
Array.add(datagrid1.Columns, col);
col = new nblf.ui.DataGridColumn();
col.HeaderText = "汇率";
col.CellTemplate ="<span>{Bind hlrate}</span>";
Array.add(datagrid1.Columns, col);
col = new nblf.ui.DataGridColumn();
col.HeaderText = "利率";
col.CellTemplate ="<span>{Bind llrate}</span>";
Array.add(datagrid1.Columns, col);
col = new nblf.ui.DataGridColumn();
col.HeaderText = "totalrmbprice";
col.CellTemplate ="<span>{Bind totalrmbprice}</span>";
Array.add(datagrid1.Columns, col);
col = new nblf.ui.DataGridColumn();
col.HeaderText = "totalusdprice";
col.CellTemplate ="<span>{Bind totalusdprice}</span>";
Array.add(datagrid1.Columns, col);
col = new nblf.ui.DataGridColumn();
col.HeaderText = "已付多少";
col.CellTemplate ="<span>{Bind yfprice}</span>";
Array.add(datagrid1.Columns, col);
col = new nblf.ui.DataGridColumn();
col.HeaderText = "累计利息多少";
col.CellTemplate ="<span>{Bind lxprice}</span>";
Array.add(datagrid1.Columns, col);
col = new nblf.ui.DataGridColumn();
col.HeaderText = "inname";
col.CellTemplate ="<span>{Bind inname}</span>";
Array.add(datagrid1.Columns, col);
col = new nblf.ui.DataGridColumn();
col.HeaderText = "indate";
col.CellTemplate ="<span>{Bind indate,yyyy-MM-dd}</span>";
Array.add(datagrid1.Columns, col);
col = new nblf.ui.DataGridColumn();
col.HeaderText = "0 未结清 1已结清 ";
col.CellTemplate ="<span>{Bind state}</span>";
Array.add(datagrid1.Columns, col);
col = new nblf.ui.DataGridColumn();
col.HeaderText = "操作";
col.Width = "160px";
col.CellTemplate = "<span CommandName='cmdEdit' style='color: #0000FF;cursor:pointer;text-decoration: underline;'>编辑</span>&nbsp;&nbsp;<span CommandName='cmdDel' style='color: #0000FF;cursor:pointer;text-decoration: underline;'>删除</span>";
Array.add(datagrid1.Columns, col);
//datagrid1.SetPageSize(20);
datagrid1.IsFixHeader = false;
datagrid1.ShowIndexColumn = false;
datagrid1.AllowPaging = true;
datagrid1.Width = "100%";
datagrid1.SelectMode = nblf.ui.SelectMode.None;
datagrid1.Init();
datagrid1.add_PageIndexChanged(function () { ReadData(); });
}
//#endregion
//#region 读取数据
function ReadData() {
var param = new Object();
CreateWhere("SelectHtml", param); //读取查询条件
param.cs = Base64.encode(param.cs);
param.PageIndex = datagrid1.Get_PageIndex();
param.PageSize = datagrid1.Get_PageSize();
$.ajax({
url: "SysManageServiceNew.asmx/GetListCustomFee",
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
success: function (data) {
datagrid1.Set_RowCount(data.d.RowCount);
datagrid1.DataBind(data.d.DataSource);
}
});
}
//#endregion
//#region 删除
function Delete(id) {
if (window.confirm("确定要删除吗?") == false) return;
var param = new Object();
param.id = id;
WindowLoadModel.Show();
$.ajax({
url: "SysManageServiceNew.asmx/Delete_CustomFee",
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
success: function (data) {
WindowLoadModel.Hide();
if (data.d == false) { alert("已经使用过,无法删除"); return; }
ReadData(); //刷新DataGrid
}
});
}
//#endregion
//#region 保存
function Save() {
var error = CreateSaveModel("MainTable", Model);
if (error != "") { alert(error); return; }
var param = new Object();
param.Model = Model;
WindowLoadModel.Show();
$.ajax({
url: "SysManageServiceNew.asmx/Save_CustomFee",
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
success: function (data) {
WindowLoadModel.Hide();
ReadData();
alert("保存成功");
$.fancybox.close();
}
});
}
//#endregion
//#region 显示弹出窗体
function ShowFancybox(id) {
$.fancybox({
'scrolling': 'no',
'autoScale': false,
'transitionIn': 'elastic',
'transitionOut': 'elastic',
'href': '#' + id,
'onClosed': function () {
}
}, 0);
}
//#endregion
</script>
</head>
<body>
<table id="SelectHtml" border="1" cellpadding="0" cellspacing="0" align="center" style="width: 100%"
class="tableAll">
<colgroup>
<col style="width: 60px;" />
<col style="width: 240px;" />
<col style="width: 60px;" />
<col style="width: 120px;" />
<col style="width: 60px;" />
<col style="width: 120px;" />
<col style="width: 60px;" />
<col style="width: 120px;" />
<col />
</colgroup>
<tr>
<td class="f1" >客户</td>
<td><input id='txt_customname' type='text' style='width: 99%' where="a.customname like '%@value%'"/></td>
<td class="f1" >合同日期</td>
<td><input id="txt_StartDate" type="text" style="width: 100px; " onfocus="WdatePicker({ dateFmt: 'yyyy-MM-dd'})" where="a.htdate>='@value'" />-<input id="txt_StopDate" type="text" style="width: 100px; " onfocus="WdatePicker({ dateFmt: 'yyyy-MM-dd'})" where="a.htdate<= '@value 23:59:59'" /></td>
<td class="f1" >inname</td>
<td><input id='txt_inname' type='text' style='width: 99%' where="a.inname like '%@value%'"/></td>
<td class="f1" >0 未结清 1已结清 </td>
<td><select id='list_state' style="width: 99%;" where="state=@value" binding="BindComboBox2" url="XXX.asmx/XXX" modelid="Id" modelname="Name" TopName="全部" ></select></td>
</tr>
<td><input id="cmdGet" type="button" value = "查询" /></td>
<tr>
<td colspan="9">
<input id="cmdAdd" type="button" value="新增" />
</td>
</tr>
<tr>
<td valign="top" colspan="9">
<div id="DataGrid1" class="DataGridStyle"></div>
</td>
</tr>
</table>
<div style="display: none;">
<div id="MainTable" title="编辑" style="width: 400px; height: auto;">
<table class="tableAll" style="width: 100%;">
<colgroup>
<col style="width: 80px;" />
<col />
</colgroup>
<tr>
<td class="f1" >客户</td>
<td><input id='txtcustomname' type='text' style='width: 99%' columnname="customname" columndesc="客户" columnrequired="false" validtype="" /></td>
</tr>
<tr>
<td class="f1" >合同日期</td>
<td><input id='txthtdate' type='text' style='width: 99%' onfocus="WdatePicker({ dateFmt: 'yyyy-MM-dd'})" columnname="htdate" columndesc="合同日期" columnrequired="false" validtype="" columnformat="yyyy-MM-dd" /></td>
</tr>
<tr>
<td class="f1" >htcode</td>
<td><input id='txthtcode' type='text' style='width: 99%' columnname="htcode" columndesc="htcode" columnrequired="false" validtype="" /></td>
</tr>
<tr>
<td class="f1" >佣金</td>
<td><input id='txtyjprice' type='text' style='width: 99%' precision="2" min="0" max="99999" columnname="yjprice" columndesc="佣金" columnrequired="false" /></td>
</tr>
<tr>
<td class="f1" >rmbprice</td>
<td><input id='txtrmbprice' type='text' style='width: 99%' precision="2" min="0" max="99999" columnname="rmbprice" columndesc="rmbprice" columnrequired="false" /></td>
</tr>
<tr>
<td class="f1" >usdprice</td>
<td><input id='txtusdprice' type='text' style='width: 99%' precision="2" min="0" max="99999" columnname="usdprice" columndesc="usdprice" columnrequired="false" /></td>
</tr>
<tr>
<td class="f1" >内际金额</td>
<td><input id='txtnjprice' type='text' style='width: 99%' precision="2" min="0" max="99999" columnname="njprice" columndesc="内际金额" columnrequired="false" /></td>
</tr>
<tr>
<td class="f1" >海运费</td>
<td><input id='txthyprice' type='text' style='width: 99%' precision="2" min="0" max="99999" columnname="hyprice" columndesc="海运费" columnrequired="false" /></td>
</tr>
<tr>
<td class="f1" >汇率</td>
<td><input id='txthlrate' type='text' style='width: 99%' precision="2" min="0" max="99999" columnname="hlrate" columndesc="汇率" columnrequired="false" /></td>
</tr>
<tr>
<td class="f1" >利率</td>
<td><input id='txtllrate' type='text' style='width: 99%' precision="2" min="0" max="99999" columnname="llrate" columndesc="利率" columnrequired="false" /></td>
</tr>
<tr>
<td class="f1" >totalrmbprice</td>
<td><input id='txttotalrmbprice' type='text' style='width: 99%' precision="2" min="0" max="99999" columnname="totalrmbprice" columndesc="totalrmbprice" columnrequired="false" /></td>
</tr>
<tr>
<td class="f1" >totalusdprice</td>
<td><input id='txttotalusdprice' type='text' style='width: 99%' precision="2" min="0" max="99999" columnname="totalusdprice" columndesc="totalusdprice" columnrequired="false" /></td>
</tr>
<tr>
<td class="f1" >已付多少</td>
<td><input id='txtyfprice' type='text' style='width: 99%' precision="2" min="0" max="99999" columnname="yfprice" columndesc="已付多少" columnrequired="false" /></td>
</tr>
<tr>
<td class="f1" >累计利息多少</td>
<td><input id='txtlxprice' type='text' style='width: 99%' precision="2" min="0" max="99999" columnname="lxprice" columndesc="累计利息多少" columnrequired="false" /></td>
</tr>
<tr>
<td class="f1" >inname</td>
<td><input id='txtinname' type='text' style='width: 99%' columnname="inname" columndesc="inname" columnrequired="false" validtype="" /></td>
</tr>
<tr>
<td class="f1" >indate</td>
<td><input id='txtindate' type='text' style='width: 99%' onfocus="WdatePicker({ dateFmt: 'yyyy-MM-dd'})" columnname="indate" columndesc="indate" columnrequired="false" validtype="" columnformat="yyyy-MM-dd" /></td>
</tr>
<tr>
<td class="f1" >0 未结清 1已结清 </td>
<td><select id='liststate' style="width: 99%;" columnname="state" columndesc="0 未结清 1已结清 " columnrequired="false" binding="BindComboBox2" url="XXX.asmx/XXX" modelid="Id" modelname="Name" TopName=""></select></td>
</tr>
<tr>
<td colspan="4" align="center">
<input id="cmdSave" type="button" value="保存" />
<input id="cmdBack" type="button" value="返回" />
</td>
</tr>
</table>
</div>
</div>
</body>
</html>

@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace TradeManageNew
{
public partial class HT_CustomList : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
}

@ -0,0 +1,26 @@
//------------------------------------------------------------------------------
// <自动生成>
// 此代码由工具生成。
//
// 对此文件的更改可能导致不正确的行为,如果
// 重新生成代码,则所做更改将丢失。
// </自动生成>
//------------------------------------------------------------------------------
namespace TradeManageNew
{
public partial class HT_CustomList
{
/// <summary>
/// Head1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlHead Head1;
}
}

@ -18114,6 +18114,91 @@ where a.storeid in (6,9,11) and a.OrderGoodsId=0 and a.KCNum>0 " + tj + " gr
}
#endregion
#region HT_CustomFee页
#region 保存
[WebMethod(EnableSession = true)]
public int Save_CustomFee(HT_CustomFee Model)
{
PagesNew.Login(this.Session);
return DataNew.Save_CustomFee(Model);
}
#endregion
#region 删除
[WebMethod(EnableSession = true)]
public bool Delete_CustomFee(int id)
{
PagesNew.Login(this.Session);
DataNew.Delete_CustomFee(id);
return true;
}
#endregion
#region 返回Model
[WebMethod(EnableSession = true)]
public HT_CustomFee GetModel_CustomFee(int id)
{
PagesNew.Login(this.Session);
var Model = DataNew.GetModel_CustomFee(id);
return Model;
}
#endregion
#region 分页查询
[WebMethod(EnableSession = true)]
public JsonModel<List<HT_CustomFee>> GetListCustomFee(string cs, int PageIndex, int PageSize)
{
PagesNew.Login(this.Session);
string where = CustomIO.Base64StringToString(cs);
if (where != "") where = "where " + where.Substring(4);
var resultModel = new JsonModel<List<HT_CustomFee>>();
int RowCount = 0;
resultModel.DataSource = DataNew.GetListCustomFee(where, PageIndex, PageSize, "", out RowCount);
resultModel.RowCount = RowCount;
return resultModel;
}
#endregion
#region 保存
[WebMethod(EnableSession = true)]
public int Save_CustomFeeDetail(HT_CustomFeeDetail Model)
{
PagesNew.Login(this.Session);
return DataNew.Save_CustomFeeDetail(Model);
}
#endregion
#region 删除
[WebMethod(EnableSession = true)]
public bool Delete_CustomFeeDetail(int id)
{
PagesNew.Login(this.Session);
DataNew.Delete_CustomFeeDetail(id);
return true;
}
#endregion
#region 返回Model
[WebMethod(EnableSession = true)]
public HT_CustomFeeDetail GetModel_CustomFeeDetail(int id)
{
PagesNew.Login(this.Session);
var Model = DataNew.GetModel_CustomFeeDetail(id);
return Model;
}
#endregion
#region 普通查询列表
[WebMethod(EnableSession = true)]
public List<HT_CustomFeeDetail> GetListCustomFeeDetail(int feeid)
{
PagesNew.Login(this.Session);
var ListModel = DataNew.GetListCustomFeeDetail(feeid);
return ListModel;
}
#endregion
#endregion
}
}

@ -1405,6 +1405,7 @@
<Content Include="gp\gp_list.aspx" />
<Content Include="gp\gp_service.asmx" />
<Content Include="HtmlPage1.html" />
<Content Include="HT_CustomList.aspx" />
<Content Include="HuoWuServiceNew.asmx" />
<Content Include="Huowu\HW_BuyOut2.aspx" />
<Content Include="Huowu\HW_BuyOutList.aspx" />
@ -2723,6 +2724,13 @@
<DependentUpon>gp_service.asmx</DependentUpon>
<SubType>Component</SubType>
</Compile>
<Compile Include="HT_CustomList.aspx.cs">
<DependentUpon>HT_CustomList.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="HT_CustomList.aspx.designer.cs">
<DependentUpon>HT_CustomList.aspx</DependentUpon>
</Compile>
<Compile Include="HuoWuServiceNew.asmx.cs">
<DependentUpon>HuoWuServiceNew.asmx</DependentUpon>
<SubType>Component</SubType>

Loading…
Cancel
Save