This file contains hidden or 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
function func_is_positiveInt(checkValue){ | |
var status = false; | |
var number = Number(checkValue.replace(/[^0-9.]/g, "")); | |
if (Number.isInteger(number)){ | |
if (number > 0){ | |
status = true; | |
} | |
} | |
return status; | |
} |
This file contains hidden or 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
<div class="break15px">   </div> | |
<div id="content" class="bg_form div_row"> | |
<asp:Button CssClass="button_highlighted" ID="btn_create_event" runat="server" Text="ایجاد پیامک مناسبت" /> | |
<div class="searchWrap div_two_column"> | |
<div class="search"> | |
<input type="text" class="searchTerm" placeholder="جستجو ؟ " /> | |
<button type="submit" class="searchButton"> | |
<i class="fa fa-search"></i> | |
</button> | |
</div> |
This file contains hidden or 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 T ExecUDF_scalar<T>(string UDFName, string[] ParamNames, object[] ParamValues) | |
{ | |
try | |
{ | |
SqlCommand Comm = new SqlCommand(); | |
Comm.Connection = MyConnection; | |
Comm.CommandText = string.Format("SELECT [dbo].[{0}] ({1}) ", UDFName, string.Join(",",ParamNames)); | |
Comm.Parameters.Clear(); | |
for (int i = 0; i < ParamNames.Length; i++) |
This file contains hidden or 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
private string Stringify(string[] list,string seprator) { | |
string result = string.Empty; | |
/* | |
var result = list | |
.Skip(1) | |
.Aggregate( | |
list.FirstOrDefault() ?? string.Empty, | |
(total, current) => total + "," + current); | |
*/ |
This file contains hidden or 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
.module_path{ | |
background-attachment: scroll; | |
background-color: #f0f0f0; | |
background-image: url("images/txtbg.png"); | |
background-repeat: repeat-x; | |
border: 1px solid #acacac; | |
border-radius: 6px; | |
color: #6c6c6c; | |
font-family: Tahoma; | |
font-size: 11px; |
This file contains hidden or 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
//#region delayed iterate | |
function Func_Delayed_iterate_timer(ms){ | |
return new Promise(r=>setTimeout(r,ms)); | |
} | |
async function Func_Delayed_iterate(iterate,delay) { | |
for (var i = 0; i < iterate; i++) { | |
process.stdout.write(`index ${i} \n`); | |
await Func_Delayed_iterate_timer(delay); | |
} | |
} |
This file contains hidden or 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 T GET_FIRST_OR_DEFAULT<T>(DataSet dataset) | |
{ | |
return GET_FIRST_OR_DEFAULT<T>(dataset, default(T)); | |
} | |
public T GET_FIRST_OR_DEFAULT<T>(DataSet dataset, T defaultValue) | |
{ | |
bool status = true; | |
if (dataset.Tables.Count == 0) | |
{ | |
status = false; |
This file contains hidden or 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
declare @endDateTime datetime = cast(getdate() + 1 as date); | |
declare @startDateTime datetime = DATEADD(dd, 1, DATEDIFF(dd, 0, GETDATE())) ; | |
set @endDateTime= dateadd(second, 86399, @endDateTime) |
This file contains hidden or 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
SELECT concat(', [',COLUMN_NAME,'] = ' ,' @', COLUMN_NAME, ' ') | |
FROM INFORMATION_SCHEMA.COLUMNS | |
WHERE TABLE_NAME = 'tblEvent' |