1代理改名字 2代理管理功能 3订单流水统计功能(方便报税) 4 商品预售界面-商品改价支持加减乘除四种模式
This commit is contained in:
1 parent
457a8acee6
commit
ba502650ab
69 files changed
+27720
-720
No files matched your search
+461
-205
File diff suppressed because it is too large.
Load diff
@@ -55,6 +55,10 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
data.Append("&add_user_name=" + GetHtml.UrlEncodeUtf8(txtMobile.Text));
|
||||
data.Append("&add_mobile=" + GetHtml.UrlEncodeUtf8(txtMobile.Text));
|
||||
data.Append("&add_company=" + GetHtml.UrlEncodeUtf8(txtCompany.Text));
|
||||
if (!string.IsNullOrEmpty(txtOemId.Text.Trim()))
|
||||
{
|
||||
data.Append("&oem_id=" + GetHtml.UrlEncodeUtf8(txtOemId.Text.Trim()));
|
||||
}
|
||||
data.Append("&card_id=");
|
||||
if (cmbGroup.Text == "主账户")
|
||||
{
|
||||
@@ -166,10 +170,14 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
user.points = BaseRegex.GetIntJson(ref oStr, "points");
|
||||
user.balance = BaseRegex.GetDecimalJson(ref oStr, "balance");
|
||||
user.shop_points_per_month = BaseRegex.GetIntJson(ref oStr, "shop_points_per_month");
|
||||
user.postage_per_order = BaseRegex.GetDecimalJson(ref oStr, "postage_per_order");
|
||||
user.oem_id = BaseRegex.GetStringJson(ref oStr, "oem_id");
|
||||
user.oem_name = BaseRegex.GetStringJson(ref oStr, "oem_name");
|
||||
var parent_user_name = BaseRegex.GetStringJson(ref oStr, "parent_user_name");
|
||||
|
||||
AllUsers.Add(user);
|
||||
dgvUser.Rows.Add(
|
||||
false,
|
||||
user.id,
|
||||
user.nick_name,
|
||||
user.user_name,
|
||||
@@ -181,12 +189,16 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
user.sa_level,
|
||||
user.sa_level_name /*+ (user.group_id == "4" ? "(客服)" : "")*/,
|
||||
user.authority,
|
||||
(user.authority.Contains("充值用户") && user.group_id == "3") ? (int?)user.shop_points_per_month : null,
|
||||
(user.authority.Contains("充值用户") && user.group_id == "3") ? "改" : null,
|
||||
user.oem_id,
|
||||
user.oem_name,
|
||||
(user.authority.Contains("充值用户") && user.group_id == "3") ? (int?)user.points : null,
|
||||
(user.authority.Contains("充值用户") && user.group_id == "3") ? "+" : null,
|
||||
(user.authority.Contains("充值用户") && user.group_id == "3") ? (int?)user.shop_points_per_month : null,
|
||||
(user.authority.Contains("充值用户") && user.group_id == "3") ? "改" : null,
|
||||
user.balance.ParseToDecimal(),
|
||||
"+",
|
||||
Math.Max(2.2m, user.postage_per_order.ParseToDecimal()),
|
||||
(user.group_id == "3") ? "改" : null,
|
||||
user.group_id == "3" ? "添加店铺" : "",
|
||||
"编辑",
|
||||
"删除");
|
||||
@@ -209,6 +221,7 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
txtRePass.Clear();
|
||||
txtMobile.Clear();
|
||||
txtCompany.Clear();
|
||||
txtOemId.Clear();
|
||||
cmbGroup.Text = "主账户";
|
||||
cmbSaLevel.Text = "普通用户";
|
||||
chkWXComplateProd.Checked = false;
|
||||
@@ -242,6 +255,8 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
string saLevelName = dgvUser.Rows[e.RowIndex].Cells["colSaLevelName"].Value.ToString();
|
||||
string authority = dgvUser.Rows[e.RowIndex].Cells["colAuthority"].Value.ParseToString();
|
||||
int shopPointsPerMonth = dgvUser.Rows[e.RowIndex].Cells["colShopPointsPerMonth"].Value.ParseToInt();
|
||||
decimal postagePerOrder = dgvUser.Rows[e.RowIndex].Cells["colPostagePerOrder"].Value.ParseToDecimal();
|
||||
string oemId = dgvUser.Rows[e.RowIndex].Cells["colOemId"].Value.ParseToString();
|
||||
var row = dgvUser.Rows[e.RowIndex];
|
||||
if (columText == "编辑")
|
||||
{
|
||||
@@ -255,6 +270,8 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
btnOpUser.Text = "保存用户";
|
||||
btnCancel.Visible = true;
|
||||
cmbSaLevel.Text = saLevelName;
|
||||
txtOemId.Text = oemId;
|
||||
|
||||
chkWXComplateProd.Checked = authority.Contains(chkWXComplateProd.Text);
|
||||
chkShopPoints.Checked = authority.Contains(chkShopPoints.Text);
|
||||
chkProdFission.Checked = authority.Contains(chkProdFission.Text);
|
||||
@@ -289,6 +306,7 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
this.numAddTopUp.Value = 0;
|
||||
this.pnlTopUp.Tag = row;
|
||||
this.pnlTopUp.Visible = true;
|
||||
this.pnlTopUp.BringToFront();
|
||||
}
|
||||
if (columName == "colBalancePlus")
|
||||
{
|
||||
@@ -296,15 +314,29 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
this.numAddBalance.Value = 0;
|
||||
this.pnlBalance.Tag = row;
|
||||
this.pnlBalance.Visible = true;
|
||||
this.pnlBalance.BringToFront();
|
||||
}
|
||||
}
|
||||
if (columText == "改")
|
||||
{
|
||||
this.lblShopPointsPerMonthUserInfo.Text = mobile + " - " + nickName;
|
||||
this.numShopPointsPerMonth.Value = shopPointsPerMonth;
|
||||
this.pnlShopPointsPerMonth.Tag = row;
|
||||
this.pnlShopPointsPerMonth.Visible = true;
|
||||
this.lblShopPointsPerMonthUserId.Text = uid;
|
||||
if (columName == "colChangePointsPerMonth")
|
||||
{
|
||||
this.lblShopPointsPerMonthUserInfo.Text = mobile + " - " + nickName;
|
||||
this.numShopPointsPerMonth.Value = shopPointsPerMonth;
|
||||
this.pnlShopPointsPerMonth.Tag = row;
|
||||
this.pnlShopPointsPerMonth.Visible = true;
|
||||
this.pnlShopPointsPerMonth.BringToFront();
|
||||
this.lblShopPointsPerMonthUserId.Text = uid;
|
||||
}
|
||||
if (columName == "colChangePostagePerOrder")
|
||||
{
|
||||
this.lblPostagePerOrderUserInfo.Text = mobile + " - " + nickName;
|
||||
this.numPostagePerOrder.Value = postagePerOrder;
|
||||
this.pnlPostagePerOrder.Tag = row;
|
||||
this.pnlPostagePerOrder.Visible = true;
|
||||
this.pnlPostagePerOrder.BringToFront();
|
||||
this.lblPostagePerOrderUserId.Text = uid;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -342,8 +374,11 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
|
||||
private void MainAccountForm_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.dgvUser.AddSelectorColumn("colCheck");
|
||||
|
||||
pnlShopPointsPerMonth.Location = new Point(pnlTopUp.Location.X, pnlTopUp.Location.Y);
|
||||
pnlBalance.Location = new Point(pnlTopUp.Location.X, pnlTopUp.Location.Y);
|
||||
pnlPostagePerOrder.Location = new Point(pnlTopUp.Location.X, pnlTopUp.Location.Y);
|
||||
|
||||
this.cmbGroup.Items.Clear();
|
||||
this.cmbGroup.Items.Add("主账户");
|
||||
@@ -357,12 +392,14 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
this.txtSearch.GotFocus += TxtSearch_GotFocus;
|
||||
this.txtSearch.LostFocus += TxtSearch_LostFocus;
|
||||
|
||||
this.dgvUser.AddMergeColumn(new List<string> { "colShopPointsPerMonth", "colChangePointsPerMonth" });
|
||||
this.dgvUser.AddMergeColumnHeader(new List<string> { "colShopPointsPerMonth", "colChangePointsPerMonth" }, "月费耗点");
|
||||
this.dgvUser.AddMergeColumn(new List<string> { "colPoints", "colPlus" });
|
||||
this.dgvUser.AddMergeColumnHeader(new List<string> { "colPoints", "colPlus" }, "积分点数");
|
||||
this.dgvUser.AddMergeColumn(new List<string> { "colShopPointsPerMonth", "colChangePointsPerMonth" });
|
||||
this.dgvUser.AddMergeColumnHeader(new List<string> { "colShopPointsPerMonth", "colChangePointsPerMonth" }, "月费耗点");
|
||||
this.dgvUser.AddMergeColumn(new List<string> { "colBalance", "colBalancePlus" });
|
||||
this.dgvUser.AddMergeColumnHeader(new List<string> { "colBalance", "colBalancePlus" }, "快递余额");
|
||||
this.dgvUser.AddMergeColumn(new List<string> { "colPostagePerOrder", "colChangePostagePerOrder" });
|
||||
this.dgvUser.AddMergeColumnHeader(new List<string> { "colPostagePerOrder", "colChangePostagePerOrder" }, "每单快递费");
|
||||
}
|
||||
|
||||
private void TxtSearch_LostFocus(object sender, EventArgs e)
|
||||
@@ -415,6 +452,7 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
data += "&update_user_name=" + lblUserInfo.Text.Split('-')[0].Trim();
|
||||
data += "&update_user_nick=" + lblUserInfo.Text.Split('-')[1].Trim();
|
||||
data += "&option_type=" + "充值";
|
||||
|
||||
data += "&operator_type=" + "管理员";
|
||||
data += "&operator_name=" + BaseClass.UserName;
|
||||
data += "&delta_points=" + numAddTopUp.Value;
|
||||
@@ -446,32 +484,43 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
}
|
||||
}
|
||||
|
||||
private void btnShopPointsPerMonthCancel_Click(object sender, EventArgs e)
|
||||
private void btnShopPointsPerMonth_Click(object sender, EventArgs e)
|
||||
{
|
||||
pnlShopPointsPerMonth.Visible = false;
|
||||
if (updateShopPointsPerMonth(lblShopPointsPerMonthUserId.Text))
|
||||
{
|
||||
pnlShopPointsPerMonth.Visible = false;
|
||||
BaseMsgForm.ShowInfo("修改充值用户店铺月费金额成功");
|
||||
}
|
||||
}
|
||||
|
||||
private void btnShopPointsPerMonth_Click(object sender, EventArgs e)
|
||||
public bool updateShopPointsPerMonth(string userDbId, bool showFailBox = true)
|
||||
{
|
||||
string url = BaseClass.BuildObjString("user/update_user");
|
||||
string data = UserLogin.GetSignaturex();
|
||||
data += "&id=" + lblShopPointsPerMonthUserId.Text;
|
||||
data += "&id=" + userDbId;
|
||||
data += "&shop_points_per_month=" + numShopPointsPerMonth.Value;
|
||||
|
||||
string html = GetHtml.PostUtf8(url, data.ToString()).Trim();
|
||||
if (!html.Contains("\"code\":200"))
|
||||
{
|
||||
var msg = BaseRegex.GetStringJsonByRegs(ref html, html, "msg");
|
||||
BaseMsgForm.ShowError(msg);
|
||||
return;
|
||||
if (showFailBox)
|
||||
{
|
||||
Invoke(new Action(() => { BaseMsgForm.ShowError(msg); }));
|
||||
}
|
||||
return false;
|
||||
}
|
||||
var row = pnlShopPointsPerMonth.Tag as DataGridViewRow;
|
||||
var row = dgvUser.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["UserIdColumn"].Value.ParseToString() == userDbId);
|
||||
if (row != null)
|
||||
{
|
||||
row.Cells["colShopPointsPerMonth"].Value = numShopPointsPerMonth.Value;
|
||||
Invoke(new Action(() => { row.Cells["colShopPointsPerMonth"].Value = numShopPointsPerMonth.Value; }));
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
private void btnShopPointsPerMonthCancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
pnlShopPointsPerMonth.Visible = false;
|
||||
BaseMsgForm.ShowInfo("修改充值用户店铺月费金额成功");
|
||||
}
|
||||
|
||||
private void btnChangeBalanceOK_Click(object sender, EventArgs e)
|
||||
@@ -504,5 +553,44 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
{
|
||||
pnlBalance.Visible = false;
|
||||
}
|
||||
|
||||
private void btnPostagePerOrder_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (updatePostagePerOrder(lblPostagePerOrderUserId.Text))
|
||||
{
|
||||
pnlPostagePerOrder.Visible = false;
|
||||
BaseMsgForm.ShowInfo("修改充值用户店铺月费金额成功");
|
||||
}
|
||||
}
|
||||
|
||||
public bool updatePostagePerOrder(string userDbId, bool showFailBox = true)
|
||||
{
|
||||
string url = BaseClass.BuildObjString("user/update_user");
|
||||
string data = UserLogin.GetSignaturex();
|
||||
data += "&id=" + userDbId;
|
||||
data += "&postage_per_order=" + numPostagePerOrder.Value;
|
||||
|
||||
string html = GetHtml.PostUtf8(url, data.ToString()).Trim();
|
||||
if (!html.Contains("\"code\":200"))
|
||||
{
|
||||
var msg = BaseRegex.GetStringJsonByRegs(ref html, html, "msg");
|
||||
if (showFailBox)
|
||||
{
|
||||
Invoke(new Action(() => { BaseMsgForm.ShowError(msg); }));
|
||||
}
|
||||
return false;
|
||||
}
|
||||
var row = dgvUser.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["UserIdColumn"].Value.ParseToString() == userDbId);
|
||||
if (row != null)
|
||||
{
|
||||
Invoke(new Action(() => { row.Cells["colPostagePerOrder"].Value = numPostagePerOrder.Value; }));
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
private void btnPostagePerOrderCancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
pnlPostagePerOrder.Visible = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -117,6 +117,9 @@
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="colCheck.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="UserIdColumn.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
@@ -150,10 +153,10 @@
|
||||
<metadata name="colAuthority.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colShopPointsPerMonth.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<metadata name="colOemId.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colChangePointsPerMonth.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<metadata name="colOemName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colPoints.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
@@ -162,12 +165,24 @@
|
||||
<metadata name="colPlus.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colShopPointsPerMonth.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colChangePointsPerMonth.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colBalance.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colBalancePlus.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colPostagePerOrder.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colChangePostagePerOrder.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colAddShop.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
|
||||
+45
-41
@@ -30,19 +30,20 @@
|
||||
{
|
||||
System.Windows.Forms.TreeNode treeNode1 = new System.Windows.Forms.TreeNode("超级店铺管理");
|
||||
System.Windows.Forms.TreeNode treeNode2 = new System.Windows.Forms.TreeNode("超级用户管理");
|
||||
System.Windows.Forms.TreeNode treeNode3 = new System.Windows.Forms.TreeNode("PDD产品库");
|
||||
System.Windows.Forms.TreeNode treeNode4 = new System.Windows.Forms.TreeNode("设置禁售");
|
||||
System.Windows.Forms.TreeNode treeNode5 = new System.Windows.Forms.TreeNode("厂家商品采集");
|
||||
System.Windows.Forms.TreeNode treeNode6 = new System.Windows.Forms.TreeNode("Sku采集回传");
|
||||
System.Windows.Forms.TreeNode treeNode7 = new System.Windows.Forms.TreeNode("1688厂家采集");
|
||||
System.Windows.Forms.TreeNode treeNode8 = new System.Windows.Forms.TreeNode("随机厂商商品");
|
||||
System.Windows.Forms.TreeNode treeNode9 = new System.Windows.Forms.TreeNode("地址管理");
|
||||
System.Windows.Forms.TreeNode treeNode10 = new System.Windows.Forms.TreeNode("带货助手");
|
||||
System.Windows.Forms.TreeNode treeNode11 = new System.Windows.Forms.TreeNode("图片工具");
|
||||
System.Windows.Forms.TreeNode treeNode12 = new System.Windows.Forms.TreeNode("运单管理");
|
||||
System.Windows.Forms.TreeNode treeNode13 = new System.Windows.Forms.TreeNode("充值二维码");
|
||||
System.Windows.Forms.TreeNode treeNode14 = new System.Windows.Forms.TreeNode("中转订单管理");
|
||||
System.Windows.Forms.TreeNode treeNode15 = new System.Windows.Forms.TreeNode("超级权限管理", new System.Windows.Forms.TreeNode[] {
|
||||
System.Windows.Forms.TreeNode treeNode3 = new System.Windows.Forms.TreeNode("OEM贴牌管理");
|
||||
System.Windows.Forms.TreeNode treeNode4 = new System.Windows.Forms.TreeNode("产品数据库");
|
||||
System.Windows.Forms.TreeNode treeNode5 = new System.Windows.Forms.TreeNode("设置禁售");
|
||||
System.Windows.Forms.TreeNode treeNode6 = new System.Windows.Forms.TreeNode("厂家商品采集");
|
||||
System.Windows.Forms.TreeNode treeNode7 = new System.Windows.Forms.TreeNode("Sku采集回传");
|
||||
System.Windows.Forms.TreeNode treeNode8 = new System.Windows.Forms.TreeNode("1688厂家采集");
|
||||
System.Windows.Forms.TreeNode treeNode9 = new System.Windows.Forms.TreeNode("随机厂商商品");
|
||||
System.Windows.Forms.TreeNode treeNode10 = new System.Windows.Forms.TreeNode("地址管理");
|
||||
System.Windows.Forms.TreeNode treeNode11 = new System.Windows.Forms.TreeNode("带货助手");
|
||||
System.Windows.Forms.TreeNode treeNode12 = new System.Windows.Forms.TreeNode("图片工具");
|
||||
System.Windows.Forms.TreeNode treeNode13 = new System.Windows.Forms.TreeNode("运单管理");
|
||||
System.Windows.Forms.TreeNode treeNode14 = new System.Windows.Forms.TreeNode("充值二维码");
|
||||
System.Windows.Forms.TreeNode treeNode15 = new System.Windows.Forms.TreeNode("中转订单管理");
|
||||
System.Windows.Forms.TreeNode treeNode16 = new System.Windows.Forms.TreeNode("超级权限管理", new System.Windows.Forms.TreeNode[] {
|
||||
treeNode1,
|
||||
treeNode2,
|
||||
treeNode3,
|
||||
@@ -56,7 +57,8 @@
|
||||
treeNode11,
|
||||
treeNode12,
|
||||
treeNode13,
|
||||
treeNode14});
|
||||
treeNode14,
|
||||
treeNode15});
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.panel3 = new System.Windows.Forms.Panel();
|
||||
this.panel2 = new System.Windows.Forms.Panel();
|
||||
@@ -151,34 +153,36 @@
|
||||
treeNode1.Text = "超级店铺管理";
|
||||
treeNode2.Name = "超级用户管理";
|
||||
treeNode2.Text = "超级用户管理";
|
||||
treeNode3.Name = "PDD产品库";
|
||||
treeNode3.Text = "PDD产品库";
|
||||
treeNode4.Name = "设置禁售";
|
||||
treeNode4.Text = "设置禁售";
|
||||
treeNode5.Name = "厂家商品采集";
|
||||
treeNode5.Text = "厂家商品采集";
|
||||
treeNode6.Name = "Sku采集回传";
|
||||
treeNode6.Text = "Sku采集回传";
|
||||
treeNode7.Name = "1688厂家采集";
|
||||
treeNode7.Text = "1688厂家采集";
|
||||
treeNode8.Name = "随机厂商商品";
|
||||
treeNode8.Text = "随机厂商商品";
|
||||
treeNode9.Name = "地址管理";
|
||||
treeNode9.Text = "地址管理";
|
||||
treeNode10.Name = "带货助手";
|
||||
treeNode10.Text = "带货助手";
|
||||
treeNode11.Name = "图片工具";
|
||||
treeNode11.Text = "图片工具";
|
||||
treeNode12.Name = "运单管理";
|
||||
treeNode12.Text = "运单管理";
|
||||
treeNode13.Name = "充值二维码";
|
||||
treeNode13.Text = "充值二维码";
|
||||
treeNode14.Name = "中转订单管理";
|
||||
treeNode14.Text = "中转订单管理";
|
||||
treeNode15.Name = "超级权限管理";
|
||||
treeNode15.Text = "超级权限管理";
|
||||
treeNode3.Name = "OEM贴牌管理";
|
||||
treeNode3.Text = "OEM贴牌管理";
|
||||
treeNode4.Name = "产品数据库";
|
||||
treeNode4.Text = "产品数据库";
|
||||
treeNode5.Name = "设置禁售";
|
||||
treeNode5.Text = "设置禁售";
|
||||
treeNode6.Name = "厂家商品采集";
|
||||
treeNode6.Text = "厂家商品采集";
|
||||
treeNode7.Name = "Sku采集回传";
|
||||
treeNode7.Text = "Sku采集回传";
|
||||
treeNode8.Name = "1688厂家采集";
|
||||
treeNode8.Text = "1688厂家采集";
|
||||
treeNode9.Name = "随机厂商商品";
|
||||
treeNode9.Text = "随机厂商商品";
|
||||
treeNode10.Name = "地址管理";
|
||||
treeNode10.Text = "地址管理";
|
||||
treeNode11.Name = "带货助手";
|
||||
treeNode11.Text = "带货助手";
|
||||
treeNode12.Name = "图片工具";
|
||||
treeNode12.Text = "图片工具";
|
||||
treeNode13.Name = "运单管理";
|
||||
treeNode13.Text = "运单管理";
|
||||
treeNode14.Name = "充值二维码";
|
||||
treeNode14.Text = "充值二维码";
|
||||
treeNode15.Name = "中转订单管理";
|
||||
treeNode15.Text = "中转订单管理";
|
||||
treeNode16.Name = "超级权限管理";
|
||||
treeNode16.Text = "超级权限管理";
|
||||
this.tv.Nodes.AddRange(new System.Windows.Forms.TreeNode[] {
|
||||
treeNode15});
|
||||
treeNode16});
|
||||
this.tv.OverForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
|
||||
this.tv.Size = new System.Drawing.Size(140, 446);
|
||||
this.tv.TabIndex = 1;
|
||||
|
||||
@@ -20,6 +20,7 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
{
|
||||
public Lazy<WXAdminAccountForm> adminAccountForm = new Lazy<WXAdminAccountForm>();
|
||||
public Lazy<WXAdminShopListForm> adminShopForm = new Lazy<WXAdminShopListForm>();
|
||||
public Lazy<WxOemManageForm> oemManageForm = new Lazy<WxOemManageForm>();
|
||||
public Lazy<PDDDBProdListForm> pddDbProdListForm = new Lazy<PDDDBProdListForm>();
|
||||
public Lazy<GetJuShuitanProdForm> getJuShuitanProdForm = new Lazy<GetJuShuitanProdForm>();
|
||||
public Lazy<GetJuShuitanProductSKUListForm> getJuShuitanProductSKUListForm = new Lazy<GetJuShuitanProductSKUListForm>();
|
||||
@@ -43,7 +44,7 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
tv.ExpandGroup(tv.Nodes[0].Name);
|
||||
|
||||
List<string> hideName = new List<string>() { "运单管理", "地址管理1", "1688厂家采集1", "图片工具", "Sku采集回传1",
|
||||
"超级用户管理", "超级店铺管理", "PDD产品库", "SKU替换图", "选品加价管理", "认领待上传", "库存上传", "商品核价" };
|
||||
"超级用户管理", "超级店铺管理", "OEM贴牌管理", "产品数据库", "SKU替换图", "选品加价管理", "认领待上传", "库存上传", "商品核价" };
|
||||
|
||||
if (BaseClass.GroupId == 3)
|
||||
{
|
||||
@@ -52,7 +53,8 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
{
|
||||
hideName.Remove("超级用户管理");
|
||||
hideName.Remove("超级店铺管理");
|
||||
hideName.Remove("PDD产品库");
|
||||
hideName.Remove("OEM贴牌管理");
|
||||
hideName.Remove("产品数据库");
|
||||
//hideName.Remove("SKU替换图");
|
||||
}
|
||||
if (BaseClass.SaLevel==2)
|
||||
@@ -90,7 +92,10 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
case "超级店铺管理":
|
||||
SetForm(adminShopForm.Value);
|
||||
break;
|
||||
case "PDD产品库":
|
||||
case "OEM贴牌管理":
|
||||
SetForm(oemManageForm.Value);
|
||||
break;
|
||||
case "产品数据库":
|
||||
SetForm(pddDbProdListForm.Value);
|
||||
break;
|
||||
case "设置禁售":
|
||||
|
||||
+576
@@ -0,0 +1,576 @@
|
||||
namespace TemuKJD.WXForms.AdminForms
|
||||
{
|
||||
partial class WxOemManageForm
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
this.splitContainer5 = new System.Windows.Forms.SplitContainer();
|
||||
this.btnCancelEdit = new DevComponents.DotNetBar.PanelEx();
|
||||
this.btnAddMdy = new DevComponents.DotNetBar.PanelEx();
|
||||
this.lblRandomOemId = new System.Windows.Forms.LinkLabel();
|
||||
this.lblChoice = new System.Windows.Forms.LinkLabel();
|
||||
this.label7 = new System.Windows.Forms.Label();
|
||||
this.txtOemOwner = new System.Windows.Forms.TextBox();
|
||||
this.label6 = new System.Windows.Forms.Label();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.btnClear = new DevComponents.DotNetBar.PanelEx();
|
||||
this.txtSearchOemName = new System.Windows.Forms.TextBox();
|
||||
this.btnSearch = new DevComponents.DotNetBar.PanelEx();
|
||||
this.line2 = new DevComponents.DotNetBar.Controls.Line();
|
||||
this.label5 = new System.Windows.Forms.Label();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.txtSearchOemId = new System.Windows.Forms.TextBox();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.label35 = new System.Windows.Forms.Label();
|
||||
this.label36 = new System.Windows.Forms.Label();
|
||||
this.txtOemName = new System.Windows.Forms.TextBox();
|
||||
this.label39 = new System.Windows.Forms.Label();
|
||||
this.txtOemId = new System.Windows.Forms.TextBox();
|
||||
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
|
||||
this.dgvOem = new TemuKJD.UserComponent.DataGridViewEx();
|
||||
this.colCheck = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
||||
this.colId = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colOemId = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colOemName = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colOemOwner = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colIco = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colImg = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.editColumn = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.deleteColumn = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.btnExportShopErp = new DevComponents.DotNetBar.PanelEx();
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer5)).BeginInit();
|
||||
this.splitContainer5.Panel1.SuspendLayout();
|
||||
this.splitContainer5.Panel2.SuspendLayout();
|
||||
this.splitContainer5.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
|
||||
this.splitContainer1.Panel1.SuspendLayout();
|
||||
this.splitContainer1.Panel2.SuspendLayout();
|
||||
this.splitContainer1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dgvOem)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// splitContainer5
|
||||
//
|
||||
this.splitContainer5.BackColor = System.Drawing.Color.Transparent;
|
||||
this.splitContainer5.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.splitContainer5.FixedPanel = System.Windows.Forms.FixedPanel.Panel1;
|
||||
this.splitContainer5.Location = new System.Drawing.Point(0, 0);
|
||||
this.splitContainer5.Name = "splitContainer5";
|
||||
//
|
||||
// splitContainer5.Panel1
|
||||
//
|
||||
this.splitContainer5.Panel1.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||
this.splitContainer5.Panel1.Controls.Add(this.btnCancelEdit);
|
||||
this.splitContainer5.Panel1.Controls.Add(this.btnAddMdy);
|
||||
this.splitContainer5.Panel1.Controls.Add(this.lblRandomOemId);
|
||||
this.splitContainer5.Panel1.Controls.Add(this.lblChoice);
|
||||
this.splitContainer5.Panel1.Controls.Add(this.label7);
|
||||
this.splitContainer5.Panel1.Controls.Add(this.txtOemOwner);
|
||||
this.splitContainer5.Panel1.Controls.Add(this.label6);
|
||||
this.splitContainer5.Panel1.Controls.Add(this.label3);
|
||||
this.splitContainer5.Panel1.Controls.Add(this.btnClear);
|
||||
this.splitContainer5.Panel1.Controls.Add(this.txtSearchOemName);
|
||||
this.splitContainer5.Panel1.Controls.Add(this.btnSearch);
|
||||
this.splitContainer5.Panel1.Controls.Add(this.line2);
|
||||
this.splitContainer5.Panel1.Controls.Add(this.label5);
|
||||
this.splitContainer5.Panel1.Controls.Add(this.label4);
|
||||
this.splitContainer5.Panel1.Controls.Add(this.txtSearchOemId);
|
||||
this.splitContainer5.Panel1.Controls.Add(this.label2);
|
||||
this.splitContainer5.Panel1.Controls.Add(this.label35);
|
||||
this.splitContainer5.Panel1.Controls.Add(this.label36);
|
||||
this.splitContainer5.Panel1.Controls.Add(this.txtOemName);
|
||||
this.splitContainer5.Panel1.Controls.Add(this.label39);
|
||||
this.splitContainer5.Panel1.Controls.Add(this.txtOemId);
|
||||
//
|
||||
// splitContainer5.Panel2
|
||||
//
|
||||
this.splitContainer5.Panel2.Controls.Add(this.splitContainer1);
|
||||
this.splitContainer5.Panel2.Padding = new System.Windows.Forms.Padding(0, 5, 5, 5);
|
||||
this.splitContainer5.Size = new System.Drawing.Size(1184, 623);
|
||||
this.splitContainer5.SplitterDistance = 340;
|
||||
this.splitContainer5.SplitterWidth = 1;
|
||||
this.splitContainer5.TabIndex = 4;
|
||||
//
|
||||
// btnCancelEdit
|
||||
//
|
||||
this.btnCancelEdit.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.btnCancelEdit.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnCancelEdit.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnCancelEdit.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnCancelEdit.Location = new System.Drawing.Point(52, 248);
|
||||
this.btnCancelEdit.Name = "btnCancelEdit";
|
||||
this.btnCancelEdit.Size = new System.Drawing.Size(68, 23);
|
||||
this.btnCancelEdit.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnCancelEdit.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnCancelEdit.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnCancelEdit.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
|
||||
this.btnCancelEdit.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
|
||||
this.btnCancelEdit.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
|
||||
this.btnCancelEdit.Style.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.btnCancelEdit.Style.GradientAngle = 90;
|
||||
this.btnCancelEdit.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnCancelEdit.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnCancelEdit.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnCancelEdit.TabIndex = 861;
|
||||
this.btnCancelEdit.Text = "取消编辑";
|
||||
this.btnCancelEdit.Click += new System.EventHandler(this.btnCancelEdit_Click);
|
||||
//
|
||||
// btnAddMdy
|
||||
//
|
||||
this.btnAddMdy.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.btnAddMdy.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnAddMdy.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnAddMdy.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnAddMdy.Location = new System.Drawing.Point(169, 248);
|
||||
this.btnAddMdy.Name = "btnAddMdy";
|
||||
this.btnAddMdy.Size = new System.Drawing.Size(68, 23);
|
||||
this.btnAddMdy.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnAddMdy.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnAddMdy.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnAddMdy.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
|
||||
this.btnAddMdy.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
|
||||
this.btnAddMdy.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
|
||||
this.btnAddMdy.Style.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.btnAddMdy.Style.GradientAngle = 90;
|
||||
this.btnAddMdy.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnAddMdy.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnAddMdy.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnAddMdy.TabIndex = 857;
|
||||
this.btnAddMdy.Text = "添加贴牌";
|
||||
this.btnAddMdy.Click += new System.EventHandler(this.btnAddMdy_Click);
|
||||
//
|
||||
// lblRandomOemId
|
||||
//
|
||||
this.lblRandomOemId.AutoSize = true;
|
||||
this.lblRandomOemId.Location = new System.Drawing.Point(257, 125);
|
||||
this.lblRandomOemId.Name = "lblRandomOemId";
|
||||
this.lblRandomOemId.Size = new System.Drawing.Size(56, 17);
|
||||
this.lblRandomOemId.TabIndex = 853;
|
||||
this.lblRandomOemId.TabStop = true;
|
||||
this.lblRandomOemId.Text = "随机生成";
|
||||
this.lblRandomOemId.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lblRandomOemId_LinkClicked);
|
||||
//
|
||||
// lblChoice
|
||||
//
|
||||
this.lblChoice.AutoSize = true;
|
||||
this.lblChoice.Location = new System.Drawing.Point(257, 192);
|
||||
this.lblChoice.Name = "lblChoice";
|
||||
this.lblChoice.Size = new System.Drawing.Size(56, 17);
|
||||
this.lblChoice.TabIndex = 852;
|
||||
this.lblChoice.TabStop = true;
|
||||
this.lblChoice.Text = "选择用户";
|
||||
this.lblChoice.Visible = false;
|
||||
//
|
||||
// label7
|
||||
//
|
||||
this.label7.AutoSize = true;
|
||||
this.label7.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))));
|
||||
this.label7.Location = new System.Drawing.Point(243, 192);
|
||||
this.label7.Name = "label7";
|
||||
this.label7.Size = new System.Drawing.Size(13, 17);
|
||||
this.label7.TabIndex = 851;
|
||||
this.label7.Text = "*";
|
||||
//
|
||||
// txtOemOwner
|
||||
//
|
||||
this.txtOemOwner.Location = new System.Drawing.Point(89, 189);
|
||||
this.txtOemOwner.Name = "txtOemOwner";
|
||||
this.txtOemOwner.Size = new System.Drawing.Size(148, 23);
|
||||
this.txtOemOwner.TabIndex = 850;
|
||||
//
|
||||
// label6
|
||||
//
|
||||
this.label6.AutoSize = true;
|
||||
this.label6.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.label6.Location = new System.Drawing.Point(21, 190);
|
||||
this.label6.Name = "label6";
|
||||
this.label6.Size = new System.Drawing.Size(65, 20);
|
||||
this.label6.TabIndex = 849;
|
||||
this.label6.Text = "主体账户";
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.label3.Location = new System.Drawing.Point(21, 123);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(65, 20);
|
||||
this.label3.TabIndex = 848;
|
||||
this.label3.Text = "贴牌编码";
|
||||
//
|
||||
// btnClear
|
||||
//
|
||||
this.btnClear.CanvasColor = System.Drawing.SystemColors.Control;
|
||||
this.btnClear.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.btnClear.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnClear.Location = new System.Drawing.Point(246, 40);
|
||||
this.btnClear.Name = "btnClear";
|
||||
this.btnClear.Size = new System.Drawing.Size(69, 23);
|
||||
this.btnClear.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnClear.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
|
||||
this.btnClear.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
|
||||
this.btnClear.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
|
||||
this.btnClear.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnClear.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
|
||||
this.btnClear.Style.GradientAngle = 90;
|
||||
this.btnClear.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnClear.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnClear.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnClear.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnClear.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.btnClear.TabIndex = 847;
|
||||
this.btnClear.Text = "置空";
|
||||
//
|
||||
// txtSearchOemName
|
||||
//
|
||||
this.txtSearchOemName.Location = new System.Drawing.Point(89, 40);
|
||||
this.txtSearchOemName.Name = "txtSearchOemName";
|
||||
this.txtSearchOemName.Size = new System.Drawing.Size(148, 23);
|
||||
this.txtSearchOemName.TabIndex = 843;
|
||||
//
|
||||
// btnSearch
|
||||
//
|
||||
this.btnSearch.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.btnSearch.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnSearch.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnSearch.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnSearch.Location = new System.Drawing.Point(247, 8);
|
||||
this.btnSearch.Name = "btnSearch";
|
||||
this.btnSearch.Size = new System.Drawing.Size(68, 23);
|
||||
this.btnSearch.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnSearch.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnSearch.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnSearch.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
|
||||
this.btnSearch.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
|
||||
this.btnSearch.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
|
||||
this.btnSearch.Style.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.btnSearch.Style.GradientAngle = 90;
|
||||
this.btnSearch.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnSearch.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnSearch.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnSearch.TabIndex = 836;
|
||||
this.btnSearch.Text = "查询/刷新";
|
||||
this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click);
|
||||
//
|
||||
// line2
|
||||
//
|
||||
this.line2.Location = new System.Drawing.Point(18, 67);
|
||||
this.line2.Name = "line2";
|
||||
this.line2.Size = new System.Drawing.Size(307, 10);
|
||||
this.line2.TabIndex = 825;
|
||||
this.line2.Text = "line2";
|
||||
//
|
||||
// label5
|
||||
//
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.label5.Location = new System.Drawing.Point(21, 41);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new System.Drawing.Size(65, 20);
|
||||
this.label5.TabIndex = 43;
|
||||
this.label5.Text = "贴牌名称";
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.label4.Location = new System.Drawing.Point(21, 9);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(65, 20);
|
||||
this.label4.TabIndex = 42;
|
||||
this.label4.Text = "贴牌编码";
|
||||
//
|
||||
// txtSearchOemId
|
||||
//
|
||||
this.txtSearchOemId.Location = new System.Drawing.Point(89, 8);
|
||||
this.txtSearchOemId.Name = "txtSearchOemId";
|
||||
this.txtSearchOemId.Size = new System.Drawing.Size(148, 23);
|
||||
this.txtSearchOemId.TabIndex = 41;
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.label2.ForeColor = System.Drawing.SystemColors.ButtonShadow;
|
||||
this.label2.Location = new System.Drawing.Point(96, 92);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(135, 20);
|
||||
this.label2.TabIndex = 38;
|
||||
this.label2.Text = "添加或编辑贴牌信息";
|
||||
//
|
||||
// label35
|
||||
//
|
||||
this.label35.AutoSize = true;
|
||||
this.label35.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))));
|
||||
this.label35.Location = new System.Drawing.Point(243, 157);
|
||||
this.label35.Name = "label35";
|
||||
this.label35.Size = new System.Drawing.Size(13, 17);
|
||||
this.label35.TabIndex = 28;
|
||||
this.label35.Text = "*";
|
||||
//
|
||||
// label36
|
||||
//
|
||||
this.label36.AutoSize = true;
|
||||
this.label36.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))));
|
||||
this.label36.Location = new System.Drawing.Point(243, 125);
|
||||
this.label36.Name = "label36";
|
||||
this.label36.Size = new System.Drawing.Size(13, 17);
|
||||
this.label36.TabIndex = 27;
|
||||
this.label36.Text = "*";
|
||||
//
|
||||
// txtOemName
|
||||
//
|
||||
this.txtOemName.Location = new System.Drawing.Point(89, 154);
|
||||
this.txtOemName.Name = "txtOemName";
|
||||
this.txtOemName.Size = new System.Drawing.Size(148, 23);
|
||||
this.txtOemName.TabIndex = 21;
|
||||
//
|
||||
// label39
|
||||
//
|
||||
this.label39.AutoSize = true;
|
||||
this.label39.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.label39.Location = new System.Drawing.Point(21, 155);
|
||||
this.label39.Name = "label39";
|
||||
this.label39.Size = new System.Drawing.Size(65, 20);
|
||||
this.label39.TabIndex = 20;
|
||||
this.label39.Text = "贴牌名称";
|
||||
//
|
||||
// txtOemId
|
||||
//
|
||||
this.txtOemId.Location = new System.Drawing.Point(89, 122);
|
||||
this.txtOemId.Name = "txtOemId";
|
||||
this.txtOemId.Size = new System.Drawing.Size(148, 23);
|
||||
this.txtOemId.TabIndex = 19;
|
||||
//
|
||||
// splitContainer1
|
||||
//
|
||||
this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.splitContainer1.FixedPanel = System.Windows.Forms.FixedPanel.Panel2;
|
||||
this.splitContainer1.Location = new System.Drawing.Point(0, 5);
|
||||
this.splitContainer1.Name = "splitContainer1";
|
||||
this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal;
|
||||
//
|
||||
// splitContainer1.Panel1
|
||||
//
|
||||
this.splitContainer1.Panel1.Controls.Add(this.dgvOem);
|
||||
//
|
||||
// splitContainer1.Panel2
|
||||
//
|
||||
this.splitContainer1.Panel2.Controls.Add(this.btnExportShopErp);
|
||||
this.splitContainer1.Size = new System.Drawing.Size(838, 613);
|
||||
this.splitContainer1.SplitterDistance = 582;
|
||||
this.splitContainer1.TabIndex = 2;
|
||||
//
|
||||
// dgvOem
|
||||
//
|
||||
this.dgvOem.AllowUserToAddRows = false;
|
||||
this.dgvOem.AllowUserToDeleteRows = false;
|
||||
dataGridViewCellStyle5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(249)))), ((int)(((byte)(249)))), ((int)(((byte)(249)))));
|
||||
this.dgvOem.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle5;
|
||||
this.dgvOem.AutoRowNumber = true;
|
||||
this.dgvOem.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
|
||||
this.dgvOem.BackgroundColor = System.Drawing.Color.White;
|
||||
this.dgvOem.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle6.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle6.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
dataGridViewCellStyle6.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
|
||||
this.dgvOem.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle6;
|
||||
this.dgvOem.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.dgvOem.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.colCheck,
|
||||
this.colId,
|
||||
this.colOemId,
|
||||
this.colOemName,
|
||||
this.colOemOwner,
|
||||
this.colIco,
|
||||
this.colImg,
|
||||
this.editColumn,
|
||||
this.deleteColumn});
|
||||
this.dgvOem.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.dgvOem.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(215)))), ((int)(((byte)(229)))));
|
||||
this.dgvOem.Location = new System.Drawing.Point(0, 0);
|
||||
this.dgvOem.MultiSelectCheckBox = true;
|
||||
this.dgvOem.Name = "dgvOem";
|
||||
this.dgvOem.ReadOnly = true;
|
||||
this.dgvOem.RowTemplate.Height = 23;
|
||||
this.dgvOem.Size = new System.Drawing.Size(838, 582);
|
||||
this.dgvOem.TabIndex = 1;
|
||||
this.dgvOem.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvOem_CellContentClick);
|
||||
//
|
||||
// colCheck
|
||||
//
|
||||
this.colCheck.FillWeight = 30F;
|
||||
this.colCheck.HeaderText = "选择";
|
||||
this.colCheck.Name = "colCheck";
|
||||
this.colCheck.ReadOnly = true;
|
||||
//
|
||||
// colId
|
||||
//
|
||||
this.colId.HeaderText = "id";
|
||||
this.colId.Name = "colId";
|
||||
this.colId.ReadOnly = true;
|
||||
this.colId.Visible = false;
|
||||
//
|
||||
// colOemId
|
||||
//
|
||||
this.colOemId.HeaderText = "贴牌编码";
|
||||
this.colOemId.Name = "colOemId";
|
||||
this.colOemId.ReadOnly = true;
|
||||
//
|
||||
// colOemName
|
||||
//
|
||||
this.colOemName.HeaderText = "贴牌名称";
|
||||
this.colOemName.Name = "colOemName";
|
||||
this.colOemName.ReadOnly = true;
|
||||
//
|
||||
// colOemOwner
|
||||
//
|
||||
this.colOemOwner.HeaderText = "主体账号";
|
||||
this.colOemOwner.Name = "colOemOwner";
|
||||
this.colOemOwner.ReadOnly = true;
|
||||
//
|
||||
// colIco
|
||||
//
|
||||
this.colIco.HeaderText = "图标";
|
||||
this.colIco.Name = "colIco";
|
||||
this.colIco.ReadOnly = true;
|
||||
//
|
||||
// colImg
|
||||
//
|
||||
this.colImg.HeaderText = "题图";
|
||||
this.colImg.Name = "colImg";
|
||||
this.colImg.ReadOnly = true;
|
||||
//
|
||||
// editColumn
|
||||
//
|
||||
this.editColumn.FillWeight = 50F;
|
||||
this.editColumn.HeaderText = "编辑";
|
||||
this.editColumn.Name = "editColumn";
|
||||
this.editColumn.ReadOnly = true;
|
||||
this.editColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.editColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||
//
|
||||
// deleteColumn
|
||||
//
|
||||
this.deleteColumn.FillWeight = 50F;
|
||||
this.deleteColumn.HeaderText = "删除";
|
||||
this.deleteColumn.Name = "deleteColumn";
|
||||
this.deleteColumn.ReadOnly = true;
|
||||
//
|
||||
// btnExportShopErp
|
||||
//
|
||||
this.btnExportShopErp.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.btnExportShopErp.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnExportShopErp.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnExportShopErp.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnExportShopErp.Location = new System.Drawing.Point(0, 1);
|
||||
this.btnExportShopErp.Name = "btnExportShopErp";
|
||||
this.btnExportShopErp.Size = new System.Drawing.Size(140, 25);
|
||||
this.btnExportShopErp.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnExportShopErp.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnExportShopErp.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnExportShopErp.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
|
||||
this.btnExportShopErp.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
|
||||
this.btnExportShopErp.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
|
||||
this.btnExportShopErp.Style.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.btnExportShopErp.Style.GradientAngle = 90;
|
||||
this.btnExportShopErp.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnExportShopErp.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnExportShopErp.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnExportShopErp.TabIndex = 439;
|
||||
this.btnExportShopErp.Text = "导出用户到后台系统";
|
||||
this.btnExportShopErp.Visible = false;
|
||||
//
|
||||
// WxOemManageForm
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.ClientSize = new System.Drawing.Size(1184, 623);
|
||||
this.Controls.Add(this.splitContainer5);
|
||||
this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.KeyPreview = true;
|
||||
this.Name = "WxOemManageForm";
|
||||
this.Text = "OEM贴牌管理";
|
||||
this.Load += new System.EventHandler(this.WxOemManageForm_Load);
|
||||
this.VisibleChanged += new System.EventHandler(this.WxOemManageForm_VisibleChanged);
|
||||
this.splitContainer5.Panel1.ResumeLayout(false);
|
||||
this.splitContainer5.Panel1.PerformLayout();
|
||||
this.splitContainer5.Panel2.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer5)).EndInit();
|
||||
this.splitContainer5.ResumeLayout(false);
|
||||
this.splitContainer1.Panel1.ResumeLayout(false);
|
||||
this.splitContainer1.Panel2.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
|
||||
this.splitContainer1.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.dgvOem)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.SplitContainer splitContainer5;
|
||||
private DevComponents.DotNetBar.PanelEx btnSearch;
|
||||
private DevComponents.DotNetBar.Controls.Line line2;
|
||||
private System.Windows.Forms.Label label5;
|
||||
private System.Windows.Forms.Label label4;
|
||||
private System.Windows.Forms.TextBox txtSearchOemId;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.Label label35;
|
||||
private System.Windows.Forms.Label label36;
|
||||
private System.Windows.Forms.TextBox txtOemName;
|
||||
private System.Windows.Forms.Label label39;
|
||||
private System.Windows.Forms.TextBox txtOemId;
|
||||
private System.Windows.Forms.SplitContainer splitContainer1;
|
||||
private UserComponent.DataGridViewEx dgvOem;
|
||||
private DevComponents.DotNetBar.PanelEx btnExportShopErp;
|
||||
private System.Windows.Forms.TextBox txtSearchOemName;
|
||||
private DevComponents.DotNetBar.PanelEx btnClear;
|
||||
private System.Windows.Forms.Label label3;
|
||||
private System.Windows.Forms.LinkLabel lblRandomOemId;
|
||||
private System.Windows.Forms.LinkLabel lblChoice;
|
||||
private System.Windows.Forms.Label label7;
|
||||
private System.Windows.Forms.TextBox txtOemOwner;
|
||||
private System.Windows.Forms.Label label6;
|
||||
private DevComponents.DotNetBar.PanelEx btnAddMdy;
|
||||
private DevComponents.DotNetBar.PanelEx btnCancelEdit;
|
||||
private System.Windows.Forms.DataGridViewCheckBoxColumn colCheck;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colId;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colOemId;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colOemName;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colOemOwner;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colIco;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colImg;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn editColumn;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn deleteColumn;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,198 @@
|
||||
using AllBase;
|
||||
using AllBase.Model.DBModel;
|
||||
using AllBase.Model.Result;
|
||||
using NaiBa.Util.Extension;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Security.Cryptography;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using TemuKJD.BaseForms;
|
||||
using Work;
|
||||
|
||||
namespace TemuKJD.WXForms.AdminForms
|
||||
{
|
||||
public partial class WxOemManageForm : BaseForm
|
||||
{
|
||||
public CancellationTokenSource cancellationTokenSource { get; set; } = null;
|
||||
public WxOemManageForm()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void WxOemManageForm_Load(object sender, EventArgs e)
|
||||
{
|
||||
IsFormLoad = true;
|
||||
}
|
||||
|
||||
private void WxOemManageForm_VisibleChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (IsFirstVisibile)
|
||||
{
|
||||
btnSearch_Click(null, null);
|
||||
|
||||
IsFirstVisibile = false;
|
||||
}
|
||||
}
|
||||
|
||||
private void btnAddMdy_Click(object sender, EventArgs e)
|
||||
{
|
||||
StringBuilder data = new StringBuilder();
|
||||
data.Append(UserLogin.GetSignaturex());
|
||||
data.Append("&oem_id=" + GetHtml.UrlEncodeUtf8(txtOemId.Text.Trim()));
|
||||
data.Append("&oem_name=" + GetHtml.UrlEncodeUtf8(txtOemName.Text.Trim()));
|
||||
data.Append("&oem_owner=" + GetHtml.UrlEncodeUtf8(txtOemOwner.Text));
|
||||
|
||||
string url = BaseClass.BuildWXObjString("user/add_mdy_oem");
|
||||
string html = GetHtml.PostUtf8(url, data.ToString()).Trim();
|
||||
|
||||
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
|
||||
{
|
||||
var msg = BaseRegex.GetStringJson(ref html, "msg");
|
||||
if (string.IsNullOrEmpty(msg))
|
||||
msg = html;
|
||||
BaseMsgForm.ShowError(msg, "错误");
|
||||
return;
|
||||
}
|
||||
if (btnAddMdy.Text != "添加贴牌")
|
||||
btnCancelEdit_Click(null, null);
|
||||
btnSearch_Click(null, null);
|
||||
}
|
||||
|
||||
private void btnCancelEdit_Click(object sender, EventArgs e)
|
||||
{
|
||||
txtOemId.Text = "";
|
||||
txtOemName.Text = "";
|
||||
txtOemOwner.Text = "";
|
||||
txtOemId.ReadOnly = false;
|
||||
btnAddMdy.Text = "添加贴牌";
|
||||
}
|
||||
|
||||
private void lblRandomOemId_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
||||
{
|
||||
this.txtOemId.Text = DateTime.Now.ToString("yy") + Randomx.GetNumber(2) + Randomx.GetWordWithNumber(4);
|
||||
}
|
||||
|
||||
public string DbId = "";
|
||||
private void dgvOem_CellContentClick(object sender, DataGridViewCellEventArgs e)
|
||||
{
|
||||
if (e.ColumnIndex < 0 || e.RowIndex < 0)
|
||||
return;
|
||||
string columText = dgvOem.Columns[e.ColumnIndex].HeaderText;
|
||||
string columName = dgvOem.Columns[e.ColumnIndex].Name;
|
||||
string id = dgvOem.Rows[e.RowIndex].Cells["colId"].Value.ToString();
|
||||
string oemId = dgvOem.Rows[e.RowIndex].Cells["colOemId"].Value.ToString();
|
||||
string oemName = dgvOem.Rows[e.RowIndex].Cells["colOemName"].Value.ToString();
|
||||
string oemOwner = dgvOem.Rows[e.RowIndex].Cells["colOemOwner"].Value.ToString();
|
||||
var row = dgvOem.Rows[e.RowIndex];
|
||||
if (columText == "编辑")
|
||||
{
|
||||
DbId = id;
|
||||
txtOemId.ReadOnly = true;
|
||||
txtOemId.Text = oemId;
|
||||
txtOemName.Text = oemName;
|
||||
txtOemOwner.Text = oemOwner;
|
||||
btnAddMdy.Text = "编辑贴牌";
|
||||
}
|
||||
if (columText == "删除")
|
||||
{
|
||||
if (BaseMsgForm.ShowConfirm("是否删除,删除后无法再次添加", "提示").DialogResult == DialogResult.OK)
|
||||
{
|
||||
DeleteOem(id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void DeleteOem(string dbId)
|
||||
{
|
||||
StringBuilder data = new StringBuilder();
|
||||
data.Append(UserLogin.GetSignaturex());
|
||||
data.Append("&db_id=" + dbId);
|
||||
|
||||
string url = BaseClass.BuildWXObjString("user/del_oem");
|
||||
string html = GetHtml.PostUtf8(url, data.ToString()).Trim();
|
||||
|
||||
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
|
||||
{
|
||||
var msg = BaseRegex.GetStringJson(ref html, "msg");
|
||||
if (string.IsNullOrEmpty(msg))
|
||||
msg = html;
|
||||
BaseMsgForm.ShowError(msg, "错误");
|
||||
return;
|
||||
}
|
||||
btnSearch_Click(null, null);
|
||||
}
|
||||
|
||||
private void btnSearch_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (cancellationTokenSource != null)
|
||||
cancellationTokenSource.Cancel();
|
||||
dgvOem.Rows.Clear();
|
||||
|
||||
cancellationTokenSource = new CancellationTokenSource();
|
||||
|
||||
Task.Run(() => {
|
||||
|
||||
var cancelToken = cancellationTokenSource;
|
||||
|
||||
StringBuilder data = new StringBuilder();
|
||||
data.Append(UserLogin.GetSignaturex());
|
||||
data.Append("&oem_id=" + GetHtml.UrlEncodeUtf8(txtSearchOemId.Text.Trim()));
|
||||
data.Append("&oem_name=" + GetHtml.UrlEncodeUtf8(txtSearchOemName.Text.Trim()));
|
||||
|
||||
string url = BaseClass.BuildWXObjString("user/get_oem");
|
||||
string html = GetHtml.PostUtf8(url, data.ToString()).Trim();
|
||||
|
||||
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
|
||||
{
|
||||
var msg = BaseRegex.GetStringJson(ref html, "msg");
|
||||
if (string.IsNullOrEmpty(msg))
|
||||
msg = html;
|
||||
BaseMsgForm.ShowError(msg, "错误");
|
||||
return;
|
||||
}
|
||||
|
||||
var jArr = JObject.Parse(html)["data"];
|
||||
|
||||
|
||||
try
|
||||
{
|
||||
var list = JsonHelper.DeserializeJsonToList<oem>(JsonHelper.SerializeObject(jArr)).ToList();
|
||||
|
||||
Invoke(new Action(() => { dgvOem.Rows.Clear(); }));
|
||||
|
||||
foreach (var item in list)
|
||||
{
|
||||
if (cancelToken.IsCancellationRequested)
|
||||
return;
|
||||
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
this.dgvOem.Rows.Add(
|
||||
false,
|
||||
item.id,
|
||||
item.oem_id,
|
||||
item.oem_name,
|
||||
item.oem_owner,
|
||||
"",
|
||||
"",
|
||||
"编辑",
|
||||
"删除"
|
||||
);
|
||||
}));
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
}
|
||||
}, cancellationTokenSource.Token);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,141 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="colCheck.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colOemName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colOemOwner.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colIco.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colImg.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="editColumn.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="deleteColumn.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
</root>
|
||||
Reference in new issue
Block a user