订单数据库回复
This commit is contained in:
1 parent
d9900452f2
commit
3ee52f553e
16 files changed
+973
-184
No files matched your search
@@ -8,9 +8,11 @@ using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using TemuKJD.BaseForms;
|
||||
using TemuKJD.BLL;
|
||||
using Work;
|
||||
|
||||
namespace TemuKJD.WXForms.AdminForms
|
||||
@@ -143,12 +145,14 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
user.company_name = BaseRegex.GetStringJson(ref oStr, "company_name");
|
||||
user.sa_level = BaseRegex.GetIntJson(ref oStr, "sa_level");
|
||||
user.authority = BaseRegex.GetStringJson(ref oStr, "authority");
|
||||
var parent_user_name = BaseRegex.GetStringJson(ref oStr, "parent_user_name");
|
||||
|
||||
AllUsers.Add(user);
|
||||
dgvUser.Rows.Add(
|
||||
user.id,
|
||||
user.nick_name,
|
||||
user.user_name,
|
||||
user.user_name,
|
||||
parent_user_name,
|
||||
user.group_id,
|
||||
user.group_name,
|
||||
user.company_name,
|
||||
@@ -285,5 +289,26 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
this.txtSearch.Focus();
|
||||
this.lblWatermark.Visible = false;
|
||||
}
|
||||
|
||||
private void btnExportShopErp_Click(object sender, EventArgs e)
|
||||
{
|
||||
foreach (var user in AllUsers)
|
||||
{
|
||||
//if (user.group_id != "3")
|
||||
// continue;
|
||||
|
||||
//string prodDataStr = "{\"userName\":\"15288888888\",\"password\":\"Andy@1984\",\"phonenumber\":\"15288888888\",\"status\": \"0\",\"remark\":\"a15288888888.\",\"roleIds\":[\"5\"]}";
|
||||
//prodDataStr = "{\"userName\":\"" + user.user_name + "\",\"password\":\"" + user.user_name + "\",\"phonenumber\":\"" + user.mobile +
|
||||
// "\",\"status\": \"0\",\"nickName\":\"" + user.nick_name + "\",\"roleIds\":[\"5\"]}";
|
||||
|
||||
//string url = "https://po.e57.cn/prod-api/api/sys-api/system/user";
|
||||
//var exportRst = WXHttpResponseBLL.e57PostResponse(url, prodDataStr, "", "Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjFlODI2ZjNiLTFhMzItNDEwOS04ODlmLTIzYmEwOTUyMDYxYiJ9.L68qzzZZxaQoxrUeB8pBt4TWB7UbTwHkxlmQduzy-VEFkBI4oxtj4VrH-2yJpSD--ZdM-5Wm3VtTvy57nMaFMQ");
|
||||
//Thread.Sleep(500);
|
||||
//if (!exportRst.Contains("\"code\":200"))
|
||||
//{
|
||||
|
||||
//}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user