protected void Page_Load(object sender, EventArgs e) { OrgSyncInfoModule m = new OrgSyncInfoModule(); using (IYZAppAdminProvider app = IYZAppAdminProviderManager.DefaultProvider) { m = app.LoadOrgSyncConfig(); UserSQL = System.Web.HttpUtility.HtmlDecode(m.DdUserSql); DeptSQL = System.Web.HttpUtility.HtmlDecode(m.DdOuSql); Appkey = m.DdCorpId; Appsecret = m.DdSecret; } HttpContext context = this.Context; YZRequest request = new YZRequest(context); string method = request.GetString("method", ""); if (method == "syncou") { Ddorgsync.OrgSync(); } if (method == "syncuser") { Ddorgsync.UserSync(); } if (method == "all") { Ddorgsync.OrgSync(); Ddorgsync.UserSync(); } }
protected void Page_Load(object sender, EventArgs e) { using (IYZAppAdminProvider app = IYZAppAdminProviderManager.DefaultProvider) { m = app.LoadOrgSyncConfig(); } OUPath = Server.MapPath("") + "\\batch_party_sample.csv"; UserPath = Server.MapPath("") + "\\batch_user_sample.csv"; HttpContext context = this.Context; YZRequest request = new YZRequest(context); string method = request.GetString("method", ""); if (method == "syncou") { syncou(); } if (method == "syncuser") { syncuser(); } if (method == "all") { syncou(); syncuser(); } }