Пример #1
0
        public ActionResult GetRequisitionDetailsByDateForSuperAdmin1()
        {
            MainApplication model = new MainApplication();

            model.Requisitionforgodownlist      = TempData["Requisitionssuperadmin1"] as IEnumerable <RequisitionForGodown>;
            TempData["Requisitionssuperadmin1"] = model.Requisitionforgodownlist;
            return(View(model));
        }
Пример #2
0
        public ActionResult GetIncomeExchangeVoucherList()
        {
            MainApplication model = new MainApplication();

            model.IncomeExpenseVoucherList    = TempData["IncomeExchangeVoucher"] as IEnumerable <IncomeExpenseVoucher>;
            TempData["IncomeExchangeVoucher"] = model.IncomeExpenseVoucherList;
            return(View(model));
        }
Пример #3
0
        public ActionResult GetRequisitionDetailsByDateForGodown()
        {
            MainApplication model = new MainApplication();

            model.RequisitionForShopList    = TempData["Requisitionsgodowns"] as IEnumerable <RequisitionForShop>;
            TempData["Requisitionsgodowns"] = model.RequisitionForShopList;
            return(View(model));
        }
Пример #4
0
        public ActionResult GetCashierRefundOrderList()
        {
            MainApplication model = new MainApplication();

            model.CashierRefundOrderList   = TempData["CashierRefundOrder"] as IEnumerable <CashierRefundOrder>;
            TempData["CashierRefundOrder"] = model.CashierRefundOrderList;
            return(View(model));
        }
Пример #5
0
        public ActionResult GetCardChequeHandoverList()
        {
            MainApplication model = new MainApplication();

            model.CardChequeHandoverList   = TempData["CardChequeHandover"] as IEnumerable <CardChequeHandover>;
            TempData["CardChequeHandover"] = model.CardChequeHandoverList;
            return(View(model));
        }
Пример #6
0
        public ActionResult GetCashierTempCashMemoList()
        {
            MainApplication model = new MainApplication();

            model.CashierTemporaryCashMemoList = TempData["CashierTempCashMemo"] as IEnumerable <CashierTemporaryCashMemo>;
            TempData["CashierTempCashMemo"]    = model.CashierTemporaryCashMemoList;
            return(View(model));
        }
Пример #7
0
        public ActionResult GetCashierSalesBillList()
        {
            MainApplication model = new MainApplication();

            model.CashierSalesBillList   = TempData["CashierSalesBill"] as IEnumerable <CashierSalesBill>;
            TempData["CashierSalesBill"] = model.CashierSalesBillList;
            return(View(model));
        }
Пример #8
0
        public ActionResult GetSalesReturnByDate()
        {
            MainApplication model = new MainApplication();

            model.SalesReturnList    = TempData["SalesReturns"] as IEnumerable <SalesReturn>;
            TempData["SalesReturns"] = model.SalesReturnList;
            return(View(model));
        }
Пример #9
0
        public ActionResult GetPurchaseReturnByDate()
        {
            MainApplication model = new MainApplication();

            model.PurchaseReturnList    = TempData["PurchaseReturns"] as IEnumerable <PurchaseReturn>;
            TempData["PurchaseReturns"] = model.PurchaseReturnList;
            return(View(model));
        }
Пример #10
0
        public ActionResult GetRetailBillByDate()
        {
            MainApplication model = new MainApplication();

            model.RetailBillList   = TempData["RetailBill"] as IEnumerable <RetailBill>;
            TempData["RetailBill"] = model.RetailBillList;
            return(View(model));
        }
Пример #11
0
        public ActionResult GetDeliveryChallanList()
        {
            MainApplication model = new MainApplication();

            model.DeliveryChallanList    = TempData["DeliveryChallans"] as IEnumerable <DeliveryChallan>;
            TempData["DeliveryChallans"] = model.DeliveryChallanList;
            return(View(model));
        }
Пример #12
0
        public ActionResult GetSalesOrderList()
        {
            MainApplication model = new MainApplication();

            model.SalesOrderList    = TempData["SalesOrders"] as IEnumerable <SalesOrder>;
            TempData["SalesOrders"] = model.SalesOrderList;
            return(View(model));
        }
        public ActionResult GetPurchaseReturnDetails(string prno)
        {
            MainApplication model = new MainApplication();

            model.PurchaseReturnDetails  = _PurchaseReturnService.GetPurchaseByReturnNo(prno);
            model.PurchaseReturnItemList = _PurchaseReturnItemService.GetItemsByPurchaseReturnNo(model.PurchaseReturnDetails.PurchaseReturnNo);
            return(View(model));
        }
