Browse Source

北汽翻译 及多语言菜单维护

master
qian 12 months ago
parent
commit
c966a5690c
  1. 16
      北京北汽/Controller/SCP_ASK_CONTROLLER.cs
  2. 6
      北京北汽/Controller/SCP_ASN_CONTROLLER.cs
  3. 7
      北京北汽/Models/ScpCache.cs
  4. 10
      北京北汽/Models/ScpEntity/TA_LANGUAGE.cs
  5. 11
      北京北汽/SCP/Admin/profile.aspx
  6. 32
      北京北汽/SCP/Admin/profile.aspx.cs
  7. 71
      北京北汽/SCP/Business/PageBase.cs
  8. 16
      北京北汽/SCP/SCP.csproj
  9. 80
      北京北汽/SCP/Views/BasicData/SCP_LANGUAGE_1.aspx
  10. 103
      北京北汽/SCP/Views/BasicData/SCP_LANGUAGE_1.aspx.cs
  11. 152
      北京北汽/SCP/Views/BasicData/SCP_LANGUAGE_1.aspx.designer.cs
  12. 43
      北京北汽/SCP/Views/BasicData/SCP_LANGUAGE_DETAIL.aspx
  13. 108
      北京北汽/SCP/Views/BasicData/SCP_LANGUAGE_DETAIL.aspx.cs
  14. 134
      北京北汽/SCP/Views/BasicData/SCP_LANGUAGE_DETAIL.aspx.designer.cs
  15. 2
      北京北汽/SCP/Views/ExChangeCenter/EC_CONTROLLER.aspx.cs
  16. 2
      北京北汽/SCP/Views/PlanData/SCP_INCOMPLETE_ASK.aspx
  17. 2
      北京北汽/SCP/Views/PlanData/SCP_PO_CQ.aspx.cs
  18. 2
      北京北汽/SCP/Views/SupplierData/SCP_ARRIVE.aspx
  19. 8
      北京北汽/SCP/Views/SupplierData/SCP_ARRIVE.aspx.cs
  20. 2
      北京北汽/SCP/Views/SupplierData/SCP_ASK.aspx
  21. 16
      北京北汽/SCP/Views/SupplierData/SCP_ASK.aspx.cs
  22. 15
      北京北汽/SCP/Views/SupplierData/SCP_ASK.aspx.designer.cs
  23. 2
      北京北汽/SCP/Views/SupplierData/SCP_ASK_DETAIL.aspx.cs
  24. 2
      北京北汽/SCP/Views/SupplierData/SCP_ASN.aspx
  25. 3
      北京北汽/SCP/Views/SupplierData/SCP_ASN.aspx.cs
  26. 11
      北京北汽/SCP/Views/SupplierData/SCP_ASN_CREATE.aspx.cs
  27. 12
      北京北汽/SCP/Views/SupplierData/SCP_ASN_DETAIL.aspx
  28. 39
      北京北汽/SCP/Views/SupplierData/SCP_ASN_DETAIL.aspx.cs
  29. 42
      北京北汽/SCP/Views/SupplierData/SCP_ASN_DETAIL.aspx.designer.cs
  30. 5
      北京北汽/SCP/Views/SupplierData/SCP_INVOICE.aspx.cs
  31. 8
      北京北汽/SCP/Views/SupplierData/SCP_INVOICE_CREATE.aspx.cs
  32. 11
      北京北汽/SCP/Views/SupplierData/SCP_INVOICE_EDIT.aspx
  33. 64
      北京北汽/SCP/Views/SupplierData/SCP_INVOICE_EDIT.aspx.cs
  34. 45
      北京北汽/SCP/Views/SupplierData/SCP_INVOICE_EDIT.aspx.designer.cs
  35. 4
      北京北汽/SCP/Views/SupplierData/SCP_RECEIVE_LIST.aspx
  36. 12
      北京北汽/SCP/Views/SupplierData/SCP_RECEIVE_LIST.aspx.cs
  37. 15
      北京北汽/SCP/Views/SupplierData/SCP_RECEIVE_LIST.aspx.designer.cs
  38. 6
      北京北汽/SCP/default_hb.aspx.cs
  39. 2
      北京北汽/Utils/ExcelHelper.cs

16
北京北汽/Controller/SCP_ASK_CONTROLLER.cs

@ -1859,7 +1859,7 @@ namespace CK.SCP.Controller
{
_ret.State = ReturnStatus.Failed;
_ret.Result = false;
_ret.Message = "选择的记录,有不是发布状态记录";
_ret.Message = "选择的记录,有不是发布状态记录!";
}
}
if (p_state == AskState.New)
@ -1891,7 +1891,7 @@ namespace CK.SCP.Controller
{
_ret.State = ReturnStatus.Failed;
_ret.Result = false;
_ret.Message = "选择的记录,有不是发布状态记录";
_ret.Message = "选择的记录,有不是发布状态记录!";
}
}
if (p_state == AskState.Release)
@ -1934,7 +1934,7 @@ namespace CK.SCP.Controller
{
_ret.State = ReturnStatus.Failed;
_ret.Result = false;
_ret.Message = "选择的记录,有不是新建状态记录!";
_ret.Message = "选择的记录,有不是发布状态记录!";
}
}
if (p_state == AskState.Reject)
@ -1967,7 +1967,7 @@ namespace CK.SCP.Controller
{
_ret.State = ReturnStatus.Failed;
_ret.Result = false;
_ret.Message = "选择的记录,有不是新建或发布状态记录!";
_ret.Message = "选择的记录,有不是发布状态记录!";
}
}
@ -2029,7 +2029,7 @@ namespace CK.SCP.Controller
{
_ret.State = ReturnStatus.Failed;
_ret.Result = false;
_ret.Message = "选择的记录,有不是【已确认】或【已发货】状态,【发布状态】请用取消发布或看板作废";
_ret.Message = "选择的记录,有不是【已确认】或【已发货】状态,【发布状态】请用取消发布或看板作废!";
}
}
@ -2058,7 +2058,7 @@ namespace CK.SCP.Controller
{
_ret.State = ReturnStatus.Failed;
_ret.Result = false;
_ret.Message = "选择的记录,有不是新建或发布状态记录";
_ret.Message = "选择的记录,有不是新建或发布状态记录!";
}
}
@ -2086,7 +2086,7 @@ namespace CK.SCP.Controller
{
_ret.State = ReturnStatus.Failed;
_ret.Result = false;
_ret.Message = "选择的记录已经有发货单据不能取消";
_ret.Message = "选择的记录已经有发货单据不能取消!";
}
@ -2155,7 +2155,7 @@ namespace CK.SCP.Controller
{
_ret.State = ReturnStatus.Failed;
_ret.Result = false;
_ret.Message = "数据更新失败";
_ret.Message = "数据更新失败!";
}
}

6
北京北汽/Controller/SCP_ASN_CONTROLLER.cs

@ -525,7 +525,7 @@ namespace CK.SCP.Controller
{
_ret.State = ReturnStatus.Failed;
_ret.Result = false;
_ret.Message = "存在删除记录不能操作";
_ret.Message = "存在删除记录不能操作!";
}
else
{
@ -599,7 +599,7 @@ namespace CK.SCP.Controller
{
_ret.State = ReturnStatus.Failed;
_ret.Result = false;
_ret.Message = string.Format("选择记录中有,不是新建状态不能作废");
_ret.Message = string.Format("选择记录中有,不是新建状态不能作废!");
}
}
@ -634,7 +634,7 @@ namespace CK.SCP.Controller
{
_ret.State = ReturnStatus.Failed;
_ret.Result = false;
_ret.Message = "数据更新失败";
_ret.Message = "数据更新失败!";
}
}
}

7
北京北汽/Models/ScpCache.cs

@ -240,10 +240,11 @@ namespace CK.SCP.Models
{
get
{
if (_LangauageList == null || _LangauageList.Count == 0)
{
//if (_LangauageList == null || _LangauageList.Count == 0)
//{
// 为了及时性 每次都直接读取
_LangauageList = ScpDb.TA_LANGUAGE.ToList();
}
//}
return _LangauageList;
}

10
北京北汽/Models/ScpEntity/TA_LANGUAGE.cs

@ -14,23 +14,15 @@ namespace CK.SCP.Models.ScpEntity
public int UID { get; set; }
[StringLength(200)]
public string GUID { get; set; }
[StringLength(200)]
[StringLength(2000)]
public string CH { get; set; }
[StringLength(200)]
public string EN { get; set; }
[StringLength(200)]
public string RU { get; set; }
[StringLength(200)]
public string DE { get; set; }
[StringLength(200)]
public string FR { get; set; }
[StringLength(200)]
public string EL { get; set; }
[StringLength(200)]
public string AR { get; set; }
[StringLength(200)]
public string JP { get; set; }
public bool IsDeleted { get; set; }
}

