123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- using LYFZ.Model;
- using LYFZ.Software.MainBusiness.MicroApplet;
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Linq;
- using System.Text;
- namespace LYFZ.Software.MainBusiness.SelfService
- {
- public class frmKePianGuanLi : LYFZ.Software.SelfService.frmPersonalCenter
- {
- frmAdminPage frmPage = null;
- string gotoUrl = "http://p.lyfz.net/Index.aspx?entid={0}&key={1}";
- public frmKePianGuanLi()
- {
- this.UcNavigationTool.LabTitle = "客片下载管理";
- if (Environment.OSVersion.Version.Major >= 6)
- {
- try
- {
- frmPage = new frmAdminPage();
- this.btnRefresh.Click += btnRefresh_Click;
- this.frmPage.ContextMenuHandler.RunContextMenu += ContextMenuHandler_RunContextMenu;
- this.Shown += FrmPersonalCenter_Shown;
- this.frmPage.LoadHandler.OnLoadEnd += LoadHandler_OnLoadEnd;
- this.frmPage.LoadHandler.OnLoadStart += LoadHandler_OnLoadStart;
- }
- catch
- {
- MessageBoxCustom.Show("您的系统不支持客片下载管理功能,请使用 Win7 或以上系统。");
- this.Enabled = false;
- }
- }
- else
- {
- MessageBoxCustom.Show("您的系统不支持客片下载管理功能,请使用 Win7 或以上系统。");
- this.Enabled = false;
- }
- }
- public ModelAPPInterface AppInterface = new ModelAPPInterface();
- public LYFZ.BLL.BLL_ErpSystemConfigure sysConfigBll = new BLL.BLL_ErpSystemConfigure();
- private void FrmPersonalCenter_Shown(object sender, EventArgs e)
- {
- AppInterface = sysConfigBll.GetModelAPPInterface();
- // AppInterface.AppEnId = "E6051908401744";
- this.LoadMicroAppletPage(AppInterface.AppEnId);
- }
- void LoadMicroAppletPage(string AppEnId)
- {
- if (this.plExMainContainer.Controls.Count <= 0)
- {
- this.frmPage.SetEmbeddedWindows(this.plExMainContainer);
- }
- string md5Key =LYFZ.WinAPI.SDKSecurity.MD5Encrypt(String.Format("{0}lyfz.net",AppEnId));
- string loadUrl = String.Format(gotoUrl, AppEnId, md5Key);
- frmPage.LoadUrl(loadUrl);
- // frmPage.LoadUrl("http://lyfz.app.local/H5UI/index.html");
- // frmPage.LoadUrl("http://res.app.local/H5UI/index.html");
- // frmPage.LoadUrl("https://html5test.com/");
- // frmPage.LoadUrl("http://www.baidu.com/");
- //frmPage.LoadUrl("http://benediktmeurer.de/ARES-6/");
- //frmPage.LoadUrl("https://react-md.mlaursen.com/components/pickers/date");
- }
-
- private void ContextMenuHandler_RunContextMenu(object sender, Chromium.Event.CfxRunContextMenuEventArgs e)
- {
- e.SetReturnValue(true);
- }
- void btnRefresh_Click(object sender, EventArgs e)
- {
- myRefresh(this.cbDelHuanChun.Checked);
- }
- void myRefresh(bool isDelHuanChun)
- {
-
- if (isDelHuanChun)
- {
- this.frmPage.Browser.ReloadIgnoreCache();
- string md5Key = LYFZ.WinAPI.SDKSecurity.MD5Encrypt(String.Format("{0}lyfz.net", AppInterface.AppEnId));
- frmPage.LoadUrl(String.Format(gotoUrl, AppInterface.AppEnId, md5Key));
- }
- else
- {
- this.frmPage.Browser.Reload();
- }
- }
- private void LoadHandler_OnLoadStart(object sender, Chromium.Event.CfxOnLoadStartEventArgs e)
- {
-
- }
-
- private void LoadHandler_OnLoadEnd(object sender, Chromium.Event.CfxOnLoadEndEventArgs e)
- {
-
- }
-
-
- }
- }
|