From 2df26f737b59e211ca3b4e63b2ffc742445af899 Mon Sep 17 00:00:00 2001 From: qian Date: Fri, 24 Nov 2023 15:58:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=85=E5=BC=80=E7=A5=A8=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Models/AppBoxEntity/LoginTable.cs | 24 +++++++++++++++++++ .../Views/SupplierData/SCP_RECEIVE_LIST.aspx | 4 ++-- .../SupplierData/SCP_RECEIVE_LIST.aspx.cs | 10 ++++---- 3 files changed, 31 insertions(+), 7 deletions(-) create mode 100644 北京北汽/Models/AppBoxEntity/LoginTable.cs diff --git a/北京北汽/Models/AppBoxEntity/LoginTable.cs b/北京北汽/Models/AppBoxEntity/LoginTable.cs new file mode 100644 index 0000000..6debeb3 --- /dev/null +++ b/北京北汽/Models/AppBoxEntity/LoginTable.cs @@ -0,0 +1,24 @@ +using System; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; + +namespace CK.SCP.Models.AppBoxEntity +{ + [Table("LoginTable")] + public class LoginTable + { + [Key] + public int ID { get; set; } + [StringLength(50)] + // ip地址 + public string IPAdddress { get; set; } + // 登录时间 + public DateTime LoginTime { get; set; } + // 登录ID + public int UserID { get; set; } + // 登录名 + public String UserName { get; set; } + + + } +} \ No newline at end of file diff --git a/北京北汽/SCP/Views/SupplierData/SCP_RECEIVE_LIST.aspx b/北京北汽/SCP/Views/SupplierData/SCP_RECEIVE_LIST.aspx index 3b1964e..f2a3836 100644 --- a/北京北汽/SCP/Views/SupplierData/SCP_RECEIVE_LIST.aspx +++ b/北京北汽/SCP/Views/SupplierData/SCP_RECEIVE_LIST.aspx @@ -151,9 +151,9 @@ - + AutoScroll="True" OnPageIndexChange="Grid_V_TB_RECEIVE_LIST_PageIndexChange" EnableCheckBoxSelect = "true" CheckBoxSelectOnly="true" OnRowDataBound="Grid_V_TB_RECEIVE_LIST_RowDataBound" > diff --git a/北京北汽/SCP/Views/SupplierData/SCP_RECEIVE_LIST.aspx.cs b/北京北汽/SCP/Views/SupplierData/SCP_RECEIVE_LIST.aspx.cs index 367b9c5..48ee93a 100644 --- a/北京北汽/SCP/Views/SupplierData/SCP_RECEIVE_LIST.aspx.cs +++ b/北京北汽/SCP/Views/SupplierData/SCP_RECEIVE_LIST.aspx.cs @@ -86,8 +86,8 @@ namespace SCP.SupplierData public void LoadData() { // 每页记录数 - Grid_V_TB_RECEIVE_LIST.PageSize = ConfigHelper.PageSize; - ddlGridPageSize.SelectedValue = ConfigHelper.PageSize.ToString(); + //Grid_V_TB_RECEIVE_LIST.PageSize = ConfigHelper.PageSize; + //ddlGridPageSize.SelectedValue = ConfigHelper.PageSize.ToString(); BindData(); } private void SearchData(Action> p_action) @@ -435,8 +435,8 @@ namespace SCP.SupplierData var _tax = lbTaxRate.SelectedValue; var _cj = string.IsNullOrEmpty(txtContractPrice1.Text) ? "0" : txtContractPrice1.Text; var _tz = string.IsNullOrEmpty(txtBlancePrice1.Text) ? "0" : txtBlancePrice1.Text; - SearchData((rs) => - { + //SearchData((rs) => + //{ string IsCreate = "0"; //if (Grid_V_TB_RECEIVE_LIST.SelectedRowIndexArray.Length == 0) //{ @@ -541,7 +541,7 @@ namespace SCP.SupplierData - }); + //}); } catch (Exception ex) {