11
北京北汽/SCP/Admin/profile.aspx

@ -16,17 +16,14 @@
LabelAlign="Top" ShowBorder="false" ShowHeader="false"
Width="400px">
<Items>
<f:TextBox ID="tbxOldPassword" TextMode="Password" runat="server" Label="当前密码" Required="true"
ShowRedStar="true">
<f:TextBox ID="tbxOldPassword" TextMode="Password" runat="server" Label="当前密码" Required="true">
</f:TextBox>
<f:TextBox ID="tbxNewPassword" TextMode="Password" runat="server" Label="新密码" Required="true"
MinLength="6" ShowRedStar="true">
<f:TextBox ID="tbxNewPassword" TextMode="Password" runat="server" Label="新密码" Required="true">
</f:TextBox>
<f:TextBox ID="tbxConfirmNewPassword" TextMode="Password" runat="server" Label="确认新密码"
Required="true" ShowRedStar="true">
<f:TextBox ID="tbxConfirmNewPassword" TextMode="Password" runat="server" Label="确认新密码" Required="true" >
</f:TextBox>
<f:Button ID="btnSave" runat="server" Icon="SystemSave" OnClick="btnSave_OnClick"
ValidateForms="SimpleForm1" ValidateTarget="Top" Text="修改密码">
Text="修改密码">
</f:Button>
</Items>

32
北京北汽/SCP/Admin/profile.aspx.cs

@ -51,10 +51,24 @@ namespace SCP.admin
string oldPass = tbxOldPassword.Text.Trim();
string newPass = tbxNewPassword.Text.Trim();
string confirmNewPass = tbxConfirmNewPassword.Text.Trim();
if (string.IsNullOrEmpty( oldPass))
{
Alert.ShowInTop(GetResourceKey("请输入原始密码!"));
return;
}
if (string.IsNullOrEmpty(newPass))
{
Alert.ShowInTop(GetResourceKey("请输入新密码!"));
return;
}
if (string.IsNullOrEmpty(confirmNewPass))
{
Alert.ShowInTop(GetResourceKey("请输入确认新密码!"));
return;
}
if (newPass != confirmNewPass)
{
tbxConfirmNewPassword.MarkInvalid(GetResourceKey("确认密码和新密码不一致!"));
Alert.ShowInTop(GetResourceKey("确认密码和新密码不一致!"));
return;
}
@ -64,7 +78,17 @@ namespace SCP.admin
{
if (!PasswordUtil.ComparePasswords(user.Password, oldPass))
{
tbxOldPassword.MarkInvalid(GetResourceKey("当前密码不正确!"));
Alert.ShowInTop(GetResourceKey("当前密码不正确!"));
return;
}
if (tbxNewPassword.Text.Length == 0 || tbxConfirmNewPassword.Text.Length == 0)
{
Alert.ShowInTop(GetResourceKey("新密码以及确认密码不能为空!"));
return;
}
if (tbxNewPassword.Text.Length<6)
{
Alert.ShowInTop(GetResourceKey("密码长度不能小于6!"));
return;
}
@ -81,7 +105,7 @@ namespace SCP.admin
user.Password = PasswordUtil.CreateDbPassword(newPass);
DB.SaveChanges();
Alert.ShowInTop(GetResourceKey("修改密码成功"));
Alert.ShowInTop(GetResourceKey("修改密码成功!"));
}
}

71
北京北汽/SCP/Business/PageBase.cs

@ -1241,10 +1241,11 @@ namespace SCP
if (!string.IsNullOrEmpty(p_key))
{
List<TA_LANGUAGE> _ls = null;
if (Application["LanguageList"] == null)
{
//if (Application["LanguageList"] == null)
//{
// 为了及时性 每次都直接读取
Application["LanguageList"] = ScpCache.LangauageList;
}
//}
_ls = Application["LanguageList"] as List<TA_LANGUAGE>;
if (_ls != null)
@ -1280,6 +1281,8 @@ namespace SCP
}
return _content;
}
/// <summary>
/// 当前语言
/// </summary>
@ -1306,6 +1309,7 @@ namespace SCP
foreach (var itm in _grid.Columns)
{
itm.HeaderText = GetResourceKey(itm.HeaderText);
_grid.Title = GetResourceKey(_grid.Title);
}
}
@ -1332,7 +1336,7 @@ namespace SCP
if (p_crtl is DropDownList)
{
DropDownList _dp = p_crtl as DropDownList;
_dp.Label = GetResourceKey(_dp.Text);
_dp.Label = GetResourceKey(string.IsNullOrEmpty( _dp.Text)?_dp.Label:_dp.Text);
foreach (var itm in _dp.Items)
{
itm.Text = GetResourceKey(itm.Text);
@ -1386,6 +1390,28 @@ namespace SCP
ToolbarText toolbarText = p_crtl as ToolbarText;
toolbarText.Text = GetResourceKey(toolbarText.Text);
}
if (p_crtl is NumberBox)
{
NumberBox number = p_crtl as NumberBox;
number.Text = GetResourceKey(number.Text);
number.Label = GetResourceKey(number.Label);
}
if (p_crtl is FileUpload)
{
FileUpload _File = p_crtl as FileUpload;
_File.ButtonText = GetResourceKey(_File.ButtonText);
_File.EmptyText = GetResourceKey(_File.EmptyText);
}
if (p_crtl is DatePicker)
{
DatePicker date = p_crtl as DatePicker;
date.EmptyText = GetResourceKey(date.EmptyText);
}
if (p_crtl is HyperLink)
{
HyperLink _Hype = p_crtl as HyperLink;
_Hype.Text = GetResourceKey(_Hype.Text);
}
}
}
@ -1734,11 +1760,17 @@ namespace SCP
{
try
{
string message = "文件导出成功,请点击文件名下载";
EpPlusHelper _helper = new EpPlusHelper();
if ((title == "CH" )|| (title == "EN"))
{
message = GetEN(title,message);
title = null;
}
_helper.ExportExcelCompleted += (filePath, fileName) =>
{
Alert.Show($"<a href=\'/exportfiles/{fileName}\'>{fileName}</a>", "文件导出成功,请点击文件名下载", MessageBoxIcon.Information);
Alert.Show($"<a href=\'/exportfiles/{fileName}\'>{fileName}</a>", message, MessageBoxIcon.Information);
};
_helper.WriteDsToExcel(sheetName, p_dataset, title);
@ -1777,6 +1809,35 @@ namespace SCP
}
return Menus;
}
/// <summary>
/// 获取英文
/// </summary>
/// <param name="CH"></param>
/// <returns></returns>
public static string GetEN(string mes,string CH)
{
using (var db = EntitiesFactory.CreateScpInstance())
{
List<TA_LANGUAGE> lANGUAGEs =null;
if (mes == "CH")
{
return CH;
}
lANGUAGEs =db.TA_LANGUAGE.Where(a =>a.CH == CH).ToList();
if (lANGUAGEs.Count()>0)
{
CH = lANGUAGEs.FirstOrDefault().EN;
}
}
return CH;
}
public string GetLANGUAGE()
{
string language = "CH";
language = GetCurrentLanguage();
return language;
}
/// <summary>
/// 生成验证码

16
北京北汽/SCP/SCP.csproj