Пример #14
0
        public ActionResult GetStkDisDetailsForPrint(string stkdisno)
        {
            MainApplication model = new MainApplication();

            model.OutwardStkDisDetails  = _outwardstkdisservice.GetOutwardByCode(stkdisno);
            model.OutwardItemStkDisList = _outwarditemstkdisservice.GetItemsByOutwardCode(stkdisno);
            return(View(model));
        }
Пример #15
0
        //DISPLAY BILL ITEM DETAILS IN MAIN PAGE
        public ActionResult GetOutwardToTailorItemDetails(string OutwardNo)
        {
            MainApplication model = new MainApplication();

            model.OutwardToTailorDetails  = _OutwardToTailorService.GetDetailsByCode(OutwardNo);
            model.OutwardToTailorItemList = _OutwardToTailorItemService.GetRowsByCode(OutwardNo);
            return(View(model));
        }
Пример #16
0
 public TransactionEditDialog(UpdateTransactionRequest transactionRequest, MainApplication mainApplication)
 {
     InitializeComponent();
     _transactionController = new TransactionController();
     _transactionRequest    = transactionRequest;
     _mainform = mainApplication;
     SetTransaction();
 }
Пример #17
0
        private void LaunchMainApplication()
        {
            this.Hide();
            var form2 = new MainApplication();

            form2.Closed += (s, args) => this.Close();
            form2.Show();
        }
Пример #18
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            MyApplication = Application as MainApplication;
            var valueLayout = LayoutResource;

            SetContentView(valueLayout);
        }
Пример #19
0
        public ActionResult LoadNamesByTransportMode(string name)
        {
            MainApplication model = new MainApplication();

            model.TransportList   = _TransportMasterService.GetTransportByMode(name);
            TempData["TransList"] = model.TransportList;
            return(View(model));
        }
Пример #20
0
        public ActionResult DeletePartial(int Id)
        {
            MainApplication model = new MainApplication();

            model.DesignDetails             = _DesignService.GetById(Id);
            model.DesignDetails.DesignPhoto = "../DesignPhotos/" + model.DesignDetails.DesignPhoto;
            return(View(model));
        }
Пример #21
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.Transfers_SecondScreen);

            Presenter = MainApplication.Resolve <ITransfersPresenter>();
            SetHeader();
        }
        public ActionResult LoadDesignations()
        {
            MainApplication model = new MainApplication();

            model.DesignationList       = _DesignationMasterService.GetDesignations();
            TempData["DesignationList"] = model.DesignationList;
            return(View(model));
        }
Пример #23
0
        public ActionResult GetQuotationList()
        {
            MainApplication model = new MainApplication();

            model.QuotationList    = TempData["Quotations"] as IEnumerable <Quotation>;
            TempData["Quotations"] = model.QuotationList;
            return(View(model));
        }
Пример #24
0
        public static void Main(string[] args)
        {
            var platform = new Eto.Wpf.Platform();

            var app = new MainApplication(platform);

            app.Run(args);
        }
Пример #25
0
        public ActionResult Details(int id)
        {
            MainApplication model = new MainApplication();

            model.CommissionMasterDetails = _CommissionService.GetDetailsById(id);
            model.CommissionProductList   = _CommissionProductService.GetDetailsByCommCode(model.CommissionMasterDetails.CommissionCode);
            return(View(model));
        }
Пример #26
0
    public override void Init(MainApplication application)
    {
        this.application = application;
        PhotonNetwork.CurrentRoom.IsOpen = false;
        selfState = new RPSPlayerState();

        SyncInitCards();
    }
        public ActionResult PrintJobWorkStockOutwardwise()
        {
            MainApplication model = new MainApplication();

            model.JobWorkStockList = TempData["JobWorkStockListOutwardwise"] as IEnumerable <JobWorkStock>;
            TempData["JobWorkStockListOutwardwise"] = model.JobWorkStockList;
            return(View(model));
        }
        public ActionResult GetJobWorkStockDetailsByOutward(string outward)
        {
            MainApplication model = new MainApplication();

            model.JobWorkStockList = _JobWorkStockService.GetActiveRowsByOutwardNo(outward);
            TempData["JobWorkStockListOutwardwise"] = model.JobWorkStockList;
            return(View(model));
        }
