1688上传类目转换等优化 充值用户服务充值和用户续费店铺功能
This commit is contained in:
1 parent
ecb291e3d7
commit
aab73b978f
56 files changed
+4532
-1748
No files matched your search
@@ -89,8 +89,10 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
authority += "评分考核,";
|
||||
if (chkEcWaybill.Checked)
|
||||
authority += chkEcWaybill.Text + ",";
|
||||
if (chkCommissionUpdate.Checked)
|
||||
authority += chkCommissionUpdate.Text + ",";
|
||||
if (chkShopPoints.Checked)
|
||||
authority += "积分用户,";
|
||||
authority += "充值用户,";
|
||||
data.Append("&authority=" + authority.Trim(','));
|
||||
|
||||
string url = BaseClass.BuildObjString("user/add_user");
|
||||
@@ -157,6 +159,7 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
user.sa_level = BaseRegex.GetIntJson(ref oStr, "sa_level");
|
||||
user.authority = BaseRegex.GetStringJson(ref oStr, "authority");
|
||||
user.group_id = BaseRegex.GetStringJson(ref oStr, "group_id");
|
||||
user.points = BaseRegex.GetIntJson(ref oStr, "points");
|
||||
var parent_user_name = BaseRegex.GetStringJson(ref oStr, "parent_user_name");
|
||||
|
||||
AllUsers.Add(user);
|
||||
@@ -173,6 +176,7 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
user.sa_level_name,
|
||||
user.authority,
|
||||
user.group_id == "3" ? user.points.ToString() : "",
|
||||
"+",
|
||||
user.group_id == "3" ? "添加店铺" : "",
|
||||
"编辑",
|
||||
"删除");
|
||||
@@ -202,6 +206,7 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
chkChanceProdCollect.Checked = false;
|
||||
chkShopOptimize.Checked = false;
|
||||
chkEcWaybill.Checked = false;
|
||||
chkCommissionUpdate.Checked = false;
|
||||
chkHot.Checked = false;
|
||||
chkShopPoints.Checked = false;
|
||||
}
|
||||
@@ -223,6 +228,7 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
string company = dgvUser.Rows[e.RowIndex].Cells["colCompany"].Value.ToString();
|
||||
string saLevelName = dgvUser.Rows[e.RowIndex].Cells["colSaLevelName"].Value.ToString();
|
||||
string authority = dgvUser.Rows[e.RowIndex].Cells["colAuthority"].Value.ParseToString();
|
||||
var row = dgvUser.Rows[e.RowIndex];
|
||||
if (columname == "编辑")
|
||||
{
|
||||
Uid = uid;
|
||||
@@ -240,6 +246,7 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
chkChanceProdCollect.Checked = authority.Contains(chkChanceProdCollect.Text);
|
||||
chkShopOptimize.Checked = authority.Contains(chkShopOptimize.Text);
|
||||
chkEcWaybill.Checked = authority.Contains(chkEcWaybill.Text);
|
||||
chkCommissionUpdate.Checked = authority.Contains(chkCommissionUpdate.Text);
|
||||
chkHot.Checked = authority.Contains(chkHot.Text);
|
||||
chkWXShowProdGetFromType.Checked = authority.Contains(chkWXShowProdGetFromType.Text);
|
||||
}
|
||||
@@ -258,6 +265,13 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
shopListForm.btnAddToAccount.Visible = true;
|
||||
shopListForm.ShowDialog();
|
||||
}
|
||||
if (columname == "+")
|
||||
{
|
||||
this.lblUserInfo.Text = mobile + " - " + nickName;
|
||||
this.numAddTopUp.Value = 0;
|
||||
this.pnlTopUp.Tag = row;
|
||||
this.pnlTopUp.Visible = true;
|
||||
}
|
||||
}
|
||||
|
||||
public void Delete(string uid)
|
||||
@@ -344,5 +358,37 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
//}
|
||||
}
|
||||
}
|
||||
|
||||
private void pnlCancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
pnlTopUp.Visible = false;
|
||||
}
|
||||
|
||||
private void btnTopUpOK_Click(object sender, EventArgs e)
|
||||
{
|
||||
string url = BaseClass.BuildObjString("user/update_user_points");
|
||||
string data = UserLogin.GetSignaturex();
|
||||
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;
|
||||
|
||||
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;
|
||||
}
|
||||
var row = pnlTopUp.Tag as DataGridViewRow;
|
||||
if (row != null)
|
||||
{
|
||||
row.Cells["colPoints"].Value = row.Cells["colPoints"].Value.ParseToInt() + numAddTopUp.Value;
|
||||
}
|
||||
pnlTopUp.Visible = false;
|
||||
BaseMsgForm.ShowInfo("充值成功");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user