public IHttpActionResult PutMASTER(int id, MASTER mASTER) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } if (id != mASTER.SubjectId) { return(BadRequest()); } db.Entry(mASTER).State = EntityState.Modified; try { db.SaveChanges(); } catch (DbUpdateConcurrencyException) { if (!MASTERExists(id)) { return(NotFound()); } else { throw; } } return(StatusCode(HttpStatusCode.NoContent)); }
void Start() { m_MyAudioSource = GetComponent <AudioSource>(); myController = MASTER.Instance(); m_Material = GetComponent <Renderer>().material; basisfarbe = m_Material.GetColor("_BaseColor"); }
public static MASTER Instance() { if (!myPf) { myPf = FindObjectOfType(typeof(MASTER)) as MASTER; } return(myPf); }
public FormDEPARTMENT(MASTER.FormDEPARTMENT _frm, int Type, RMS.COMMON.MASTER.RMS_DEPARTMENT obj) { this.frm = _frm; this.Type = Type; InitializeComponent(); if (Type == 1) { LOAD_DATA(obj); } }
public IHttpActionResult GetMASTER(int id) { MASTER mASTER = db.MASTERs.Find(id); if (mASTER == null) { return(NotFound()); } return(Ok(mASTER)); }
public FormMARKETING(MASTER.FormMARKETING _frm, int Type, RMS.COMMON.MASTER.RMS_MARKETING obj) { InitializeComponent(); this.frm = _frm; this.Type = Type; txtKODE.Text = GETKODE(); if (Type == 1) { LOAD_DATA(obj); } }
public FormAREA(MASTER.FormKOTA _frm, int Type, RMS.COMMON.MASTER.RMS_KOTA obj) { InitializeComponent(); this.frm = _frm; this.Type = Type; if (Type == 1) { LOAD_DATA(obj); } }
public FormSALES(MASTER.FormSALES _frm, int Type, RMS.COMMON.MASTER.RMS_SALES obj) { InitializeComponent(); this.frm = _frm; this.Type = Type; if (Type == 1) { LOAD_DATA(obj); } }
public FormPENERIMA(MASTER.FormPENERIMA _frm, int _Type, RMS.COMMON.MASTER.RMS_PENERIMA obj) { InitializeComponent(); this.frm = _frm; this.Type = _Type; cboTYPE.Text = "RETAIL"; if (Type == 1) { LOAD_DATA(obj); } }
public FormGUDANG(MASTER.FormGUDANG _frm, int Type, RMS.COMMON.MASTER.RMS_GUDANG obj) { InitializeComponent(); this.Type = Type; this.frm = _frm; if (Type == 1) { LOAD_DATA(obj); } }
public IHttpActionResult PostMASTER(MASTER mASTER) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } db.MASTERs.Add(mASTER); db.SaveChanges(); return(CreatedAtRoute("DefaultApi", new { id = mASTER.SubjectId }, mASTER)); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void testMasterMasterIsAvailable() public virtual void TestMasterMasterIsAvailable() { // CASE 1: Got MasterIsAvailable for someone else - should fail. HighAvailabilityMemberState illegal = MASTER.masterIsAvailable(_context, new InstanceId(2), SampleUri); assertEquals(ILLEGAL, illegal); // CASE 2: Got MasterIsAvailable for us - it's ok, should pass HighAvailabilityMemberState newState = MASTER.masterIsAvailable(_context, _myId, SampleUri); assertEquals(MASTER, newState); }
public FormSUPPLIER(MASTER.FormSUPPLIER _frm, int Type, RMS.COMMON.MASTER.RMS_SUPPLIER obj) { InitializeComponent(); this.frm = _frm; this.Type = Type; cboHANDLING.Text = "DELIVERY"; txtKODE.Text = GETKODE(); if (Type == 1) { LOAD_DATA(obj); } }
public FormKENDARAAN(MASTER.FormKENDARAAN _frm, int _Type, RMS.COMMON.MASTER.RMS_KENDARAAN obj) { InitializeComponent(); this.frm = _frm; Type = _Type; loadCOMBO(); if (Type == 1) { LOAD_DATA(obj); } }
public FormDRIVERHELPER(MASTER.FormDRIVER _frm, int _Type, RMS.COMMON.MASTER.RMS_DRIVER obj) { InitializeComponent(); this.frm = _frm; this.Type = _Type; txtKODE.Text = GETKODE(); txtKODE.ReadOnly = true; if (Type == 1) { LOAD_DATA(obj); } }
public FormVIEWBANK(MASTER.SUBMASTER.FormSUPPLIER _frm, MASTER.SUBMASTER.FormCUSTOMER _frmC, MASTER.SUBMASTER.FormMEMBER _frmM, int _Type) { InitializeComponent(); this.frm = _frm; this.frmC = _frmC; this.frmM = _frmM; this.Type = _Type; LOAD_DATA(); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void testMasterSlaveIsAvailable() public virtual void TestMasterSlaveIsAvailable() { // CASE 1: Got SlaveIsAvailable for me - should fail. HighAvailabilityMemberState illegal = MASTER.slaveIsAvailable(_context, _myId, SampleUri); assertEquals(ILLEGAL, illegal); // CASE 2: Got SlaveIsAvailable for someone else - who cares? Should succeed. HighAvailabilityMemberState newState = MASTER.slaveIsAvailable(_context, new InstanceId(2), SampleUri); assertEquals(MASTER, newState); }
public FormPRICELIST(MASTER.FormPRICELIST _frm, int Type, RMS.COMMON.MASTER.RMS_PRICELIST obj) { InitializeComponent(); this.frm = _frm; this.Type = Type; if (Type == 1) { // LOAD_DATA(obj); } loadCOMBO(); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void testMasterMasterIsElected() public virtual void TestMasterMasterIsElected() { // CASE 1: Got MasterIsElected for me. Should remain master. HighAvailabilityMemberState newState = MASTER.masterIsElected(_context, _myId); assertEquals(MASTER, newState); // CASE 2: Got MasterIsElected for someone else. Should switch to pending. HighAvailabilityMemberState newStateCase2 = MASTER.masterIsElected(_context, new InstanceId(2)); assertEquals(PENDING, newStateCase2); }
public FormCUSTOMER(MASTER.FormCUSTOMER _frm, int _Type, RMS.COMMON.MASTER.RMS_CUSTOMER obj) { InitializeComponent(); this.frm = _frm; this.Type = _Type; txtKODE.Text = GETKODE(); txtKODE.ReadOnly = true; cboTYPE.Text = "RETAIL"; if (Type == 1) { LOAD_DATA(obj); } }
public FormVIEWKOTAEXPRESS(MASTER.FormTARIF _frm, string namaField, int _type) { InitializeComponent(); this.frm = _frm; type = _type; if (type == 1) { this.frm = _frm; } _namaField = namaField; ; LOAD_DATA(); }
public IHttpActionResult DeleteMASTER(int id) { MASTER mASTER = db.MASTERs.Find(id); if (mASTER == null) { return(NotFound()); } db.MASTERs.Remove(mASTER); db.SaveChanges(); return(Ok(mASTER)); }
public FormTERUSAN(MASTER.FormKOTA _frm, int Type, RMS.COMMON.MASTER.RMS_KOTA obj) { InitializeComponent(); this.frm = _frm; this.Type = Type; if (Type == 0) { LOAD_DATAKOTA(obj); } else { LOAD_DATAKOTA(obj); //LOAD_DATAKOTA(obj); } }
public FormVIEWAGENT(DELIVERYORDER.FormDATAENTRY _frm, MASTER.SUBMASTER.FormPRICELIST _frmPRICELIST, string _field, int _type,RMS.COMMON.MASTER.RMS_PRICELISTAGENT obj) { InitializeComponent(); type = _type; if (type == 1) { this.frm = _frm; cc = obj; } else { this.frmPRICELIST = _frmPRICELIST; } field = _field; if (field == "SMU") { cc.JNSCOST = "FREIGHT"; } else if (field == "SHIPPING") { cc.JNSCOST = "SHIPPING"; } else if (field == "DELIVERY") { cc.JNSCOST = "DELIVERY"; } else if (field == "WAREHOUSE") { cc.JNSCOST = "WAREHOUSING"; } else if (field == "RA") { cc.JNSCOST = "RA"; } else if (field == "TRUCKING") { cc.JNSCOST = "TRUCKING"; } else { cc.JNSCOST = "GRDH"; } cc.ISAKTIF = true; LOAD_DATA(); this.txtCARI.Focus(); }
public FormDRIVERHELPER(MASTER.SUBMASTER.FormKENDARAAN _frm, EXPRESS.FormENTRYPENGIRIMANBARANG frm, string namaField, int _type) { InitializeComponent(); type = _type; if (type == 1) { this.frm = _frm; }else { this.frmPENGIRIMANBARANG = frm;} _namaField = namaField; ; if (_namaField == "DRIVER") { c.STATUS = false; // driver 0 } else { c.STATUS = true; // helper 1 } LOAD_DATA(); }
// Use this for initialization void Start() { // THE MASTER ///////////////////// // designed as a easy user input for designer master = FindObjectOfType <MASTER> (); Observer = FindObjectOfType <OBSERVER> (); //////////////////////////////////// worldSizeX = master.worldSizeX; worldSizeZ = master.worldSizeZ; worldSizeY = master.worldSizeY; gameManager = FindObjectOfType <GameManager> (); GridLocToWorldLocLookup = new Hashtable(); GridLocToGridObjLookup = new Hashtable(); pathfindingCubeList = new Hashtable(); // SPAWN // spawn = Instantiate(spawnPrefab, transform, false); //////////////// }
//public bool[,] basicMapGrid; ////////////////////////////// // Use this for initialization void Start() { // THE MASTER ///////////////////// // designed as a easy user input for designer master = FindObjectOfType <MASTER> (); //////////////////////////////////// worldSizeX = master.worldSizeX; worldSizeZ = master.worldSizeZ; worldSizeY = master.worldSizeY; totalMapCountPerLayer = (worldSizeX * worldSizeZ); gameManagerScript = FindObjectOfType <GameManager> (); // Where maps are placed //basicMapGrid = new bool[worldSizeZ, worldSizeX]; // SPAWN // spawn = Instantiate(spawnPrefab, transform, false); //////////////// ResetComponents(); }
//private GUIController guiController; //private TestPlayerScript testPlayerScript; //public bool layMaps; //public bool activateGrid; //public bool deactivateGrid; //public List<GameObject[,]> WorldGrid_CubeRef_LayersList; //public bool GAMESTART = false; // Use this for initialization void Start() { // THE MASTER ///////////////////// // designed as a easy user input for designer master = FindObjectOfType <MASTER> (); observer = FindObjectOfType <OBSERVER> (); //////////////////////////////////// worldSizeX = master.worldSizeX; worldSizeZ = master.worldSizeZ; worldSizeY = master.worldSizeY; totalCubesInX = worldSizeX * numCubesInX; totalCubesInZ = worldSizeZ * numCubesInZ; totalCubesInY = worldSizeY * numCubesInY; gridManager = FindObjectOfType <GridManager> (); //mapManager = FindObjectOfType<MapManager> (); cubeManager = FindObjectOfType <CubeManager> (); //guiController = FindObjectOfType<GUIController> (); //testPlayerScript = FindObjectOfType<TestPlayerScript> (); //WorldGrid_CubeRef_LayersList = new List<GameObject[,]>(); //////////////////////////// // if (activateGrid) { // layMaps = false; // activateGrid = true; // GAMEMASTER_GridStart (); // } else if (layMaps) { // layMaps = true; // activateGrid = false; // GAMEMASTER_MapStart (); // } GAMEMASTER_GridStart(); }
// Use this for initialization void Start() { // THE MASTER ///////////////////// // designed as a easy user input for designer master = FindObjectOfType <MASTER> (); Observer = FindObjectOfType <OBSERVER> (); //////////////////////////////////// worldSizeX = master.worldSizeX; worldSizeZ = master.worldSizeZ; worldSizeY = master.worldSizeY; gameManager = FindObjectOfType <GameManager> (); gridManager = FindObjectOfType <GridManager> (); GridLocToCubeObjLookup = new Hashtable(); // case 0: Empty // case 1: Floor // case 2: Left // case 3: Front // case 4: Right // case 5: Back // case 6: Ceiling // case 7: Floor Left Back // case 8: Floor Left // case 9: Floor Left Front // case 10: Floor front // case 11: Floor Front Right // case 12: Floor Right // case 13: Floor Right Back // case 14: Floor Back // case 15: Left Back // case 16: Left Front // case 17: Front Right // case 18: Right Back // LOOK AT THESE AS UNDERNEATH MAPS // First Floor floors.Add(new int[, ] { // { 07, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 13}, // { 08, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 12}, // { 08, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 12}, // { 08, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 12}, // { 08, 01, 01, 01, 01, 01, 12, 01, 01, 01, 01, 12}, // { 08, 01, 01, 01, 01, 01, 12, 01, 01, 01, 01, 12}, // { 08, 01, 01, 01, 01, 01, 12, 01, 01, 01, 01, 12}, // { 08, 01, 01, 01, 01, 01, 12, 01, 01, 01, 01, 12}, // { 08, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 12}, // { 08, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 12}, // { 08, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 12}, // { 09, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11} { 07, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 13 }, { 08, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 12 }, { 08, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 12 }, { 08, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 12 }, { 08, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 12 }, { 08, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 12 }, { 08, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 12 }, { 08, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 12 }, { 08, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 12 }, { 08, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 12 }, { 08, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 12 }, { 09, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11 } }); // second Floor floors.Add(new int[, ] { // { 15, 05, 05, 05, 05, 05, 05, 05, 05, 05, 05, 18}, // { 02, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 04}, // { 02, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 04}, // { 02, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 04}, // { 02, 00, 00, 00, 00, 00, 04, 00, 00, 00, 00, 04}, // { 02, 00, 00, 00, 00, 00, 04, 00, 00, 00, 00, 04}, // { 02, 00, 00, 00, 00, 00, 04, 00, 00, 00, 00, 04}, // { 02, 00, 00, 00, 00, 00, 04, 00, 00, 00, 00, 04}, // { 02, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 04}, // { 02, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 04}, // { 02, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 04}, // { 16, 03, 03, 03, 03, 03, 03, 03, 03, 03, 03, 17}, { 15, 05, 05, 05, 05, 05, 05, 05, 05, 05, 05, 18 }, { 02, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 04 }, { 02, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 04 }, { 02, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 04 }, { 02, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 04 }, { 02, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 04 }, { 02, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 04 }, { 02, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 04 }, { 02, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 04 }, { 02, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 04 }, { 02, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 04 }, { 16, 03, 03, 03, 03, 03, 03, 03, 03, 03, 03, 17 }, }); // third Floor floors.Add(new int[, ] { { 15, 05, 05, 05, 05, 05, 05, 05, 05, 05, 05, 18 }, { 02, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 04 }, { 02, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 04 }, { 02, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 04 }, { 02, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 04 }, { 02, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 04 }, { 02, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 04 }, { 02, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 04 }, { 02, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 04 }, { 02, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 04 }, { 02, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 04 }, { 16, 03, 03, 03, 03, 03, 03, 03, 03, 03, 03, 17 }, }); }