diff --git a/Models/ScpEntity/SCP_OTD_EXPORT.cs b/Models/ScpEntity/SCP_OTD_EXPORT.cs index eb2833e..ec2fecb 100644 --- a/Models/ScpEntity/SCP_OTD_EXPORT.cs +++ b/Models/ScpEntity/SCP_OTD_EXPORT.cs @@ -6,6 +6,18 @@ using System.Threading.Tasks; namespace CK.SCP.Models.ScpEntity { + public class InvoiceCreateQueryParm + { + public string ReceiveID { set; get; } + public string VendId { set; get; } + public string Modify { set; get; } + public string IsAll { set; get; } + public string Tax { set; get; } + public string CJ { set; get; } + public string TZ { set; get; } + + + } public class SCP_OTD_EXPORT { public string VendId { get; set; } //供应商编号 diff --git a/SCP/Admin/MakeInitUser.aspx b/SCP/Admin/MakeInitUser.aspx deleted file mode 100644 index fae0311..0000000 --- a/SCP/Admin/MakeInitUser.aspx +++ /dev/null @@ -1,37 +0,0 @@ -<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MakeInitUser.aspx.cs" Inherits="SCP.Admin.MakeInitUser" %> - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - diff --git a/SCP/Admin/MakeInitUser.aspx.cs b/SCP/Admin/MakeInitUser.aspx.cs deleted file mode 100644 index 34dc1c6..0000000 --- a/SCP/Admin/MakeInitUser.aspx.cs +++ /dev/null @@ -1,161 +0,0 @@ -using CK.SCP.Models.AppBoxEntity; -using CK.SCP.Models.AppBoxEntity.ExcelImportEntity; -using CK.SCP.Utils; -using FineUI; -using System; -using System.Collections.Generic; -using System.Data; -using System.IO; -using System.Linq; -using System.Web; -using System.Web.UI; -using System.Web.UI.WebControls; - -namespace SCP.Admin -{ - public partial class MakeInitUser : PageBase - { - protected void Page_Load(object sender, EventArgs e) - { - - } - - protected void BTN_Make_Click(object sender, EventArgs e) - { - try - { - var vendList = SCPDB.TA_VENDER.ToList(); - List list = new List(); - foreach (var itm in vendList) - { - APPBOX_USER_EXCEL excel = new APPBOX_USER_EXCEL(); - excel.登录名称 = itm.VendId; - excel.密码 = "666666"; - excel.性别 = "男"; - excel.姓名 = itm.VendName; - excel.电子邮件 = itm.VendId + "@163.com"; - excel.供应商编号 = itm.VendId; - excel.所属地点 = itm.Site; - list.Add(excel); - } - List _ls = new List(); - list.ForEach(itm => - { - var userList = DB.Users.Where(p => p.Name == itm.登录名称).ToList(); - if(userList.Count==0) - { - User item = new User(); - item.Name = itm.登录名称 + "@" + itm.所属地点; - item.Password = PasswordUtil.CreateDbPassword(itm.密码.Trim()); - item.ChineseName = itm.姓名.Trim(); - item.Gender = itm.性别; - item.CompanyEmail = itm.电子邮件.Trim(); - item.Email = itm.电子邮件.Trim(); - item.Remark = itm.所属地点; - item.Enabled = true; - item.CreateTime = DateTime.Now; - item.SupplierCode = itm.供应商编号; - if (!string.IsNullOrEmpty(itm.供应商编号)) - { - var _role = DB.Roles.Where(p => p.Name == "供应商").FirstOrDefault(); - if (_role != null) - { - item.Roles = new List(); - int[] roleIDs = new int[] { _role.ID }; - - AddEntities(item.Roles, roleIDs); - } - item.SupplierCode = itm.供应商编号; - } - DB.Users.Add(item); - } - - - }); - if (DB.SaveChanges() != -1) - { - - } - } - catch (Exception ex) - { - Alert.Show(ex.Message); - } - - } - - - protected void BTN_Rel_Click(object sender, EventArgs e) - { - - } - - protected void Button1_Click(object sender, EventArgs e) - { - try - { - - var _userlist = DB.Users.ToList(); - foreach (var itm in _userlist) - { - if (!string.IsNullOrEmpty(itm.Remark)) - { - var _factory = itm.Remark; - var _f = DB.TA_FACTORY.Where(p => p.FactoryId == _factory).FirstOrDefault(); - int[] titleIDs = new int[] { _f.ID }; - - AddEntities(itm.TA_FACTORY, titleIDs); - - } - - - } - DB.SaveChanges(); - } - catch (Exception ex) - { - Alert.Show(ex.Message); - return; - } - } - - protected void Button2_Click(object sender, EventArgs e) - { - try - { - var _userlist = DB.Users.ToList(); - foreach (var itm in _userlist) - { - if (!string.IsNullOrEmpty(itm.Remark)) - { - - - var _VenderUsers = DB.VenderUsers.Where(p => p.UserId == itm.ID).ToList(); - if (_VenderUsers != null && _VenderUsers.Count > 0) - { - DB.VenderUsers.RemoveRange(_VenderUsers); - } - List _vList = new List(); - VenderUsers _vus = new VenderUsers(); - _vus.UserId = itm.ID; - _vus.VenderId = itm.Name.Split('@')[0]; - _vList.Add(_vus); - if (_vList.Count > 0) - { - var ls = _vList.Where(p => p.UserId > 0 && !string.IsNullOrEmpty(p.VenderId)); - DB.VenderUsers.AddRange(ls.ToArray()); - } - } - - } - DB.SaveChanges(); - - } - catch (Exception ex) - { - Alert.Show(ex.Message); - return; - } - } - } -} \ No newline at end of file diff --git a/SCP/Admin/MakeInitUser.aspx.designer.cs b/SCP/Admin/MakeInitUser.aspx.designer.cs deleted file mode 100644 index 02558da..0000000 --- a/SCP/Admin/MakeInitUser.aspx.designer.cs +++ /dev/null @@ -1,96 +0,0 @@ -//------------------------------------------------------------------------------ -// <自动生成> -// 此代码由工具生成。 -// -// 对此文件的更改可能导致不正确的行为,如果 -// 重新生成代码,则所做更改将丢失。 -// -//------------------------------------------------------------------------------ - -namespace SCP.Admin { - - - public partial class MakeInitUser { - - /// - /// form1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlForm form1; - - /// - /// PageManager1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUI.PageManager PageManager1; - - /// - /// Panel1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUI.Panel Panel1; - - /// - /// Form2 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUI.Form Form2; - - /// - /// FormRow1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUI.FormRow FormRow1; - - /// - /// BTN_Make 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUI.Button BTN_Make; - - /// - /// Button2 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUI.Button Button2; - - /// - /// Button1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUI.Button Button1; - - /// - /// Window1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUI.Window Window1; - } -} diff --git a/SCP/Handlers/ReceiveHandler.ashx b/SCP/Handlers/ReceiveHandler.ashx deleted file mode 100644 index ab799d9..0000000 --- a/SCP/Handlers/ReceiveHandler.ashx +++ /dev/null @@ -1 +0,0 @@ -<%@ WebHandler Language="C#" CodeBehind="ReceiveHandler.ashx.cs" Class="SCP.Handlers.ReceiveHandler" %> diff --git a/SCP/Handlers/ReceiveHandler.ashx.cs b/SCP/Handlers/ReceiveHandler.ashx.cs deleted file mode 100644 index eeb6615..0000000 --- a/SCP/Handlers/ReceiveHandler.ashx.cs +++ /dev/null @@ -1,73 +0,0 @@ -using Newtonsoft.Json.Linq; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Web; - -namespace SCP.Handlers -{ - /// - /// ReceiveHandler 的摘要说明 - /// - public class ReceiveHandler : IHttpHandler - { - - public void ProcessRequest(HttpContext context) - { - string rowId = context.Request.QueryString["id"]; - int rowIdInt = Convert.ToInt32(rowId); - - JObject jo = new JObject(); - - JArray ja = new JArray(); - - Random rd = new Random(); - for (int i = 0; i < 3; i++) - { - JObject joItem = new JObject(); - - if (i == 0) - { - joItem.Add("type", "入学"); - } - else if (i == 1) - { - joItem.Add("type", "期中"); - } - else if (i == 2) - { - joItem.Add("type", "期末"); - } - - int randomMinValue = 80; - int randomMaxValue = 100; - if (rowIdInt % 2 == 0) - { - randomMinValue = 40; - randomMaxValue = 80; - } - joItem.Add("yuwen", rd.Next(randomMinValue, randomMaxValue)); - joItem.Add("shuxue", rd.Next(randomMinValue, randomMaxValue)); - joItem.Add("yingwen", rd.Next(randomMinValue, randomMaxValue)); - joItem.Add("wuli", rd.Next(randomMinValue, randomMaxValue)); - joItem.Add("huaxue", rd.Next(randomMinValue, randomMaxValue)); - - ja.Add(joItem); - } - - jo.Add("data", ja); - jo.Add("total", ja.Count); - - context.Response.ContentType = "text/plain"; - context.Response.Write(jo.ToString(Newtonsoft.Json.Formatting.None)); - } - - public bool IsReusable - { - get - { - return false; - } - } - } -} \ No newline at end of file diff --git a/SCP/Handlers/ServiceHandler.ashx b/SCP/Handlers/ServiceHandler.ashx deleted file mode 100644 index b6bff6d..0000000 --- a/SCP/Handlers/ServiceHandler.ashx +++ /dev/null @@ -1 +0,0 @@ -<%@ WebHandler Language="C#" CodeBehind="ServiceHandler.ashx.cs" Class="SCP.Handlers.ServiceHandler" %> diff --git a/SCP/Handlers/ServiceHandler.ashx.cs b/SCP/Handlers/ServiceHandler.ashx.cs deleted file mode 100644 index 6ef45b1..0000000 --- a/SCP/Handlers/ServiceHandler.ashx.cs +++ /dev/null @@ -1,34 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Web; - -namespace SCP.Handlers -{ - /// - /// ServiceHandler 的摘要说明 - /// - public class ServiceHandler : IHttpHandler - { - - public void ProcessRequest(HttpContext context) - { - - - context.Response.ContentType = "json"; - context.Response.Write("Hello World"); - } - - public bool IsReusable - { - get - { - return false; - } - } - //public string GetUnCompleteAsk() - //{ - - //} - } -} \ No newline at end of file diff --git a/SCP/SCP.csproj b/SCP/SCP.csproj index ba3368b..63dd90b 100644 --- a/SCP/SCP.csproj +++ b/SCP/SCP.csproj @@ -177,7 +177,6 @@ - @@ -2906,12 +2905,10 @@ - - @@ -4644,13 +4641,6 @@ log_view.aspx - - MakeInitUser.aspx - ASPXCodeBehind - - - MakeInitUser.aspx - menu.aspx ASPXCodeBehind @@ -4890,12 +4880,6 @@ MakeVerifyCode.ashx - - ReceiveHandler.ashx - - - ServiceHandler.ashx - Price.aspx ASPXCodeBehind