This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public virtual void MakeSound() | |
{ | |
Console.WriteLine("The animal makes a sound"); | |
} | |
public override void MakeSound() | |
{ | |
Console.WriteLine("The cat meows"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--WebForm | |
<html> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<style> | |
/* Popup container - can be anything you want */ | |
.popup { | |
position: relative; | |
display: inline-block; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public (string, int) FindInsertProc(int upcId, int store, DateTime endDate) | |
{ | |
var globalDB = new GlobalDBUtilities(); | |
var parameters = new List<OracleParameter> | |
{ | |
globalDB.OracleParameterWithValue(":Vupc_id", OracleDbType.Int32, upcId), | |
globalDB.OracleParameterWithValue(":Vstore", OracleDbType.Int32, store), | |
globalDB.OracleParameterWithValue(":Beg_date", OracleDbType.Date, DateTime.Now), | |
globalDB.OracleParameterWithValue(":End_date", OracleDbType.Date, endDate), | |
globalDB.OracleParameterWithValue(":Data_source", OracleDbType.Varchar2, "SHELFMAN"), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Formatted on 2/1/2024 10:10:51 AM (QP5 v5.381) */ | |
DELETE FROM IMPROD.SM_SYS_MENU_STORES | |
WHERE 1 = 1; | |
DECLARE | |
CURSOR stores IS | |
SELECT STORE | |
FROM improd.store a | |
WHERE store_status = 0 | |
AND pos_close_Date IS NULL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Associate (link/bind) an ESL to an item | |
/// </summary> | |
/// <param name="store">Store Number</param> | |
/// <param name="itemID">Item Identifier</param> | |
/// <param name="eslID">ESL Identifier</param> | |
/// <returns>Link response</returns> | |
public HanshowIntegrationResponse Pair(int store, string itemID, string eslID, string useFamilyDescription, string userId) | |
{ | |
try |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (HttpContext.Current.Cache.Get("ef_results") == null) | |
{ | |
var results = null; // todo: get results from EF | |
HttpContext.Current.Cache.Add("ef_results", // cache key | |
results, // cache value | |
null, // dependencies | |
System.Web.Caching.Cache.NoAbsoluteExpiration, // absolute expiration | |
TimeSpan.FromMinutes(30)); // sliding expiration | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Formatted on 2/1/2024 10:10:51 AM (QP5 v5.381) */ | |
DELETE FROM IMPROD.SM_SYS_MENU_STORES | |
WHERE 1 = 1; | |
DECLARE | |
CURSOR stores IS | |
SELECT STORE | |
FROM improd.store a | |
WHERE store_status = 0 | |
AND pos_close_Date IS NULL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MERGE INTO IMPROD.SM_TRAILER_CONTROL_LOG a | |
USING (SELECT :trailerId AS i_trailer_id, | |
:outboundSealNumber AS o_outbound_seal_nbr | |
FROM DUAL | |
) b | |
ON (a.TRAILER_ID = b.I_trailer_id | |
and a.outbound_seal_nbr = o_outbound_seal_nbr) | |
WHEN MATCHED | |
THEN | |
UPDATE SET a.INBOUND_SEAL_NBR = b.O_outbound_seal_nbr, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://maps.google.com/maps?q=[address] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (this.HOPolicyType == HOPolicyType_HOE.TC_HO3 or this.HOPolicyType == HOPolicyType_HOE.TC_HO6) { | |
if (this.ConstructionType != ConstructionType_HOE.TC_L and this.HODW_Earthquake_HOEExists and this.HODW_Loss_Earthquake_HOEExists) { | |
bool = true; | |
} | |
} | |
return bool; |