Пример #29
0
 public ExpenditureTypeEditDialog(MainApplication mainForm, UpdateExpenditureRuleRequest updateExpenditureTypeRequest)
 {
     InitializeComponent();
     _expenditureController = new ExpenditureController();
     _mainForm = mainForm;
     _updateExpenditureTypeRequest = updateExpenditureTypeRequest;
     SetExpenditure();
 }
Пример #30
0
        public ActionResult LoadColorCodes()
        {
            MainApplication model = new MainApplication();

            model.ColorCodeList   = _ColorCodeService.getAllColorCode();
            TempData["ColorList"] = model.ColorCodeList;
            return(View(model));
        }
Пример #31
0
		/// <summary>
		/// Initializes a new instance of the <see cref= "T:WorldWind.PluginEngine.PluginCompiler"/> class.
		/// </summary>
		/// <param name="worldWind"></param>
		/// <param name="pluginDirectory"></param>
		public PluginCompiler( MainApplication worldWind, string pluginDirectory )
		{
			this.worldWind = worldWind;

			// Add the available codeDomProviders
			// TODO: Enumerate codeDomProviders (easier in .net 2.0)
			AddCodeProvider(new Microsoft.CSharp.CSharpCodeProvider() );
			AddCodeProvider(new Microsoft.VisualBasic.VBCodeProvider() );
			AddCodeProvider(new Microsoft.JScript.JScriptCodeProvider() );

			// Setup compiler parameters
			cp.GenerateExecutable = false;
			cp.GenerateInMemory = true;
			cp.IncludeDebugInformation = false;

			// Load all assemblies WW has a reference to
            AssemblyName[] assemblyNames = Assembly.GetExecutingAssembly().GetReferencedAssemblies();
			foreach(AssemblyName assemblyName in assemblyNames)
				Assembly.Load(assemblyName);

			// Reference all assemblies WW has loaded
			Assembly[] assemblies = AppDomain.CurrentDomain.GetAssemblies();
			foreach(Assembly assembly in assemblies)
			{
				try
				{
					if(assembly.Location.Length > 0)
						m_worldWindReferencesList.Add(assembly.Location);
				}
				catch(NotSupportedException) 
				{
					// In-memory compiled assembly etc.
				}
			}
            string externalConfigPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "ExternalDLL.ini");
            StreamReader sr = new StreamReader(externalConfigPath);
            string[] dllPatterns = sr.ReadToEnd().Split('\n');
            sr.Close();
            sr.Dispose();
            foreach (string dll in dllPatterns)
            {
                String[] dataVisualizationFiles = Directory.GetFiles(AppDomain.CurrentDomain.BaseDirectory, dll);
                foreach (string file in dataVisualizationFiles)
                {
                    try
                    {
                        if (file.Length > 0)
                            m_worldWindReferencesList.Add(file);
                    }
                    catch (NotSupportedException)
                    {
                        // In-memory compiled assembly etc.
                    }
                }
            }
			PluginRootDirectory = pluginDirectory;
		}
Пример #32
0
		/// <summary>
		/// Initializes a new instance of the <see cref= "T:WorldWind.PluginEngine.PluginCompiler"/> class.
		/// </summary>
		/// <param name="worldWind"></param>
		/// <param name="pluginDirectory"></param>
		public PluginCompiler( MainApplication worldWind, string pluginDirectory )
		{
			this.worldWind = worldWind;

			// Add the available codeDomProviders
			// TODO: Enumerate codeDomProviders (easier in .net 2.0)
			AddCodeProvider(new Microsoft.CSharp.CSharpCodeProvider() );
			AddCodeProvider(new Microsoft.VisualBasic.VBCodeProvider() );
			AddCodeProvider(new Microsoft.JScript.JScriptCodeProvider() );

			// Setup compiler parameters
			cp.GenerateExecutable = false;
			cp.GenerateInMemory = true;
			cp.IncludeDebugInformation = false;

			// Load all assemblies WW has a reference to
			AssemblyName[] assemblyNames = Assembly.GetExecutingAssembly().GetReferencedAssemblies();
			foreach(AssemblyName assemblyName in assemblyNames)
				Assembly.Load(assemblyName);

			// Reference all assemblies WW has loaded
			Assembly[] assemblies = AppDomain.CurrentDomain.GetAssemblies();
			foreach(Assembly assembly in assemblies)
			{
				try
				{
					if(assembly.Location.Length > 0)
						m_worldWindReferencesList.Add(assembly.Location);
				}
				catch(NotSupportedException) 
				{
					// In-memory compiled assembly etc.
				}
			}

			PluginRootDirectory = pluginDirectory;
		}