@ -243,6 +243,8 @@
<Content Include="Views\BasicData\SCP_FACTORY_EDIT.aspx" />
<Content Include="Views\BasicData\SCP_INTERFACE.aspx" />
<Content Include="Views\BasicData\SCP_LANGUAGE.aspx" />
<Content Include="Views\BasicData\SCP_LANGUAGE_1.aspx" />
<Content Include="Views\BasicData\SCP_LANGUAGE_DETAIL.aspx" />
<Content Include="Views\BasicData\SCP_MAKE_CODE_CORE.aspx" />
<Content Include="Views\BasicData\SCP_MAKE_CODE.aspx" />
<Content Include="Views\BasicData\SCP_MoldSharing.aspx" />
@ -5039,6 +5041,20 @@
<Compile Include="Views\BasicData\SCP_LANGUAGE.aspx.designer.cs">
<DependentUpon>SCP_LANGUAGE.aspx</DependentUpon>
</Compile>
<Compile Include="Views\BasicData\SCP_LANGUAGE_1.aspx.cs">
<DependentUpon>SCP_LANGUAGE_1.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="Views\BasicData\SCP_LANGUAGE_1.aspx.designer.cs">
<DependentUpon>SCP_LANGUAGE_1.aspx</DependentUpon>
</Compile>
<Compile Include="Views\BasicData\SCP_LANGUAGE_DETAIL.aspx.cs">
<DependentUpon>SCP_LANGUAGE_DETAIL.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="Views\BasicData\SCP_LANGUAGE_DETAIL.aspx.designer.cs">
<DependentUpon>SCP_LANGUAGE_DETAIL.aspx</DependentUpon>
</Compile>
<Compile Include="Views\BasicData\SCP_MAKE_CODE_CORE.aspx.cs">
<DependentUpon>SCP_MAKE_CODE_CORE.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>

80
北京北汽/SCP/Views/BasicData/SCP_LANGUAGE_1.aspx

@ -0,0 +1,80 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SCP_LANGUAGE_1.aspx.cs" Inherits="SCP.Views.BasicData.SCP_LANGUAGE_1" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title></title>
</head>
<body>
<form id="form1" runat="server">
<f:PageManager runat="server" AutoSizePanelID="Panel1" />
<f:Panel ID="Panel1" runat="server" Title="" Layout="VBox" BoxConfigAlign="Stretch" BoxConfigPosition="Start">
<Items>
<f:Form runat="server">
<Toolbars>
<f:Toolbar ID="Toolbar2" runat="server">
<Items>
<f:Button ID="Button3" runat="server" EnablePostBack="false" Text="刷新" Icon="Reload" OnClientClick="location.reload();">
</f:Button>
<f:Button ID="Insert" runat="server" Text="新建" Icon="Add" OnClick="Button2_Click" >
</f:Button>
<f:Button ID="Delete" runat="server" Text="删除" Icon="Delete" OnClick="Buttondelete_Click" OnClientClick="if(!confirm('是否要将数据删除'))return false;" >
</f:Button>
<f:Button ID="Update" runat="server" Text="修改" Icon="BasketEdit" OnClick="Button4_Click" >
</f:Button>
<f:TextBox runat = "server" Label = "中文" EmptyText = "请输入中文" ID = "TextCH" LabelWidth="50px" />
<f:Button ID="btnSearch" runat="server" OnClick="btnSearch_Click" Text="快速查找" Icon="Find">
</f:Button>
<f:ToolbarSeparator runat="server" />
</Items>
</f:Toolbar>
</Toolbars>
</f:Form>
<f:Grid ID = "Grid_TA_LANGUAGE" ShowBorder = "true" ShowHeader = "true" runat ="server" EnableTextSelection="true"
DataKeyNames = "UID,GUID,CH,EN,RU,DE,FR,EL,AR,JP,IsDeleted"
AllowSorting="true" BoxFlex="1"
PageSize="100"
EnableRowDoubleClickEvent="True" SortField="UID"
IsDatabasePaging="True" AllowPaging="True"
AutoScroll="True" SortDirection="ASC" OnPageIndexChange="Grid_TA_LANGUAGE_PageIndexChange" >
<PageItems>
<f:ToolbarSeparator ID="ToolbarSeparator3" runat="server">
</f:ToolbarSeparator>
<f:ToolbarText ID="ToolbarText2" runat="server" Text="每页记录数:">
</f:ToolbarText>
<f:DropDownList ID="ddlGridPageSize" Width="80px" AutoPostBack="true" OnSelectedIndexChanged="ddlGridPageSize_SelectedIndexChanged"
runat="server">
<f:ListItem Text="100" Value="100" />
<f:ListItem Text="200" Value="200" />
<f:ListItem Text="500" Value="500" />
<f:ListItem Text="1000" Value="1000" />
</f:DropDownList>
</PageItems>
<Columns >
<f:BoundField runat="server" Width = "250px" DataField = "UID" DataFormatString = "{0}" HeaderText = "" Hidden="true"/>
<f:BoundField runat="server" Width = "250px" DataField = "GUID" DataFormatString = "{0}" HeaderText = "" Hidden="true"/>
<f:BoundField runat="server" Width = "250px" DataField = "CH" DataFormatString = "{0}" HeaderText = "中文" />
<f:BoundField runat="server" Width = "350px" DataField = "EN" DataFormatString = "{0}" HeaderText = "英文"/>
<f:BoundField runat="server" Width = "80px" DataField = "RU" DataFormatString = "{0}" HeaderText ="俄文" Hidden="true"/>
<f:BoundField runat="server" Width = "80px" DataField = "DE" DataFormatString = "{0}" HeaderText = "德文" Hidden="true"/>
<f:BoundField runat="server" Width = "80px" DataField = "FP" DataFormatString = "{0}" HeaderText ="法文" Hidden="true"/>
<f:BoundField runat="server" Width = "80px" DataField = "AR" DataFormatString = "{0}" HeaderText ="阿拉伯" Hidden="true"/>
<f:BoundField runat="server" Width = "80px" DataField = "JP" DataFormatString = "{0}" HeaderText ="日文" Hidden="true"/>
</Columns>
</f:Grid>
</Items>
</f:Panel>
<f:HiddenField ID="highlightRows" runat="server">
</f:HiddenField>
<f:Window runat="server" ID="Window1" Hidden="True" AutoScroll="false" Width="700px" Height="200px" OnClose="Window1_Close"
WindowPosition="Center" IsModal="true" Title="多语言明细" Target="Parent" EnableIFrame="true"
IFrameUrl="about:blank" />
</form>
</body>
</html>

103
北京北汽/SCP/Views/BasicData/SCP_LANGUAGE_1.aspx.cs

@ -0,0 +1,103 @@
using System;
using System.Collections.Generic;
using System.Linq;
using CK.SCP.Models.ScpEntity;
using CK.SCP.Controller;
using FineUI;
using System.Linq.Dynamic;
namespace SCP.Views.BasicData
{
public partial class SCP_LANGUAGE_1 : PageBase
{
private List<TA_LANGUAGE> _list = new List<TA_LANGUAGE>();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
BindLANGUAGE();
TranslatorAgent(Grid_TA_LANGUAGE);
TranslatorAgents(Toolbar2);
}
}
public void BindLANGUAGE()
{
_list = SearchData();
var list = Sort<TA_LANGUAGE>(_list.AsQueryable(), Grid_TA_LANGUAGE);
Grid_TA_LANGUAGE.DataSource = list;
Grid_TA_LANGUAGE.RecordCount = list.Count();
Grid_TA_LANGUAGE.DataBind();
}
public List<TA_LANGUAGE> SearchData()
{
TA_LANGUAGE _entity = new TA_LANGUAGE();
_entity.CH = TextCH.Text;
var _ret = SCP_TA_LANGUAGE_CONTROLLER.Get_TA_LANGUAGE_List(_entity);
if (_ret.State == ReturnStatus.Succeed)
{
_list = _ret.Result;
}
else
{
_list = new List<TA_LANGUAGE>();
}
return _list;
}
protected void Button1_Click(object sender, EventArgs e)
{
}
protected void Button2_Click(object sender, EventArgs e)
{
PageContext.RegisterStartupScript(Window1.GetShowReference(string.Format("../BasicData/SCP_LANGUAGE_DETAIL.aspx?")));
}
protected void Buttondelete_Click(object sender, EventArgs e)
{
string ID = GetSelectedDataKey(Grid_TA_LANGUAGE, 0);
var ret = SCP_TA_LANGUAGE_CONTROLLER.Del_TA_LANGUAGE(new TA_LANGUAGE { GUID = GetSelectedDataKey(Grid_TA_LANGUAGE, 1) });
if (ret.State == ReturnStatus.Succeed)
{
Alert.Show("删除成功!");
BindLANGUAGE();
}
}
protected void Button4_Click(object sender, EventArgs e)
{
string GUID = GetSelectedDataKey(Grid_TA_LANGUAGE, 1);
string CH = GetSelectedDataKey(Grid_TA_LANGUAGE, 2);
string EN = GetSelectedDataKey(Grid_TA_LANGUAGE, 3);
string url = String.Format("../BasicData/SCP_LANGUAGE_DETAIL.aspx?CH={0}&&EN={1}&&GUID={2}", CH, EN, GUID);
PageContext.RegisterStartupScript(Window1.GetShowReference(url));
}
protected void ddlGridPageSize_SelectedIndexChanged(object sender, EventArgs e)
{
Grid_TA_LANGUAGE.PageSize = Convert.ToInt32(ddlGridPageSize.SelectedValue);
}
protected void Grid_TA_LANGUAGE_Sort(object sender, GridSortEventArgs e)
{
BindLANGUAGE();
}
protected void btnSearch_Click(object sender, EventArgs e)
{
BindLANGUAGE();
}
protected void Grid_TA_LANGUAGE_PageIndexChange(object sender, GridPageEventArgs e)
{
BindLANGUAGE();
}
protected void Window1_Close(object sender, WindowCloseEventArgs e)
{
BindLANGUAGE();
}
}
}

