Browse Source

中英文翻译

master
qian 12 months ago
parent
commit
5a18183ea2
  1. 12
      北京北汽/SCP/Admin/profile.aspx.cs
  2. 23
      北京北汽/SCP/Business/PageBase.cs
  3. 32
      北京北汽/SCP/Views/BasicData/Price.aspx
  4. 89
      北京北汽/SCP/Views/BasicData/Price.aspx.cs
  5. 63
      北京北汽/SCP/Views/BasicData/Price.aspx.designer.cs
  6. 123
      北京北汽/SCP/Views/BasicData/SCP_LANGUAGE.aspx
  7. 25
      北京北汽/SCP/Views/BasicData/SCP_LANGUAGE.aspx.cs
  8. 24
      北京北汽/SCP/Views/BasicData/SCP_LANGUAGE.aspx.designer.cs
  9. 4
      北京北汽/SCP/Views/BasicData/SCP_MoldSharing.aspx
  10. 5
      北京北汽/SCP/Views/BasicData/SCP_MoldSharing.aspx.cs
  11. 24
      北京北汽/SCP/Views/BasicData/SCP_MoldSharing.aspx.designer.cs
  12. 4
      北京北汽/SCP/Views/PlanData/ASN_STATE.aspx
  13. 3
      北京北汽/SCP/Views/PlanData/ASN_STATE.aspx.cs
  14. 24
      北京北汽/SCP/Views/PlanData/ASN_STATE.aspx.designer.cs
  15. 8
      北京北汽/SCP/Views/PlanData/SCP_ARRIVE_DETAIL.aspx
  16. 6
      北京北汽/SCP/Views/PlanData/SCP_ARRIVE_DETAIL.aspx.cs
  17. 33
      北京北汽/SCP/Views/PlanData/SCP_ARRIVE_DETAIL.aspx.designer.cs
  18. 4
      北京北汽/SCP/Views/PlanData/SCP_INCOMPLETE_ASK.aspx
  19. 4
      北京北汽/SCP/Views/PlanData/SCP_INCOMPLETE_ASK.aspx.cs
  20. 8
      北京北汽/SCP/Views/SupplierData/SCP_ARRIVE.aspx
  21. 8
      北京北汽/SCP/Views/SupplierData/SCP_ARRIVE.aspx.cs
  22. 33
      北京北汽/SCP/Views/SupplierData/SCP_ARRIVE.aspx.designer.cs
  23. 8
      北京北汽/SCP/Views/SupplierData/SCP_ARRIVE_DETAIL.aspx
  24. 6
      北京北汽/SCP/Views/SupplierData/SCP_ARRIVE_DETAIL.aspx.cs
  25. 42
      北京北汽/SCP/Views/SupplierData/SCP_ARRIVE_DETAIL.aspx.designer.cs
  26. 13
      北京北汽/SCP/Views/SupplierData/SCP_ASK.aspx.cs
  27. 5
      北京北汽/SCP/Views/SupplierData/SCP_ASK_DETAIL.aspx.cs
  28. 13
      北京北汽/SCP/Views/SupplierData/SCP_ASN.aspx.cs
  29. 21
      北京北汽/SCP/Views/SupplierData/SCP_ASN_CREATE.aspx.cs
  30. 47
      北京北汽/SCP/Views/SupplierData/SCP_ASN_DETAIL.aspx.cs
  31. 9
      北京北汽/SCP/Views/SupplierData/SCP_INVOICE.aspx.cs
  32. 15
      北京北汽/SCP/Views/SupplierData/SCP_INVOICE_CREATE.aspx.cs
  33. 35
      北京北汽/SCP/Views/SupplierData/SCP_INVOICE_EDIT.aspx.cs
  34. 3
      北京北汽/SCP/Views/SupplierData/SCP_PALLET.aspx.cs
  35. 9
      北京北汽/SCP/Views/SupplierData/SCP_PALLET_CREATE.aspx.cs
  36. 33
      北京北汽/SCP/Views/SupplierData/SCP_RECEIVE_LIST.aspx.cs
  37. 12
      北京北汽/SCP/default_hb.aspx
  38. 11
      北京北汽/SCP/default_hb.aspx.cs
  39. 2
      北京北汽/SCP/res/css/main3.css

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

@ -54,7 +54,7 @@ namespace SCP.admin
if (newPass != confirmNewPass) if (newPass != confirmNewPass)
{ {
tbxConfirmNewPassword.MarkInvalid("确认密码和新密码不一致!"); tbxConfirmNewPassword.MarkInvalid(GetResourceKey("确认密码和新密码不一致!"));
return; return;
} }
@ -64,7 +64,7 @@ namespace SCP.admin
{ {
if (!PasswordUtil.ComparePasswords(user.Password, oldPass)) if (!PasswordUtil.ComparePasswords(user.Password, oldPass))
{ {
tbxOldPassword.MarkInvalid("当前密码不正确!"); tbxOldPassword.MarkInvalid(GetResourceKey("当前密码不正确!"));
return; return;
} }
@ -81,7 +81,7 @@ namespace SCP.admin
user.Password = PasswordUtil.CreateDbPassword(newPass); user.Password = PasswordUtil.CreateDbPassword(newPass);
DB.SaveChanges(); DB.SaveChanges();
Alert.ShowInTop("修改密码成功!"); Alert.ShowInTop(GetResourceKey("修改密码成功!"));
} }
} }
@ -107,12 +107,12 @@ namespace SCP.admin
} }
else else
{ {
tbxEmail.MarkInvalid("请填写正确的邮箱格式!"); tbxEmail.MarkInvalid(GetResourceKey( "请填写正确的邮箱格式!"));
return; return;
} }
DB.SaveChanges(); DB.SaveChanges();
String MESSAGE = GetResourceKey("用户信息修改成功!");
Alert.ShowInTop("用户信息修改成功!"); Alert.ShowInTop(MESSAGE);
} }
} }

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

