示例#1
0
			public void PerformEvent(object sender, EventParam e)
			{
				for (int i = 0; i < listerners.Count; i++)
				{
					listerners[i].FireEvent(sender, e);
				}
			}
示例#2
0
        public void PerformEvent(object sender, EventParam e)
        {
            switch (e.EventID) {
            case EventID.DOWNLOADED_PROFILE:
                startDownloadRunNoInfo ();
                break;
            case EventID.DOWNLOADED_RUNNO:
                if (_downloadAll) {
                    if (_downloadPro) {
                        _downloadPro = false;
                        startDownloadItem ();
                    }
                }
                break;
            case EventID.DOWNLOADED_ITEM:
                if (_downloadAll) {
                    if (_downloadItem) {
                        _downloadItem = false;
                        startDownloadCustomer ();
                    }
                }
                break;

            }
        }
示例#3
0
 public void PerformEvent(object sender, EventParam e)
 {
     switch (e.EventID) {
     case EventID.CUSTCODE_SELECTED:
         RunOnUiThread (() => SetSelectedItem(e.Param["SELECTED"].ToString()));
         break;
     }
 }
示例#4
0
 public void PerformEvent(object sender, EventParam e)
 {
     switch (e.EventID) {
     case 2021:
         sdate =Utility.ConvertToDate(e.Param ["DATE1"].ToString ());
         edate=Utility.ConvertToDate(e.Param ["DATE2"].ToString ());
         break;
     }
 }
示例#5
0
 public void PerformEvent(object sender, EventParam e)
 {
     switch (e.EventID)
     {
     case EventID.ICODE_SELECTED:
         RunOnUiThread(() => SetSelectedItem(e.Param ["SELECTED"].ToString()));
         break;
     }
 }
示例#6
0
 public void PerformEvent(object sender, EventParam e)
 {
     switch (e.EventID)
     {
     case 2020:
         sdate = Utility.ConvertToDate(e.Param ["DATE1"].ToString());
         edate = Utility.ConvertToDate(e.Param ["DATE2"].ToString());
         break;
     }
 }
示例#7
0
文件: DateRange.cs 项目: mokth/merpV3
        void FireEvent(int eventID, string startD, string endD)
        {
            Hashtable param = new Hashtable();

            param.Add("DATE1", startD);
            param.Add("DATE2", endD);
            EventParam p = new EventParam(eventID, param);

            EventManagerFacade.Instance.GetEventManager().PerformEvent(CallingActivity, p);
        }
示例#8
0
        private void  HandlePaidOnlyButtonClick(object sender, DialogClickEventArgs e)
        {
            var       dialog = (AlertDialog)sender;
            Hashtable param  = new Hashtable();

            param.Add("print", "no");
            param.Add("remark", txtRemark.Text.ToUpper());
            EventParam p = new EventParam(EventID.PAYMENT_PRINT, param);

            EventManagerFacade.Instance.GetEventManager().PerformEvent(this.Activity, p);
            dialog.Dismiss();
        }
示例#9
0
        void ListView_Click(object sender, AdapterView.ItemClickEventArgs e)
        {
            Item itm = adapter[e.Position];

            if (itm != null)
            {
                _selectedItem = itm.ICode + " | " + itm.IDesc.Trim();
                Hashtable param = new Hashtable();
                param.Add("SELECTED", _selectedItem);
                EventParam p = new EventParam(EventID.ICODE_SELECTED, param);
                EventManagerFacade.Instance.GetEventManager().PerformEvent(this.Activity, p);
            }
            this.Dialog.Dismiss();
        }
示例#10
0
        void ListView_Click(object sender, AdapterView.ItemClickEventArgs e)
        {
            Trader itm = adapter[e.Position];

            if (itm != null)
            {
                _selectedItem = itm.CustCode + " | " + itm.CustName.Trim();
                Hashtable param = new Hashtable();
                param.Add("SELECTED", _selectedItem);
                //int eventID = (_filter == null ? EventID.CUSTCODE_SELECTED : EventID.CUSTCODE2_SELECTED);
                EventParam p = new EventParam(eventid, param);
                EventManagerFacade.Instance.GetEventManager().PerformEvent(this.Activity, p);
            }
            this.Dialog.Dismiss();
        }
示例#11
0
 public void PerformEvent(object sender, EventParam e)
 {
     switch (e.EventID) {
     case EventID.LOGIN_DOWNCOMPLETE:
         string comp =((GlobalvarsApp)this.Application).COMPANY_CODE;
         string bran = ((GlobalvarsApp)this.Application).BRANCH_CODE;
         ShowMainActivity (comp,bran);
         break;
     case EventID.LOGIN_SUCCESS:
         if (!_donwloadPro) {
             DownloadHelper download = new DownloadHelper ();
             download.Downloadhandle = LoginDoneDlg;
             download.DownloadAllhandle = LoginDoneDlgEx;
             download.CallingActivity = this;
             download.StartDownloadAll ();
             _donwloadPro = true;
         }
         break;
     }
 }