152
北京北汽/SCP/Views/BasicData/SCP_LANGUAGE_1.aspx.designer.cs

@ -0,0 +1,152 @@
//------------------------------------------------------------------------------
// <自动生成>
// 此代码由工具生成。
//
// 对此文件的更改可能导致不正确的行为,如果
// 重新生成代码,则所做更改将丢失。
// </自动生成>
//------------------------------------------------------------------------------
namespace SCP.Views.BasicData
{
public partial class SCP_LANGUAGE_1
{
/// <summary>
/// form1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary>
/// Panel1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.Panel Panel1;
/// <summary>
/// Toolbar2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.Toolbar Toolbar2;
/// <summary>
/// Button3 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.Button Button3;
/// <summary>
/// Insert 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.Button Insert;
/// <summary>
/// Delete 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.Button Delete;
/// <summary>
/// Update 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.Button Update;
/// <summary>
/// TextCH 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.TextBox TextCH;
/// <summary>
/// btnSearch 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.Button btnSearch;
/// <summary>
/// Grid_TA_LANGUAGE 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.Grid Grid_TA_LANGUAGE;
/// <summary>
/// ToolbarSeparator3 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.ToolbarSeparator ToolbarSeparator3;
/// <summary>
/// ToolbarText2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.ToolbarText ToolbarText2;
/// <summary>
/// ddlGridPageSize 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.DropDownList ddlGridPageSize;
/// <summary>
/// highlightRows 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.HiddenField highlightRows;
/// <summary>
/// Window1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.Window Window1;
}
}

43
北京北汽/SCP/Views/BasicData/SCP_LANGUAGE_DETAIL.aspx

@ -0,0 +1,43 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SCP_LANGUAGE_DETAIL.aspx.cs" Inherits="SCP.Views.BasicData.SCP_LANGUAGE_DETAIL" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title></title>
</head>
<body>
<form id="form1" runat="server" >
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server"/>
<f:Panel ID="Panel1" CssClass="blockpanel" runat="server" ShowBorder="true" ShowHeader="true" Layout="Region">
<Toolbars>
<f:Toolbar ID="Toolbar2" runat="server">
<Items>
<f:Button ID="Btn_Save" runat="server" EnablePostBack="True" Text="保存并关闭" Icon="SystemSave" OnClick="Btn_Save_Click">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
<Items>
<f:Form runat="server" Width="550px" BodyPadding="25 25 30 25">
<Items>
<f:TextBox runat = "server" Label = "编码" EmptyText = "" ID = "TXT_GUID" Hidden="true"/>
<f:TextBox runat = "server" Label = "中文" EmptyText = "" ID = "TXT_CH" />
<f:TextBox runat = "server" Label = "英文" EmptyText = "" ID = "TXT_EN" />
<f:TextBox runat = "server" Label = "俄文" EmptyText = "" ID = "TXT_RU" Hidden="true"/>
<f:TextBox runat = "server" Label = "德文" EmptyText = "" ID = "TXT_DE" Hidden="true" />
<f:TextBox runat = "server" Label = "法文" EmptyText = "" ID = "TXT_FR" Hidden="true"/>
<f:TextBox runat = "server" Label = "阿拉伯" EmptyText = "" ID = "TXT_AR" Hidden="true" />
<f:TextBox runat = "server" Label = "日文" EmptyText = "" ID = "TXT_JP" Hidden="true"/>
</Items>
</f:Form>
</Items>
</f:Panel>
</form>
</body>
</html>

108
北京北汽/SCP/Views/BasicData/SCP_LANGUAGE_DETAIL.aspx.cs

@ -0,0 +1,108 @@
using System;
using System.Collections.Generic;
using System.Web.UI;
using CK.SCP.Models.ScpEntity;
using CK.SCP.Controller;
using FineUI;
namespace SCP.Views.BasicData
{
public partial class SCP_LANGUAGE_DETAIL : PageBase
{
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
Bind();
}
}
private void Bind()
{
if (!string.IsNullOrEmpty(Request["CH"]))
{
TA_LANGUAGE _entity = new TA_LANGUAGE();
_entity.CH = Request["CH"];
_entity.EN = Request["EN"];
_entity.GUID = Request["GUID"];
TXT_CH.Text = _entity.CH;
TXT_EN.Text = _entity.EN;
TXT_GUID.Text = _entity.GUID;
}
}
protected void Btn_Save_Click(object sender, EventArgs e)
{
if (!string.IsNullOrEmpty(Request["CH"]))
{
TA_LANGUAGE _entity = new TA_LANGUAGE();
_entity.GUID = Request["GUID"];
_entity.CH = TXT_CH.Text;
_entity.EN = TXT_EN.Text;
_entity.RU = TXT_RU.Text;
_entity.DE = TXT_DE.Text;
_entity.FR = TXT_FR.Text;
_entity.AR = TXT_AR.Text;
_entity.JP = TXT_JP.Text;
TXT_GUID.Text = _entity.GUID;
var ret = SCP_TA_LANGUAGE_CONTROLLER.Get_TA_LANGUAGE_List(new TA_LANGUAGE { CH = TXT_CH.Text });
if (ret.State == ReturnStatus.Succeed)
{
if (String.IsNullOrEmpty(TXT_CH.Text))
{
Alert.ShowInTop("中文名不能为空!");
return;
}
else
{
var ret1 = SCP_TA_LANGUAGE_CONTROLLER.Save_TA_LANGUAGE(new List<TA_LANGUAGE>() { _entity });
if (ret1.State == ReturnStatus.Succeed)
{
Alert.ShowInTop("保存成功!", String.Empty, ActiveWindow.GetHidePostBackReference());
}
}
}
}
else
{
TA_LANGUAGE _entity = new TA_LANGUAGE();
_entity.GUID = Guid.NewGuid().ToString("N").ToUpper();
_entity.CH = TXT_CH.Text;
_entity.EN = TXT_EN.Text;
_entity.RU = TXT_RU.Text;
_entity.DE = TXT_DE.Text;
_entity.FR = TXT_FR.Text;
_entity.AR = TXT_AR.Text;
_entity.JP = TXT_JP.Text;
var ret = SCP_TA_LANGUAGE_CONTROLLER.Get_TA_LANGUAGE_List(new TA_LANGUAGE { CH = TXT_CH.Text });
if (ret.State == ReturnStatus.Succeed)
{
if (String.IsNullOrEmpty(_entity.CH))
{
Alert.ShowInTop("中文名不能为空!");
return;
}
if (ret.Result.Count > 0)
{
Alert.ShowInTop("中文名称重复!");
return;
}
else
{
var ret1 = SCP_TA_LANGUAGE_CONTROLLER.Save_TA_LANGUAGE(new List<TA_LANGUAGE>() { _entity });
if (ret1.State == ReturnStatus.Succeed)
{
Alert.ShowInTop("保存成功!", String.Empty, ActiveWindow.GetHidePostBackReference());
}
}
}
}
}
}
}

134
北京北汽/SCP/Views/BasicData/SCP_LANGUAGE_DETAIL.aspx.designer.cs