@ -1356,6 +1356,15 @@ namespace SCP
{ {
CheckBoxList _cbl = p_crtl as CheckBoxList; CheckBoxList _cbl = p_crtl as CheckBoxList;
_cbl.Label = GetResourceKey(_cbl.Label); _cbl.Label = GetResourceKey(_cbl.Label);
foreach (var itm in _cbl.Items)
{
itm.Text = GetResourceKey(itm.Text);
}
}
if (p_crtl is CheckBox)
{
CheckBox _cb = p_crtl as CheckBox;
_cb.Label = GetResourceKey(_cb.Label);
} }
if (p_crtl is FineUI.Region) if (p_crtl is FineUI.Region)
{ {
@ -1367,6 +1376,16 @@ namespace SCP
Tab _tab = p_crtl as Tab; Tab _tab = p_crtl as Tab;
_tab.Title = GetResourceKey(_tab.Title); _tab.Title = GetResourceKey(_tab.Title);
} }
if (p_crtl is LinkButton)
{
LinkButton linkButton = p_crtl as LinkButton;
linkButton.Text = GetResourceKey(linkButton.Text);
}
if (p_crtl is ToolbarText)
{
ToolbarText toolbarText = p_crtl as ToolbarText;
toolbarText.Text = GetResourceKey(toolbarText.Text);
}
} }
} }
@ -1547,7 +1566,7 @@ namespace SCP
#endregion #endregion
public static string EntityListToExcel2003(Dictionary<string, string> cellHeard, IList enList, string sheetName, string title = null) public string EntityListToExcel2003(Dictionary<string, string> cellHeard, IList enList, string sheetName, string title = null)
{ {
try try
{ {
@ -1701,7 +1720,7 @@ namespace SCP
FileStream file = new FileStream(filePath, FileMode.Create); FileStream file = new FileStream(filePath, FileMode.Create);
workbook.Write(file); workbook.Write(file);
file.Close(); file.Close();
Alert.Show($"<a href=\'/exportfiles/{fileName}\'>{fileName}</a>", "文件导出成功,请点击文件名下载", MessageBoxIcon.Information); Alert.Show($"<a href=\'/exportfiles/{fileName}\'>{fileName}</a>", GetResourceKey("文件导出成功,请点击文件名下载"), MessageBoxIcon.Information);
// 5.返回下载路径 // 5.返回下载路径
return urlPath; return urlPath;

32
北京北汽/SCP/Views/BasicData/Price.aspx

@ -63,9 +63,9 @@
</f:Form> </f:Form>
<f:GroupPanel runat="server" ID="gp1" Hidden="True" Layout="HBox"> <f:GroupPanel runat="server" ID="gp1" Hidden="True" Layout="HBox">
<Items> <Items>
<f:Form runat="server" BodyPadding="10px"> <f:Form runat="server" BodyPadding="10px" ID="FormRow_1">
<Rows> <Rows>
<f:FormRow runat="server" ColumnWidths="25% 25% 25% 25% "> <f:FormRow runat="server" ColumnWidths="25% 25% 25% 25% " ID="FormRow_2">
<Items> <Items>
<f:TextBox ID="textVendId" runat="server" Label="供应商编号" /> <f:TextBox ID="textVendId" runat="server" Label="供应商编号" />
<f:TextBox ID="textPartCode" runat="server" Label="零件编码"/> <f:TextBox ID="textPartCode" runat="server" Label="零件编码"/>
@ -73,7 +73,7 @@
<f:TextBox ID="textPartName" runat="server" Label="零件名称"/> <f:TextBox ID="textPartName" runat="server" Label="零件名称"/>
</Items> </Items>
</f:FormRow> </f:FormRow>
<f:FormRow runat="server" ColumnWidths="25% 25% 25% 25% "> <f:FormRow runat="server" ColumnWidths="25% 25% 25% 25% " ID="FormRow_3">
<Items> <Items>
<f:TextBox ID="textCreator" runat="server" Label="导入者"/> <f:TextBox ID="textCreator" runat="server" Label="导入者"/>
<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" />
@ -81,7 +81,7 @@
<f:CheckBox runat="server" ID="ckb_Priec" Label="价格是否为零" /> <f:CheckBox runat="server" ID="ckb_Priec" Label="价格是否为零" />
</Items> </Items>
</f:FormRow> </f:FormRow>
<f:FormRow runat="server" ColumnWidths="25% 25% 25% 25% "> <f:FormRow runat="server" ColumnWidths="25% 25% 25% 25% " ID="FormRow_4">
<Items> <Items>
<f:NumberBox ID="NB_Amt" runat="server" Label="基础价格" /> <f:NumberBox ID="NB_Amt" runat="server" Label="基础价格" />
<f:NumberBox ID="NB_SharingPrice" runat="server" Label="分摊单价" /> <f:NumberBox ID="NB_SharingPrice" runat="server" Label="分摊单价" />
@ -94,9 +94,9 @@
</f:DropDownList>--%> </f:DropDownList>--%>
</Items> </Items>
</f:FormRow> </f:FormRow>
<f:FormRow runat="server"> <f:FormRow runat="server" ID="FormRow_7">
<Items> <Items>
<f:DropDownList ID="factoryList" Label="工厂地点" DataTextField="FactoryName" DataValueField="ErpSite" runat="server" OnSelectedIndexChanged="factoryList_SelectedIndexChanged" AutoPostBack="true"></f:DropDownList> <f:DropDownList ID="factoryList" Text="工厂地点" DataTextField="FactoryName" DataValueField="ErpSite" runat="server" OnSelectedIndexChanged="factoryList_SelectedIndexChanged" AutoPostBack="true"></f:DropDownList>
<f:Button runat="server" ID="btnClose" Text="关闭" OnClick="btnClose_OnClick"></f:Button> <f:Button runat="server" ID="btnClose" Text="关闭" OnClick="btnClose_OnClick"></f:Button>
<f:Button ID="btnSearch" runat="server" OnClick="btnSearch_OnClick" Text="快速查找"> <f:Button ID="btnSearch" runat="server" OnClick="btnSearch_OnClick" Text="快速查找">
</f:Button> </f:Button>
@ -110,27 +110,27 @@
<Items> <Items>
<f:Form runat="server" BodyPadding="10px"> <f:Form runat="server" BodyPadding="10px">
<Rows> <Rows>
<f:FormRow runat="server" > <f:FormRow runat="server" ID="FormRow_5" >
<Items> <Items>
<f:CheckBoxList runat="server" ColumnNumber="13" ColumnWidth="60px" LabelWidth="140px" ID="ckb1" Label="请选择需要导出的列名"> <f:CheckBoxList runat="server" ColumnNumber="13" ColumnWidth="60px" LabelWidth="140px" ID="ckb1" Label="请选择需要导出的列名">
<f:CheckItem Text="状态" Value="14" Selected="True" ></f:CheckItem> <f:CheckItem Text="状态" Value="14" Selected="True" ></f:CheckItem>
<f:CheckItem Text="供应商编号" Value="1" Selected="True" ></f:CheckItem> <f:CheckItem Text="供应商编号" Value="1" Selected="True" ></f:CheckItem>
<f:CheckItem Text="供应商名称" Value="2" Selected="True" ></f:CheckItem> <f:CheckItem Text="供应商名称" Value="2" Selected="True" ></f:CheckItem>
<f:CheckItem Text="零件编号" Value="3" Selected="True"></f:CheckItem> <f:CheckItem Text="零件编号" Value="3" Selected="True" ></f:CheckItem>
<f:CheckItem Text="零件名称" Value="4" Selected="True" ></f:CheckItem> <f:CheckItem Text="零件名称" Value="4" Selected="True" ></f:CheckItem>
<f:CheckItem Text="地点" Value="5" Selected="True" ></f:CheckItem> <f:CheckItem Text="地点" Value="5" Selected="True" ></f:CheckItem>
<f:CheckItem Text="开始时间" Value="6" Selected="True" ></f:CheckItem> <f:CheckItem Text="开始时间" Value="6" Selected="True" ></f:CheckItem>
<f:CheckItem Text="结束时间" Value="7" Selected="True"></f:CheckItem> <f:CheckItem Text="结束时间" Value="7" Selected="True" ></f:CheckItem>
<f:CheckItem Text="币种" Value="8" Selected="True" ></f:CheckItem> <f:CheckItem Text="币种" Value="8" Selected="True" ></f:CheckItem>
<f:CheckItem Text="单位" Value="9" Selected="True"></f:CheckItem> <f:CheckItem Text="单位" Value="9" Selected="True" ></f:CheckItem>
<f:CheckItem Text="零件基础价格" Value="10" Selected="True" ></f:CheckItem> <f:CheckItem Text="零件基础价格" Value="10" Selected="True" ></f:CheckItem>
<f:CheckItem Text="是否临时价格" Value="11" Selected="True" ></f:CheckItem> <f:CheckItem Text="是否临时价格" Value="11" Selected="True" ></f:CheckItem>
<f:CheckItem Text="零件分摊单价" Value="13" Selected="True" ></f:CheckItem> <f:CheckItem Text="零件分摊单价" Value="13" Selected="True" ></f:CheckItem>
<f:CheckItem Text="导入人员" Value="15" Selected="True" ></f:CheckItem> <f:CheckItem Text="导入人员" Value="15" Selected="True" ></f:CheckItem>
</f:CheckBoxList> </f:CheckBoxList>
</Items> </Items>
</f:FormRow> </f:FormRow>
<f:FormRow runat="server"> <f:FormRow runat="server" ID="FormRow_6">
<Items> <Items>
<f:Button runat="server" ID="Button1" Text="导出" OnClick="BtnOutPut_OnClick"></f:Button> <f:Button runat="server" ID="Button1" Text="导出" OnClick="BtnOutPut_OnClick"></f:Button>
<f:Button runat="server" ID="Button2" Text="关闭" OnClick="btnCloseCheck_OnClick"></f:Button> <f:Button runat="server" ID="Button2" Text="关闭" OnClick="btnCloseCheck_OnClick"></f:Button>

89
北京北汽/SCP/Views/BasicData/Price.aspx.cs

@ -37,17 +37,30 @@ namespace SCP.BasicData
var site = CurrentUser.FactoryList.FirstOrDefault(); var site = CurrentUser.FactoryList.FirstOrDefault();
BindData(); BindData();
BindFactory(); BindFactory();
TranslatorAgents(Toolbar2);
TranslatorAgents(gp1);
TranslatorAgents(FormRow_1);
TranslatorAgents(FormRow_2);
TranslatorAgents(FormRow_3);
TranslatorAgents(FormRow_4);
TranslatorAgents(FormRow_5);
TranslatorAgents(FormRow_6);
TranslatorAgents(FormRow_7);
TranslatorAgents(gp2);
TranslatorAgent(factoryList);
TranslatorAgent(Grid1);
TranslatorAgent(ToolbarText1);
} }
else else
{ {
Response.Write("当前用户没有操作该页面权限"); Response.Write(GetResourceKey("当前用户没有操作该页面权限"));
Response.End(); Response.End();
return; return;
} }
} }
else else
{ {
Response.Write("当前用户没有操作该页面权限"); Response.Write(GetResourceKey("当前用户没有操作该页面权限"));
Response.End(); Response.End();
return; return;
} }
@ -107,13 +120,13 @@ namespace SCP.BasicData
{ {
FineUI.LinkButtonField deleteField = Grid1.FindColumn("Grid1_ctl15") as FineUI.LinkButtonField; FineUI.LinkButtonField deleteField = Grid1.FindColumn("Grid1_ctl15") as FineUI.LinkButtonField;
deleteField.Enabled = true; deleteField.Enabled = true;
deleteField.ToolTip = "删除数据"; deleteField.ToolTip = GetResourceKey("删除数据");
} }
else else
{ {
FineUI.LinkButtonField deleteField = Grid1.FindColumn("Grid1_ctl15") as FineUI.LinkButtonField; FineUI.LinkButtonField deleteField = Grid1.FindColumn("Grid1_ctl15") as FineUI.LinkButtonField;
deleteField.Enabled = false; deleteField.Enabled = false;
deleteField.ToolTip = "数据不能删除"; deleteField.ToolTip = GetResourceKey("数据不能删除");
} }
} }
public void BindData() public void BindData()
@ -226,7 +239,7 @@ namespace SCP.BasicData
} }
protected void LinkButton_Click(object sender, EventArgs e) protected void LinkButton_Click(object sender, EventArgs e)
{ {
Alert.Show($"<a href=\'/uploadfiles/{".xls"}\'>{".xls"}</a>", "请点击文件名下载", MessageBoxIcon.Information); Alert.Show($"<a href=\'/uploadfiles/{".xls"}\'>{".xls"}</a>", GetResourceKey("请点击文件名下载"), MessageBoxIcon.Information);
} }
/// <summary> /// <summary>
/// 价格导入 /// 价格导入
@ -238,7 +251,7 @@ namespace SCP.BasicData
string _fileName = FileUp.FileName; string _fileName = FileUp.FileName;
if (string.IsNullOrEmpty(_fileName)) if (string.IsNullOrEmpty(_fileName))
{ {
Alert.Show("选择文件为空!"); Alert.Show(GetResourceKey("选择文件为空!"));
return; return;
} }
string _lx = _fileName.Split('.')[1]; string _lx = _fileName.Split('.')[1];
@ -257,26 +270,26 @@ namespace SCP.BasicData
List<string> partCodeList = list.Select(a => a.).ToList(); List<string> partCodeList = list.Select(a => a.).ToList();
if (partCodeList.Count == 0) if (partCodeList.Count == 0)
{ {
Alert.Show("未填写零件编码!"); Alert.Show(GetResourceKey("未填写零件编码!"));
return; return;
} }
List<string> list1 = new List<string>(); List<string> list1 = new List<string>();
list1 = CheckPartCode(partCodeList); list1 = CheckPartCode(partCodeList);
if (list1.Count()>0 ) if (list1.Count()>0 )
{ {
Alert.Show(string.Format( "导入文件中有不存在的零件,如{0}", list1.FirstOrDefault())); Alert.Show(GetResourceKey(string.Format( "导入文件中有不存在的零件,如{0}", list1.FirstOrDefault())));
return; return;
} }
var ret = SCP_PO_CONTROLLER.EXCEL_PRICE_MOD(list, CurrentUser.Name,CurrentUser.RoleList); var ret = SCP_PO_CONTROLLER.EXCEL_PRICE_MOD(list, CurrentUser.Name,CurrentUser.RoleList);
if (ret.State == ReturnStatus.Succeed && ret.Result == true) if (ret.State == ReturnStatus.Succeed && ret.Result == true)
{ {
BindData(); BindData();
Alert.Show("导入成功!"); Alert.Show(GetResourceKey("导入成功!"));
return; return;
} }
else else
{ {
Alert.Show(string.Join("<br>", ret.MessageList)); Alert.Show(GetResourceKey(string.Join("<br>", ret.MessageList)));
return; return;
} }
} }
@ -314,7 +327,7 @@ namespace SCP.BasicData
{ {
if (modifyValue["Creator"] == null) if (modifyValue["Creator"] == null)
{ {
Alert.Show("导入者不能为空!"); Alert.Show(GetResourceKey("导入者不能为空!"));
return; return;
} }
_entity.Creator = modifyValue["Creator"].ToString(); _entity.Creator = modifyValue["Creator"].ToString();
@ -323,7 +336,7 @@ namespace SCP.BasicData
{ {
if (modifyValue["EndTime"] == null) if (modifyValue["EndTime"] == null)
{ {
Alert.Show("结束时间不能为空!"); Alert.Show(GetResourceKey("结束时间不能为空!"));
return; return;
} }
_entity.EndTime = ConvertHelper.To<DateTime>(modifyValue["EndTime"]); _entity.EndTime = ConvertHelper.To<DateTime>(modifyValue["EndTime"]);
@ -334,7 +347,7 @@ namespace SCP.BasicData
{ {
if (modifyValue["Amt"] == null) if (modifyValue["Amt"] == null)
{ {
Alert.Show("价格不能为空!"); Alert.Show(GetResourceKey("价格不能为空!"));
return; return;
} }
_entity.Amt = ConvertHelper.To<decimal>(modifyValue["Amt"]); _entity.Amt = ConvertHelper.To<decimal>(modifyValue["Amt"]);
@ -359,25 +372,25 @@ namespace SCP.BasicData
{ {
if (string.IsNullOrEmpty(price.Creator)) if (string.IsNullOrEmpty(price.Creator))
{ {
Alert.Show("导入者不能为空!"); Alert.Show(GetResourceKey("导入者不能为空!"));
return; return;
} }
if (price.Creator.Trim().ToUpper() != CurrentUser.Name.Trim().ToUpper()) if (price.Creator.Trim().ToUpper() != CurrentUser.Name.Trim().ToUpper())
{ {
Alert.Show("价格导入者不是当前登录人请修改!"); Alert.Show(GetResourceKey("价格导入者不是当前登录人请修改!"));
return; return;
} }
} }
if(_list.Count==0) if(_list.Count==0)
{ {
Alert.Show("无修改数据!"); Alert.Show(GetResourceKey("无修改数据!"));
return; return;
} }
foreach (var ls in _list) foreach (var ls in _list)
{ {
if (ls.State ==2) if (ls.State ==2)
{ {
Alert.Show("财务已经审核的价格不能修改!"); Alert.Show(GetResourceKey("财务已经审核的价格不能修改!"));
return; return;
} }
} }
@ -386,13 +399,13 @@ namespace SCP.BasicData
if (ret.State == ReturnStatus.Succeed) if (ret.State == ReturnStatus.Succeed)
{ {
// var list = ret.Result; // var list = ret.Result;
Alert.Show("保存成功!"); Alert.Show(GetResourceKey("保存成功!"));
BindData(); BindData();
} }
else else
{ {
Alert.Show(ret.Message); Alert.Show(GetResourceKey(ret.Message));
} }
} }
/// <summary> /// <summary>
@ -486,7 +499,7 @@ namespace SCP.BasicData
int[] _selections = Grid1.SelectedRowIndexArray; int[] _selections = Grid1.SelectedRowIndexArray;
if (_selections.Count()==0) if (_selections.Count()==0)
{ {
Alert.Show("请选择数据!"); Alert.Show(GetResourceKey("请选择数据!"));
return; return;
} }
List<long> _UidList = new List<long>(); List<long> _UidList = new List<long>();
@ -522,7 +535,7 @@ namespace SCP.BasicData
} }
if (_UidList.Count != _selections.Count()) if (_UidList.Count != _selections.Count())
{ {
Alert.Show("选择的记录,有已经确认的数据!"); Alert.Show(GetResourceKey("选择的记录,有已经确认的数据!"));
return; return;
} }
var res = SCP_DC_UNI_CONTROLLER.UpdateTES_PURCHASE_PRICE(_UidList, CurrentUser.FactoryList[0], CurrentUser.SubSiteList[0], CurrentUser.Name, CurrentUser.ConfigList.ContainsKey("数据中心接口"), ConfirmState); var res = SCP_DC_UNI_CONTROLLER.UpdateTES_PURCHASE_PRICE(_UidList, CurrentUser.FactoryList[0], CurrentUser.SubSiteList[0], CurrentUser.Name, CurrentUser.ConfigList.ContainsKey("数据中心接口"), ConfirmState);
@ -532,17 +545,17 @@ namespace SCP.BasicData
if (ret.State == ReturnStatus.Succeed) if (ret.State == ReturnStatus.Succeed)
{ {
BindData(); BindData();
Alert.Show("确认成功!"); Alert.Show(GetResourceKey("确认成功!"));
return; return;
} }
else else
{ {
Alert.Show(ret.Message); Alert.Show(GetResourceKey(ret.Message));
} }
} }
else else
{ {
Alert.Show(res.Message); Alert.Show(GetResourceKey(res.Message));
} }
} }
//显示 //显示
@ -598,26 +611,26 @@ namespace SCP.BasicData
var t1 = Grid1.DataKeys[e.RowIndex][12]; var t1 = Grid1.DataKeys[e.RowIndex][12];
if (t1==null) if (t1==null)
{ {
Alert.Show("当前价格导入者为空!"); Alert.Show(GetResourceKey("当前价格导入者为空!"));
return; return;
} }
if (CurrentUser.Name.Trim().ToUpper() != t1.ToString().ToUpper()) if (CurrentUser.Name.Trim().ToUpper() != t1.ToString().ToUpper())
{ {
Alert.Show("删除价格导入者不是当前登录人!"); Alert.Show(GetResourceKey("删除价格导入者不是当前登录人!"));
return; return;
} }
var ret = SCP_TB_PRICE_CONTROLLER.Save_TB_PRICE_STATE(_UidList, CurrentUser.Name, (int)PriceState.Reject); var ret = SCP_TB_PRICE_CONTROLLER.Save_TB_PRICE_STATE(_UidList, CurrentUser.Name, (int)PriceState.Reject);
if (ret.State == ReturnStatus.Succeed) if (ret.State == ReturnStatus.Succeed)
{ {
BindData(); BindData();
Alert.Show("删除成功!"); Alert.Show(GetResourceKey("删除成功!"));
return; return;
} }
else else
{ {
if (ret.MessageList.Count > 0) if (ret.MessageList.Count > 0)
{ {
Alert.Show(string.Join("<br>", ret.MessageList)); Alert.Show(GetResourceKey(string.Join("<br>", ret.MessageList)));
return; return;
} }
else else
@ -646,7 +659,7 @@ namespace SCP.BasicData
int[] _selections = Grid1.SelectedRowIndexArray; int[] _selections = Grid1.SelectedRowIndexArray;
if (_selections.Count() == 0) if (_selections.Count() == 0)
{ {
Alert.Show("请选择数据!"); Alert.Show(GetResourceKey("请选择数据!"));
return; return;
} }
List<long> _UidList = new List<long>(); List<long> _UidList = new List<long>();
@ -664,26 +677,26 @@ namespace SCP.BasicData
} }
if (_UidList.Count != _selections.Count()) if (_UidList.Count != _selections.Count())
{ {
Alert.Show("选择的记录中包含不可报废数据,请从新选择!"); Alert.Show(GetResourceKey("选择的记录中包含不可报废数据,请从新选择!"));
return; return;
} }
var ret = SCP_TB_PRICE_CONTROLLER.Save_TB_PRICE_STATE(_UidList, CurrentUser.Name, (int)PriceState.Reject); var ret = SCP_TB_PRICE_CONTROLLER.Save_TB_PRICE_STATE(_UidList, CurrentUser.Name, (int)PriceState.Reject);
if (ret.State == ReturnStatus.Succeed) if (ret.State == ReturnStatus.Succeed)
{ {
BindData(); BindData();
Alert.Show("报废成功!"); Alert.Show(GetResourceKey("报废成功!"));
return; return;
} }
else else
{ {
if (ret.MessageList.Count > 0) if (ret.MessageList.Count > 0)
{ {
Alert.Show(string.Join("<br>", ret.MessageList)); Alert.Show(GetResourceKey(string.Join("<br>", ret.MessageList)));
return; return;
} }
else else
{ {
Alert.Show(ret.Message); Alert.Show(GetResourceKey(ret.Message));
} }
} }
} }
@ -694,7 +707,7 @@ namespace SCP.BasicData
int[] _selections = Grid1.SelectedRowIndexArray; int[] _selections = Grid1.SelectedRowIndexArray;
if (_selections.Count() == 0) if (_selections.Count() == 0)
{ {
Alert.Show("请选择数据!"); Alert.Show(GetResourceKey("请选择数据!"));
return; return;
} }
List<long> _UidList = new List<long>(); List<long> _UidList = new List<long>();
@ -715,19 +728,19 @@ namespace SCP.BasicData
if (ret.State == ReturnStatus.Succeed) if (ret.State == ReturnStatus.Succeed)
{ {
BindData(); BindData();
Alert.Show("删除成功!"); Alert.Show(GetResourceKey("删除成功!"));
return; return;
} }
else else
{ {
if (ret.MessageList.Count > 0) if (ret.MessageList.Count > 0)
{ {
Alert.Show(string.Join("<br>", ret.MessageList)); Alert.Show(GetResourceKey(string.Join("<br>", ret.MessageList)));
return; return;
} }
else else
{ {
Alert.Show(ret.Message); Alert.Show(GetResourceKey(ret.Message));
} }
} }
} }
@ -736,7 +749,7 @@ namespace SCP.BasicData
{ {
if (this.Grid1.SelectedRowIndexArray.Length == 0 && this.Grid1.SelectedRowIndexArray.Length>1) if (this.Grid1.SelectedRowIndexArray.Length == 0 && this.Grid1.SelectedRowIndexArray.Length>1)
{ {
Alert.Show("请选择一行要操作的记录,不能选多条记录!"); Alert.Show(GetResourceKey("请选择一行要操作的记录,不能选多条记录!"));
return; return;
} }
string ID = GetSelectedDataKey(Grid1, 0); string ID = GetSelectedDataKey(Grid1, 0);

63
北京北汽/SCP/Views/BasicData/Price.aspx.designer.cs

@ -149,6 +149,24 @@ namespace SCP.BasicData
/// </remarks> /// </remarks>
protected global::FineUI.GroupPanel gp1; protected global::FineUI.GroupPanel gp1;
/// <summary>
/// FormRow_1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.Form FormRow_1;
/// <summary>
/// FormRow_2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.FormRow FormRow_2;
/// <summary> /// <summary>
/// textVendId 控件。 /// textVendId 控件。
/// </summary> /// </summary>
@ -185,6 +203,15 @@ namespace SCP.BasicData
/// </remarks> /// </remarks>
protected global::FineUI.TextBox textPartName; protected global::FineUI.TextBox textPartName;
/// <summary>
/// FormRow_3 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.FormRow FormRow_3;
/// <summary> /// <summary>
/// textCreator 控件。 /// textCreator 控件。
/// </summary> /// </summary>
@ -221,6 +248,15 @@ namespace SCP.BasicData
/// </remarks> /// </remarks>
protected global::FineUI.CheckBox ckb_Priec; protected global::FineUI.CheckBox ckb_Priec;
/// <summary>
/// FormRow_4 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.FormRow FormRow_4;
/// <summary> /// <summary>
/// NB_Amt 控件。 /// NB_Amt 控件。
/// </summary> /// </summary>
@ -257,6 +293,15 @@ namespace SCP.BasicData
/// </remarks> /// </remarks>
protected global::FineUI.TextBox NB_Extend2; protected global::FineUI.TextBox NB_Extend2;
/// <summary>
/// FormRow_7 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.FormRow FormRow_7;
/// <summary> /// <summary>
/// factoryList 控件。 /// factoryList 控件。
/// </summary> /// </summary>
@ -293,6 +338,15 @@ namespace SCP.BasicData
/// </remarks> /// </remarks>
protected global::FineUI.GroupPanel gp2; protected global::FineUI.GroupPanel gp2;
/// <summary>
/// FormRow_5 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.FormRow FormRow_5;
/// <summary> /// <summary>
/// ckb1 控件。 /// ckb1 控件。
/// </summary> /// </summary>
@ -302,6 +356,15 @@ namespace SCP.BasicData
/// </remarks> /// </remarks>
protected global::FineUI.CheckBoxList ckb1; protected global::FineUI.CheckBoxList ckb1;
/// <summary>
/// FormRow_6 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.FormRow FormRow_6;
/// <summary> /// <summary>
/// Button1 控件。 /// Button1 控件。
/// </summary> /// </summary>

123
北京北汽/SCP/Views/BasicData/SCP_LANGUAGE.aspx

@ -4,7 +4,7 @@
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server"> <head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title> <title></title>
</head> </head>
<body> <body>
@ -13,44 +13,48 @@
<f:Panel ID="Panel1" CssClass="blockpanel" Margin="0px" runat="server" ShowBorder="false" ShowHeader="false" Layout="Region"> <f:Panel ID="Panel1" CssClass="blockpanel" Margin="0px" runat="server" ShowBorder="false" ShowHeader="false" Layout="Region">
<Items> <Items>
<f:Panel runat="server" ID="panelTopRegion" RegionPosition="Top" RegionSplit="true" EnableCollapse="true" <f:Panel runat="server" ID="panelTopRegion" RegionPosition="Top" RegionSplit="true" EnableCollapse="true"
Title="顶部面板" ShowBorder="true" ShowHeader="false" BodyPadding="0" > Title="顶部面板" ShowBorder="true" ShowHeader="false" BodyPadding="0">
<Items> <Items>
<f:Form runat="server"> <f:Form runat="server">
<Toolbars> <Toolbars>
<f:Toolbar ID="Toolbar2" runat="server"> <f:Toolbar ID="Toolbar2" runat="server">
<Items> <Items>
<f:Button ID="Btn_Add" runat="server" EnablePostBack="True" Text="新建" Icon="Add" OnClick="Btn_Add_Click"> <f:Button ID="Btn_Re" runat="server" EnablePostBack="True" Text="刷新" Icon="Reload" OnClick="Btn_Re_Click">
</f:Button> </f:Button>
<f:Button ID="Btn_Save" runat="server" EnablePostBack="True" Text="保存" Icon="Add" OnClick="Btn_Save_Click"> <f:Button ID="Btn_Add" runat="server" EnablePostBack="True" Text="新建" Icon="Add" OnClick="Btn_Add_Click">
</f:Button> </f:Button>
<f:Button ID="Btn_Delete" runat="server" Text="删除" OnClick="Btn_Delete_Click"> <f:Button ID="Btn_Save" runat="server" EnablePostBack="True" Text="保存" Icon="Add" OnClick="Btn_Save_Click">
</f:Button> </f:Button>
</Items> <f:Button ID="Btn_Delete" runat="server" Text="删除" Icon="Delete" OnClick="Btn_Delete_Click">
</f:Toolbar> </f:Button>
</Toolbars> </Items>
</f:Toolbar>
</Toolbars>
</f:Form> </f:Form>
</Items> </Items>
</f:Panel> </f:Panel>
<f:Panel runat="server" ID="panelLeftRegion" RegionPosition="Left" RegionSplit="true" EnableCollapse="true" <f:Panel runat="server" ID="panelLeftRegion" RegionPosition="Left" RegionSplit="true" EnableCollapse="true"
Title="左侧面板(有提示信息)" ShowBorder="true" ShowHeader="false" Width="300px" Title="左侧面板(有提示信息)" ShowBorder="true" ShowHeader="false" Width="300px"
BodyPadding="10px" > BodyPadding="10px">
<Items> <Items>
<f:TextBox runat = "server" Label = "键值" EmptyText = "" ID = "TXT_GUID" /> <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_CH" NextFocusControl="TXT_EN" />
<f:TextBox runat = "server" Label = "英文" EmptyText = "" ID = "TXT_EN" /> <f:TextBox runat="server" Label="英文" EmptyText="" ID="TXT_EN" NextFocusControl="BtnSearch" />
<f:TextBox runat = "server" Label = "俄文" EmptyText = "" ID = "TXT_RU" /> <f:TextBox runat="server" Label="俄文" EmptyText="" ID="TXT_RU" Hidden="true" />
<f:TextBox runat = "server" Label = "德文" EmptyText = "" ID = "TXT_DE" /> <f:TextBox runat="server" Label="德文" EmptyText="" ID="TXT_DE" Hidden="true" />
<f:TextBox runat = "server" Label = "法文" EmptyText = "" ID = "TXT_FR" /> <f:TextBox runat="server" Label="法文" EmptyText="" ID="TXT_FR" Hidden="true" />
<f:TextBox runat = "server" Label = "阿拉伯" EmptyText = "" ID = "TXT_AR" /> <f:TextBox runat="server" Label="阿拉伯" EmptyText="" ID="TXT_AR" Hidden="true" />
<f:TextBox runat = "server" Label = "日文" EmptyText = "" ID = "TXT_JP" /> <f:TextBox runat="server" Label="日文" EmptyText="" ID="TXT_JP" Hidden="true" />
<f:CheckBox Hidden="true" ID = "CB_IsDeleted" ShowLabel = "false" runat = "server" Text ="" Checked = "FALSE" /> <f:CheckBox Hidden="true" ID="CB_IsDeleted" ShowLabel="false" runat="server" Text="" Checked="FALSE" />
<f:Button Text="查找名称" runat="server" id="BtnSearch" OnClick="BtnSearch_Click"></f:Button> <f:Button Text="清空所有" runat="server" ID="Cleaer" OnClick="BtnCleaer_Click" />
<f:Button Text="查找名称" runat="server" ID="BtnSearch" OnClick="BtnSearch_Click"></f:Button>
<%--<f:NumberBox Hidden="true" Label="" ID="NB_State" runat="server" NoDecimal="true" NoNegative="True" Required="True" EmptyText="" ShowRedStar="True" />
<%--<f:NumberBox Hidden="true" Label="" ID="NB_State" runat="server" NoDecimal="true" NoNegative="True" Required="True" EmptyText="" ShowRedStar="True" />
<f:DatePicker Hidden="true" runat="server" Required ="true" DateFormatString="yyyy-MM-dd" Label="" EmptyText="请选择日期" ID="DP_CreateTime" /> <f:DatePicker Hidden="true" runat="server" Required ="true" DateFormatString="yyyy-MM-dd" Label="" EmptyText="请选择日期" ID="DP_CreateTime" />
<f:TextBox Hidden="true" runat = "server" Label = "" EmptyText = "" ID = "TXT_CreateUser" /> <f:TextBox Hidden="true" runat = "server" Label = "" EmptyText = "" ID = "TXT_CreateUser" />
@ -65,43 +69,40 @@
<f:TextBox runat = "server" Label = "工厂地址" EmptyText = "" ID = "TXT_Address" /> <f:TextBox runat = "server" Label = "工厂地址" EmptyText = "" ID = "TXT_Address" />
<f:TextBox runat = "server" Label = "邮编号码" EmptyText = "" ID = "TXT_ZipCode" /> <f:TextBox runat = "server" Label = "邮编号码" EmptyText = "" ID = "TXT_ZipCode" />
<f:TextBox runat = "server" Label = "备注" EmptyText = "" ID = "TXT_Remark" />--%> <f:TextBox runat = "server" Label = "备注" EmptyText = "" ID = "TXT_Remark" />--%>
</Items> </Items>
</f:Panel> </f:Panel>
<f:Panel runat="server" ID="panelCenterRegion" RegionPosition="Center" AutoScroll="true" <f:Panel runat="server" ID="panelCenterRegion" RegionPosition="Center" AutoScroll="true"
Title="中间面板" ShowBorder="true" ShowHeader="false" BodyPadding="10px" > Title="中间面板" ShowBorder="true" ShowHeader="false" BodyPadding="10px">
<Items> <Items>
<f:Grid SortField="UID" <f:Grid SortField="UID"
ID = "Grid_TA_LANGUAGE" ID="Grid_TA_LANGUAGE"
ShowBorder = "true" ShowBorder="true"
ShowHeader = "false" Width = "800px" AutoScroll="true" ShowHeader="false" Width="800px" AutoScroll="true"
runat="server" EnableRowSelectEvent="true"
OnRowSelect="Grid_TA_LANGUAGE_RowSelect"
runat ="server" EnableRowSelectEvent="true" DataKeyNames="UID,GUID,CH,EN,RU,DE,FR,EL,AR,JP,IsDeleted">
OnRowSelect="Grid_TA_LANGUAGE_RowSelect" <Columns>
DataKeyNames = "UID,GUID,CH,EN,RU,DE,FR,EL,AR,JP,IsDeleted" > <f:BoundField Width="200px" DataField="UID" DataFormatString="{0}" HeaderText="" Hidden="true" />
<Columns> <f:BoundField Width="200px" DataField="CH" DataFormatString="{0}" HeaderText="中文" />
<f:BoundField Width = "200px" DataField = "UID" DataFormatString = "{0}" HeaderText = "" Hidden="true"/> <f:RenderField Width="100px" ColumnID="EN" DataField="EN" FieldType="String" HeaderText="英文" Hidden="true">
<f:BoundField Width = "200px" DataField = "CH" DataFormatString = "{0}" HeaderText = "中文" /> <Editor>
<f:RenderField Width="100px" ColumnID="EN" DataField="EN" FieldType="String" HeaderText="英文"> <f:TextBox ID="txtBatch1" Text="" runat="server"></f:TextBox>
<Editor> </Editor>
<f:TextBox ID="txtBatch1" Text="" runat="server" ></f:TextBox> </f:RenderField>
</Editor> <f:BoundField MinWidth="400px" DataField="EN" DataFormatString="{0}" HeaderText="英文" />
</f:RenderField> <f:BoundField Width="200px" DataField="DE" DataFormatString="{0}" HeaderText="德文" Hidden="true" />
<f:BoundField Width = "200px" DataField = "EN" DataFormatString = "{0}" HeaderText = "英文" /> <f:BoundField Width="200px" DataField="JP" DataFormatString="{0}" HeaderText="日文" Hidden="true" />
<f:BoundField Width = "200px" DataField = "DE" DataFormatString = "{0}" HeaderText = "德文" /> <f:BoundField Width="200px" DataField="FR" DataFormatString="{0}" HeaderText="法文" Hidden="true" />
<f:BoundField Width = "200px" DataField = "JP" DataFormatString = "{0}" HeaderText = "日文" /> <f:BoundField Width="200px" DataField="RU" DataFormatString="{0}" HeaderText="俄文" Hidden="true" />
<f:BoundField Width = "200px" DataField = "FR" DataFormatString = "{0}" HeaderText = "法文" /> <f:BoundField Width="200px" DataField="AR" DataFormatString="{0}" HeaderText="阿拉伯文" Hidden="true" />
<f:BoundField Width = "200px" DataField = "RU" DataFormatString = "{0}" HeaderText = "俄文" /> <f:TemplateField HeaderText="GUID" Width="350px" Hidden="true">
<f:BoundField Width = "200px" DataField = "AR" DataFormatString = "{0}" HeaderText = "阿拉伯文" /> <ItemTemplate>
<f:TemplateField HeaderText="GUID" Width="350px"> <asp:TextBox ID="GURID" runat="server" Width="300px"
<ItemTemplate> Text='<%# Eval("GUID") %>'></asp:TextBox>
<asp:TextBox ID="GURID" runat="server" Width="300px" </ItemTemplate>
Text='<%# Eval("GUID") %>' ></asp:TextBox> </f:TemplateField>
</ItemTemplate>
</f:TemplateField>
</Columns> </Columns>
</f:Grid> </f:Grid>
</Items> </Items>
</f:Panel> </f:Panel>

25
北京北汽/SCP/Views/BasicData/SCP_LANGUAGE.aspx.cs

@ -8,6 +8,7 @@ using CK.SCP.Models.ScpEntity;
using CK.SCP.Utils; using CK.SCP.Utils;
using CK.SCP.Controller; using CK.SCP.Controller;
using FineUI; using FineUI;
using NPOI.OpenXmlFormats.Wordprocessing;
namespace SCP.BasicData namespace SCP.BasicData
{ {
@ -61,6 +62,7 @@ namespace SCP.BasicData
TA_LANGUAGE _entity = new TA_LANGUAGE(); TA_LANGUAGE _entity = new TA_LANGUAGE();
_entity.GUID = TXT_GUID.Text; _entity.GUID = TXT_GUID.Text;
_entity.CH = TXT_CH.Text; _entity.CH = TXT_CH.Text;
_entity.EN = TXT_EN.Text;
var _ret =SCP_TA_LANGUAGE_CONTROLLER.Get_TA_LANGUAGE_List(_entity); var _ret =SCP_TA_LANGUAGE_CONTROLLER.Get_TA_LANGUAGE_List(_entity);
if (_ret.State == ReturnStatus.Succeed) if (_ret.State == ReturnStatus.Succeed)
@ -106,7 +108,7 @@ namespace SCP.BasicData
{ {
TXT_GUID.Text=Guid.NewGuid().ToString("N").ToUpper(); TXT_GUID.Text=Guid.NewGuid().ToString("N").ToUpper();
TXT_CH.Text=string.Empty; TXT_CH.Text="请输入新建的中文";
TXT_EN.Text=string.Empty; TXT_EN.Text=string.Empty;
TXT_RU.Text=string.Empty; TXT_RU.Text=string.Empty;
TXT_DE.Text=string.Empty; TXT_DE.Text=string.Empty;
@ -205,5 +207,26 @@ namespace SCP.BasicData
{ {
BindData(); BindData();
} }
/// <summary>
/// 刷新
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Btn_Re_Click(object sender, EventArgs e)
{
TXT_GUID.Text = "";
BindData();
}
/// <summary>
/// 清空
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void BtnCleaer_Click(object sender, EventArgs e)
{
TXT_GUID.Text = "";
TXT_CH.Text = "";
TXT_EN.Text = "";
}
} }
} }

24
北京北汽/SCP/Views/BasicData/SCP_LANGUAGE.aspx.designer.cs

@ -7,10 +7,12 @@
// </自动生成> // </自动生成>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
namespace SCP.BasicData { namespace SCP.BasicData
{
public partial class SCP_LANGUAGE { public partial class SCP_LANGUAGE
{
/// <summary> /// <summary>
/// form1 控件。 /// form1 控件。
@ -57,6 +59,15 @@ namespace SCP.BasicData {
/// </remarks> /// </remarks>
protected global::FineUI.Toolbar Toolbar2; protected global::FineUI.Toolbar Toolbar2;
/// <summary>
/// Btn_Re 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.Button Btn_Re;
/// <summary> /// <summary>
/// Btn_Add 控件。 /// Btn_Add 控件。
/// </summary> /// </summary>
@ -174,6 +185,15 @@ namespace SCP.BasicData {
/// </remarks> /// </remarks>
protected global::FineUI.CheckBox CB_IsDeleted; protected global::FineUI.CheckBox CB_IsDeleted;
/// <summary>
/// Cleaer 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.Button Cleaer;
/// <summary> /// <summary>
/// BtnSearch 控件。 /// BtnSearch 控件。
/// </summary> /// </summary>

4
北京北汽/SCP/Views/BasicData/SCP_MoldSharing.aspx

@ -36,7 +36,7 @@
<Items> <Items>
<f:Form runat="server" BodyPadding="10px"> <f:Form runat="server" BodyPadding="10px">
<Rows> <Rows>
<f:FormRow runat="server" ColumnWidths="50% 50%"> <f:FormRow runat="server" ColumnWidths="50% 50%" ID="FormRow_1">
<Items> <Items>
<f:Label runat="server" Label="供应商编号" /> <f:Label runat="server" Label="供应商编号" />
<f:TextBox ID="textVendId" runat="server" /> <f:TextBox ID="textVendId" runat="server" />
@ -44,7 +44,7 @@
<f:TextBox ID="textPartCode" runat="server" /> <f:TextBox ID="textPartCode" runat="server" />
</Items> </Items>
</f:FormRow> </f:FormRow>
<f:FormRow runat="server"> <f:FormRow runat="server" ID="FormRow_2">
<Items> <Items>
<f:Button runat="server" ID="btnClose" Text="关闭" OnClick="btnClose_OnClick"></f:Button> <f:Button runat="server" ID="btnClose" Text="关闭" OnClick="btnClose_OnClick"></f:Button>
<f:Button ID="btnSearch" runat="server" OnClick="btnSearch_OnClick" Text="快速查找"> <f:Button ID="btnSearch" runat="server" OnClick="btnSearch_OnClick" Text="快速查找">

5
北京北汽/SCP/Views/BasicData/SCP_MoldSharing.aspx.cs

@ -26,6 +26,11 @@ namespace SCP.Views.BasicData
if (!IsPostBack) if (!IsPostBack)
{ {
BindData(); BindData();
TranslatorAgents(Toolbar2);
TranslatorAgents(FormRow_1);
TranslatorAgents(FormRow_2);
TranslatorAgent(Grid1);
TranslatorAgent(ToolbarText1);
} }
} }
/// <summary> /// <summary>

24
北京北汽/SCP/Views/BasicData/SCP_MoldSharing.aspx.designer.cs

@ -7,10 +7,12 @@
// </自动生成> // </自动生成>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
namespace SCP.Views.BasicData { namespace SCP.Views.BasicData
{
public partial class SCP_MoldSharing { public partial class SCP_MoldSharing
{
/// <summary> /// <summary>
/// form1 控件。 /// form1 控件。
@ -102,6 +104,15 @@ namespace SCP.Views.BasicData {
/// </remarks> /// </remarks>
protected global::FineUI.GroupPanel gp1; protected global::FineUI.GroupPanel gp1;
/// <summary>
/// FormRow_1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.FormRow FormRow_1;
/// <summary> /// <summary>
/// textVendId 控件。 /// textVendId 控件。
/// </summary> /// </summary>
@ -120,6 +131,15 @@ namespace SCP.Views.BasicData {
/// </remarks> /// </remarks>
protected global::FineUI.TextBox textPartCode; protected global::FineUI.TextBox textPartCode;
/// <summary>
/// FormRow_2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.FormRow FormRow_2;
/// <summary> /// <summary>
/// btnClose 控件。 /// btnClose 控件。
/// </summary> /// </summary>

4
北京北汽/SCP/Views/PlanData/ASN_STATE.aspx

@ -14,14 +14,14 @@
<Items> <Items>
<f:Form runat="server" Title=""> <f:Form runat="server" Title="">
<Items> <Items>
<f:FormRow runat="server" ColumnWidths="20% 20% 20% 20% 20%"> <f:FormRow runat="server" ColumnWidths="20% 20% 20% 20% 20%" ID="FormRow_1">
<Items> <Items>
<f:TextBox runat = "server" Label = "发货单号" EmptyText = "" ID = "TXT_AsnBillNum" /> <f:TextBox runat = "server" Label = "发货单号" EmptyText = "" ID = "TXT_AsnBillNum" />
</Items> </Items>
</f:FormRow> </f:FormRow>
<f:FormRow runat="server" ColumnWidths="20% 20% 20% 20% 20%" > <f:FormRow runat="server" ColumnWidths="20% 20% 20% 20% 20%" ID="FormRow_2" >
<Items> <Items>
<f:Button ID="BtnSearch" runat="server" OnClick="BtnSearch_Click" Text="快速查找"> <f:Button ID="BtnSearch" runat="server" OnClick="BtnSearch_Click" Text="快速查找">

3
北京北汽/SCP/Views/PlanData/ASN_STATE.aspx.cs

@ -17,6 +17,9 @@ namespace SCP.Views.PlanData
{ {
if (!IsPostBack) if (!IsPostBack)
{ {
TranslatorAgents(FormRow_1);
TranslatorAgents(FormRow_2);
TranslatorAgent(Grid_V_TB_ASN);
LoadData(); LoadData();
} }

24
北京北汽/SCP/Views/PlanData/ASN_STATE.aspx.designer.cs

@ -7,10 +7,12 @@
// </自动生成> // </自动生成>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
namespace SCP.Views.PlanData { namespace SCP.Views.PlanData
{
public partial class ASN_STATE { public partial class ASN_STATE
{
/// <summary> /// <summary>
/// form1 控件。 /// form1 控件。
@ -30,6 +32,15 @@ namespace SCP.Views.PlanData {
/// </remarks> /// </remarks>
protected global::FineUI.Panel Panel1; protected global::FineUI.Panel Panel1;
/// <summary>
/// FormRow_1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.FormRow FormRow_1;
/// <summary> /// <summary>
/// TXT_AsnBillNum 控件。 /// TXT_AsnBillNum 控件。
/// </summary> /// </summary>
@ -39,6 +50,15 @@ namespace SCP.Views.PlanData {
/// </remarks> /// </remarks>
protected global::FineUI.TextBox TXT_AsnBillNum; protected global::FineUI.TextBox TXT_AsnBillNum;
/// <summary>
/// FormRow_2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.FormRow FormRow_2;
/// <summary> /// <summary>
/// BtnSearch 控件。 /// BtnSearch 控件。
/// </summary> /// </summary>

8
北京北汽/SCP/Views/PlanData/SCP_ARRIVE_DETAIL.aspx

@ -14,7 +14,7 @@
<Toolbars> <Toolbars>
<f:Toolbar ID="Toolbar2" runat="server"> <f:Toolbar ID="Toolbar2" runat="server">
<Items> <Items>
<f:Button ID="Button1" runat="server" EnablePostBack="True" Text="刷新" Icon="Add" OnClientClick="location.reload();"> <f:Button ID="Button1" runat="server" EnablePostBack="True" Text="刷新" Icon="Reload" OnClientClick="location.reload();">
</f:Button> </f:Button>
</Items> </Items>
</f:Toolbar> </f:Toolbar>
@ -22,7 +22,7 @@
<Items> <Items>
<f:Form runat="server" Title=""> <f:Form runat="server" Title="">
<Items> <Items>
<f:FormRow runat="server" ColumnWidths="33% 33% 33%"> <f:FormRow runat="server" ColumnWidths="33% 33% 33%" ID="FormRow_1">
<Items> <Items>
<f:TextBox ID="txtBillNo" runat="server" Label="单据号" Text="" Width="600"> <f:TextBox ID="txtBillNo" runat="server" Label="单据号" Text="" Width="600">
</f:TextBox> </f:TextBox>
@ -31,7 +31,7 @@
<f:TextBox ID="txtPlanBillNo" runat="server" Label="订单号" Text="" Readonly="true" /> <f:TextBox ID="txtPlanBillNo" runat="server" Label="订单号" Text="" Readonly="true" />
</Items> </Items>
</f:FormRow> </f:FormRow>
<f:FormRow runat="server" ColumnWidths="33% 33% 33%"> <f:FormRow runat="server" ColumnWidths="33% 33% 33%" ID="FormRow_2">
<Items> <Items>
<f:TextBox ID="txtState" runat="server" Label="状态" Text="" Readonly="true" /> <f:TextBox ID="txtState" runat="server" Label="状态" Text="" Readonly="true" />
<f:TextBox ID="txtSupplierName" runat="server" Label="供应商" Text=""> <f:TextBox ID="txtSupplierName" runat="server" Label="供应商" Text="">
@ -40,7 +40,7 @@
</f:TextBox> </f:TextBox>
</Items> </Items>
</f:FormRow> </f:FormRow>
<f:FormRow runat="server" ColumnWidths="33% 33% 33%"> <f:FormRow runat="server" ColumnWidths="33% 33% 33%" ID="FormRow_3">
<Items> <Items>
<f:TextBox ID="txtReceiveTime" runat="server" Label="到货时间" Text=""> <f:TextBox ID="txtReceiveTime" runat="server" Label="到货时间" Text="">
</f:TextBox> </f:TextBox>

6
北京北汽/SCP/Views/PlanData/SCP_ARRIVE_DETAIL.aspx.cs

@ -22,6 +22,12 @@ namespace SCP.Views.PlanData
{ {
LoadData(); LoadData();
BindData(); BindData();
TranslatorAgents(Toolbar2);
TranslatorAgents(FormRow_1);
TranslatorAgents(FormRow_2);
TranslatorAgents(FormRow_3);
TranslatorAgent(btnOutput);
TranslatorAgent(Grid_V_TB_ARRIVE_DETAIL);
} }
} }

33
北京北汽/SCP/Views/PlanData/SCP_ARRIVE_DETAIL.aspx.designer.cs

@ -7,10 +7,12 @@
// </自动生成> // </自动生成>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
namespace SCP.Views.PlanData { namespace SCP.Views.PlanData
{
public partial class SCP_ARRIVE_DETAIL { public partial class SCP_ARRIVE_DETAIL
{
/// <summary> /// <summary>
/// form1 控件。 /// form1 控件。
@ -48,6 +50,15 @@ namespace SCP.Views.PlanData {
/// </remarks> /// </remarks>
protected global::FineUI.Button Button1; protected global::FineUI.Button Button1;
/// <summary>
/// FormRow_1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.FormRow FormRow_1;
/// <summary> /// <summary>
/// txtBillNo 控件。 /// txtBillNo 控件。
/// </summary> /// </summary>
@ -75,6 +86,15 @@ namespace SCP.Views.PlanData {
/// </remarks> /// </remarks>
protected global::FineUI.TextBox txtPlanBillNo; protected global::FineUI.TextBox txtPlanBillNo;
/// <summary>
/// FormRow_2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.FormRow FormRow_2;
/// <summary> /// <summary>
/// txtState 控件。 /// txtState 控件。
/// </summary> /// </summary>
@ -102,6 +122,15 @@ namespace SCP.Views.PlanData {
/// </remarks> /// </remarks>
protected global::FineUI.TextBox txtDeliveryAddress; protected global::FineUI.TextBox txtDeliveryAddress;
/// <summary>
/// FormRow_3 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.FormRow FormRow_3;
/// <summary> /// <summary>
/// txtReceiveTime 控件。 /// txtReceiveTime 控件。
/// </summary> /// </summary>

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

@ -57,9 +57,9 @@
</f:FormRow> </f:FormRow>
<f:FormRow ColumnWidths="25% 25% 25% 25%" ID="FormRow_3" runat="server"> <f:FormRow ColumnWidths="25% 25% 25% 25%" ID="FormRow_3" runat="server">
<Items> <Items>
<f:Button runat="server" ID="btnQuery" Text="查询" OnClick="btnSearch_Click"></f:Button> <f:Button runat="server" ID="btnQuery" Text="查询" OnClick="btnSearch_Click"></f:Button>
<f:DropDownList ID="ddl_DayState" runat="server" Label="发货预警"> <f:DropDownList ID="ddl_DayState" runat="server" Text="发货预警">
<f:ListItem Text="全部" Value="-1" Selected="true"/> <f:ListItem Text="全部" Value="-1" Selected="true"/>
<f:ListItem Text="已超期" Value="0" /> <f:ListItem Text="已超期" Value="0" />
<f:ListItem Text="1天" Value="1" /> <f:ListItem Text="1天" Value="1" />

4
北京北汽/SCP/Views/PlanData/SCP_INCOMPLETE_ASK.aspx.cs

@ -24,8 +24,12 @@ namespace SCP.PlanData
TranslatorAgents(Toolbar1); TranslatorAgents(Toolbar1);
TranslatorAgents(FormRow_1); TranslatorAgents(FormRow_1);
TranslatorAgents(FormRow_2); TranslatorAgents(FormRow_2);
TranslatorAgent(btnQuery);
TranslatorAgent(ddl_DayState);
TranslatorAgent(rb_SendState);
TranslatorAgents(FormRow_3); TranslatorAgents(FormRow_3);
TranslatorAgent(GridINCOM); TranslatorAgent(GridINCOM);
TranslatorAgent(ToolbarText1);
LoadData(); LoadData();
} }
} }

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

@ -35,7 +35,7 @@
<Items> <Items>
<f:Form runat="server"> <f:Form runat="server">
<Rows> <Rows>
<f:FormRow runat="server"> <f:FormRow runat="server" ID="FormRow_1">
<Items> <Items>
<f:TextBox runat="server" Label="订单编号" ID="TXT_BillNo" /> <f:TextBox runat="server" Label="订单编号" ID="TXT_BillNo" />
<f:TextBox runat="server" Label="到货编号" ID="TXT_ArriveBill" /> <f:TextBox runat="server" Label="到货编号" ID="TXT_ArriveBill" />
@ -43,7 +43,7 @@
<f:DropDownList ID="factoryList" Label="工厂地点" DataTextField="FactoryName" DataValueField="ErpSite" runat="server"></f:DropDownList> <f:DropDownList ID="factoryList" Label="工厂地点" DataTextField="FactoryName" DataValueField="ErpSite" runat="server"></f:DropDownList>
</Items> </Items>
</f:FormRow> </f:FormRow>
<f:FormRow runat="server"> <f:FormRow runat="server" ID="FormRow_2">
<Items> <Items>
<f:TextBox runat="server" Label="要货看板号" ID="TXT_AskBill"/> <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" />
@ -55,7 +55,7 @@
</f:DropDownList> </f:DropDownList>
</Items> </Items>
</f:FormRow> </f:FormRow>
<f:FormRow runat="server"> <f:FormRow runat="server" ID="FormRow_3">
<Items> <Items>
<f:Button runat="server" Text="关闭" ID="BtnClose" OnClick="BtnClose_Click"></f:Button> <f:Button runat="server" Text="关闭" ID="BtnClose" OnClick="BtnClose_Click"></f:Button>
<f:Button ID="BtnSearch" runat="server" OnClick="BtnSearch_Click" Text="快速查找"> <f:Button ID="BtnSearch" runat="server" OnClick="BtnSearch_Click" Text="快速查找">
@ -100,7 +100,7 @@
</Items> </Items>
</f:Panel> </f:Panel>
<f:Window runat="server" ID="Window1" Hidden="True" Height="600px" Width="1024px" AutoScroll="True" <f:Window runat="server" ID="Window1" Hidden="True" Height="600px" Width="1024px" AutoScroll="True"
WindowPosition="Center" IsModal="true" Title="明细详情" Target="Parent" EnableIFrame="true" OnClose="Window1_Close" CloseAction="HidePostBack" WindowPosition="Center" IsModal="true" Target="Parent" EnableIFrame="true" OnClose="Window1_Close" CloseAction="HidePostBack"
IFrameUrl="about:blank" /> IFrameUrl="about:blank" />
<f:Window ID="WindowUpload" runat="server" Hidden="True" OnClose="WindowUpload_Close" <f:Window ID="WindowUpload" runat="server" Hidden="True" OnClose="WindowUpload_Close"
WindowPosition="Center" IsModal="true" Title="Popup Window 1" Target="Parent" EnableIFrame="true" WindowPosition="Center" IsModal="true" Title="Popup Window 1" Target="Parent" EnableIFrame="true"

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

@ -17,6 +17,12 @@ namespace SCP.Views.SupplierData
if (!IsPostBack) if (!IsPostBack)
{ {
LoadData(); LoadData();
TranslatorAgents(Toolbar2);
TranslatorAgents(FormRow_1);
TranslatorAgents(FormRow_2);
TranslatorAgents(FormRow_3);
TranslatorAgent(Grid_V_TB_ARRIVE);
TranslatorAgent(ToolbarText1);
} }
} }
@ -25,7 +31,7 @@ namespace SCP.Views.SupplierData
if (CurrentUser.FactoryList == null || CurrentUser.FactoryList.Count == 0) if (CurrentUser.FactoryList == null || CurrentUser.FactoryList.Count == 0)
{ {
Alert.Show("当前用户未选择地点!"); Alert.Show(GetResourceKey("当前用户未选择地点!"));
return; return;
} }
BindFactory(); BindFactory();

33
北京北汽/SCP/Views/SupplierData/SCP_ARRIVE.aspx.designer.cs

@ -7,10 +7,12 @@
// </自动生成> // </自动生成>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
namespace SCP.Views.SupplierData { namespace SCP.Views.SupplierData
{
public partial class SCP_ARRIVE { public partial class SCP_ARRIVE
{
/// <summary> /// <summary>
/// form1 控件。 /// form1 控件。
@ -84,6 +86,15 @@ namespace SCP.Views.SupplierData {
/// </remarks> /// </remarks>
protected global::FineUI.GroupPanel gp1; protected global::FineUI.GroupPanel gp1;
/// <summary>
/// FormRow_1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.FormRow FormRow_1;
/// <summary> /// <summary>
/// TXT_BillNo 控件。 /// TXT_BillNo 控件。
/// </summary> /// </summary>
@ -120,6 +131,15 @@ namespace SCP.Views.SupplierData {
/// </remarks> /// </remarks>
protected global::FineUI.DropDownList factoryList; protected global::FineUI.DropDownList factoryList;
/// <summary>
/// FormRow_2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.FormRow FormRow_2;
/// <summary> /// <summary>
/// TXT_AskBill 控件。 /// TXT_AskBill 控件。
/// </summary> /// </summary>
@ -156,6 +176,15 @@ namespace SCP.Views.SupplierData {
/// </remarks> /// </remarks>
protected global::FineUI.DropDownList DDL_BillState; protected global::FineUI.DropDownList DDL_BillState;
/// <summary>
/// FormRow_3 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.FormRow FormRow_3;
/// <summary> /// <summary>
/// BtnClose 控件。 /// BtnClose 控件。
/// </summary> /// </summary>

8
北京北汽/SCP/Views/SupplierData/SCP_ARRIVE_DETAIL.aspx

@ -22,7 +22,7 @@
<Items> <Items>
<f:Form runat="server" Title=""> <f:Form runat="server" Title="">
<Items> <Items>
<f:FormRow runat="server" ColumnWidths="33% 33% 33%"> <f:FormRow runat="server" ColumnWidths="33% 33% 33%" ID="FormRow_1">
<Items> <Items>
<f:TextBox ID="txtBillNo" runat="server" Label="单据号" Text="" Width="600"> <f:TextBox ID="txtBillNo" runat="server" Label="单据号" Text="" Width="600">
</f:TextBox> </f:TextBox>
@ -31,7 +31,7 @@
<f:TextBox ID="txtPlanBillNo" runat="server" Label="订单号" Text="" Readonly="true" /> <f:TextBox ID="txtPlanBillNo" runat="server" Label="订单号" Text="" Readonly="true" />
</Items> </Items>
</f:FormRow> </f:FormRow>
<f:FormRow runat="server" ColumnWidths="33% 33% 33%"> <f:FormRow runat="server" ColumnWidths="33% 33% 33%" ID="FormRow_2">
<Items> <Items>
<f:TextBox ID="txtState" runat="server" Label="状态" Text="" Readonly="true" /> <f:TextBox ID="txtState" runat="server" Label="状态" Text="" Readonly="true" />
<f:TextBox ID="txtSupplierName" runat="server" Label="供应商" Text=""> <f:TextBox ID="txtSupplierName" runat="server" Label="供应商" Text="">
@ -40,7 +40,7 @@
</f:TextBox> </f:TextBox>
</Items> </Items>
</f:FormRow> </f:FormRow>
<f:FormRow runat="server" ColumnWidths="33% 33% 33%"> <f:FormRow runat="server" ColumnWidths="33% 33% 33%" ID="FormRow_3">
<Items> <Items>
<f:TextBox ID="txtReceiveTime" runat="server" Label="到货时间" Text=""> <f:TextBox ID="txtReceiveTime" runat="server" Label="到货时间" Text="">
</f:TextBox> </f:TextBox>
@ -51,7 +51,7 @@
</f:FormRow> </f:FormRow>
</Items> </Items>
</f:Form> </f:Form>
<f:Toolbar runat="server"> <f:Toolbar runat="server" ID="Toolbar3">
<Items> <Items>
<f:ToolbarSeparator runat="server" /> <f:ToolbarSeparator runat="server" />
<f:Button ID="btnOutput" runat="server" Text="导出" Icon="PageExcel" OnClick="btnOutput_OnClick"> <f:Button ID="btnOutput" runat="server" Text="导出" Icon="PageExcel" OnClick="btnOutput_OnClick">

6
北京北汽/SCP/Views/SupplierData/SCP_ARRIVE_DETAIL.aspx.cs

@ -21,6 +21,12 @@ namespace SCP.Views.SupplierData
{ {
LoadData(); LoadData();
BindData(); BindData();
TranslatorAgents(Toolbar2);
TranslatorAgents(Toolbar3);
TranslatorAgent(FormRow_1);
TranslatorAgent(FormRow_2);
TranslatorAgent(FormRow_3);
} }
} }

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

@ -7,10 +7,12 @@
// </自动生成> // </自动生成>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
namespace SCP.Views.SupplierData { namespace SCP.Views.SupplierData
{
public partial class SCP_ARRIVE_DETAIL { public partial class SCP_ARRIVE_DETAIL
{
/// <summary> /// <summary>
/// form1 控件。 /// form1 控件。
@ -48,6 +50,15 @@ namespace SCP.Views.SupplierData {
/// </remarks> /// </remarks>
protected global::FineUI.Button Button1; protected global::FineUI.Button Button1;
/// <summary>
/// FormRow_1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.FormRow FormRow_1;
/// <summary> /// <summary>
/// txtBillNo 控件。 /// txtBillNo 控件。
/// </summary> /// </summary>
@ -75,6 +86,15 @@ namespace SCP.Views.SupplierData {
/// </remarks> /// </remarks>
protected global::FineUI.TextBox txtPlanBillNo; protected global::FineUI.TextBox txtPlanBillNo;
/// <summary>
/// FormRow_2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.FormRow FormRow_2;
/// <summary> /// <summary>
/// txtState 控件。 /// txtState 控件。
/// </summary> /// </summary>
@ -102,6 +122,15 @@ namespace SCP.Views.SupplierData {
/// </remarks> /// </remarks>
protected global::FineUI.TextBox txtDeliveryAddress; protected global::FineUI.TextBox txtDeliveryAddress;
/// <summary>
/// FormRow_3 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.FormRow FormRow_3;
/// <summary> /// <summary>
/// txtReceiveTime 控件。 /// txtReceiveTime 控件。
/// </summary> /// </summary>
@ -129,6 +158,15 @@ namespace SCP.Views.SupplierData {
/// </remarks> /// </remarks>
protected global::FineUI.TextBox txtMemo; protected global::FineUI.TextBox txtMemo;
/// <summary>
/// Toolbar3 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.Toolbar Toolbar3;
/// <summary> /// <summary>
/// btnOutput 控件。 /// btnOutput 控件。
/// </summary> /// </summary>

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

@ -38,6 +38,7 @@ namespace SCP.Views.SupplierData
TranslatorAgents(FormRow_3); TranslatorAgents(FormRow_3);
TranslatorAgent(Grid_V_TB_ASK); TranslatorAgent(Grid_V_TB_ASK);
TranslatorAgents(Toolbar2); TranslatorAgents(Toolbar2);
TranslatorAgent(ToolbarText1);
} }
} }
public void LoadData() public void LoadData()
@ -150,7 +151,7 @@ namespace SCP.Views.SupplierData
{ {
if (Grid_V_TB_ASK.SelectedRowIndexArray.Count() == 0) if (Grid_V_TB_ASK.SelectedRowIndexArray.Count() == 0)
{ {
PageContext.RegisterStartupScript(Alert.GetShowInTopReference("没有选择数据!")); PageContext.RegisterStartupScript(Alert.GetShowInTopReference(GetResourceKey("没有选择数据!")));
return; return;
} }
List<string> _ls = new List<string>(); List<string> _ls = new List<string>();
@ -170,7 +171,7 @@ namespace SCP.Views.SupplierData
{ {
if (Grid_V_TB_ASK.SelectedRowIndexArray.Count() == 0) if (Grid_V_TB_ASK.SelectedRowIndexArray.Count() == 0)
{ {
PageContext.RegisterStartupScript(Alert.GetShowInTopReference("没有选择数据!")); PageContext.RegisterStartupScript(Alert.GetShowInTopReference(GetResourceKey( "没有选择数据!")));
return; return;
} }
object[] rowDataKeys = Grid_V_TB_ASK.DataKeys[Grid_V_TB_ASK.SelectedRowIndex]; object[] rowDataKeys = Grid_V_TB_ASK.DataKeys[Grid_V_TB_ASK.SelectedRowIndex];
@ -252,7 +253,7 @@ namespace SCP.Views.SupplierData
{ {
if (Grid_V_TB_ASK.SelectedRowIndexArray.Count() == 0) if (Grid_V_TB_ASK.SelectedRowIndexArray.Count() == 0)
{ {
PageContext.RegisterStartupScript(Alert.GetShowInTopReference("没有选择数据!")); PageContext.RegisterStartupScript(Alert.GetShowInTopReference(GetResourceKey("没有选择数据!")));
return; return;
} }
object[] rowDataKeys = Grid_V_TB_ASK.DataKeys[Grid_V_TB_ASK.SelectedRowIndex]; object[] rowDataKeys = Grid_V_TB_ASK.DataKeys[Grid_V_TB_ASK.SelectedRowIndex];
@ -260,7 +261,7 @@ namespace SCP.Views.SupplierData
{ {
if (ConvertHelper.To<Int32>(rowDataKeys[7]) == (int)AskState.New || ConvertHelper.To<Int32>(rowDataKeys[7]) == (int)AskState.Release) if (ConvertHelper.To<Int32>(rowDataKeys[7]) == (int)AskState.New || ConvertHelper.To<Int32>(rowDataKeys[7]) == (int)AskState.Release)
{ {
PageContext.RegisterStartupScript(Alert.GetShowInTopReference("选择记录不是供应商确认单据")); PageContext.RegisterStartupScript(Alert.GetShowInTopReference(GetResourceKey("选择记录不是供应商确认单据")));
return; return;
} }
string AskBillNum = rowDataKeys[2] as string; string AskBillNum = rowDataKeys[2] as string;
@ -296,7 +297,7 @@ namespace SCP.Views.SupplierData
{ {
if (Grid_V_TB_ASK.SelectedRowIndexArray.Count() == 0) if (Grid_V_TB_ASK.SelectedRowIndexArray.Count() == 0)
{ {
PageContext.RegisterStartupScript(Alert.GetShowInTopReference("没有选择数据!")); PageContext.RegisterStartupScript(Alert.GetShowInTopReference(GetResourceKey("没有选择数据!")));
return; return;
} }
object[] rowDataKeys = Grid_V_TB_ASK.DataKeys[Grid_V_TB_ASK.SelectedRowIndex]; object[] rowDataKeys = Grid_V_TB_ASK.DataKeys[Grid_V_TB_ASK.SelectedRowIndex];
@ -304,7 +305,7 @@ namespace SCP.Views.SupplierData
{ {
if (ConvertHelper.To<Int32>(rowDataKeys[7]) == (int)AskState.New || ConvertHelper.To<Int32>(rowDataKeys[7]) == (int)AskState.Release) if (ConvertHelper.To<Int32>(rowDataKeys[7]) == (int)AskState.New || ConvertHelper.To<Int32>(rowDataKeys[7]) == (int)AskState.Release)
{ {
PageContext.RegisterStartupScript(Alert.GetShowInTopReference("选择记录不是供应商确认单据")); PageContext.RegisterStartupScript(Alert.GetShowInTopReference(GetResourceKey("选择记录不是供应商确认单据")));
return; return;
} }
string AskBillNum = rowDataKeys[2] as string; string AskBillNum = rowDataKeys[2] as string;

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

@ -27,6 +27,7 @@ namespace SCP.SupplierData
TranslatorAgents(FormRow_1); TranslatorAgents(FormRow_1);
TranslatorAgents(FormRow_2); TranslatorAgents(FormRow_2);
TranslatorAgents(FormRow_3); TranslatorAgents(FormRow_3);
TranslatorAgent(ToolbarText1);
} }
} }
@ -110,7 +111,7 @@ namespace SCP.SupplierData
protected void btnConfirm_Click(object sender, EventArgs e) protected void btnConfirm_Click(object sender, EventArgs e)
{ {
SET_ASK_STATE("供应商确认成功!", AskState.Confirm); SET_ASK_STATE(GetResourceKey( "供应商确认成功!"), AskState.Confirm);
} }
@ -148,7 +149,7 @@ namespace SCP.SupplierData
protected void btnNoConfirm_Click(object sender, EventArgs e) protected void btnNoConfirm_Click(object sender, EventArgs e)
{ {
SET_ASK_STATE("取消确认成功!", AskState.NoConfirm); SET_ASK_STATE(GetResourceKey("取消确认成功!"), AskState.NoConfirm);
} }
} }
} }

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

@ -24,18 +24,19 @@ namespace SCP.SupplierData
TranslatorAgents(FormRow_2); TranslatorAgents(FormRow_2);
TranslatorAgents(FormRow_3); TranslatorAgents(FormRow_3);
TranslatorAgents(FormRow_4); TranslatorAgents(FormRow_4);
TranslatorAgent(ToolbarText1);
} }
} }
public void LoadData() public void LoadData()
{ {
if (!CurrentUser.RoleList.Contains("供应商")) if (!CurrentUser.RoleList.Contains("供应商"))
{ {
Alert.Show("当前用户角色不能操作模块!"); Alert.Show(GetResourceKey("当前用户角色不能操作模块!"));
return; return;
} }
if (CurrentUser.VenderList.Count == 0) if (CurrentUser.VenderList.Count == 0)
{ {
Alert.Show("当前用户分配供应商!"); Alert.Show(GetResourceKey("当前用户分配供应商!"));
return; return;
} }
BindASN(); BindASN();
@ -82,7 +83,7 @@ namespace SCP.SupplierData
_ls=rs.Select(p => p.AsnBillNum).ToList(); _ls=rs.Select(p => p.AsnBillNum).ToList();
if (_ls.Count == 0) if (_ls.Count == 0)
{ {
Alert.Show("无导出记录!"); Alert.Show(GetResourceKey("无导出记录!"));
return; return;
} }
@ -104,7 +105,7 @@ namespace SCP.SupplierData
{ {
if (Grid_V_TB_ASN.SelectedRowIndexArray.Count() == 0) if (Grid_V_TB_ASN.SelectedRowIndexArray.Count() == 0)
{ {
PageContext.RegisterStartupScript(Alert.GetShowInTopReference("没有选择数据!")); PageContext.RegisterStartupScript(Alert.GetShowInTopReference(GetResourceKey("没有选择数据!")));
return; return;
} }
object[] rowDataKeys = Grid_V_TB_ASN.DataKeys[Grid_V_TB_ASN.SelectedRowIndex]; object[] rowDataKeys = Grid_V_TB_ASN.DataKeys[Grid_V_TB_ASN.SelectedRowIndex];
@ -150,7 +151,7 @@ namespace SCP.SupplierData
{ {
if (Grid_V_TB_ASN.SelectedRowIndexArray.Count() == 0 ) if (Grid_V_TB_ASN.SelectedRowIndexArray.Count() == 0 )
{ {
PageContext.RegisterStartupScript(Alert.GetShowInTopReference("没有选择数据!")); PageContext.RegisterStartupScript(Alert.GetShowInTopReference(GetResourceKey("没有选择数据!")));
return; return;
} }
object[] rowDataKeys = Grid_V_TB_ASN.DataKeys[Grid_V_TB_ASN.SelectedRowIndex]; object[] rowDataKeys = Grid_V_TB_ASN.DataKeys[Grid_V_TB_ASN.SelectedRowIndex];
@ -163,7 +164,7 @@ namespace SCP.SupplierData
{ {
if (Grid_V_TB_ASN.SelectedRowIndexArray.Count() == 0) if (Grid_V_TB_ASN.SelectedRowIndexArray.Count() == 0)
{ {
PageContext.RegisterStartupScript(Alert.GetShowInTopReference("没有选择数据!")); PageContext.RegisterStartupScript(Alert.GetShowInTopReference(GetResourceKey("没有选择数据!")));
return; return;
} }
object[] rowDataKeys = Grid_V_TB_ASN.DataKeys[Grid_V_TB_ASN.SelectedRowIndex]; object[] rowDataKeys = Grid_V_TB_ASN.DataKeys[Grid_V_TB_ASN.SelectedRowIndex];

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

@ -45,6 +45,7 @@ namespace SCP.SupplierData
TranslatorAgents(FormRow_1); TranslatorAgents(FormRow_1);
TranslatorAgents(FormRow_2); TranslatorAgents(FormRow_2);
TranslatorAgents(FormRow_3); TranslatorAgents(FormRow_3);
TranslatorAgent(ToolbarText1);
} }
} }
private void SetRoleRule() private void SetRoleRule()
@ -167,7 +168,7 @@ namespace SCP.SupplierData
if (string.IsNullOrEmpty(TXT_AskBillNum.Text) || string.IsNullOrEmpty(TXT_ShipUser.Text) || DP_ReceiveTime.SelectedDate==null || DP_ShipTime.SelectedDate==null) if (string.IsNullOrEmpty(TXT_AskBillNum.Text) || string.IsNullOrEmpty(TXT_ShipUser.Text) || DP_ReceiveTime.SelectedDate==null || DP_ShipTime.SelectedDate==null)
{ {
PageContext.RegisterStartupScript(Alert.GetShowInTopReference("要货看板单据编号、发货人、到货时间、收货时间不能为空")); PageContext.RegisterStartupScript(Alert.GetShowInTopReference(GetResourceKey( "要货看板单据编号、发货人、到货时间、收货时间不能为空")));
return; return;
} }
@ -175,12 +176,12 @@ namespace SCP.SupplierData
if (_model == null) if (_model == null)
{ {
PageContext.RegisterStartupScript(Alert.GetShowInTopReference("编辑的数据不正确")); PageContext.RegisterStartupScript(Alert.GetShowInTopReference(GetResourceKey("编辑的数据不正确")));
return; return;
} }
if (_model.State != (int)AskState.Confirm && _model.State != (int)AskState.Receive && _model.State != (int)AskState.Ship) if (_model.State != (int)AskState.Confirm && _model.State != (int)AskState.Receive && _model.State != (int)AskState.Ship)
{ {
Alert.Show("要货看板必须为确认后状态"); Alert.Show(GetResourceKey("要货看板必须为确认后状态"));
return; return;
} }
@ -230,7 +231,7 @@ namespace SCP.SupplierData
_entity.ProduceDate = DateTime.Now; _entity.ProduceDate = DateTime.Now;
if (Convert.ToDecimal(_entity.AskQty) == 0) if (Convert.ToDecimal(_entity.AskQty) == 0)
{ {
PageContext.RegisterStartupScript(Alert.GetShowInTopReference("要货看板数量不能为 0")); PageContext.RegisterStartupScript(Alert.GetShowInTopReference(GetResourceKey("要货看板数量不能为 0")));
return; return;
} }
if (modifiedDict.Keys.Contains(i)) if (modifiedDict.Keys.Contains(i))
@ -244,7 +245,7 @@ namespace SCP.SupplierData
if (string.IsNullOrEmpty(_VendBatch) || string.IsNullOrEmpty(_ProduceDate)) if (string.IsNullOrEmpty(_VendBatch) || string.IsNullOrEmpty(_ProduceDate))
{ {
Alert.Show("供应商批次和生产日期不能为空!"); Alert.Show(GetResourceKey("供应商批次和生产日期不能为空!"));
return; return;
} }
object _PackQty = 0; object _PackQty = 0;
@ -267,7 +268,7 @@ namespace SCP.SupplierData
DateTime _d = DateTime.Now; DateTime _d = DateTime.Now;
if (_ProduceDate == null && DateTime.TryParse(_ProduceDate.ToString(), out _d) == false) if (_ProduceDate == null && DateTime.TryParse(_ProduceDate.ToString(), out _d) == false)
{ {
Alert.Show("日期填写错误!"); Alert.Show(GetResourceKey("日期填写错误!"));
return; return;
} }
DateTime dt = DateTime.Parse(_ProduceDate.ToString()); DateTime dt = DateTime.Parse(_ProduceDate.ToString());
@ -326,7 +327,7 @@ namespace SCP.SupplierData
} }
if (QtyAll > _entity.AskQty - _entity.ShippedQty - _entity.ReduceQty) if (QtyAll > _entity.AskQty - _entity.ShippedQty - _entity.ReduceQty)
{ {
PageContext.RegisterStartupScript(Alert.GetShowInTopReference(_entity.PartCode + "发货数量>可发数量-减产数量")); PageContext.RegisterStartupScript(Alert.GetShowInTopReference(_entity.PartCode + GetResourceKey("发货数量>可发数量-减产数量")));
return; return;
} }
_entity.ShippedQty = _entity.ShippedQty + QtyAll; _entity.ShippedQty = _entity.ShippedQty + QtyAll;
@ -352,13 +353,13 @@ namespace SCP.SupplierData
List<string> _ls = new List<string>(); List<string> _ls = new List<string>();
if (_askDetaillist.Count == 0) if (_askDetaillist.Count == 0)
{ {
Alert.Show("发货数量未填写"); Alert.Show(GetResourceKey("发货数量未填写"));
return; return;
} }
var _distinctls = _askDetaillist.DistinctBy(x => new { x.PartCode, x.Batch,x.PoLine }).ToList(); var _distinctls = _askDetaillist.DistinctBy(x => new { x.PartCode, x.Batch,x.PoLine }).ToList();
if(_askDetaillist.Count> _distinctls.Count) if(_askDetaillist.Count> _distinctls.Count)
{ {
Alert.Show("同一零件批次号不能重复!"); Alert.Show(GetResourceKey("同一零件批次号不能重复!"));
return; return;
} }
if (CurrentUser.FactoryList.Count > 0) if (CurrentUser.FactoryList.Count > 0)
@ -375,7 +376,7 @@ namespace SCP.SupplierData
var ret=SCP_ASK_CONTROLLER.Save_ASK_TO_ASN(_model, _askDetaillist, TXT_PlateNumber.Text, CurrentUser.ChineseName ,CurrentUser.CellPhone); var ret=SCP_ASK_CONTROLLER.Save_ASK_TO_ASN(_model, _askDetaillist, TXT_PlateNumber.Text, CurrentUser.ChineseName ,CurrentUser.CellPhone);
if (ret.State == ReturnStatus.Succeed) if (ret.State == ReturnStatus.Succeed)
{ {
Alert.Show("生成发货单成功!"); Alert.Show(GetResourceKey("生成发货单成功!"));
GetV_TB_POData(); GetV_TB_POData();
BindDetail(); BindDetail();
} }

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

@ -27,6 +27,7 @@ namespace SCP.SupplierData
SetRoleRule(); SetRoleRule();
TranslatorAgents(Toolbar2); TranslatorAgents(Toolbar2);
TranslatorAgents(Toolbar1); TranslatorAgents(Toolbar1);
TranslatorAgent(ToolbarText1);
TranslatorAgent(Grid_V_TB_ASN_DETAIL); TranslatorAgent(Grid_V_TB_ASN_DETAIL);
TranslatorAgents(FormRow_1); TranslatorAgents(FormRow_1);
TranslatorAgents(FormRow_2); TranslatorAgents(FormRow_2);
@ -197,7 +198,7 @@ namespace SCP.SupplierData
var _asn=Session["Asn"] as V_TB_ASN; var _asn=Session["Asn"] as V_TB_ASN;
if (_asn == null) if (_asn == null)
{ {
Alert.Show("发货订单信息不能为空!"); Alert.Show(GetResourceKey("发货订单信息不能为空!"));
} }
List<V_TB_ASN_DETAIL> _list = new List<V_TB_ASN_DETAIL>(); List<V_TB_ASN_DETAIL> _list = new List<V_TB_ASN_DETAIL>();
for (int i = 0, count = Grid_V_TB_ASN_DETAIL.Rows.Count; i < count; i++) for (int i = 0, count = Grid_V_TB_ASN_DETAIL.Rows.Count; i < count; i++)
@ -243,7 +244,7 @@ namespace SCP.SupplierData
if (string.IsNullOrEmpty(TXT_ProduceDate.Text)) if (string.IsNullOrEmpty(TXT_ProduceDate.Text))
{ {
Alert.Show("包装量填写错误!"); Alert.Show(GetResourceKey("包装量填写错误!"));
return; return;
} }
else else
@ -257,7 +258,7 @@ namespace SCP.SupplierData
var _first = _list.FirstOrDefault(); var _first = _list.FirstOrDefault();
if (_first.State != (int)AsnState.New) if (_first.State != (int)AsnState.New)
{ {
Alert.Show("不是新建状态,不能保存信息!"); Alert.Show(GetResourceKey("不是新建状态,不能保存信息!"));
} }
} }
} }
@ -322,7 +323,7 @@ namespace SCP.SupplierData
var _asn = Session["Asn"] as V_TB_ASN; var _asn = Session["Asn"] as V_TB_ASN;
if (_asn == null) if (_asn == null)
{ {
Alert.Show("发货订单信息不能为空!"); Alert.Show(GetResourceKey("发货订单信息不能为空!"));
} }
var _list = GetSelectedList(); var _list = GetSelectedList();
if (_list.Count > 0) if (_list.Count > 0)
@ -330,7 +331,7 @@ namespace SCP.SupplierData
var _first = _list.FirstOrDefault(); var _first = _list.FirstOrDefault();
if (_first.State != (int)AsnState.New) if (_first.State != (int)AsnState.New)
{ {
Alert.Show("不是新建状态,不能保存信息!"); Alert.Show(GetResourceKey("不是新建状态,不能保存信息!"));
} }
else else
{ {
@ -344,7 +345,7 @@ namespace SCP.SupplierData
//} //}
if (result.Result.Count(p => p.PrintType == (int)PrintType.BAR_CODE) == 0) if (result.Result.Count(p => p.PrintType == (int)PrintType.BAR_CODE) == 0)
{ {
Alert.Show(_asn.AsnBillNum + "标签未打印!"); Alert.Show(_asn.AsnBillNum + GetResourceKey("标签未打印!"));
return; return;
} }
} }
@ -352,7 +353,7 @@ namespace SCP.SupplierData
var check = SCP_ASN_CONTROLLER.Get_TS_UNI_API(_asn); var check = SCP_ASN_CONTROLLER.Get_TS_UNI_API(_asn);
if(check.State == ReturnStatus.Failed) if(check.State == ReturnStatus.Failed)
{ {
Alert.Show(_asn.AsnBillNum + "请勿重复提交数据!"); Alert.Show(_asn.AsnBillNum + GetResourceKey("请勿重复提交数据!"));
return; return;
} }
var ret = SCP_ASN_CONTROLLER.Save_TB_ASN_DETAIL(_asn, _list); var ret = SCP_ASN_CONTROLLER.Save_TB_ASN_DETAIL(_asn, _list);
@ -403,7 +404,7 @@ namespace SCP.SupplierData
protected void btnCancel_Click(object sender, EventArgs e) protected void btnCancel_Click(object sender, EventArgs e)
{ {
SET_ASN_STATE("发货单作废成功", AsnState.Reject); SET_ASN_STATE(GetResourceKey("发货单作废成功"), AsnState.Reject);
} }
@ -428,7 +429,7 @@ namespace SCP.SupplierData
var ret=SCP_ASN_CONTROLLER.Save_TB_CREATE_BARCODE(_list); var ret=SCP_ASN_CONTROLLER.Save_TB_CREATE_BARCODE(_list);
if (ret.State == ReturnStatus.Succeed) if (ret.State == ReturnStatus.Succeed)
{ {
Alert.Show("条码创建成功!"); Alert.Show(GetResourceKey("条码创建成功!"));
} }
else else
{ {
@ -471,14 +472,14 @@ namespace SCP.SupplierData
{ {
if (result.Result.Count(p => p.PrintType == (int)PrintType.BAR_CODE) == 0) if (result.Result.Count(p => p.PrintType == (int)PrintType.BAR_CODE) == 0)
{ {
Alert.Show(AsnBillNum + "标签未打印!"); Alert.Show(AsnBillNum + GetResourceKey("标签未打印!"));
return; return;
} }
} }
var SubSite = SCP_BARCODE_CONTROLLER.GetBillNum(AsnBillNum); var SubSite = SCP_BARCODE_CONTROLLER.GetBillNum(AsnBillNum);
if (SubSite.State < 3) if (SubSite.State < 3)
{ {
Alert.Show(AsnBillNum + "请先点击确认发货再打印发货单!"); Alert.Show(AsnBillNum + GetResourceKey("请先点击确认发货再打印发货单!"));
return; return;
} }
if (SubSite.Site == "CQBMPT") if (SubSite.Site == "CQBMPT")
@ -501,7 +502,7 @@ namespace SCP.SupplierData
var bacode= SCP_BARCODE_CONTROLLER.GetBacode(AsnBillNum); var bacode= SCP_BARCODE_CONTROLLER.GetBacode(AsnBillNum);
if (bacode.Count() == 0) if (bacode.Count() == 0)
{ {
Alert.Show(AsnBillNum + "标签未创建!"); Alert.Show(AsnBillNum + GetResourceKey("标签未创建!"));
return; return;
} }
var SubSite = SCP_BARCODE_CONTROLLER.GetBillNum(AsnBillNum); var SubSite = SCP_BARCODE_CONTROLLER.GetBillNum(AsnBillNum);
@ -529,7 +530,7 @@ namespace SCP.SupplierData
var _asn = Session["Asn"] as V_TB_ASN; var _asn = Session["Asn"] as V_TB_ASN;
if (_asn == null) if (_asn == null)
{ {
Alert.Show("发货单不存在!"); Alert.Show(GetResourceKey("发货单不存在!"));
return; return;
} }
@ -585,16 +586,16 @@ namespace SCP.SupplierData
var _list = SCP_DC_UNI_CONTROLLER.GetASN_ASN(_asn.AsnBillNum); var _list = SCP_DC_UNI_CONTROLLER.GetASN_ASN(_asn.AsnBillNum);
if (_list != null && _list.Count > 0) if (_list != null && _list.Count > 0)
{ {
SET_ASN_STATE("设置成异常状态成功", AsnState.Exception); SET_ASN_STATE(GetResourceKey("设置成异常状态成功"), AsnState.Exception);
} }
else else
{ {
Alert.Show("发货单不是已发货状态 !"); Alert.Show(GetResourceKey("发货单不是已发货状态 !"));
} }
} }
else else
{ {
Alert.Show("发货单不是【已发货】状态,只能处理【已发货】异常单据!"); Alert.Show(GetResourceKey("发货单不是【已发货】状态,只能处理【已发货】异常单据!"));
} }
} }
}); });
@ -607,7 +608,7 @@ namespace SCP.SupplierData
var _asn = Session["Asn"] as V_TB_ASN; var _asn = Session["Asn"] as V_TB_ASN;
if (_asn == null) if (_asn == null)
{ {
Alert.Show("发货订单信息不能为空!"); Alert.Show(GetResourceKey("发货订单信息不能为空!"));
} }
var _list = GetSelectedList(); var _list = GetSelectedList();
if (_list.Count > 0) if (_list.Count > 0)
@ -615,7 +616,7 @@ namespace SCP.SupplierData
var _first = _list.FirstOrDefault(); var _first = _list.FirstOrDefault();
if (_first.State != (int)AsnState.New) if (_first.State != (int)AsnState.New)
{ {
Alert.Show("不是新建状态,不能保存信息!"); Alert.Show(GetResourceKey("不是新建状态,不能保存信息!"));
} }
else else
{ {
@ -624,12 +625,12 @@ namespace SCP.SupplierData
{ {
if (result.Result.Count(p => p.PrintType == (int)PrintType.ASN) == 0) if (result.Result.Count(p => p.PrintType == (int)PrintType.ASN) == 0)
{ {
Alert.Show(_asn.AsnBillNum + "发货单未打印!"); Alert.Show(_asn.AsnBillNum + GetResourceKey("发货单未打印!"));
return; return;
} }
if (result.Result.Count(p => p.PrintType == (int)PrintType.BAR_CODE) == 0) if (result.Result.Count(p => p.PrintType == (int)PrintType.BAR_CODE) == 0)
{ {
Alert.Show(_asn.AsnBillNum + "标签未打印!"); Alert.Show(_asn.AsnBillNum + GetResourceKey("标签未打印!"));
return; return;
} }
} }
@ -641,13 +642,13 @@ namespace SCP.SupplierData
var check = SCP_ASN_CONTROLLER.Get_TS_UNI_API(_asn); var check = SCP_ASN_CONTROLLER.Get_TS_UNI_API(_asn);
if (check.State == ReturnStatus.Failed) if (check.State == ReturnStatus.Failed)
{ {
Alert.Show(_asn.AsnBillNum + "请勿重复提交数据!"); Alert.Show(_asn.AsnBillNum + GetResourceKey("请勿重复提交数据!"));
return; return;
} }
var ret = SCP_ASN_CONTROLLER.Save_TB_ASN_DETAIL(_asn, _list); var ret = SCP_ASN_CONTROLLER.Save_TB_ASN_DETAIL(_asn, _list);
if (ret.State == ReturnStatus.Succeed) if (ret.State == ReturnStatus.Succeed)
{ {
SET_ASN_STATE("发货成功", AsnState.Ship); SET_ASN_STATE(GetResourceKey("发货成功"), AsnState.Ship);
GetV_TB_ASNData(); GetV_TB_ASNData();
BindDetail(); BindDetail();
@ -655,7 +656,7 @@ namespace SCP.SupplierData
} }
else else
{ {
Alert.Show(string.Join("\n\r", ret.MessageList.ToArray())); Alert.Show(GetResourceKey( string.Join("\n\r", ret.MessageList.ToArray())));
} }
} }
} }

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

@ -27,6 +27,7 @@ namespace SCP.Views.SupplierData
TranslatorAgents(FormRow_4); TranslatorAgents(FormRow_4);
BindInvoice(); BindInvoice();
BindVender(DDL_VEND_LIST); BindVender(DDL_VEND_LIST);
TranslatorAgent(ToolbarText1);
} }
} }
@ -64,7 +65,7 @@ namespace SCP.Views.SupplierData
{ {
if (string.IsNullOrEmpty(DDL_VEND_LIST.SelectedValue)) if (string.IsNullOrEmpty(DDL_VEND_LIST.SelectedValue))
{ {
Alert.Show("选择开票的供应商,并点击确认!"); Alert.Show(GetResourceKey("选择开票的供应商,并点击确认!"));
return; return;
} }
var _venderId = DDL_VEND_LIST.SelectedValue; var _venderId = DDL_VEND_LIST.SelectedValue;
@ -92,7 +93,7 @@ namespace SCP.Views.SupplierData
{ {
if (_entity.InvoiceList == null || _entity.InvoiceList.Count == 0) if (_entity.InvoiceList == null || _entity.InvoiceList.Count == 0)
{ {
Alert.Show("未查询到符合条件的发票!"); Alert.Show(GetResourceKey("未查询到符合条件的发票!"));
} }
p_action(ret.Result); p_action(ret.Result);
} }
@ -102,7 +103,7 @@ namespace SCP.Views.SupplierData
{ {
if (Grid_V_TB_INVOICE.SelectedRowIndexArray.Length != 1) if (Grid_V_TB_INVOICE.SelectedRowIndexArray.Length != 1)
{ {
Alert.Show("请选择一行要操作的记录!"); Alert.Show(GetResourceKey("请选择一行要操作的记录!"));
return; return;
} }
string roleID = GetSelectedDataKey(Grid_V_TB_INVOICE, 1); string roleID = GetSelectedDataKey(Grid_V_TB_INVOICE, 1);
@ -152,7 +153,7 @@ namespace SCP.Views.SupplierData
int[] _selections = Grid_V_TB_INVOICE.SelectedRowIndexArray; int[] _selections = Grid_V_TB_INVOICE.SelectedRowIndexArray;
if(_selections.Count()==0) if(_selections.Count()==0)
{ {
Alert.Show("请选择发票记录导出!"); Alert.Show(GetResourceKey("请选择发票记录导出!"));
} }
List<string> _ls = new List<string>(); List<string> _ls = new List<string>();
for (int i = 0, count = Grid_V_TB_INVOICE.Rows.Count; i < count; i++) for (int i = 0, count = Grid_V_TB_INVOICE.Rows.Count; i < count; i++)

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

@ -28,6 +28,7 @@ namespace SCP.Views.SupplierData
TranslatorAgents(Toolbar2); TranslatorAgents(Toolbar2);
TranslatorAgent(Grid_SCP_INVOICE_CREATE); TranslatorAgent(Grid_SCP_INVOICE_CREATE);
TranslatorAgents(FormRow_1); TranslatorAgents(FormRow_1);
TranslatorAgent(ToolbarText1);
LoadData(); LoadData();
SetRoleRule(); SetRoleRule();
} }
@ -66,7 +67,7 @@ namespace SCP.Views.SupplierData
InvoiceCreateQueryParm parm = Session["InvoiceCreateQueryParm"] as InvoiceCreateQueryParm; InvoiceCreateQueryParm parm = Session["InvoiceCreateQueryParm"] as InvoiceCreateQueryParm;
if (parm.ReceiveID == "") if (parm.ReceiveID == "")
{ Alert.Show("参数不正确!"); return; } { Alert.Show(GetResourceKey("参数不正确!")); return; }
var ary = parm.ReceiveID.Split(','); var ary = parm.ReceiveID.Split(',');
if (ary != null && ary.Length > 0) if (ary != null && ary.Length > 0)
{ {
@ -297,7 +298,7 @@ namespace SCP.Views.SupplierData
} }
catch catch
{ {
PageContext.RegisterStartupScript(Alert.GetShowInTopReference("开票数量输入不正确")); PageContext.RegisterStartupScript(Alert.GetShowInTopReference(GetResourceKey("开票数量输入不正确")));
return; return;
} }
@ -311,7 +312,7 @@ namespace SCP.Views.SupplierData
} }
catch catch
{ {
PageContext.RegisterStartupScript(Alert.GetShowInTopReference("单价输入不正确")); PageContext.RegisterStartupScript(Alert.GetShowInTopReference(GetResourceKey("单价输入不正确")));
return; return;
} }
@ -321,7 +322,7 @@ namespace SCP.Views.SupplierData
} }
if (Qty >_entity.CanQty) if (Qty >_entity.CanQty)
{ {
PageContext.RegisterStartupScript(Alert.GetShowInTopReference("开票数量不能大于可用开票数量")); PageContext.RegisterStartupScript(Alert.GetShowInTopReference(GetResourceKey("开票数量不能大于可用开票数量")));
return; return;
} }
_entity.Qty = Qty; _entity.Qty = Qty;
@ -332,7 +333,7 @@ namespace SCP.Views.SupplierData
} }
if (num == 0) if (num == 0)
{ {
PageContext.RegisterStartupScript(Alert.GetShowInTopReference("没有可用的开票记录")); PageContext.RegisterStartupScript(Alert.GetShowInTopReference(GetResourceKey("没有可用的开票记录")));
return; return;
} }
int _number= 0; int _number= 0;
@ -347,7 +348,7 @@ namespace SCP.Views.SupplierData
string _modify = parm.Modify; string _modify = parm.Modify;
if (_modify == "1") if (_modify == "1")
{ {
Alert.Show("有退货单未处理!"); Alert.Show(GetResourceKey("有退货单未处理!"));
return; return;
} }
} }
@ -365,7 +366,7 @@ namespace SCP.Views.SupplierData
} }
else else
{ {
PageContext.RegisterStartupScript(Alert.GetShowInTopReference(string.Join("<br>", ret.MessageList))); PageContext.RegisterStartupScript(Alert.GetShowInTopReference(GetResourceKey (string.Join("<br>", ret.MessageList))));
} }
} }

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

@ -274,8 +274,7 @@ namespace SCP.Views.SupplierData
if (_invoice.State != (int)InvoiceState.New && if (_invoice.State != (int)InvoiceState.New &&
_invoice.State != (int)InvoiceState.CheckFail) _invoice.State != (int)InvoiceState.CheckFail)
{ {
Alert.Show(_invoice.InvcBillNum + " 不允许修改,只有状态为 " + "新建" + " 或 " + Alert.Show(_invoice.InvcBillNum + GetResourceKey("不允许修改,只有状态为 新建 或 采购退回才能修改"));
"采购退回" + " 才能修改");
return; return;
} }
@ -303,7 +302,7 @@ namespace SCP.Views.SupplierData
} }
else else
{ {
Alert.Show("折扣金额请填写数字!"); Alert.Show(GetResourceKey("折扣金额请填写数字!"));
return; return;
} }
@ -313,7 +312,7 @@ namespace SCP.Views.SupplierData
} }
else else
{ {
Alert.Show("调整请填写数字!"); Alert.Show(GetResourceKey("调整请填写数字!"));
return; return;
} }
@ -356,13 +355,13 @@ namespace SCP.Views.SupplierData
} }
catch catch
{ {
Alert.Show("开票数量输入不正确"); Alert.Show(GetResourceKey("开票数量输入不正确"));
return; return;
} }
if (QtyNew > _entity.CanQty + _entity.Qty) if (QtyNew > _entity.CanQty + _entity.Qty)
{ {
Alert.Show("开票数量不能大于可用开数票"); Alert.Show(GetResourceKey("开票数量不能大于可用开数票"));
return; return;
} }
@ -377,7 +376,7 @@ namespace SCP.Views.SupplierData
} }
catch catch
{ {
Alert.Show("单价输入不正确"); Alert.Show(GetResourceKey("单价输入不正确"));
return; return;
} }
@ -402,18 +401,18 @@ namespace SCP.Views.SupplierData
if (ret.State == ReturnStatus.Succeed) if (ret.State == ReturnStatus.Succeed)
{ {
Alert.Show("发票明细修改成功!"); Alert.Show(GetResourceKey("发票明细修改成功!"));
BindData(); BindData();
} }
else else
{ {
Alert.Show(string.Join("<br>", ret.MessageList)); Alert.Show(GetResourceKey(string.Join("<br>", ret.MessageList)));
} }
} }
else else
{ {
Alert.Show("更改记录数为零"); Alert.Show(GetResourceKey("更改记录数为零"));
} }
} }
@ -421,7 +420,7 @@ namespace SCP.Views.SupplierData
{ {
if ((string.IsNullOrEmpty(StartTime.SelectedDate.ToString()) || string.IsNullOrEmpty(EndTimeb.SelectedDate.ToString()))&& p_state == InvoiceState.Apply) if ((string.IsNullOrEmpty(StartTime.SelectedDate.ToString()) || string.IsNullOrEmpty(EndTimeb.SelectedDate.ToString()))&& p_state == InvoiceState.Apply)
{ {
Alert.Show("对账开始日期,对账结束日期不能为空"); Alert.Show(GetResourceKey("对账开始日期,对账结束日期不能为空"));
return; return;
} }
if (Session["Invoice"] != null) if (Session["Invoice"] != null)
@ -472,23 +471,23 @@ namespace SCP.Views.SupplierData
{ {
if (InvoiceNumber.Length > 22) if (InvoiceNumber.Length > 22)
{ {
Alert.Show("金税票号最多22位!"); Alert.Show(GetResourceKey("金税票号最多22位!"));
return; return;
} }
if (string.IsNullOrEmpty(InvoiceNumber)) if (string.IsNullOrEmpty(InvoiceNumber))
{ {
Alert.Show("请填写金税票号!"); Alert.Show(GetResourceKey("请填写金税票号!"));
return; return;
} }
if (string.IsNullOrEmpty(ExpressNumber)) if (string.IsNullOrEmpty(ExpressNumber))
{ {
Alert.Show("请填写快递单号!"); Alert.Show(GetResourceKey("请填写快递单号!"));
return; return;
} }
if (dpUpdateTime.SelectedDate == null) if (dpUpdateTime.SelectedDate == null)
{ {
Alert.Show("发票时间必须填写,时间为纸质发票开票时间"); Alert.Show(GetResourceKey("发票时间必须填写,时间为纸质发票开票时间"));
return; return;
} }
@ -516,18 +515,18 @@ namespace SCP.Views.SupplierData
protected void btnApply_Click(object sender, EventArgs e) protected void btnApply_Click(object sender, EventArgs e)
{ {
SET_INVOICE_STATE("发票申请成功!", InvoiceState.Apply); SET_INVOICE_STATE(GetResourceKey("发票申请成功!"), InvoiceState.Apply);
} }
protected void btnMail_Click(object sender, EventArgs e) protected void btnMail_Click(object sender, EventArgs e)
{ {
SET_INVOICE_STATE("发票已经寄出!", InvoiceState.Mail); SET_INVOICE_STATE(GetResourceKey("发票已经寄出!"), InvoiceState.Mail);
} }
protected void btnReject_Click(object sender, EventArgs e) protected void btnReject_Click(object sender, EventArgs e)
{ {
SET_INVOICE_STATE("发票已经作废!", InvoiceState.Reject); SET_INVOICE_STATE(GetResourceKey("发票已经作废!"), InvoiceState.Reject);
} }
protected void Window1_OnClose(object sender, WindowCloseEventArgs e) protected void Window1_OnClose(object sender, WindowCloseEventArgs e)

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

@ -20,6 +20,7 @@ namespace SCP.Views.SupplierData
TranslatorAgents(Toolbar2); TranslatorAgents(Toolbar2);
TranslatorAgent(Grid_V_TB_PALLET); TranslatorAgent(Grid_V_TB_PALLET);
TranslatorAgent(Grid_V_TB_PALLET_DETAIL); TranslatorAgent(Grid_V_TB_PALLET_DETAIL);
TranslatorAgent(ToolbarText1);
Bind(); Bind();
} }
@ -118,7 +119,7 @@ namespace SCP.Views.SupplierData
protected void btnPalletDel_Click(object sender, EventArgs e) protected void btnPalletDel_Click(object sender, EventArgs e)
{ {
SET_PALLET_STATE("删除托盘成功", PalletState.Reject); SET_PALLET_STATE(GetResourceKey("删除托盘成功"), PalletState.Reject);
} }

9
北京北汽/SCP/Views/SupplierData/SCP_PALLET_CREATE.aspx.cs

@ -26,6 +26,7 @@ namespace SCP.SupplierData
TranslatorAgent(Grid_V_TB_ASN_DETAIL); TranslatorAgent(Grid_V_TB_ASN_DETAIL);
TranslatorAgents(FormRow_1); TranslatorAgents(FormRow_1);
TranslatorAgents(FormRow_2); TranslatorAgents(FormRow_2);
TranslatorAgent(ToolbarText1);
GetV_TB_ASN(); GetV_TB_ASN();
BindDetail(); BindDetail();
SetRoleRule(); SetRoleRule();
@ -138,7 +139,7 @@ namespace SCP.SupplierData
if (_model == null) if (_model == null)
{ {
PageContext.RegisterStartupScript(Alert.GetShowInTopReference("编辑的数据不正确")); PageContext.RegisterStartupScript(Alert.GetShowInTopReference(GetResourceKey("编辑的数据不正确")));
return; return;
} }
@ -170,7 +171,7 @@ namespace SCP.SupplierData
_entity.CanQty = ConvertHelper.To<decimal>(rowDataKeys[1]); _entity.CanQty = ConvertHelper.To<decimal>(rowDataKeys[1]);
if (_entity.Qty>_entity.CanQty) if (_entity.Qty>_entity.CanQty)
{ {
errorline.Add(string.Format("零件编号{0}托盘数量大于可用数量",_entity.PartCode)); errorline.Add(string.Format(GetResourceKey("零件编号{0}托盘数量大于可用数量"),_entity.PartCode));
} }
} }
_asnList.Add(_entity); _asnList.Add(_entity);
@ -186,14 +187,14 @@ namespace SCP.SupplierData
if (_asnList.Count == 0) if (_asnList.Count == 0)
{ {
Alert.Show("托盘数量未填写"); Alert.Show(GetResourceKey("托盘数量未填写"));
return; return;
} }
var ret = SCP_ASN_CONTROLLER.Save_ASN_TO_PALLET(_model, _asnList, "", "", ""); var ret = SCP_ASN_CONTROLLER.Save_ASN_TO_PALLET(_model, _asnList, "", "", "");
if (ret.State == ReturnStatus.Succeed) if (ret.State == ReturnStatus.Succeed)
{ {
Alert.Show("生成托盘成功!"); Alert.Show(GetResourceKey("生成托盘成功!"));
GetV_TB_ASN(); GetV_TB_ASN();
BindDetail(); BindDetail();
} }

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

