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
--Kill tables | |
--EXEC sp_MSforeachtable @command1 = "DROP TABLE ?" | |
----------------------------------------------------------- | |
----------------------------------------------------------- | |
--- BASIC DATA BASE | |
create database Producction | |
go | |
use [Producction] | |
create table Categorias | |
( |
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
# Visual Studio | |
obj | |
bin | |
src/CommonAssemblyInfo.cs | |
*.csproj.user | |
*.suo | |
*.cache | |
# Fubu | |
/src/*/*/*/fubu-content/*/ |
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
::check to determine if the batch script is processed in an elevated process. | |
@reg add HKLM\Software\Microsoft\DevDiv\0b3d680166a14e50a8c8e2ed060d8d90 /v Elevated /t REG_DWORD /d 1 /f > nul 2>&1 | |
@if /i "%errorlevel%"=="1" echo Error: elevation required. &exit /b 740 | |
@reg delete HKLM\Software\Microsoft\DevDiv\0b3d680166a14e50a8c8e2ed060d8d90 /va /f > nul 2>&1 | |
:: Install VS2010 | |
"%~dp0setup\setup.exe" /q /norestart /unattendfile "%~dp0VS2010_deployment.ini" | |
:: For full install, comment the line above and uncomment the next line ( Remember you need to create your own "unattend.ini" file | |
::"%~dp0setup\setup.exe" /q /norestart " | |
@if /i "%errorlevel%"=="3010" (echo Returned 3010: Need to reboot when setup is complete.) else ( |
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
//-----------------------------------------------------------------------------------------// | |
foreach (GridViewRow gvRow in GridView1.Rows) | |
{ | |
var chkSelected = (CheckBox)gvRow.FindControl("CheckBoxWinner"); | |
chkSelected.Checked = false; | |
} | |
//~ | |
foreach (var chkSelected in from GridViewRow gvRow in GridView1.Rows |
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
//To Show time like 08:00: AM | |
txtStartTime.Text = entity.CommitteeResolutionDate.ToString("hh:mm tt"); |
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
//Check All CheckBoxes in Grid WebForm | |
//---------------------------------------------------------------------------------------------- | |
//---------------------------------------------------------------------------------------------- | |
protected void CheckBoxAll_CheckedChanged(object sender, EventArgs e) | |
{ | |
var chkAll = (CheckBox)GridMemberList.HeaderRow.FindControl("CheckBoxAll"); |
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://stackoverflow.com/questions/1504110/recursive-call-return-a-list-return-type-causing-me-issues | |
// http://stackoverflow.com/questions/7187456/recursive-method-using-list | |
// http://stackoverflow.com/questions/2572721/recursive-treeview-in-asp-net | |
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
var itemQuantities = new List<RequisitionItemQuantity>(); | |
CreateItemQuantyListForQuery(); | |
foreach (GridViewRow gvRow in GridViewResult.Rows) | |
{ | |
var chkSelected = (CheckBox)gvRow.FindControl("chkSelect"); | |
if (!chkSelected.Checked) | |
{ | |
continue; | |
} | |
var pkId = (HiddenField)gvRow.FindControl("HidenRequisitionItemQuantity1Pk"); |
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
private void SetRequisitionQuantityListToZeroRemain(List<RequisitionItemQuantity> requisitionItemQuantyList,IEnumerable<RequisitionReferencesTemp> requistionAllIdList) | |
{ | |
//foreach (var requisition in requistionAllIdList) | |
//{ | |
// var item = requisitionItemQuantyList.FirstOrDefault(x => x.RequisitionItemQuantity1 == | |
// requisition.RequisitionItemIdReference); | |
// if (item == null) continue; | |
// item.QuantityRemain = 0; | |
// SetSubTotalRemain(item); |
OlderNewer