@ -0,0 +1,134 @@
//------------------------------------------------------------------------------
// <自动生成>
// 此代码由工具生成。
//
// 对此文件的更改可能导致不正确的行为,如果
// 重新生成代码,则所做更改将丢失。
// </自动生成>
//------------------------------------------------------------------------------
namespace SCP.Views.BasicData
{
public partial class SCP_LANGUAGE_DETAIL
{
/// <summary>
/// form1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary>
/// PageManager1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.PageManager PageManager1;
/// <summary>
/// Panel1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.Panel Panel1;
/// <summary>
/// Toolbar2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.Toolbar Toolbar2;
/// <summary>
/// Btn_Save 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.Button Btn_Save;
/// <summary>
/// TXT_GUID 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.TextBox TXT_GUID;
/// <summary>
/// TXT_CH 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.TextBox TXT_CH;
/// <summary>
/// TXT_EN 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.TextBox TXT_EN;
/// <summary>
/// TXT_RU 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.TextBox TXT_RU;
/// <summary>
/// TXT_DE 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.TextBox TXT_DE;
/// <summary>
/// TXT_FR 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.TextBox TXT_FR;
/// <summary>
/// TXT_AR 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.TextBox TXT_AR;
/// <summary>
/// TXT_JP 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.TextBox TXT_JP;
}
}

2
北京北汽/SCP/Views/ExChangeCenter/EC_CONTROLLER.aspx.cs

@ -207,7 +207,7 @@ namespace EC.ExChangeCenter
}
}
DataSet ds = SCP_EXCEL_CONTROLLER.GET_ASK_EXECEL(_ls);
PageBase.DataSetToExcel(ds, "要货看板");
PageBase.DataSetToExcel(ds, "要货看板","");
}
protected void btnDetail_Click(object sender, EventArgs e)

2
北京北汽/SCP/Views/PlanData/SCP_INCOMPLETE_ASK.aspx

@ -30,7 +30,7 @@
</Toolbars>
</f:Form>
<f:Form BodyPadding="10px" Height="100px" ID="extForm1"
<f:Form BodyPadding="10px" MinWidth ="150px" ID="extForm1"
runat="server" Title="" ShowHeader="false" >
<Rows>
<f:FormRow ColumnWidths="33% 33% 33%" ID="FormRow_1" runat="server">

2
北京北汽/SCP/Views/PlanData/SCP_PO_CQ.aspx.cs

@ -135,7 +135,7 @@ namespace SCP.Views.PlanData
_ls.Add(rowDataKeys[1] as string);
}
DataSet ds = SCP_EXCEL_CONTROLLER.GET_PO_EXECEL(_ls);
PageBase.DataSetToExcel(ds, "采购订单");
PageBase.DataSetToExcel(ds, "采购订单","");
}
protected void btnDetail_Click(object sender, EventArgs e)

2
北京北汽/SCP/Views/SupplierData/SCP_ARRIVE.aspx

@ -46,7 +46,7 @@
<f:FormRow runat="server" ID="FormRow_2">
<Items>
<f:TextBox runat="server" Label="要货看板号" ID="TXT_AskBill"/>
<f:DatePicker runat="server" Required="true" DateFormatString="yyyy-MM-dd" Label="到货日期日期" EmptyText="请选择日期" ID="DP_StartDate" />
<f:DatePicker runat="server" Required="true" DateFormatString="yyyy-MM-dd" Label="到货日期" EmptyText="请选择日期" ID="DP_StartDate" />
<f:DatePicker runat="server" Required="true" DateFormatString="yyyy-MM-dd" EmptyText="请选择日期" Label="至" ID="Date_EndDate" />
<f:DropDownList runat="server" ID="DDL_BillState" Label="单据类型">
<f:ListItem Text="-" Value="" />

8
北京北汽/SCP/Views/SupplierData/SCP_ARRIVE.aspx.cs

@ -23,6 +23,7 @@ namespace SCP.Views.SupplierData
TranslatorAgents(FormRow_3);
TranslatorAgent(Grid_V_TB_ARRIVE);
TranslatorAgent(ToolbarText1);
//TranslatorAgent(factoryList);
}
}
@ -111,7 +112,7 @@ namespace SCP.Views.SupplierData
{
if (Grid_V_TB_ARRIVE.SelectedRowIndexArray.Count() == 0)
{
PageContext.RegisterStartupScript(Alert.GetShowInTopReference("没有选择数据!"));
PageContext.RegisterStartupScript(Alert.GetShowInTopReference(GetResourceKey("没有选择数据!")));
return;
}
object[] rowDataKeys = Grid_V_TB_ARRIVE.DataKeys[Grid_V_TB_ARRIVE.SelectedRowIndex];
@ -173,8 +174,9 @@ namespace SCP.Views.SupplierData
{
ds = SCP_EXCEL_CONTROLLER.GET_ARRIVE_EXECEL(_ls);
}
PageBase.DataSetToExcel(ds, "到货单");
// 获取语言
string la = GetLANGUAGE();
PageBase.DataSetToExcel(ds, "到货单",la);
});
}
}

2
北京北汽/SCP/Views/SupplierData/SCP_ASK.aspx

@ -31,6 +31,8 @@
</f:Button>
<f:Button ID="btn" runat="server" Text="生成发货单(默认全发)" Icon="Add" OnClick="btn_Click" OnClientClick="if(!confirm('是否要将剩余零件,全部生成到发货单,请确认标包数量是否准确,发货数量必须与物料实际数量一致?'))return false;" >
</f:Button>
<f:Button ID="Button6" runat="server" Text="生成发货单(默认全发)" Icon="Add" OnClick="btn_Click" OnClientClick="if(!confirm('Whether you want to generate all the remaining parts to the invoice, please make sure that the quantity of the package is accurate, and the quantity shipped must be the same as the actual quantity of the material?'))return false;" >
</f:Button>
<f:Button ID="btnShow" runat="server" Text="查询面板" Icon="Find" OnClick="btnShow_Click">
</f:Button>
<f:ToolbarSeparator runat="server" />

16
北京北汽/SCP/Views/SupplierData/SCP_ASK.aspx.cs