@ -37,6 +37,7 @@ namespace SCP.SupplierData
SetRoleRule(); SetRoleRule();
BindVender(DDL_VEND_LIST); BindVender(DDL_VEND_LIST);
BindFactory(); BindFactory();
TranslatorAgent(ToolbarText1);
} }
} }
@ -136,7 +137,7 @@ namespace SCP.SupplierData
{ {
if (string.IsNullOrEmpty(DDL_VEND_LIST.SelectedValue)) if (string.IsNullOrEmpty(DDL_VEND_LIST.SelectedValue))
{ {
Alert.Show("请在工具栏里选择要开票的供应商,并点击确认!"); Alert.Show(GetResourceKey("请在工具栏里选择要开票的供应商,并点击确认!"));
return; return;
} }
var _venderId = DDL_VEND_LIST.SelectedValue; var _venderId = DDL_VEND_LIST.SelectedValue;
@ -225,7 +226,7 @@ namespace SCP.SupplierData
{ {
if (string.IsNullOrEmpty(DDL_VEND_LIST.SelectedValue)) if (string.IsNullOrEmpty(DDL_VEND_LIST.SelectedValue))
{ {
Alert.Show("请在工具栏里选择要开票的供应商,并点击确认!"); Alert.Show(GetResourceKey("请在工具栏里选择要开票的供应商,并点击确认!"));
return; return;
} }
var _venderId = DDL_VEND_LIST.SelectedValue; var _venderId = DDL_VEND_LIST.SelectedValue;
@ -282,7 +283,7 @@ namespace SCP.SupplierData
List<V_TB_RECEIVE_LIST> temp = SCP_RECIVECE_CONTROLLER.Get_V_TB_RECEIVE_LIST(SCP_MoldSharing_Controller.GET_MoldSharing_LIST(ret.ToList())); List<V_TB_RECEIVE_LIST> temp = SCP_RECIVECE_CONTROLLER.Get_V_TB_RECEIVE_LIST(SCP_MoldSharing_Controller.GET_MoldSharing_LIST(ret.ToList()));
if (string.IsNullOrEmpty(DDL_VEND_LIST.SelectedValue)) if (string.IsNullOrEmpty(DDL_VEND_LIST.SelectedValue))
{ {
Alert.Show("请在工具栏里选择要开票的供应商,并点击确认!"); Alert.Show(GetResourceKey("请在工具栏里选择要开票的供应商,并点击确认!"));
return; return;
} }
#region 价格表 #region 价格表
@ -391,7 +392,7 @@ namespace SCP.SupplierData
{ {
if ( string.IsNullOrEmpty(DropDownList1.SelectedValue)) if ( string.IsNullOrEmpty(DropDownList1.SelectedValue))
{ {
Alert.Show("收货月份不能为空!"); Alert.Show(GetResourceKey("收货月份不能为空!"));
return; return;
} }
//if (!string.IsNullOrEmpty(lbTxt.Text)) //if (!string.IsNullOrEmpty(lbTxt.Text))
@ -404,12 +405,12 @@ namespace SCP.SupplierData
//} //}
if (Grid_V_TB_RECEIVE_LIST.SelectedRowIndexArray.Length == 0) if (Grid_V_TB_RECEIVE_LIST.SelectedRowIndexArray.Length == 0)
{ {
Alert.Show("请选择要创建发票的记录!"); Alert.Show(GetResourceKey("请选择要创建发票的记录!"));
return; return;
} }
if (Grid_V_TB_RECEIVE_LIST.SelectedRowIndexArray.Length > 1000) if (Grid_V_TB_RECEIVE_LIST.SelectedRowIndexArray.Length > 1000)
{ {
Alert.Show("选择发票条数" + Grid_V_TB_RECEIVE_LIST.SelectedRowIndexArray.Length + ",超过发票允许条数(1000条)"); Alert.Show(GetResourceKey("选择发票条数") + Grid_V_TB_RECEIVE_LIST.SelectedRowIndexArray.Length + GetResourceKey(",超过发票允许条数(1000条)"));
return; return;
} }
CreateInvoice("0"); CreateInvoice("0");
@ -423,7 +424,7 @@ namespace SCP.SupplierData
{ {
if (string.IsNullOrEmpty(DDL_VEND_LIST.SelectedValue)) if (string.IsNullOrEmpty(DDL_VEND_LIST.SelectedValue))
{ {
Alert.Show("请在工具栏里选择要开票的供应商,并点击确认!"); Alert.Show(GetResourceKey("请在工具栏里选择要开票的供应商,并点击确认!"));
return; return;
} }
vender = DDL_VEND_LIST.SelectedValue; vender = DDL_VEND_LIST.SelectedValue;
@ -467,13 +468,13 @@ namespace SCP.SupplierData
string TEMP = Grid_V_TB_RECEIVE_LIST.DataKeys[rowIndex][8].ToString(); string TEMP = Grid_V_TB_RECEIVE_LIST.DataKeys[rowIndex][8].ToString();
if (TEMP == "1") if (TEMP == "1")
{ {
_MessageList.Add("【行号】:" + (rowIndex + 1).ToString() + "【收货单】:" + RecvBillNum + "【零件编号】:" + PartCode + "为临时价格"); _MessageList.Add(GetResourceKey("【行号】:") + (rowIndex + 1).ToString() + GetResourceKey("【收货单】:") + RecvBillNum + GetResourceKey("【零件编号】:") + PartCode + GetResourceKey("为临时价格"));
} }
if (Price == 0) if (Price == 0)
{ {
string _message = string.Format("单据号{0}零件编号{1}行号{2}的价格没有确认或为零不能开票", RecvBillNum, PartCode, PoLine, Price.ToString()); string _message = string.Format("单据号{0}零件编号{1}行号{2}的价格没有确认或为零不能开票", RecvBillNum, PartCode, PoLine, Price.ToString());
_MessageList.Add(_message); _MessageList.Add(_message);
} }
@ -515,13 +516,13 @@ namespace SCP.SupplierData
{ {
if (_siteList.Distinct().Count() > 1) if (_siteList.Distinct().Count() > 1)
{ {
Alert.Show("选择开发票的记录有不是一个工厂地点发出的零件</br>请在查询面板里选择工厂后查询相关记录"); Alert.Show(GetResourceKey("选择开发票的记录有不是一个工厂地点发出的零件</br>请在查询面板里选择工厂后查询相关记录"));
return; return;
} }
} }
if (_list.Distinct().Count() > 1) if (_list.Distinct().Count() > 1)
{ {
Alert.Show("请选择的记录不是同一个供应商,请选择供应商!"); Alert.Show(GetResourceKey("请选择的记录不是同一个供应商,请选择供应商!"));
return; return;
} }
if (IDS != "") IDS = IDS.Substring(0, IDS.Length - 1); if (IDS != "") IDS = IDS.Substring(0, IDS.Length - 1);
@ -732,17 +733,17 @@ namespace SCP.SupplierData
{ {
if (string.IsNullOrEmpty(DropDownList1.SelectedValue)) if (string.IsNullOrEmpty(DropDownList1.SelectedValue))
{ {
Alert.Show("收货月份不能为空!"); Alert.Show(GetResourceKey("收货月份不能为空!"));
return; return;
} }
if (Grid_V_TB_RECEIVE_LIST.SelectedRowIndexArray.Length == 0) if (Grid_V_TB_RECEIVE_LIST.SelectedRowIndexArray.Length == 0)
{ {
Alert.Show("请选择要创建发票的记录!"); Alert.Show(GetResourceKey("请选择要创建发票的记录!"));
return; return;
} }
if (Grid_V_TB_RECEIVE_LIST.SelectedRowIndexArray.Length > 1000) if (Grid_V_TB_RECEIVE_LIST.SelectedRowIndexArray.Length > 1000)
{ {
Alert.Show("选择发票条数" + Grid_V_TB_RECEIVE_LIST.SelectedRowIndexArray.Length + ",超过发票允许条数(1000条)"); Alert.Show(GetResourceKey("选择发票条数") + Grid_V_TB_RECEIVE_LIST.SelectedRowIndexArray.Length + GetResourceKey(",超过发票允许条数(1000条)"));
return; return;
} }
CreateInvoice("1"); CreateInvoice("1");
@ -788,7 +789,7 @@ namespace SCP.SupplierData
if (string.IsNullOrEmpty(DropDownList1.SelectedValue)) if (string.IsNullOrEmpty(DropDownList1.SelectedValue))
{ {
Alert.Show("月份不能为空!"); Alert.Show(GetResourceKey("月份不能为空!"));
return; return;
} }
#region 月初到月底 #region 月初到月底
@ -825,7 +826,7 @@ namespace SCP.SupplierData
var _ls = ret.ToList(); var _ls = ret.ToList();
if (_ls.Count() == 0) if (_ls.Count() == 0)
{ {
Alert.Show(_d1.Month.ToString() + "月开票零件记录数据为零!"); Alert.Show(_d1.Month.ToString() + GetResourceKey("月开票零件记录数据为零!"));
return; return;
} }
_ls.ForEach(p => _ls.ForEach(p =>

12
北京北汽/SCP/default_hb.aspx

@ -22,7 +22,7 @@
</div> </div>
<div class="box png"> <div class="box png">
<div class="input"> <div class="input">
<div class="log"> <div class="log" style="min-width:400px">
<div runat="server" class="name" id="div_6" > <div runat="server" class="name" id="div_6" >
<div ID="d_ch" style="float:left;"> <div ID="d_ch" style="float:left;">
<asp:Button ID="btn_ch" style="height:25px;width:150px;margin:5px 10px 0px 10px" class ="language" runat="server" Text="中文" OnClick="btn_ch_Click"/> <asp:Button ID="btn_ch" style="height:25px;width:150px;margin:5px 10px 0px 10px" class ="language" runat="server" Text="中文" OnClick="btn_ch_Click"/>
@ -32,7 +32,7 @@
</div> </div>
</div> </div>
<div class="name" runat="server" id="div1" > <div class="name" runat="server" id="div1" >
<label runat="server" id="Label1">工厂名称</label> <label runat="server" id="Label1" ><%= GetResourceKey("工厂名称") %></label>
<select id="factory" runat="server" onchange="getFactory();" > <select id="factory" runat="server" onchange="getFactory();" >
</select> </select>
@ -56,13 +56,13 @@
<div class="pwd" id="div_8"> <div class="pwd" id="div_8">
<label runat="server" id="lab2"><%= GetResourceKey("密码") %></label><input type="password" runat="server" class="text" id="textPassword" placeholder="密码" name="textPassword" tabindex="5" onkeydown="keyDown(event)"> <label runat="server" id="lab2"><%= GetResourceKey("密码") %></label><input type="password" runat="server" class="text" id="textPassword" placeholder="密码" name="textPassword" tabindex="5" onkeydown="keyDown(event)">
</div> </div>
<div class="yzm" id="div_20"> <div class="yzm" id="div_20" style="width:400px">
<label runat="server" id="Label2" style="font-size:14px;margin-top:4px;margin-left:4px"><%= GetResourceKey("验证码") %></label> <label runat="server" id="Label2" style="font-size:14px;margin-top:4px;margin-left:3px"><%= GetResourceKey("验证码") %></label>
<input type="text" runat="server" class="text" id="inputValue" placeholder="验证码(不区分大小写)" name="textPassword" tabindex="5" onkeydown="keyDown(event)" style="width:120px;height:16px;margin-left:2px;margin-top:18px "> <input type="text" runat="server" class="text" id="inputValue" placeholder="验证码(不区分大小写)" name="textPassword" tabindex="5" onkeydown="keyDown(event)" style="width:120px;height:16px;margin-left:2px;margin-top:18px ">
<%-- <canvas id="c1" style="border:1px solid black; position: absolute; width:20%;height:18%;font-size:30px" runat="server" ></canvas>--%> <%-- <canvas id="c1" style="border:1px solid black; position: absolute; width:20%;height:18%;font-size:30px" runat="server" ></canvas>--%>
<%-- <canvas id="c1" width="100" height="30" style="position: absolute;height:10%;width:24%; left:65%;top:70%; border:1px solid black;font-weight:bold" runat="server" ></canvas>--%> <%-- <canvas id="c1" width="100" height="30" style="position: absolute;height:10%;width:24%; left:65%;top:70%; border:1px solid black;font-weight:bold" runat="server" ></canvas>--%>
<f:Image runat="server" ID="img" /> <f:Image runat="server" ID="img" />
<f:LinkButton CssStyle="float:left;margin-top:8px;" ID="btnRefresh" Text="看不清" <f:LinkButton CssStyle="float:left;margin-top:10px;" ID="btnRefresh" Text="看不清"
runat="server" OnClick="btnRefresh_Click"> runat="server" OnClick="btnRefresh_Click">
</f:LinkButton> </f:LinkButton>
@ -100,7 +100,7 @@
</div> </div>
</div> </div>
</div> </div>
<input type="text" runat="server" id="Text2" style="width:21%;height:5%;position:absolute;color:red;margin-left:41.5%;" readonly="readonly"> <input type="text" runat="server" id="Text2" style="width:21%;height:5%;position:absolute;color:red;margin-left:41.5%;top:70%" readonly="readonly">
<div class="air-balloon ab-1 png"></div> <div class="air-balloon ab-1 png"></div>
<div class="air-balloon ab-2 png"></div> <div class="air-balloon ab-2 png"></div>
<div class="footer"> <div class="footer">

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

@ -224,7 +224,7 @@ namespace SCP
{ {
if (number.Number < 5) if (number.Number < 5)
{ {
Text2.Value = "用户名或密码错误" + number.Number + "次24小时内错误5次账号将变为未启用状态!"; Text2.Value = GetResourceKey( "用户名或密码错误" + number.Number + "次24小时内错误5次账号将变为未启用状态!");
} }
} }
@ -252,7 +252,7 @@ namespace SCP
{ {
if (number.Number < 5) if (number.Number < 5)
{ {
Text2.Value = "用户名或密码错误" + number.Number + "次24小时内错误五次账号将变为未启用状态!"; Text2.Value = GetResourceKey( "用户名或密码错误" + number.Number + "次24小时内错误五次账号将变为未启用状态!");
} }
} }
} }
@ -394,12 +394,12 @@ namespace SCP
webmail.Send(mails, mailbody, "供应商密码找回"); webmail.Send(mails, mailbody, "供应商密码找回");
user.Password = PasswordUtil.CreateDbPassword(b + "@" + a); user.Password = PasswordUtil.CreateDbPassword(b + "@" + a);
DB.SaveChanges(); DB.SaveChanges();
Alert.Show("新密码登录链接已发送到邮箱,请查收!"); Alert.Show(GetResourceKey("新密码登录链接已发送到邮箱,请查收!"));
} }
} }
else else
{ {
Alert.Show("邮箱错误,请输入注册邮箱!"); Alert.Show(GetResourceKey("邮箱错误,请输入注册邮箱!"));
return; return;
} }
} }
@ -432,6 +432,7 @@ namespace SCP
btn_MailLogin.Text = "邮件登录"; btn_MailLogin.Text = "邮件登录";
btn_back.Attributes["value"] = "退回"; btn_back.Attributes["value"] = "退回";
btn_pass.Attributes["value"] = "找回密码"; btn_pass.Attributes["value"] = "找回密码";
img.ImageUrl = DrawToBase64(4);
} }
protected void btn_en_Click(object sender, EventArgs e) protected void btn_en_Click(object sender, EventArgs e)
@ -441,6 +442,8 @@ namespace SCP
btn_MailLogin.Text = "Mail Login"; btn_MailLogin.Text = "Mail Login";
btn_back.Attributes["value"] = "Back"; btn_back.Attributes["value"] = "Back";
btn_pass.Attributes["value"] = "Forgot Password"; btn_pass.Attributes["value"] = "Forgot Password";
TranslatorAgent(btnRefresh);
img.ImageUrl = DrawToBase64(4);
} }
#region #region

2
北京北汽/SCP/res/css/main3.css

@ -29,7 +29,7 @@ ul, li {
} }
div, p { div, p {
word-wrap: break-word; /*word-wrap: break-word;*/
} }
img { img {

Loading…
Cancel
Save