示例#1
0
        public void IniPresenter(IAsrsManageToCtl iAsrsManageToCtl, IAsrsCtlToManage iAsrsCtlToManage)
        {
            this.iControl        = iAsrsCtlToManage;
            this.iStorageManager = iAsrsManageToCtl;

            //this.iStorageManager.EventStockListAddExpandForm += ShowExpandProFormEventHandler;
        }
示例#2
0
 public void IniPresenter(IAsrsManageToCtl iAsrsManageToCtl, IAsrsCtlToManage iAsrsCtlToManage)
 {
     this.iControl       = iAsrsCtlToManage;
     this.iStorageManage = iAsrsManageToCtl;
     StorageMainView.storageMana.EventUpateGsStatus += UpdateGsStatusEventHandler;
     //  this.iStorageManage.EventStorageViewAddExpandForm += ShowExpandProFormEventHandler;
 }
示例#3
0
        /// <summary>
        /// 库存模块初始化
        /// </summary>
        /// <param name="iControl">控制层接口</param>
        /// <param name="iStorage">管理层接口</param>
        public bool Init(IAsrsCtlToManage iControl, ref IAsrsManageToCtl iStorage, ref string reStr)
        {
            this.iControl = iControl;
            StorageManager storage = new StorageManager();

            iStorage    = (IAsrsManageToCtl)storage;
            iManage     = iStorage;
            storageMana = storage;

            bool iniStatus = storage.Initialize(ref reStr);

            this.stockManaView.SetInterface(iManage, iControl);
            this.storageView.SetInterface(iManage, iControl);
            storage.eventRegistForm += RegistExtendFormEventHandler;
            return(iniStatus);
        }
示例#4
0
 public void SetSvcAddr(string svcAddr)
 {
     asrsCtl = ChannelFactory <AsrsInterface.IAsrsCtlToManage> .CreateChannel(new BasicHttpBinding(), new EndpointAddress(svcAddr)); //new AsrsSvc.AsrsPowerSvcClient();;
 }
示例#5
0
 public void SetInterface(IAsrsManageToCtl iAsrsManageToCtl, IAsrsCtlToManage iAsrsCtlToManage)
 {
     this.iControl       = iAsrsCtlToManage;
     this.iStorageManage = iAsrsManageToCtl;
     this.presenter.IniPresenter(iStorageManage, iControl);
 }