From 40dafc6d1d0a4282ce00075b266177cdffc569a6 Mon Sep 17 00:00:00 2001
From: TML <1448969505@qq.com>
Date: Mon, 21 Sep 2020 16:39:11 +0800
Subject: [PATCH] =?UTF-8?q?=E9=9D=92=E5=B2=9B=E4=BB=A3=E7=A0=81=E4=BF=AE?=
=?UTF-8?q?=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Models/AppBoxEntity/PasswordUtil.cs | 3 ++-
SCP/Global.asax.cs | 1 +
SCP/Views/青岛一汽法雷奥/PlanData/SCP_ASK.aspx.cs | 2 +-
SCP/Views/青岛一汽法雷奥/SupplierData/SCP_ASK.aspx.cs | 2 +-
.../青岛一汽法雷奥/SupplierData/SCP_ASN_CREATE.aspx.cs | 4 ++--
SCP/default.aspx | 4 ++--
SCP/default.aspx.cs | 4 ++--
SCP/grf/Pallet.grf | 1 +
SCP/grf/SendBill_Pallet.grf | 1 +
SCP/grf/Small_Material.grf | 1 +
10 files changed, 14 insertions(+), 9 deletions(-)
create mode 100644 SCP/grf/Pallet.grf
create mode 100644 SCP/grf/SendBill_Pallet.grf
create mode 100644 SCP/grf/Small_Material.grf
diff --git a/Models/AppBoxEntity/PasswordUtil.cs b/Models/AppBoxEntity/PasswordUtil.cs
index 4ccace8..8f95efc 100644
--- a/Models/AppBoxEntity/PasswordUtil.cs
+++ b/Models/AppBoxEntity/PasswordUtil.cs
@@ -26,8 +26,9 @@ namespace CK.SCP.Models.AppBoxEntity
///
public static bool ComparePasswords(string dbPassword,string userPassword)
{
+
byte[] dbPwd = Convert.FromBase64String(dbPassword);
-
+
byte[] hashedPwd = HashString(userPassword);
if(dbPwd.Length ==0 || hashedPwd.Length ==0 || dbPwd.Length !=hashedPwd.Length + saltLength)
diff --git a/SCP/Global.asax.cs b/SCP/Global.asax.cs
index 129231d..ef56add 100644
--- a/SCP/Global.asax.cs
+++ b/SCP/Global.asax.cs
@@ -37,6 +37,7 @@ namespace SCP
if (context != null)
{
context.Dispose();
+ Alert.Show("gg");
}
}
diff --git a/SCP/Views/青岛一汽法雷奥/PlanData/SCP_ASK.aspx.cs b/SCP/Views/青岛一汽法雷奥/PlanData/SCP_ASK.aspx.cs
index fd76f31..2035a3d 100644
--- a/SCP/Views/青岛一汽法雷奥/PlanData/SCP_ASK.aspx.cs
+++ b/SCP/Views/青岛一汽法雷奥/PlanData/SCP_ASK.aspx.cs
@@ -332,7 +332,7 @@ namespace SCP.Views.青岛一汽法雷奥.PlanData
}
else
{
- Alert.Show(string.Join("
", ret.MessageList));
+ Alert.Show("必填项为空",string.Join("
", ret.MessageList));
}
}
catch (Exception ex)
diff --git a/SCP/Views/青岛一汽法雷奥/SupplierData/SCP_ASK.aspx.cs b/SCP/Views/青岛一汽法雷奥/SupplierData/SCP_ASK.aspx.cs
index 90fe3b7..be651fc 100644
--- a/SCP/Views/青岛一汽法雷奥/SupplierData/SCP_ASK.aspx.cs
+++ b/SCP/Views/青岛一汽法雷奥/SupplierData/SCP_ASK.aspx.cs
@@ -129,7 +129,7 @@ namespace SCP.Views.青岛一汽法雷奥.SupplierData
{
object[] rowDataKeys = Grid_V_TB_ASK.DataKeys[e.RowIndex];
string AskBillNum = rowDataKeys[2] as string;
- PageContext.RegisterStartupScript(Window1.GetShowReference(string.Format("../SCP_ASK_DETAIL.aspx?AskBillNum={0}", AskBillNum)));
+ PageContext.RegisterStartupScript(Window1.GetShowReference(string.Format("../SupplierData/SCP_ASK_DETAIL.aspx?AskBillNum={0}", AskBillNum)));
}
protected void Grid_V_TB_ASK_Sort(object sender, GridSortEventArgs e)
diff --git a/SCP/Views/青岛一汽法雷奥/SupplierData/SCP_ASN_CREATE.aspx.cs b/SCP/Views/青岛一汽法雷奥/SupplierData/SCP_ASN_CREATE.aspx.cs
index 672bc68..8df060e 100644
--- a/SCP/Views/青岛一汽法雷奥/SupplierData/SCP_ASN_CREATE.aspx.cs
+++ b/SCP/Views/青岛一汽法雷奥/SupplierData/SCP_ASN_CREATE.aspx.cs
@@ -230,8 +230,8 @@ namespace SCP.青岛一汽法雷奥.SupplierData
Alert.Show("日期填写错误!");
return;
}
- //if (_Batch1.ToString().Trim() != "" && ConvertHelper.To(_Qty1)>0)
- if (ConvertHelper.To(_Qty1) > 0)
+ if (_Batch1.ToString().Trim() != "" && ConvertHelper.To(_Qty1) > 0)
+ if (ConvertHelper.To(_Qty1) > 0)
{
V_TB_ASK_DETAIL _detail = ConvertHelper.GetObjectClone(_entity);
//IsBatch(_Batch1.ToString().Trim());
diff --git a/SCP/default.aspx b/SCP/default.aspx
index 8139869..2d3bb7e 100644
--- a/SCP/default.aspx
+++ b/SCP/default.aspx
@@ -111,10 +111,10 @@
for (var i = 0; obj.options.length; i++)
{
- if ('JZ1' == obj.options[i].value) {
+ if ('QDVALEO' == obj.options[i].value) {
obj.options[i].selected = true;
_factory = document.getElementById(_factoryValue);
- _factory.value = 'JZ1';
+ _factory.value = 'QDVALEO';
}
}
diff --git a/SCP/default.aspx.cs b/SCP/default.aspx.cs
index 598ccf9..8a0f9f1 100644
--- a/SCP/default.aspx.cs
+++ b/SCP/default.aspx.cs
@@ -103,7 +103,7 @@ namespace SCP
protected void btnSubmit_Click(object sender, EventArgs e)
{
string userName = textUserName.Value.Trim();
- string password = textPassword.Value.Trim();
+ string password = textPassword.Value.Trim();
LoadResouce();
Login(userName, password);
}
@@ -115,7 +115,7 @@ namespace SCP
return;
}
User user = DB.Users.Where(u => u.Name == p_userName).FirstOrDefault();
-
+
if (user != null)
{
if (PasswordUtil.ComparePasswords(user.Password, p_password))
diff --git a/SCP/grf/Pallet.grf b/SCP/grf/Pallet.grf
new file mode 100644
index 0000000..0a2c21d
--- /dev/null
+++ b/SCP/grf/Pallet.grf
@@ -0,0 +1 @@
+BASE64rA0AAHictVdLb9tGED67QP8DwdwKg+BDokQLOuhpO5VUWZIto44Q0NRKXpjisstVbLf1sYeih6IoUATIf0iPPaRp/0zTNKf+hc4u35QUuGhjwRY5j29n5pvZXf/96vev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AM2GFvjm5zrik/mtieNpfciqD/ZwRjO4L+cITSjhg0TS8/HKW8DcVQDFPVs9kkj7MtZQdS/mXN0/ZWS1XNeOhCuZbfWInyMPLrOLyx86ImbKjQJwTaU+5Y/CPn9JmjO5HFR/hvL/96/fO7F9+8e/VDzik+dS01Ps/TihbO9URRON+TAuSD2Tqzof/G3BYLks7vmJ8XTpPc5qNOEkv0WtEgW62u+Cla8Enmh7uuaaZZKShhunfqol4rK1Az0ygo4wZRlYplVMoF7RaOtl+0MtpdDL2Ho90sFXiKDMe+7YgrRXwDyhQC3QKI/Oe3z9++eP7215/efP+LVDxntgFv57OPVmQ3m5H2g3CpKeXqBh0Rk6aiWbD37GBSU0zNsMz/jUldq5Q/DJVww5pPqe1vDl1K5MWjhL1Hszx/mZdZYWJd6BA4nrLbc7rfxU+xaPb+28cEMxdt3BfU3E1B2Gy/JxxSsvYjjPRanbpuu0Hw3BsuXnJlH8/nHFv865GzyHhuZgB/4Pf+H3a3/EM=
\ No newline at end of file
diff --git a/SCP/grf/SendBill_Pallet.grf b/SCP/grf/SendBill_Pallet.grf
new file mode 100644
index 0000000..3b4e391
--- /dev/null
+++ b/SCP/grf/SendBill_Pallet.grf
@@ -0,0 +1 @@
+BASE64glAAAHic7VxbTxzXHX8mkr/DavPSSPFo7rvLG5fiVAqEAoofEh6m7Ak76rCDZmcbaIRkV05sp8bgGgwxdmO3tpNKNTgKJTZg57tUO7Pw5K/Qc87c58zOzA52PSstD7Cc25zf7/xv58x/z+ujX786995A8VOgNWS1XhwsipRIsRRd/BAVj6l1vTiIWgwUJ6QFAOuN3b+2Xt7G1QPFafnPsIyhBZqmrZKLQJ6vwT68UzBSk7QGgCUMx8OCFTzupCbXdaA5Q38MvtDHJW1ehhOgKcHqOIUG8pW6nUeBLsnKBU2uOv2nwJyqVfFTcAGcuAwUWP0Z/m/AKvQwTEqKAvSJ5kLRqsDjRrbT9BG1ChKaDUv6XC3FUPhjfLPf68tJD1OXnBb4zyz6vWJzrSrN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O8VpOs6ZMS8dmZtpjhsJsDmy58lgcTZkJsXIkalPpRgYaUAl7A+z1t9Q+rA/MXRMVTvlCvsbuImhMPS+gEnzAu+3lywqhpM0wolWkTka7rcYeYZjvAyuN5MIGcq5ypy95u1Zn74ynm6hxFF7W6cVpuGSS3pT6/iNhvQMlsg0F5Eu+/Os4ikslaPz2tLlAb5dCo3dv59+97XzahCFqIjFoTm9KSkFL8HOH/CdgckykSHIQdLYUL5Qh2zmcCJUvoj0NpdYFl8f30VEuuHFGxTHCimOXEUs+/NeEYsCFNIKQ6RZsixFMxyp0eE0y3ek0T//eHr125O9fXP75iAi8L+3Hngh6eEjlKy6fvP18Y2TvV+Mez+66aut599avJt3Xhhre+2N783Nax8a6zegTJ88uWz+9Bdz/dB4/sR8+gi2Nld3jRcHxpPHxp0rrV/vG0+3KetZD+GwcArmlTXY0Df4auvlvdbzw/bOvnnzcfvodnt3q/XqPhwGzeTSjdbR45N9OPE149ojY/cu1Clomdp3rxjr18wHx9YXb2B34+o3SSmS080/WB6DXH6nJmXSXac0W6ZCCaUKS6w/B71CGcuF7bOsxX+n1zpYRf3LGsgAxGawf1lD/7KGgUz2tn9ZQya8/csacv0V3/5lDXn+bm7/sob+ZQ1Zofcva+hf1tC/rKH7Zc61Q+jisoZz761EVsAPK/8DFKB0xQ==
\ No newline at end of file
diff --git a/SCP/grf/Small_Material.grf b/SCP/grf/Small_Material.grf
new file mode 100644
index 0000000..f243e81
--- /dev/null
+++ b/SCP/grf/Small_Material.grf
@@ -0,0 +1 @@
+BASE64WSEAAHic7VpLb9tGED67QP9DQF8Nhg+REt2TRVm2E0uRLNsJauhAUGtpa4pUVqvEbuFj0QJFkRZFm0N+QG9pDoUL1E37Z+KkPvUvdHf5EMWHuH7VbREDksiZ2ZnZb2dnZxb+6/SPzz78YEHYBWgMPVdYFnRRFxVREpYoeQv04RgD1PQIZ7Oir2ut3dWGutleq6udxsemXr33aF3dNdS6sdbcqGr3TK2h19Rms1Sp66v6oxV9p2S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