public void Test_References_OwnersContries() { TransferWagons.Railcars.ReferencesKIS refer = new TransferWagons.Railcars.ReferencesKIS(); //Console.WriteLine("Украина 1= {0}", refer.DefinitionIDOwnersContries(22)); //Console.WriteLine("Null = {0}", refer.DefinitionIDOwnersContries(0)); //int? new_oc = refer.DefinitionIDOwnersContries(100); //Console.WriteLine("США ID = {0}", new_oc); }
public void Test_References_Gruzs() { TransferWagons.Railcars.ReferencesKIS refer = new TransferWagons.Railcars.ReferencesKIS(); //Console.WriteLine("Уголь марки Ж 1= {0}", refer.DefinitionIDGruzs(285, null) ); //Console.WriteLine("порожний 111= {0}", refer.DefinitionIDGruzs(null,9)); //Console.WriteLine("null= {0}", refer.DefinitionIDGruzs(null, null)); //Console.WriteLine("null= {0}", refer.DefinitionIDGruzs(285, 9)); //Console.WriteLine("Уголь каменный = {0}", refer.DefinitionIDGruzs(161005)); //Console.WriteLine("Уголь каменный = {0}", refer.DefinitionIDGruzs(16100)); Console.WriteLine("Зерно кукурузы = {0}", refer.DefinitionIDGruzs(null, 589)); }
public void Test_References_Owner() { TransferWagons.Railcars.ReferencesKIS refer = new TransferWagons.Railcars.ReferencesKIS(); //refer.DefinitionIDOwner(53,null); Console.WriteLine("Новая перевозочная компания 123 = {0}", refer.DefinitionIDOwner(53, null)); Console.WriteLine("Null = {0}", refer.DefinitionIDOwner(0, null)); int?new_ow = refer.DefinitionIDOwner(-1, null); Console.WriteLine("Новый (-1) = {0}", new_ow); if (new_ow != null) { RC_Owners ow = new RC_Owners(); OWNERS ow_del = ow.DeleteOwners((int)new_ow); } }
public void Test_References_Vagon() { TransferWagons.Railcars.ReferencesKIS refer = new TransferWagons.Railcars.ReferencesKIS(); //Console.WriteLine("вагон id (917664) = {0}", refer.DefinitionIDVagon(67166710, DateTime.Now)); ////Console.WriteLine("Новый вагон #67669887 = {0}", refer.DefinitionIDVagon(67669887, DateTime.Now)); //Console.WriteLine("Null = {0}", refer.DefinitionIDVagon(0, DateTime.Now)); //int? new_vag = refer.DefinitionIDVagon(67669887, DateTime.Now); //Console.WriteLine("Новыйвагон #67669887 ID = {0}", new_vag); //if (new_vag != null) //{ // RC_Vagons vag = new RC_Vagons(); // VAGONS vag_del = vag.DeleteVAGONS((int)new_vag); //} }
public void Test_References_SynchronizeWagons(int day) { TransferWagons.Railcars.ReferencesKIS refer = new TransferWagons.Railcars.ReferencesKIS(); refer.SynchronizeWagons(day); }