@ -27,10 +27,21 @@ namespace SCP.Views.SupplierData
{
public partial class SCP_ASK : PageBase
{
// 获取语言
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
string la = GetLANGUAGE();
if (la == "CH")
{
Button6.Hidden = true;
}
else
{
btn.Hidden = true;
}
LoadData();
CheckRolesMenu();
TranslatorAgents(FormRow_1);
@ -164,7 +175,8 @@ namespace SCP.Views.SupplierData
}
}
DataSet ds = SCP_EXCEL_CONTROLLER.GET_ASK_EXECEL(_ls);
PageBase.DataSetToExcel(ds, "要货看板");
string la = GetLANGUAGE();
PageBase.DataSetToExcel(ds, "要货看板",la);
}
protected void btnDetail_Click(object sender, EventArgs e)
@ -261,7 +273,7 @@ namespace SCP.Views.SupplierData
{
if (ConvertHelper.To<Int32>(rowDataKeys[7]) == (int)AskState.New || ConvertHelper.To<Int32>(rowDataKeys[7]) == (int)AskState.Release)
{
PageContext.RegisterStartupScript(Alert.GetShowInTopReference(GetResourceKey("选择记录不是供应商确认单据")));
PageContext.RegisterStartupScript(Alert.GetShowInTopReference(GetResourceKey("选择记录不是供应商确认单据!")));
return;
}
string AskBillNum = rowDataKeys[2] as string;

15
北京北汽/SCP/Views/SupplierData/SCP_ASK.aspx.designer.cs

@ -7,10 +7,12 @@
// </自动生成>
//------------------------------------------------------------------------------
namespace SCP.Views.SupplierData {
namespace SCP.Views.SupplierData
{
public partial class SCP_ASK {
public partial class SCP_ASK
{
/// <summary>
/// form1 控件。
@ -84,6 +86,15 @@ namespace SCP.Views.SupplierData {
/// </remarks>
protected global::FineUI.Button btn;
/// <summary>
/// Button6 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.Button Button6;
/// <summary>
/// btnShow 控件。
/// </summary>

2
北京北汽/SCP/Views/SupplierData/SCP_ASK_DETAIL.aspx.cs

@ -129,7 +129,7 @@ namespace SCP.SupplierData
}
else
{
Alert.Show(ret.Message);
Alert.Show(GetResourceKey(ret.Message));
}
}
}

2
北京北汽/SCP/Views/SupplierData/SCP_ASN.aspx

@ -126,7 +126,7 @@
</f:Panel>
<f:Window runat="server" ID="Window1" Hidden="True"
WindowPosition="Center" IsModal="true" Title="发货明细" Target="Parent" EnableIFrame="true" CloseAction="HidePostBack"
IFrameUrl="about:blank" Height="600px" Width="1024px" AutoScroll="True" OnClose="Window1_Close" />
IFrameUrl="about:blank" Height="600px" MinWidth="1200px" AutoScroll="True" OnClose="Window1_Close" />
</form>
</body>
</html>

3
北京北汽/SCP/Views/SupplierData/SCP_ASN.aspx.cs

@ -89,7 +89,8 @@ namespace SCP.SupplierData
DataSet ds = SCP_EXCEL_CONTROLLER.GET_ASN_EXECEL(_ls);
PageBase.DataSetToExcel(ds, "发货单");
string la = GetLANGUAGE();
PageBase.DataSetToExcel(ds, "发货单",la);
});

11
北京北汽/SCP/Views/SupplierData/SCP_ASN_CREATE.aspx.cs

@ -105,7 +105,7 @@ namespace SCP.SupplierData
{
if (p.PackQty == 1 || p.PackQty == 0)
{
_notifyList.Add(string.Format("请注意零件编号{0}行号{1}标包数为1是否填写正确,如果不正确请修改", p.PartCode, p.PoLine));
_notifyList.Add(GetResourceKey("请注意零件编号")+""+ p.PartCode+ GetResourceKey("行号")+""+ p.PoLine + ""+GetResourceKey("标包数为1是否填写正确,如果不正确请修改") );
}
p.Batch = p.PartDesc2 == "AST" ? "000000" : DateTime.Now.ToString("yyMMdd");
p.ProduceDate = DateTime.Now;
@ -142,7 +142,8 @@ namespace SCP.SupplierData
batch = batch.Trim();
if (batch.Length != 6)
{
Alert.Show($"批次号【{batch}】必需是6位,格式为 YYMMDD");
string s1 = GetResourceKey("批次号") + "【" + batch + "】" + GetResourceKey("必需是6位,格式为 YYMMDD");
Alert.Show(s1);
}
int y = Convert.ToInt32(batch.Substring(0, 2));
@ -152,12 +153,14 @@ namespace SCP.SupplierData
var date = new DateTime(y, m, d);
if (date.Date > DateTime.Now.Date)
{
Alert.Show($"批次号【{batch}】错误,不应大于发货日期");
string s2 = GetResourceKey("批次号") + "【" + batch + "】"+ GetResourceKey("错误, 不应大于发货日期");
Alert.Show(s2);
}
}
catch
{
Alert.Show($"批次号【{batch}】错误,批次必需是 YYMMDD ");
string s3 = GetResourceKey("批次号") + "【" + batch + "】" + GetResourceKey("错误,批次必需是 YYMMDD");
Alert.Show(s3);
}

12
北京北汽/SCP/Views/SupplierData/SCP_ASN_DETAIL.aspx

@ -18,12 +18,24 @@
</f:Button>
<f:Button ID="btnSend" runat="server" EnablePostBack="True" Text="确认发货" Icon="Car" OnClick="btnSend_Click" OnClientClick="send();if(!confirm('是否要发货?一旦发货,就将不能删除和修改此发货单!'))return false;">
</f:Button>
<f:Button ID="Button1" runat="server" EnablePostBack="True" Text="确认发货" Icon="Car" OnClick="btnSend_Click" OnClientClick="send();if(!confirm('Do you want to ship? Once shipped, this shipment note cannot be deleted or modified!'))return false;">
</f:Button>
<f:Button ID="btnPrint" runat="server" EnablePostBack="true" Text="打印发货单" Icon="Printer" OnClick="btnPrint_Click" >
</f:Button>
<f:Button ID="btnPackage" runat="server" EnablePostBack="true" Text="修改发货单" Hidden="true" Icon="CupEdit" OnClick="btnPackage_Click" OnClientClick="if(!confirm('是否要作废?新建状态作废,数量批次填写错误可以作废,如果作废单据再用之前送货单发货,一律按退货处理!'))return false;"/>
<f:Button ID="btnCancel" runat="server" EnablePostBack="true" Text="作废发货单" Icon="Delete" OnClick="btnCancel_Click" OnClientClick="if(!confirm('是否要作废?新建状态作废,数量批次填写错误可以作废,如果作废单据再用之前送货单发货,一律按退货处理!'))return false;"/>
<f:Button ID="btnCance2" runat="server" EnablePostBack="true" Text="作废发货单" Icon="Delete" OnClick="btnCancel_Click" OnClientClick="if(!confirm('Do you want to void it? The new status is invalid. If the quantity batch is filled in incorrectly, it can be invalidated. If the invalidated document is shipped using the previous delivery note, it will be treated as a return!'))return false;"/>
</Items>
</f:Toolbar>
</Toolbars>
<Toolbars>
<f:Toolbar ID="Toolbar3" runat="server">
<Items>
<f:Button ID="btnException" runat="server" Icon="ErrorDelete" Text="已发异常单据(已发状态,单据有问题实际没发货)" OnClick="btnException_Click" OnClientClick="if(!confirm('是否设置为异常,异常单据为工厂不能收货或供应商单据点击发货按钮后发现发货单错误,设置异常后请联系下单采购计划处理!'))return false;" >
</f:Button>
<f:Button ID="btnException2" runat="server" Icon="ErrorDelete" Text="已发异常单据(已发状态,单据有问题实际没发货)" OnClick="btnException_Click" OnClientClick="if(!confirm('Is it set as abnormal? The abnormal document is that the factory cannot receive the goods or the supplier found an error in the shipping order after clicking the shipping button. After setting the abnormality, please contact the purchasing plan for processing!'))return false;" >
</f:Button>
<f:Button ID="btnRepeat" runat="server" Icon="Accept" Text="重发发货单" OnClick="btnRepeat_Click"></f:Button>
</Items>

39
北京北汽/SCP/Views/SupplierData/SCP_ASN_DETAIL.aspx.cs

@ -27,6 +27,7 @@ namespace SCP.SupplierData
SetRoleRule();
TranslatorAgents(Toolbar2);
TranslatorAgents(Toolbar1);
TranslatorAgents(Toolbar3);
TranslatorAgent(ToolbarText1);
TranslatorAgent(Grid_V_TB_ASN_DETAIL);
TranslatorAgents(FormRow_1);
@ -78,11 +79,24 @@ namespace SCP.SupplierData
TXT_StateDesc.Text = _result.State_DESC;
if (_result.State == (int)AsnState.Ship)
{
string la = GetCurrentLanguage();
if (la == "CH")
{
btnException2.Hidden = true;
btnException.Hidden = false;
}
else
{
btnException.Hidden = true;
btnException2.Hidden = false;
}
//btnException.Hidden = false;
}
else
{
btnException.Hidden = true;
btnException2.Hidden = true;
}
}
SCP_BARCODE_CONTROLLER.Get_TS_BARCODE_List(new TS_BARCODE() { BillNum= TXT_AsnBillNum.Text.Trim() }, retobj => {
@ -103,6 +117,17 @@ namespace SCP.SupplierData
}
public void BindDetail()
{
string la = GetCurrentLanguage();
if (la =="CH")
{
Button1.Hidden = true;
btnCance2.Hidden = true;
}
else
{
btnSend.Hidden = true;
btnCancel.Hidden = true;
}
SearchV_TB_ASN_DETAILData((ret) => {
Grid_V_TB_ASN_DETAIL.RecordCount = ret.Count();
var list = SortAndPage<V_TB_ASN_DETAIL>(ret, Grid_V_TB_ASN_DETAIL);
@ -393,11 +418,11 @@ namespace SCP.SupplierData
var ret = SCP_ASN_CONTROLLER.Save_TB_ASN_STATE(new List<string>() { _ask.AsnBillNum },p_state);
if (ret.State == ReturnStatus.Succeed)
{
Alert.Show(p_msg);
Alert.Show(GetResourceKey(p_msg));
}
else
{
Alert.Show(ret.Message);
Alert.Show(GetResourceKey(ret.Message));
}
}
}
@ -590,12 +615,12 @@ namespace SCP.SupplierData
}
else
{
Alert.Show(GetResourceKey("发货单不是已发货状态"));
Alert.Show(GetResourceKey("发货单不是已发货状态!"));
}
}
else
{
Alert.Show(GetResourceKey("发货单不是【已发货】状态,只能处理【已发货】异常单据"));
Alert.Show(GetResourceKey("发货单不是【已发货】状态,只能处理【已发货】异常单据!"));
}
}
});
@ -625,12 +650,12 @@ namespace SCP.SupplierData
{
if (result.Result.Count(p => p.PrintType == (int)PrintType.ASN) == 0)
{
Alert.Show(_asn.AsnBillNum + GetResourceKey("发货单未打印"));
Alert.Show(_asn.AsnBillNum + GetResourceKey("发货单未打印!"));
return;
}
if (result.Result.Count(p => p.PrintType == (int)PrintType.BAR_CODE) == 0)
{
Alert.Show(_asn.AsnBillNum + GetResourceKey("标签未打印"));
Alert.Show(_asn.AsnBillNum + GetResourceKey("标签未打印!"));
return;
}
}
@ -642,7 +667,7 @@ namespace SCP.SupplierData
var check = SCP_ASN_CONTROLLER.Get_TS_UNI_API(_asn);
if (check.State == ReturnStatus.Failed)
{
Alert.Show(_asn.AsnBillNum + GetResourceKey("请勿重复提交数据"));
Alert.Show(_asn.AsnBillNum + GetResourceKey("请勿重复提交数据!"));
return;
}
var ret = SCP_ASN_CONTROLLER.Save_TB_ASN_DETAIL(_asn, _list);