示例#12
0
        public void PerformEvent(object sender, EventParam e)
        {
            switch (e.EventID)
            {
            case EventID.CUSTCODE_SELECTED:
                RunOnUiThread(() => SetSelectedCust(e.Param["SELECTED"].ToString()));
                break;

            case EventID.ICODE_SELECTED:
                RunOnUiThread(() => SetSelectedItem(e.Param["SELECTED"].ToString()));
                break;

            case EventID.PAYMENT_PAID:
                if (!IsFirePaid)
                {
                    IsFirePaid = true;
                    RunOnUiThread(() => SaveCashBill());
                }
                break;
            }
        }
示例#13
0
        public void PerformEvent(object sender, EventParam e)
        {
            switch (e.EventID)
            {
            case EventID.LOGIN_DOWNCOMPLETE:
                string comp = ((GlobalvarsApp)this.Application).COMPANY_CODE;
                string bran = ((GlobalvarsApp)this.Application).BRANCH_CODE;
                ShowMainActivity(comp, bran);
                break;

            case EventID.LOGIN_SUCCESS:
                if (!_donwloadPro)
                {
                    DownloadHelper download = new DownloadHelper();
                    download.Downloadhandle    = LoginDoneDlg;
                    download.DownloadAllhandle = LoginDoneDlgEx;
                    download.CallingActivity   = this;
                    download.StartDownloadAll();
                    _donwloadPro = true;
                }
                break;
            }
        }
示例#14
0
 void FireEvent(int eventID)
 {
     Hashtable param = new Hashtable ();
     EventParam p = new EventParam (eventID, param);
     EventManagerFacade.Instance.GetEventManager ().PerformEvent (CallingActivity, p);
 }
示例#15
0
			public void FireEvent(object sender, EventParam eventArgs)
			{
				eventHandler(sender, eventArgs);
			}
示例#16
0
		public void FireEvent(object sender,EventParam eventArgs)
		{
			if (eventHandler != null)
				eventHandler (sender, eventArgs);
		}
示例#17
0
 public void FireEvent(object sender,EventParam eventArgs)
 {
     if (eventHandler != null)
         eventHandler (sender, eventArgs);
 }
示例#18
0
 void FireEvent(int eventID,string startD,string endD)
 {
     Hashtable param = new Hashtable ();
     param.Add ("DATE1", startD);
     param.Add ("DATE2", endD);
     EventParam p = new EventParam (eventID, param);
     EventManagerFacade.Instance.GetEventManager ().PerformEvent (CallingActivity, p);
 }
示例#19
0
 public void FireEvent(object sender, EventParam eventArgs)
 {
     eventHandler(sender, eventArgs);
 }
示例#20
0
        private void HandlePositiveButtonClick(object sender, DialogClickEventArgs e)
        {
            var dialog = (AlertDialog) sender;
            Hashtable param = new Hashtable ();
            param.Add ("print","yes");
            param.Add ("remark", txtRemark.Text.ToUpper ());
            EventParam p = new EventParam (EventID.PAYMENT_PAID , param);
            EventManagerFacade.Instance.GetEventManager ().PerformEvent (this.Activity, p);

            dialog.Dismiss();
        }
示例#21
0
        public void PerformEvent(object sender, EventParam e)
        {
            switch (e.EventID) {
            case EventID.CUSTCODE_SELECTED:
                RunOnUiThread (() => SetSelectedCust(e.Param["SELECTED"].ToString()));
                break;
            case EventID.ICODE_SELECTED:
                RunOnUiThread (() => SetSelectedItem(e.Param["SELECTED"].ToString()));
                break;
            //			case EventID.PAYMENT_PAID:
            //				if (!IsFirePaid) {
            //					IsFirePaid = true;
            //					RunOnUiThread (() => SaveCashBill (e.Param));
            //				}
            //				break;
            //			case EventID.PAYMENT_PRINT:
            //				if (!IsFirePaidOnly) {
            //					IsFirePaidOnly = true;
            //					RunOnUiThread (() => SaveCashBill (e.Param));
            //				}
            //				break;

            }
        }
示例#22
0
 void ListView_Click(object sender, AdapterView.ItemClickEventArgs e)
 {
     Trader itm = adapter[e.Position];
     if (itm != null) {
         _selectedItem = itm.CustCode + " | " + itm.CustName;
         Hashtable param = new Hashtable ();
         param.Add ("SELECTED", _selectedItem);
         EventParam p = new EventParam (EventID.CUSTCODE_SELECTED, param);
         EventManagerFacade.Instance.GetEventManager ().PerformEvent (this.Activity, p);
     }
     this.Dialog.Dismiss ();
 }