private void btsave_Click(object sender, EventArgs e)
        {
            if (Validation_Form() == true)
            {
                DataTable theDT = new DataTable();
                theDT.Columns.Add("SubTestId", typeof(int));
                theDT.Columns.Add("SubTestName", typeof(string));
                theDT.Columns.Add("Lionccode", typeof(string));
                theDT.Columns.Add("TestLocation", typeof(int));
                theDT.Columns.Add("EffectiveDate", typeof(DateTime));
                theDT.Columns.Add("TestCostPrice", typeof(float));
                theDT.Columns.Add("TestMargin", typeof(float));
                theDT.Columns.Add("TestSellingPrice", typeof(float));
                theDT.Columns.Add("OutsrcLocation", typeof(string));
                theDT.Columns.Add("Status", typeof(string));
                ///////////////////////////
                DataRow theDRow = theDT.NewRow();
                theDRow["SubTestId"]        = GblIQCare.LabTestId;
                theDRow["SubTestName"]      = txtDisplayName.Text;
                theDRow["Lionccode"]        = txtlionccode.Text;
                theDRow["TestLocation"]     = cmbTestLocation.SelectedValue;
                theDRow["EffectiveDate"]    = String.Format("{0:dd-MMM-yyyy}", dtpEffectiveDate.Text);
                theDRow["TestCostPrice"]    = txtCost.Text;
                theDRow["TestMargin"]       = txtMarginpect.Text;
                theDRow["TestSellingPrice"] = txtsellingprice.Text;
                theDRow["OutsrcLocation"]   = txtOutSrcLoc.Text;
                theDRow["Status"]           = cmbStatus.SelectedItem;
                //theDRow["FundingEndDate"] = String.Format("{0:dd-MMM-yyyy}", dtpEndDate.Text);
                theDT.Rows.Add(theDRow);
                theDT.AcceptChanges();

                ILaboratory objLaboratory = (ILaboratory)ObjectFactory.CreateInstance("BusinessProcess.SCM.BLaboratory,BusinessProcess.SCM");
                int         retrows       = objLaboratory.SaveUpdateLabConfiguration(theDT, GblIQCare.AppUserId);
                IQCareWindowMsgBox.ShowWindow("ProgramSave", this);

                Form theForm = (Form)Activator.CreateInstance(Type.GetType("IQCare.SCM.frmLabItemDetails, IQCare.SCM"));
                theForm.MdiParent = this.MdiParent;
                theForm.Left      = 0;
                theForm.Top       = 0;
                this.Close();
                GblIQCare.LabTestId = 0;
                theForm.Show();
            }
        }
示例#2
0
 public EstateOwnService(IShipyard shipyard,
                         ILaboratory laboratory,
                         IIndustrialComplex industrialComplex,
                         ICommandCenter commandCenter,
                         ISynchronizer synchronizer,
                         IMothershipService mothershipService,
                         IUMotherJumpService motherJumpService,
                         IGameUserService gameUserService,
                         IStoreService storeService,
                         IGDetailPlanetService detailPlanetService, ILocalizerService localizer)
 {
     _shipyard            = shipyard;
     _laboratory          = laboratory;
     _industrialComplex   = industrialComplex;
     _commandCenter       = commandCenter;
     _synchronizer        = synchronizer;
     _mothershipService   = mothershipService;
     _motherJumpService   = motherJumpService;
     _gameUserService     = gameUserService;
     _storeService        = storeService;
     _detailPlanetService = detailPlanetService;
     _localizer           = localizer;
 }
示例#3
0
        public MainGameHub(IServiceProvider svp)
        {
            #region Main

            _svp      = svp;
            _hubCache = _svp.GetService <IMainGameHubLocalStorageCache>();

            #endregion

            #region Main User

            _gameUserService = _svp.GetService <IGameUserService>();
            _allianceService = _svp.GetService <IAllianceService>();
            _channelService  = (ChannelService)_svp.GetService <IChannelService>();

            _mothershipService = _svp.GetService <IMothershipService>();
            _motherJumpService = _svp.GetService <IUMotherJumpService>();
            _storeService      = _svp.GetService <IStoreService>();

            #endregion

            #region World

            _gameTypeService        = _svp.GetService <IGameTypeService>();
            _gGeometryPlanetService = _svp.GetService <IGGeometryPlanetService>();
            _gDetailPlanetService   = _svp.GetService <IGDetailPlanetService>();
            _gSectorsService        = _svp.GetService <IGSectorsService>();
            _mapInfoService         = _svp.GetService <IMapInfoService>();
            _systemService          = _svp.GetService <ISystemService>();
            _worldService           = _svp.GetService <IWorldService>();
            _gUserBookmarkService   = (GUserBookmarkService)_svp.GetService <IGUserBookmarkService>();

            #endregion

            #region builds

            //collections
            _commandCenter     = _svp.GetService <ICommandCenter>();
            _industrialComplex = _svp.GetService <IIndustrialComplex>();
            _laboratory        = _svp.GetService <ILaboratory>();
            _shipyard          = _svp.GetService <IShipyard>();


            //items
            _energyConverter  = _svp.GetService <IEnergyConverter>();
            _extractionModule = _svp.GetService <IExtractionModule>();
            _extractionModule = _svp.GetService <IExtractionModule>();
            _spaceShipyard    = _svp.GetService <ISpaceShipyard>();
            _storage          = _svp.GetService <IStorage>();
            _turels           = _svp.GetService <ITurels>();

            //common
            _unit                    = _svp.GetService <IUnit>();
            _storageResources        = _svp.GetService <IStorageResourcesService>();
            _transferResourceService = _svp.GetService <ITransferResourceService>();

            #endregion

            #region Global User

            _estateOwnService  = _svp.GetService <IEstateOwnService>();
            _synchronizer      = _svp.GetService <ISynchronizer>();
            _estateListService = _svp.GetService <IEstateListService>();
            _journalOutService = _svp.GetService <IJournalOutService>();
            _gameRunner        = _svp.GetService <IGameRunner>();
            _dbProvider        = _svp.GetService <IDbProvider>();

            #endregion

            #region Confederation

            _confederationService = _svp.GetService <IConfederationService>();

            #endregion
        }
示例#4
0
 public LabMenu(ILaboratory chemLaboratory, IStorage myStorage)
 {
     this.chemLaboratory = chemLaboratory;
     this.myStorage      = myStorage;
 }
 public StoreSampleMinPriorityOperation(ILaboratory laboratory)
 {
     this.laboratory = laboratory;
 }
示例#6
0
 public LeftSampleOperation(ILaboratory laboratory)
 {
     this.laboratory = laboratory;
 }
示例#7
0
 public ArriveSampleOperation(ILaboratory laboratory)
 {
     this.laboratory = laboratory;
 }