42
北京北汽/SCP/Views/SupplierData/SCP_ASN_DETAIL.aspx.designer.cs

@ -7,10 +7,12 @@
// </自动生成>
//------------------------------------------------------------------------------
namespace SCP.SupplierData {
namespace SCP.SupplierData
{
public partial class SCP_ASN_DETAIL {
public partial class SCP_ASN_DETAIL
{
/// <summary>
/// form1 控件。
@ -57,6 +59,15 @@ namespace SCP.SupplierData {
/// </remarks>
protected global::FineUI.Button btnSend;
/// <summary>
/// Button1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.Button Button1;
/// <summary>
/// btnPrint 控件。
/// </summary>
@ -84,6 +95,24 @@ namespace SCP.SupplierData {
/// </remarks>
protected global::FineUI.Button btnCancel;
/// <summary>
/// btnCance2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.Button btnCance2;
/// <summary>
/// Toolbar3 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.Toolbar Toolbar3;
/// <summary>
/// btnException 控件。
/// </summary>
@ -93,6 +122,15 @@ namespace SCP.SupplierData {
/// </remarks>
protected global::FineUI.Button btnException;
/// <summary>
/// btnException2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.Button btnException2;
/// <summary>
/// btnRepeat 控件。
/// </summary>

5
北京北汽/SCP/Views/SupplierData/SCP_INVOICE.aspx.cs

@ -167,7 +167,10 @@ namespace SCP.Views.SupplierData
}
DataSet ds = SCP_EXCEL_CONTROLLER.GET_INVOICE_EXECEL(_ls);
PageBase.DataSetToExcel(ds, "导出发票");
string sheetName = "导出发票";
// 获取语言
string la = GetLANGUAGE();
PageBase.DataSetToExcel(ds,sheetName, la);
}
protected void Grid_V_TB_INVOICE_RowDataBound(object sender, GridRowEventArgs e)

8
北京北汽/SCP/Views/SupplierData/SCP_INVOICE_CREATE.aspx.cs

@ -360,9 +360,11 @@ namespace SCP.Views.SupplierData
var ret = SCP_INVOICE_CONTROLLER.CREATE_TB_INVOICE_MOLDSHARING(invoice, _list, CurrentUser.ConfigList.ContainsKey("发票限额"));
if (ret.State == ReturnStatus.Succeed)
{
string script = $"alert(\'发票 {invoice.InvcBillNum} 生成成功\');";
script += ActiveWindow.GetHidePostBackReference();
PageContext.RegisterStartupScript(script);
//string script = $"alert(\'发票 {invoice.InvcBillNum} 生成成功\');";
//script += ActiveWindow.GetHidePostBackReference();
//PageContext.RegisterStartupScript(script);
string mesge = GetResourceKey("发票")+ " "+ invoice.InvcBillNum +" "+ GetResourceKey("生成成功");
Alert.ShowInTop(mesge, String.Empty, ActiveWindow.GetHidePostBackReference());
}
else
{

11
北京北汽/SCP/Views/SupplierData/SCP_INVOICE_EDIT.aspx

@ -21,17 +21,26 @@
<f:Button ID="btnOK" runat="server" Text="修改数据" Hidden="true" OnClientClick="if(!confirm('是否要修改发票?'))return false;" Icon="ApplicationEdit" OnClick="btnOK_Click">
</f:Button>
<f:Button ID="btnOK_1" runat="server" Text="修改数据" Hidden="true" OnClientClick="if(!confirm('Do you want to modify the invoice?'))return false;" Icon="ApplicationEdit" OnClick="btnOK_Click">
</f:Button>
<f:Button ID="btnApply" runat="server" Text="提交申请" Hidden="true" OnClientClick="if(!confirm('是否要提交申请?'))return false;" Icon="Accept" OnClick="btnApply_Click">
</f:Button>
<f:Button ID="btnApply_1" runat="server" Text="提交申请" Hidden="true" OnClientClick="if(!confirm('Do you want to submit an application?'))return false;" Icon="Accept" OnClick="btnApply_Click">
</f:Button>
<f:Button ID="btnMail" runat="server" Text="寄出发票" Hidden="true" OnClientClick="if(!confirm('是否寄出发票?'))return false;" Icon="Mail" OnClick="btnMail_Click" ValidateForms="extForm1">
</f:Button>
<f:Button ID="btnMail_1" runat="server" Text="寄出发票" Hidden="true" OnClientClick="if(!confirm('Is the invoice sent out?'))return false;" Icon="Mail" OnClick="btnMail_Click" ValidateForms="extForm1">
</f:Button>
<f:Button ID="btnReject" runat="server" Text="发票作废" Hidden="true" OnClientClick="if(!confirm('是否要作废收票?'))return false;" Icon="Exclamation" OnClick="btnReject_Click">
</f:Button>
<f:Button ID="btnReject_1" runat="server" Text="发票作废" Hidden="true" OnClientClick="if(!confirm('Do you want to cancel the ticket receipt?'))return false;" Icon="Exclamation" OnClick="btnReject_Click">
</f:Button>
<f:Button ID="btnRed" runat="server" Hidden="true" Text="添加红字发票" OnClientClick="if(!confirm('是否要添加红字发票?'))return false;" Icon="Exclamation" OnClick="btnRed_Click">
</f:Button>
<f:Button ID="btnRed_1" runat="server" Hidden="true" Text="添加红字发票" OnClientClick="if(!confirm('Do you want to add a red invoice?'))return false;" Icon="Exclamation" OnClick="btnRed_Click">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>

64
北京北汽/SCP/Views/SupplierData/SCP_INVOICE_EDIT.aspx.cs

@ -164,37 +164,78 @@ namespace SCP.Views.SupplierData
txtMoldSharingPrice.Text = _Model.MoldSharingPrice.ToString();
txtMemo.Text = _Model.Remark;
if (_Model.State == (int)InvoiceState.New || _Model.State == (int)InvoiceState.CheckFail)
{
string la = GetCurrentLanguage();
if (la == "CH")
{
this.btnOK.Hidden = false;
this.btnOK_1.Hidden = true;
this.btnApply.Hidden = false;
this.btnApply_1.Hidden = true;
this.btnReject.Hidden = false;
this.btnReject_1.Hidden = true;
}
else
{
this.btnApply.Hidden = true;
this.btnApply_1.Hidden = false;
this.btnOK.Hidden = true;
this.btnOK_1.Hidden = false;
this.btnReject.Hidden = true;
this.btnReject_1.Hidden = false;
}
//this.btnOK.Hidden = false;
//this.btnApply.Hidden = false;
//this.btnReject.Hidden = false;
}
if (_Model.State == (int)InvoiceState.Reject)
{
this.btnReject.Hidden = true;
this.btnReject_1.Hidden = true;
}
//提交之后不能作废
if (_Model.State == (int)InvoiceState.New)
{
string la = GetCurrentLanguage();
if (la == "CH")
{
this.btnReject.Hidden = false;
this.btnReject_1.Hidden = true;
}
else
{
this.btnReject.Hidden = true;
this.btnReject_1.Hidden = false;
}
//this.btnReject.Hidden = false;
}
if (_Model.State == (int)InvoiceState.Apply)
{
this.btnOK_1.Hidden = true;//中文隐藏 英文也隐藏
this.btnOK.Hidden = true;//确定修改
this.btnApply.Hidden = true;//提交申请
this.btnApply_1.Hidden = true;//中文隐藏 英文也隐藏
this.btnReject.Hidden = true;//发票作废
this.btnReject_1.Hidden = true;
this.btnMail.Hidden = true;//寄出发票
this.btnMail_1.Hidden = true;//中文隐藏 英文也隐藏
}
if (_Model.State == (int)InvoiceState.Mail)
{
this.btnOK_1.Hidden = true;//中文隐藏 英文也隐藏
this.btnOK.Hidden = true;//确定修改
this.btnApply.Hidden = true;//提交申请
this.btnApply_1.Hidden = true;
this.btnReject.Hidden = true;//发票作废
this.btnReject_1.Hidden = true;
this.btnMail.Hidden = true;//寄出发票
this.btnMail_1.Hidden = true;//中文隐藏 英文也隐藏
txtInvoiceNumber.Readonly = true;
txtInvoiceNumber.Required = false;
@ -218,8 +259,22 @@ namespace SCP.Views.SupplierData
txtContractPrice1.Required = false;
txtBlancePrice1.Readonly = true;
txtBlancePrice1.Required = false;
string la = GetCurrentLanguage();
if (la == "CH")
{
this.btnMail.Hidden = false;
this.btnMail_1.Hidden = true;
this.btnReject.Hidden = false;
this.btnReject_1.Hidden = true;
}
else
{
this.btnMail.Hidden = true;
this.btnMail_1.Hidden = false;
this.btnReject.Hidden = true;
this.btnReject_1.Hidden = false;
}
//this.btnReject.Hidden = false;
txtContractPrice1.Readonly = true;
txtContractPrice1.Required = false;
txtContractPrice1.Enabled = false;
@ -230,6 +285,7 @@ namespace SCP.Views.SupplierData
}
if (_Model.State ==(int) InvoiceState.CheckSuccess)
{
this.btnOK_1.Hidden = true;//中文隐藏 英文也隐藏
this.btnOK.Hidden = true;
txtMemo.Enabled = false;
@ -401,7 +457,7 @@ namespace SCP.Views.SupplierData
if (ret.State == ReturnStatus.Succeed)
{
Alert.Show(GetResourceKey("发票明细修改成功"));
Alert.Show(GetResourceKey("发票明细修改成功!"));
BindData();
}
@ -471,18 +527,18 @@ namespace SCP.Views.SupplierData
{
if (InvoiceNumber.Length > 22)
{
Alert.Show(GetResourceKey("金税票号最多22位"));
Alert.Show(GetResourceKey("金税票号最多22位!"));
return;
}
if (string.IsNullOrEmpty(InvoiceNumber))
{
Alert.Show(GetResourceKey("请填写金税票号"));
Alert.Show(GetResourceKey("请填写金税票号!"));
return;
}
if (string.IsNullOrEmpty(ExpressNumber))
{
Alert.Show(GetResourceKey("请填写快递单号"));
Alert.Show(GetResourceKey("请填写快递单号!"));
return;
}
if (dpUpdateTime.SelectedDate == null)

45
北京北汽/SCP/Views/SupplierData/SCP_INVOICE_EDIT.aspx.designer.cs

@ -59,6 +59,15 @@ namespace SCP.Views.SupplierData
/// </remarks>
protected global::FineUI.Button btnOK;
/// <summary>
/// btnOK_1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.Button btnOK_1;
/// <summary>
/// btnApply 控件。
/// </summary>
@ -68,6 +77,15 @@ namespace SCP.Views.SupplierData
/// </remarks>
protected global::FineUI.Button btnApply;
/// <summary>
/// btnApply_1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.Button btnApply_1;
/// <summary>
/// btnMail 控件。
/// </summary>
@ -77,6 +95,15 @@ namespace SCP.Views.SupplierData
/// </remarks>
protected global::FineUI.Button btnMail;
/// <summary>
/// btnMail_1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.Button btnMail_1;
/// <summary>
/// btnReject 控件。
/// </summary>
@ -86,6 +113,15 @@ namespace SCP.Views.SupplierData
/// </remarks>
protected global::FineUI.Button btnReject;
/// <summary>
/// btnReject_1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.Button btnReject_1;
/// <summary>
/// btnRed 控件。
/// </summary>
@ -95,6 +131,15 @@ namespace SCP.Views.SupplierData
/// </remarks>
protected global::FineUI.Button btnRed;
/// <summary>
/// btnRed_1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.Button btnRed_1;
/// <summary>
/// gp1 控件。
/// </summary>

4
北京北汽/SCP/Views/SupplierData/SCP_RECEIVE_LIST.aspx

@ -50,7 +50,7 @@
<f:GroupPanel runat="server" ID="gp1" Hidden="true" Layout="HBox" >
<f:GroupPanel runat="server" ID="gp1" Hidden="true" Layout="HBox" MinWidth="800px">
<Items>
<f:Form runat="server" >
<Rows>
@ -65,8 +65,6 @@
<f:ListItem Text="退货单" Value="退货单" />
<f:ListItem Text="收货单" Value="收货单" />
</f:DropDownList>
<f:Label runat="server" ID="Label1" Text="工厂地点:"/>
</Items>
</f:FormRow>

12
北京北汽/SCP/Views/SupplierData/SCP_RECEIVE_LIST.aspx.cs

@ -29,15 +29,19 @@ namespace SCP.SupplierData
if (!IsPostBack)
{
TranslatorAgents(Toolbar2);
BindFactory();
LoadData();
SetRoleRule();
BindVender(DDL_VEND_LIST);
TranslatorAgent(Grid_V_TB_RECEIVE_LIST);
TranslatorAgents(FormRow1);
TranslatorAgent(btnTax);
TranslatorAgents(FormRow2);
TranslatorAgents(FormRow_1);
TranslatorAgents(FormRow_2);
TranslatorAgents(FormRow_3);
LoadData();
SetRoleRule();
BindVender(DDL_VEND_LIST);
BindFactory();
TranslatorAgent(ToolbarText1);
//TranslatorAgent(factoryList);
}
}

15
北京北汽/SCP/Views/SupplierData/SCP_RECEIVE_LIST.aspx.designer.cs

@ -7,10 +7,12 @@
// </自动生成>
//------------------------------------------------------------------------------
namespace SCP.SupplierData {
namespace SCP.SupplierData
{
public partial class ReceiveList {
public partial class ReceiveList
{
/// <summary>
/// form1 控件。
@ -201,15 +203,6 @@ namespace SCP.SupplierData {
/// </remarks>
protected global::FineUI.DropDownList DDL_State;
/// <summary>
/// Label1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.Label Label1;
/// <summary>
/// FormRow_2 控件。
/// </summary>

6
北京北汽/SCP/default_hb.aspx.cs

@ -143,7 +143,7 @@ namespace SCP
{
if (!user.Enabled)
{
Alert.Show(GetResourceKey("用户未启用,请联系管理员"));
Alert.Show(GetResourceKey("用户未启用,请联系管理员!"));
img.ImageUrl = DrawToBase64(4);
return;
}
@ -199,7 +199,7 @@ namespace SCP
}
else
{
Alert.Show("不是选定工厂下供应商");
Alert.Show(GetResourceKey("不是选定工厂下供应商"));
img.ImageUrl = DrawToBase64(4);
return;
}
@ -224,7 +224,7 @@ namespace SCP
{
if (number.Number < 5)
{
Text2.Value = GetResourceKey( "用户名或密码错误" + number.Number + "次24小时内错误5次账号将变为未启用状态!");
Text2.Value = GetResourceKey( "用户名或密码错误") + number.Number + GetResourceKey("次24小时内错误5次账号将变为未启用状态!"));
}
}

2
北京北汽/Utils/ExcelHelper.cs

@ -545,7 +545,7 @@ namespace CK.SCP.Utils
if (!string.IsNullOrEmpty(dt.TableName))
sheetName = dt.TableName;
var worksheet = package.Workbook.Worksheets.Add(sheetName);
if (title == null)
if (string.IsNullOrWhiteSpace(title))
{
//表头
SetTitle(dt, worksheet);

Loading…
Cancel
Save