Пример #33
0
		static void Main(string[] args)
		{
			try
			{
				// Establish the version number string used for user display,
				// such as the Splash and Help->About screens.
				// To change the Application.ProductVersion make the
				// changes in \WorldWind\AssemblyInfo.cs
				// For alpha/beta versions, include " alphaN" or " betaN"
				// at the end of the format string.
				Version ver = new Version(Application.ProductVersion);
				Release = string.Format("{0}.{1}.{2}.{3}", ver.Major, ver.Minor, ver.Build, ver.Revision);

				// If World Wind is already running, pass any commandline
				// arguments from this instance, and quit.
				IntPtr handle = GetWWHandle();
				if (!System.IntPtr.Zero.Equals(handle))
				{
					if(args.Length>0)
						NativeMethods.SendArgs( handle, string.Join("\n",args) );
					return;
				}

				// abort if 50 bindings problem present and user opts to go to the download page
				if(BindingsCheck.FiftyBindingsWarning()) return;

                // Name the main thread
                System.Threading.Thread.CurrentThread.Name = "Main Thread";

				// ParseArgs may set values that are used elsewhere,
				// such as startFullScreen and CurrentSettingsDirectory.
				ParseArgs(args);

				if(CurrentSettingsDirectory == null)
				{
					// load program settings from default directory
					LoadSettings();
					World.LoadSettings();
				}
				else
				{
					LoadSettings(CurrentSettingsDirectory);
					World.LoadSettings(CurrentSettingsDirectory);
				}

				Application.ThreadException += new ThreadExceptionEventHandler(Application_ThreadException);

				MainApplication app = new MainApplication();
				Application.Idle += new EventHandler(app.WorldWindow.OnApplicationIdle);
				Application.Run(app);

				// Save World settings
				World.Settings.Save();

				// Encrypt encoded user credentials before saving program settings
				DataProtector dp = new DataProtector(DataProtector.Store.USE_USER_STORE);
				Settings.ProxyUsername = dp.TransparentEncrypt(Settings.ProxyUsername);
				Settings.ProxyPassword = dp.TransparentEncrypt(Settings.ProxyPassword);

				// Save program settings
				Settings.Save();
			}
			catch (NullReferenceException)
			{
				// HACK
			}
			// uncomment this if you want easy debugging ;)
			//#if !DEBUG
			catch (Exception caught)
			{
				Exception e;
				string errorMessages;
				try
				{
					// log the error
					Log.Write(caught);
				}
				catch
				{
					// ignore errors while trying to write the error to the log
				}
				finally
				{
					e = caught;
					errorMessages = "The following error(s) occurred:";
					do
					{
						errorMessages += "\r\n" + e.Message;
						e = e.InnerException;
					}
					while( e != null );
					Abort(errorMessages);
				}
			}
			//#endif
		}
		public GPSTrackerOverlay(GpsTrackerPlugin plugin) : base("GPSTracker")
		{
			this.Plugin = plugin;
            ParentApplication = plugin.ParentApplication;

            //
            //Set an original size for the arrays
            m_uIconResize=1;
            m_uPOIResize=1;
            m_uTrackResize=1;
            m_uGeoFenceResize = 1;
            m_gpsIcons = new GPSIcon[m_uIconResize];
            m_gpsPOI = new GPSIcon[m_uPOIResize];
            m_gpsTrack = new GPSTrackLine[m_uTrackResize];
            m_gpsGeoFence = new GPSGeoFence[m_uGeoFenceResize];

			gpsTrackerInfo=null;
			m_iGpsPOIIndex=0;
			m_iGpsIconIndex=0;
            m_iGpsGeoFenceIndex = 0;

			// true to make this layer active on startup, this is equal to the checked state in layer manager
			IsOn = false;
		}
		public SatelliteTrackerOverlay(SatelliteTrackerPlugin plugin, string overlayname, string tleURL): base(overlayname)
		{
			this.tlepath = tleURL;
			this.Plugin = plugin;
			ParentApplication = plugin.ParentApplication;

			// true to make this layer active on startup, this is equal to the checked state in layer manager
			IsOn = false;
		}
 public AppComponent(MainApplication app)
 {
     appModule = new AppModule(app);
 }