From b3012f5da72b31ff4bee93795c3c0e85f31f329f Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Fri, 11 Nov 2016 16:02:32 +0100 Subject: [PATCH] aggiunto progetto MapoDb... --- .gitignore | 39 +- .vs/MP-MON/v14/.suo | Bin 0 -> 23040 bytes MapoDb/DS_ProdTempi.cs | 17 + MapoDb/DS_ProdTempi.xsc | 9 + MapoDb/DS_ProdTempi.xsd | 2367 ++ MapoDb/DS_ProdTempi.xss | 30 + MapoDb/DS_ProdTempi1.Designer.cs | 23263 +++++++++++++++ MapoDb/DS_Utility.Designer.cs | 8945 ++++++ MapoDb/DS_Utility.cs | 6 + MapoDb/DS_Utility.xsc | 9 + MapoDb/DS_Utility.xsd | 783 + MapoDb/DS_Utility.xss | 22 + MapoDb/DS_applicazione.Designer.cs | 23810 ++++++++++++++++ MapoDb/DS_applicazione.cs | 15 + MapoDb/DS_applicazione.xsc | 9 + MapoDb/DS_applicazione.xsd | 3150 ++ MapoDb/DS_applicazione.xss | 339 + MapoDb/DataLayer.cs | 403 + MapoDb/MapoDb.cs | 1441 + MapoDb/MapoDb.csproj | 243 + MapoDb/MapoDb.csproj.user | 19 + MapoDb/MapoDb.sln | 20 + MapoDb/MapoDb.suo | Bin 0 -> 15360 bytes MapoDb/Properties/AssemblyInfo.cs | 35 + MapoDb/Properties/Settings.Designer.cs | 48 + MapoDb/Properties/Settings.settings | 22 + MapoDb/Settings.cs | 28 + .../SqlUpdate/MoonPro/V1.0/MoonPro_00010.sql | 167 + .../SqlUpdate/MoonPro/V1.0/MoonPro_00015.sql | 45 + .../SqlUpdate/MoonPro/V1.0/MoonPro_00020.sql | 215 + .../SqlUpdate/MoonPro/V1.0/MoonPro_00025.sql | 258 + .../SqlUpdate/MoonPro/V1.0/MoonPro_00030.sql | 223 + .../SqlUpdate/MoonPro/V2.0/MoonPro_00230.sql | 172 + .../SqlUpdate/MoonPro/V2.0/MoonPro_00235.sql | 129 + .../SqlUpdate/MoonPro/V2.0/MoonPro_00236.sql | 55 + .../SqlUpdate/MoonPro/V2.0/MoonPro_00240.sql | 124 + .../SqlUpdate/MoonPro/V2.0/MoonPro_00245.sql | 538 + .../SqlUpdate/MoonPro/V2.0/MoonPro_00300.sql | 1313 + .../SqlUpdate/MoonPro/V2.0/MoonPro_00305.sql | 100 + .../SqlUpdate/MoonPro/V2.0/MoonPro_00310.sql | 328 + .../SqlUpdate/MoonPro/V2.0/MoonPro_00315.sql | 182 + .../SqlUpdate/MoonPro/V2.0/MoonPro_00316.sql | 275 + .../SqlUpdate/MoonPro/V2.0/MoonPro_00317.sql | 291 + .../SqlUpdate/MoonPro/V2.0/MoonPro_00318.sql | 420 + .../SqlUpdate/MoonPro/V2.0/MoonPro_00319.sql | 444 + .../SqlUpdate/MoonPro/V2.0/MoonPro_00320.sql | 304 + MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_301.sql | 123 + .../MoonPro/V2.0/MoonPro_302_con_dati.sql | 17 + .../SqlUpdate/MoonPro/V2.1/MoonPro_00353.sql | 356 + .../SqlUpdate/MoonPro/V3.2/MoonPro_00370.sql | 1172 + .../SqlUpdate/MoonPro/V3.2/MoonPro_00375.sql | 605 + .../SqlUpdate/MoonPro/V3.2/MoonPro_00380.sql | 616 + .../SqlUpdate/MoonPro/V3.2/MoonPro_00385.sql | 194 + .../SqlUpdate/MoonPro/V3.2/MoonPro_00390.sql | 78 + .../SqlUpdate/MoonPro/V3.4/MoonPro_00401.sql | 1491 + .../SqlUpdate/MoonPro/V3.4/MoonPro_00409.sql | 839 + .../SqlUpdate/MoonPro/V3.4/MoonPro_00414.sql | 44 + MapoDb/app.config | 22 + MapoDb/reportExporter.cs | 230 + MapoDb/reportPrinter.cs | 245 + MapoDb/resoconti.cs | 545 + MapoDb/selData.cs | 27 + MapoDb/utility.cs | 274 + 63 files changed, 77511 insertions(+), 22 deletions(-) create mode 100644 .vs/MP-MON/v14/.suo create mode 100644 MapoDb/DS_ProdTempi.cs create mode 100644 MapoDb/DS_ProdTempi.xsc create mode 100644 MapoDb/DS_ProdTempi.xsd create mode 100644 MapoDb/DS_ProdTempi.xss create mode 100644 MapoDb/DS_ProdTempi1.Designer.cs create mode 100644 MapoDb/DS_Utility.Designer.cs create mode 100644 MapoDb/DS_Utility.cs create mode 100644 MapoDb/DS_Utility.xsc create mode 100644 MapoDb/DS_Utility.xsd create mode 100644 MapoDb/DS_Utility.xss create mode 100644 MapoDb/DS_applicazione.Designer.cs create mode 100644 MapoDb/DS_applicazione.cs create mode 100644 MapoDb/DS_applicazione.xsc create mode 100644 MapoDb/DS_applicazione.xsd create mode 100644 MapoDb/DS_applicazione.xss create mode 100644 MapoDb/DataLayer.cs create mode 100644 MapoDb/MapoDb.cs create mode 100644 MapoDb/MapoDb.csproj create mode 100644 MapoDb/MapoDb.csproj.user create mode 100644 MapoDb/MapoDb.sln create mode 100644 MapoDb/MapoDb.suo create mode 100644 MapoDb/Properties/AssemblyInfo.cs create mode 100644 MapoDb/Properties/Settings.Designer.cs create mode 100644 MapoDb/Properties/Settings.settings create mode 100644 MapoDb/Settings.cs create mode 100644 MapoDb/SqlUpdate/MoonPro/V1.0/MoonPro_00010.sql create mode 100644 MapoDb/SqlUpdate/MoonPro/V1.0/MoonPro_00015.sql create mode 100644 MapoDb/SqlUpdate/MoonPro/V1.0/MoonPro_00020.sql create mode 100644 MapoDb/SqlUpdate/MoonPro/V1.0/MoonPro_00025.sql create mode 100644 MapoDb/SqlUpdate/MoonPro/V1.0/MoonPro_00030.sql create mode 100644 MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_00230.sql create mode 100644 MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_00235.sql create mode 100644 MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_00236.sql create mode 100644 MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_00240.sql create mode 100644 MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_00245.sql create mode 100644 MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_00300.sql create mode 100644 MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_00305.sql create mode 100644 MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_00310.sql create mode 100644 MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_00315.sql create mode 100644 MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_00316.sql create mode 100644 MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_00317.sql create mode 100644 MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_00318.sql create mode 100644 MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_00319.sql create mode 100644 MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_00320.sql create mode 100644 MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_301.sql create mode 100644 MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_302_con_dati.sql create mode 100644 MapoDb/SqlUpdate/MoonPro/V2.1/MoonPro_00353.sql create mode 100644 MapoDb/SqlUpdate/MoonPro/V3.2/MoonPro_00370.sql create mode 100644 MapoDb/SqlUpdate/MoonPro/V3.2/MoonPro_00375.sql create mode 100644 MapoDb/SqlUpdate/MoonPro/V3.2/MoonPro_00380.sql create mode 100644 MapoDb/SqlUpdate/MoonPro/V3.2/MoonPro_00385.sql create mode 100644 MapoDb/SqlUpdate/MoonPro/V3.2/MoonPro_00390.sql create mode 100644 MapoDb/SqlUpdate/MoonPro/V3.4/MoonPro_00401.sql create mode 100644 MapoDb/SqlUpdate/MoonPro/V3.4/MoonPro_00409.sql create mode 100644 MapoDb/SqlUpdate/MoonPro/V3.4/MoonPro_00414.sql create mode 100644 MapoDb/app.config create mode 100644 MapoDb/reportExporter.cs create mode 100644 MapoDb/reportPrinter.cs create mode 100644 MapoDb/resoconti.cs create mode 100644 MapoDb/selData.cs create mode 100644 MapoDb/utility.cs diff --git a/.gitignore b/.gitignore index bf3e18d6..6ef380ee 100644 --- a/.gitignore +++ b/.gitignore @@ -4,19 +4,28 @@ *.pdb +#-------------------------------- +# Area VersGen +#-------------------------------- +/VersGen/bin/* +/VersGen/obj/* + #-------------------------------- # area MapoDb #-------------------------------- -/MapoDb/MapoDb/obj/Debug -/MapoDb/MapoDb/obj/Release -/MapoDb/MapoDb/obj/218 -/MapoDb/MapoDb/obj/Donati -/MapoDb/MapoDb/obj/MoonProDemo-OVH -/MapoDb/MapoDb/obj/Steamware -/MapoDb/MapoDb/obj/MapoDb.csproj.FileListAbsolute.txt -/MapoDb/MapoDb/obj/MapoDb.csproj.FileList.txt +/MapoDb/bin/* +/MapoDb/obj/* +#-------------------------------- +# Area MP-MON (MoonPro-MONitor) +#-------------------------------- +/MP-MON/logs/*.zip +/MP-MON/logs/*.txt +/MP-MON/bin/* +/MP-MON/obj/* +/MP-MON/WebCharts/*.png + #-------------------------------- # Area MoonProAdmin #-------------------------------- @@ -109,14 +118,6 @@ MoonPro/MoonPro_site/obj/218/* /MoonPro/MP-IO/obj/MoonProDemo-OVH/Package/PackageTmp/* /MoonPro/MP-IO/logs/*.txt -#-------------------------------- -# Area MP-MON (MoonPro-MONitor) -#-------------------------------- -/MP-MON/logs/*.zip -/MP-MON/logs/*.txt -/MP-MON/bin/* -/MP-MON/obj/* -/MP-MON/WebCharts/*.png #-------------------------------- # Area Archivio Risorse @@ -139,9 +140,3 @@ MoonPro/MoonPro_site/obj/218/* /MoonPro/ArchivioRisorse/obj/MoonProDemo-OVH/Package/PackageTmp/* - -############################################# -# Area VersGen -############################################# -/VersGen/obj/* -/VersGen/bin/* \ No newline at end of file diff --git a/.vs/MP-MON/v14/.suo b/.vs/MP-MON/v14/.suo new file mode 100644 index 0000000000000000000000000000000000000000..be85b5497e329a7190155938171ae3c250e22b30 GIT binary patch literal 23040 zcmeHPYj9-8Rlc(GupP&VvyL5tapbj0oOtidormV3)ykgdt{lxu(P&p2GO)RG=ZsrsR-MDds$+rU#{eCz?99Yt7_%*djEu~d)Z)lrr%8|qU+UwhG{=g1j zUH|PD?Z;>SW+H-ofA%h!c@Y?E+L|^8>_x;<+SMIO>3)5`cH4xT-Q8~oKm9n8A-*D9 z&?;J4ThvU=(k|n=s@d9tRtG0apr)!ht$f?v9tHk4;^o@_q+`2$?(}PTxTBSz>d$)D zK}ik#umM?6U;=FShXdlk-{$|Q_+u#No2{}8+`s2$;1P;b?@WRIAixLUa|m}oAPfiq zqJVk8Nx%%?6krzc1mH;kc@YOB07*a!kOrIvoB_-Mo&vld!16P=p9L%c76BgsECI5B zWxzSWdB6(b0^oxHes@^IUiSaDpsqv1ckceu3H1LrGt+xzP9^{Q+5dkXsQ0q}yW3XQ zYWVe6@%rCdSycURqW_Pr|0v(@X$|Cx_SYkgdfQ2C$0QUgi z0U!_W1yJ`L1KbCAJK%l*#{z!$1Gv8v@PmK{0Y3zI2tf5e33wQA9PkL>QNX(a{O&!t zKL((fybtg=;4t?ikbES=1o%o(pzTI`j&i_ucegp?3fOlUXJ1$Cuio*__UE1LPZ=4v z{V9KxfkEwm0_i%y1MmV20QElgJ#{_D0geY81E~Ka0P6o~fYSepR;B;dGw(|OGd@WF za~x6npLrJX%==FI|3{GTLx3FMM*%+uxCr<#zy#z07N7vI0Y$(n;1Zw&SOZ)JlmQh$ z6;K1z0Z#)O00+^_7`QCdT3PqpGIEl7KUZu zb%1vsb#=grEVxb^tceyOXUNxKf%YH!&f5T^;{PS&r9Ndi4-CtK2W7}X4OU=Q*nd|* zkF}%qN8Neb1obid<*4{Sg}m(R3~KzbfvpKj8mKk-pvL2dXc=V<%WvFQ1Nb>EP`8hY zpR%dSNTQB;;9M1!cLR14tzHYQVDHF#mN5zZ#LF>cRQxgI(oNp%ZEa&0m!p<{M z59&|*itRZn{y6f!wS|8Hy>AVp8tboc+kyfIx``v`@Id`Tyl+IdQSmPzFXu=M3DlAr znAl2?z>PjCWWMdLyP5yGkX-wv-zr~I+rDyZ~f_i^y=zs&{Vu zD?-N=Aaxs%0uwDSeIN~3S&QObRp^B@UUS^4V6YOM;`+ zJPo1uPq*|?y^E#{Qfb-s2ljs@d!x2LOL=KRmPPrZm#HCIz6|YKLjBpw-6KJ-Zcvm= zL;g6Ha!xlY{+~nMzibtdgyhlEqGVC;x#e*Y? zPRah^XaevVb2+D865 z_&1>wI3p?#M%+r>js5HHf4%k3Kn5#9_BXq9Q8(8+B&q(#F>TcPQ(rE(is;2Zc>dwm ziXGgH1$QBToU17NeylkD9Z#iXHEK?+*z{Pniq~%#0k6;SX6;7FESH`!o26RSD++dw%Mzwb?J_nt zHar^vPpz@a4}IPXnfa_JRxeeZrdhS@8@2U%X6f9F7ujcL z1pSkx=_cqtb=;h8)vP;rV?9-EHZ~PmW}7TkwSw6+ts3%}R#Oof^crDrrd{XrC1>3% zXPfJVQq2>4X1!s16q1ZtHCOG1XVJ7SBjQQg^>S^qVpp5XwOToEHjaB|1-XNmjW@$v zgA>P|a46f)JG+hC^fOmgN0=kxvNLlfQzb*G%UY(421y-P&QkGAdYNOl2dg?M^vaH% zyCJl|W$grJCTfi0D0m9~wIK3`0Dgg+_){oH)n%Of%%a_JN>0-*%$rX0oMRV+e2&aN z!x&#U-TaFuvWuaopD5P<^WM4N{KMBJPye^?(hSC?r{dYfB~&B z2Ty1xdN5KfgL5&APb;`CA-)3d(OKl|wXOIyXL%03Ht{t_({+qBwE4TOP3Fv?v_;H- z8KaM|+RAegUvR~m^OB}0QMS%$JXiakJ+LkvjGA(ldHEmz=LN1nDT!fA(X)E=YN=`@ z{dOL3lXmoFw8t9iOKz!v7EaLE;7o%pM(fIkFF1xgo7yDmzKHf+OeB;^pgt6LjuUlo zoFg$kMVn%EU>T*w@MTKmVd*DfD}{ySq+))g`H^C@y$GE5NV+SyH(i@aL@{Da;!H3v z>|Xay1dgoqu+)UNBG*$FN|jp%JfOFXAMwdr$~qDY>(h%v*`j>!4wRD9@%cI0w^Baq z0uSdSoFU~M|(75|U4eD2m?FuitXeX938~6w1z`eWe{)5 z^oF|mxr%zS71)2t9|qQgK1Ep%x2+=kaW550*X9OjTTyO(%jp>KBZ_Lr4_iUx_^{)wE1@0=j1J>r-Bx* z7454so^wLytRv1*MM|&I;q?E|?yCr`L~c~@;}}%HwSZLl9c7!|O6f(U{BwNx|DcCy zTXbt^B(z6K#*f;F&)L;rn?Q~ItQ7-m_J2(`)2H2C`;LxOvF$bdAPya@M(=M;Rf|Ei z9+ZxEb9@k82We^2ns?LZ!5&ZUA09;KQM9}`lN(e&kJukW8?CpdYLx5TvxyXZ3V-GK z*S}pk_7q%=^dxXc)8V(mx&FyrA4$w_=ym8kb$byWd3tU6FaF@KCys{az+I32S~Xgp zO63q8(@!g$Rd8v}Rj-(E{#KidjoOt`!ET&2D>hx7gWX%R!UCaP!f-SGA0>~f)#_rt zy9SGd`nmz$|;ot+y1<15-}SyDaE0df{w5Yud*SoCXUX z0Q&Vb?UM&ii?sX8kg3DL8%J2}hl7?T_GU=FT;KP0qF0MD;^1x_kgW95zy z2cd~o`>0+;PjLB=aOeu8$L)b3hdzDa?MABT>)_5MdPn3Ky8r!+-o`TU7eP-)E2`&% z&;WxelBoxyle#Hlf9tk`U?bojW4*%>(a;LYR z%Knyb<&|?NYI?P!muqvJdGxOXEs3*a(h8TJvJLbh?md;ONZbp~QLN)Hp9BhbN!WXR zm-g~EpL^xO569Cl+4ubE3m5<7?Iem|fAxX%zx>^I=D+%JIUVJ}rryPFRRO;1&9BON z?H?MCrJwt~#4BI^==(mhrhl7x`@-&4;cf>GdKGZHUAx;oSHm9J43-^rRCfW(>9=)1 zzC2-xm3f}lkZYg)EA!Of(jUBm`4(65HpDoSgPqd7>yjf5Pn@Wgd48!@=DTN9%vov8 zj2V+F^DVU$ofQj$E}UBV7%}6|-&lFey!NeE{^P>Oj{i~Wcc#B> zeeSzgxxED;t3`_UedD!nJT(867YZ+Z_Mv}|ZkJQ$msk3APa`VzQ~%m7&s}ANx1S>* zwI3yo(o=7(nXe(oDF`=DNt}dr%(G~5_{k%D$V9VmCx-`C08h2ZQ&e%}E`SQQ0K-YV+iRK@py|(`mFPpDM(EvJvJ*v5 z>^Vhq*nyN45_NcJ@sG`yC-yoAKlaseITPD+YPxqfj7!hnOHF4l?zpr_trmqw z3PCgZ@uP;)(f|1rM2uQ3fjK9&S^z(4I_kd=bXpW|sRyT^-Hb7`n#3AH83E|TFf?KS zaUJoX*o#H1QKWKLdknF-c+0)+@)s5wHGuaa=-^Rxsg#4g#JU%9u$T1QtQ@edxf?Eq zyBxogxTnxMY!S*tT(k(e9z{$_Nebx+NI(!0Alq`h7THUzd(k3$Nzcu;NDRF&4gQ9~ zU0M$8dyKP1Ks2EOEvy?4|W;c1*0=9kp7S1>9jFeY<#oK^;H zk>UJ332cM+{<&v9az`J}F>yctg!ac1$!P<>XJh_!DjZDt^msTJ(0#t7p~q6bm~I#` zBM~*y>2xA+ZEGe|a;$XeBlz|w0Y3%!DB!07KLhw#0M`O|PLQJm6OVUjTd&@B-jV0OtKN?k@s6K-qR?w-VD{ z>^yHcUdODg+hyC6T~5U^E3u{2%G_CRvSzLG1cT#sAAG<<-M zYR#(M%z0Kz&C+VM*08s>o{hu<5kG!<$Zz;5k3KyT2^)|{!$?QMQ{iaRe{BLH3=pC8 z3^_KJ0g8Hv_@E&zdUep+X>x?1rVAk-UNI#fTm8O-1s- zh%0+I7!8IZ{;(bhn+95<;MYxmIDnS0j3B-!28%^k_Po!IM#B-1kjDkt4Lu)ZCTT~b&6(Ai6)Lpn3WBDyiuy=3Q9C{SH!UqN1VywhZN0R zJ8!v#sGX2A>-BQU5+{{dzButyD+4P8HWo^RgTYutH&Vfv9!w`f5ZDkDXej891dOR* zC>(UL$twB_1uNj!BbHf^T#W`G>4q^C2u@MT4dYt!Xp8h+ogV$6Tc|B=W!Wc8+aESV z=p8niMMqOc^k}G1)TeB-7>EXKI}nO`a3T$VTP;o0zP&>e|K*|mEdNOs9hclxC8ySi z3_e>iZ2n8Xir00%#*2CVXy3B-R@6G$rILUCtgnc_YwXt1g^YsKQFzgIkY725!5pR zyOmzA5^TyMu+y)0b>Aq6gCCsb${kVi9QXcV=iHesp|G>#y)5c}^!kwW60_gzGz&Z_ z{tM-^X!rhkC2b~3z^&ArC|-NROm)3n=KfWL)x>m87>w;v*=;c9+6H58kinRv!I30J%BwiOCoh4D3~s;O(sJ{D;3ox5{|kS3os<9o literal 0 HcmV?d00001 diff --git a/MapoDb/DS_ProdTempi.cs b/MapoDb/DS_ProdTempi.cs new file mode 100644 index 00000000..6a9fe667 --- /dev/null +++ b/MapoDb/DS_ProdTempi.cs @@ -0,0 +1,17 @@ +namespace MapoDb.DS_ProdTempiTableAdapters +{ + partial class ODLTableAdapter + { + } +} +namespace MapoDb.DS_ProdTempiTableAdapters +{ +} +namespace MapoDb +{ + + + public partial class DS_ProdTempi + { + } +} diff --git a/MapoDb/DS_ProdTempi.xsc b/MapoDb/DS_ProdTempi.xsc new file mode 100644 index 00000000..05b01991 --- /dev/null +++ b/MapoDb/DS_ProdTempi.xsc @@ -0,0 +1,9 @@ + + + + + \ No newline at end of file diff --git a/MapoDb/DS_ProdTempi.xsd b/MapoDb/DS_ProdTempi.xsd new file mode 100644 index 00000000..08c0ec6d --- /dev/null +++ b/MapoDb/DS_ProdTempi.xsd @@ -0,0 +1,2367 @@ + + + + + + + + + + + + + + + + DELETE FROM [dbo].[TempiCicloRilevati] WHERE (([IdxMacchina] = @Original_IdxMacchina) AND ([CodArticolo] = @Original_CodArticolo) AND ([DataOraRif] = @Original_DataOraRif) AND ([TCMedio] = @Original_TCMedio) AND ([PzProd] = @Original_PzProd)) + + + + + + + + + + + + INSERT INTO [dbo].[TempiCicloRilevati] ([IdxMacchina], [CodArticolo], [DataOraRif], [TCMedio], [PzProd]) VALUES (@IdxMacchina, @CodArticolo, @DataOraRif, @TCMedio, @PzProd); +SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRilevati WHERE (CodArticolo = @CodArticolo) AND (DataOraRif = @DataOraRif) AND (IdxMacchina = @IdxMacchina) + + + + + + + + + + + + SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM dbo.TempiCicloRilevati + + + + + + UPDATE [dbo].[TempiCicloRilevati] SET [IdxMacchina] = @IdxMacchina, [CodArticolo] = @CodArticolo, [DataOraRif] = @DataOraRif, [TCMedio] = @TCMedio, [PzProd] = @PzProd WHERE (([IdxMacchina] = @Original_IdxMacchina) AND ([CodArticolo] = @Original_CodArticolo) AND ([DataOraRif] = @Original_DataOraRif) AND ([TCMedio] = @Original_TCMedio) AND ([PzProd] = @Original_PzProd)); +SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRilevati WHERE (CodArticolo = @CodArticolo) AND (DataOraRif = @DataOraRif) AND (IdxMacchina = @IdxMacchina) + + + + + + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_TC_getByMacchinaPeriodo + + + + + + + + + + + + + dbo.stp_TC_getByMacchinaPeriodoFiltMax + + + + + + + + + + + + + + dbo.stp_TC_getMaxByMacchinaPeriodo + + + + + + + + + + + + + dbo.stp_TC_getMedByMacchinaPeriodo + + + + + + + + + + + + + dbo.stp_TC_getMinByMacchinaPeriodo + + + + + + + + + + + + + + + + + SELECT * FROM dbo.v_ODL_exp +ORDER BY idxODL DESC + + + + + + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_ODL_approvaTC + + + + + + + + + + + + + + DELETE FROM [dbo].[ODL] WHERE ([IdxODL] = @Original_IdxODL) + + + + + + + + + + dbo.stp_ODL_fineProd + + + + + + + + + + + + dbo.stp_ODL_getByCodArt + + + + + + + + + + + dbo.stp_ODL_getByIdx + + + + + + + + + + + + dbo.stp_ODL_getByMacchina + + + + + + + + + + + dbo.stp_ODL_getByMacchinaCodArt + + + + + + + + + + + + dbo.stp_ODL_getByMacchinaPeriodo + + + + + + + + + + + + + dbo.stp_ODL_getByMacchinaPeriodoNoNull + + + + + + + + + + + + + dbo.stp_ODL_needAppr + + + + + + + + + + dbo.stp_ODL_inizioSetup + + + + + + + + + + + + + + dbo.stp_ODL_insertQuery + + + + + + + + + + + + + + + + dbo.stp_ODL_split + + + + + + + + + + + + + + + dbo.stp_ODL_updateQta + + + + + + + + + + + + dbo.stp_ODL_update + + + + + + + + + + + + + + + + + + dbo.stp_ODL_updateSetup + + + + + + + + + + + + + + + + + DELETE FROM [dbo].[AnagArticoli] WHERE (([CodArticolo] = @Original_CodArticolo) AND ((@IsNull_DescArticolo = 1 AND [DescArticolo] IS NULL) OR ([DescArticolo] = @Original_DescArticolo))) + + + + + + + + + + INSERT INTO [dbo].[AnagArticoli] ([CodArticolo], [DescArticolo]) VALUES (@CodArticolo, @DescArticolo); +SELECT CodArticolo, DescArticolo FROM AnagArticoli WHERE (CodArticolo = @CodArticolo) + + + + + + + + + SELECT CodArticolo, DescArticolo FROM dbo.AnagArticoli + + + + + + UPDATE [dbo].[AnagArticoli] SET [CodArticolo] = @CodArticolo, [DescArticolo] = @DescArticolo WHERE (([CodArticolo] = @Original_CodArticolo) AND ((@IsNull_DescArticolo = 1 AND [DescArticolo] IS NULL) OR ([DescArticolo] = @Original_DescArticolo))); +SELECT CodArticolo, DescArticolo FROM AnagArticoli WHERE (CodArticolo = @CodArticolo) + + + + + + + + + + + + + + + + + + + + dbo.stp_ART_checkUsed + + + + + + + + + + + + dbo.stp_ART_delete + + + + + + + + + + + dbo.stp_ART_update + + + + + + + + + + + + + + + + + SELECT * +FROM v_DatiMacchina_exp + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_DATM_getByIdx + + + + + + + + + + + dbo.stp_DATM_update + + + + + + + + + + + + + + + + + + DELETE FROM [PostazioniMapo] WHERE (([IdxPostazione] = @Original_IdxPostazione) AND ((@IsNull_DescPostazione = 1 AND [DescPostazione] IS NULL) OR ([DescPostazione] = @Original_DescPostazione)) AND ([IdxMacchina] = @Original_IdxMacchina) AND ((@IsNull_MatrOperatore = 1 AND [MatrOperatore] IS NULL) OR ([MatrOperatore] = @Original_MatrOperatore)) AND ((@IsNull_InputUntil = 1 AND [InputUntil] IS NULL) OR ([InputUntil] = @Original_InputUntil)) AND ((@IsNull_LastBarcode = 1 AND [LastBarcode] IS NULL) OR ([LastBarcode] = @Original_LastBarcode))) + + + + + + + + + + + + + + + + + INSERT INTO [PostazioniMapo] ([IdxPostazione], [DescPostazione], [IdxMacchina], [MatrOperatore], [InputUntil], [LastBarcode]) VALUES (@IdxPostazione, @DescPostazione, @IdxMacchina, @MatrOperatore, @InputUntil, @LastBarcode); +SELECT IdxPostazione, DescPostazione, IdxMacchina, MatrOperatore, InputUntil, LastBarcode FROM PostazioniMapo WHERE (IdxPostazione = @IdxPostazione) + + + + + + + + + + + + + SELECT IdxPostazione, DescPostazione, IdxMacchina, MatrOperatore, InputUntil, LastBarcode FROM PostazioniMapo + + + + + + UPDATE [PostazioniMapo] SET [IdxPostazione] = @IdxPostazione, [DescPostazione] = @DescPostazione, [IdxMacchina] = @IdxMacchina, [MatrOperatore] = @MatrOperatore, [InputUntil] = @InputUntil, [LastBarcode] = @LastBarcode WHERE (([IdxPostazione] = @Original_IdxPostazione) AND ((@IsNull_DescPostazione = 1 AND [DescPostazione] IS NULL) OR ([DescPostazione] = @Original_DescPostazione)) AND ([IdxMacchina] = @Original_IdxMacchina) AND ((@IsNull_MatrOperatore = 1 AND [MatrOperatore] IS NULL) OR ([MatrOperatore] = @Original_MatrOperatore)) AND ((@IsNull_InputUntil = 1 AND [InputUntil] IS NULL) OR ([InputUntil] = @Original_InputUntil)) AND ((@IsNull_LastBarcode = 1 AND [LastBarcode] IS NULL) OR ([LastBarcode] = @Original_LastBarcode))); +SELECT IdxPostazione, DescPostazione, IdxMacchina, MatrOperatore, InputUntil, LastBarcode FROM PostazioniMapo WHERE (IdxPostazione = @IdxPostazione) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_POST_getByIdPostazione + + + + + + + + + + + dbo.stp_POST_updateMacchina + + + + + + + + + + + + dbo.stp_POST_updateOperatoreAdmin + + + + + + + + + + + + + + + + + dbo.stp_PzProd_getByMacchina + + + + + + + + + + + + + + + + + + + dbo.stp_PzProd_getByMacchinaPeriodo + + + + + + + + + + + + + dbo.stp_ConfermaProduzCompleta + + + + + + + + + + + + + + + + + + dbo.stp_DatiConf_conferma + + + + + + + + + + + + + + + + + + + + + + DELETE FROM [dbo].[DatiConfermati] WHERE (([IdxConferma] = @Original_IdxConferma) AND ([IdxODL] = @Original_IdxODL) AND ([DataOraApp] = @Original_DataOraApp) AND ([DataRif] = @Original_DataRif) AND ((@IsNull_TurnoRif = 1 AND [TurnoRif] IS NULL) OR ([TurnoRif] = @Original_TurnoRif)) AND ((@IsNull_CodArticolo = 1 AND [CodArticolo] IS NULL) OR ([CodArticolo] = @Original_CodArticolo)) AND ([IdxMacchina] = @Original_IdxMacchina) AND ((@IsNull_TCAssegnato = 1 AND [TCAssegnato] IS NULL) OR ([TCAssegnato] = @Original_TCAssegnato)) AND ((@IsNull_MatrOpr = 1 AND [MatrOpr] IS NULL) OR ([MatrOpr] = @Original_MatrOpr)) AND ([MatrApp] = @Original_MatrApp) AND ((@IsNull_DataOraFrom = 1 AND [DataOraFrom] IS NULL) OR ([DataOraFrom] = @Original_DataOraFrom)) AND ((@IsNull_DataOraTo = 1 AND [DataOraTo] IS NULL) OR ([DataOraTo] = @Original_DataOraTo)) AND ([IdxStato] = @Original_IdxStato) AND ((@IsNull_TotPzProd = 1 AND [TotPzProd] IS NULL) OR ([TotPzProd] = @Original_TotPzProd)) AND ((@IsNull_TempoProdotto = 1 AND [TempoProdotto] IS NULL) OR ([TempoProdotto] = @Original_TempoProdotto)) AND ((@IsNull_TempoCron = 1 AND [TempoCron] IS NULL) OR ([TempoCron] = @Original_TempoCron)) AND ((@IsNull_TempoND = 1 AND [TempoND] IS NULL) OR ([TempoND] = @Original_TempoND)) AND ((@IsNull_TempoApertura = 1 AND [TempoApertura] IS NULL) OR ([TempoApertura] = @Original_TempoApertura)) AND ((@IsNull_TempoOFF = 1 AND [TempoOFF] IS NULL) OR ([TempoOFF] = @Original_TempoOFF)) AND ((@IsNull_TempoON = 1 AND [TempoON] IS NULL) OR ([TempoON] = @Original_TempoON)) AND ((@IsNull_TempoFermoOn = 1 AND [TempoFermoOn] IS NULL) OR ([TempoFermoOn] = @Original_TempoFermoOn)) AND ((@IsNull_TempoAuto = 1 AND [TempoAuto] IS NULL) OR ([TempoAuto] = @Original_TempoAuto)) AND ((@IsNull_TempoFermoAuto = 1 AND [TempoFermoAuto] IS NULL) OR ([TempoFermoAuto] = @Original_TempoFermoAuto)) AND ((@IsNull_TempoRun = 1 AND [TempoRun] IS NULL) OR ([TempoRun] = @Original_TempoRun)) AND ((@IsNull_TotPzFermo = 1 AND [TotPzFermo] IS NULL) OR ([TotPzFermo] = @Original_TotPzFermo))) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + INSERT INTO [dbo].[DatiConfermati] ([IdxODL], [DataOraApp], [DataRif], [TurnoRif], [CodArticolo], [IdxMacchina], [TCAssegnato], [MatrOpr], [MatrApp], [DataOraFrom], [DataOraTo], [IdxStato], [TotPzProd], [TempoProdotto], [TempoCron], [TempoND], [TempoApertura], [TempoOFF], [TempoON], [TempoFermoOn], [TempoAuto], [TempoFermoAuto], [TempoRun], [TotPzFermo]) VALUES (@IdxODL, @DataOraApp, @DataRif, @TurnoRif, @CodArticolo, @IdxMacchina, @TCAssegnato, @MatrOpr, @MatrApp, @DataOraFrom, @DataOraTo, @IdxStato, @TotPzProd, @TempoProdotto, @TempoCron, @TempoND, @TempoApertura, @TempoOFF, @TempoON, @TempoFermoOn, @TempoAuto, @TempoFermoAuto, @TempoRun, @TotPzFermo); +SELECT IdxConferma, IdxODL, DataOraApp, DataRif, TurnoRif, CodArticolo, IdxMacchina, TCAssegnato, MatrOpr, MatrApp, DataOraFrom, DataOraTo, IdxStato, TotPzProd, TempoProdotto, TempoCron, TempoND, TempoApertura, TempoOFF, TempoON, TempoFermoOn, TempoAuto, TempoFermoAuto, TempoRun, TotPzFermo FROM DatiConfermati WHERE (IdxConferma = SCOPE_IDENTITY()) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + SELECT IdxConferma, IdxODL, DataOraApp, DataRif, TurnoRif, CodArticolo, IdxMacchina, TCAssegnato, MatrOpr, MatrApp, DataOraFrom, DataOraTo, IdxStato, TotPzProd, TempoProdotto, TempoCron, TempoND, TempoApertura, TempoOFF, TempoON, TempoFermoOn, TempoAuto, TempoFermoAuto, TempoRun, TotPzFermo FROM dbo.DatiConfermati + + + + + + UPDATE [dbo].[DatiConfermati] SET [IdxODL] = @IdxODL, [DataOraApp] = @DataOraApp, [DataRif] = @DataRif, [TurnoRif] = @TurnoRif, [CodArticolo] = @CodArticolo, [IdxMacchina] = @IdxMacchina, [TCAssegnato] = @TCAssegnato, [MatrOpr] = @MatrOpr, [MatrApp] = @MatrApp, [DataOraFrom] = @DataOraFrom, [DataOraTo] = @DataOraTo, [IdxStato] = @IdxStato, [TotPzProd] = @TotPzProd, [TempoProdotto] = @TempoProdotto, [TempoCron] = @TempoCron, [TempoND] = @TempoND, [TempoApertura] = @TempoApertura, [TempoOFF] = @TempoOFF, [TempoON] = @TempoON, [TempoFermoOn] = @TempoFermoOn, [TempoAuto] = @TempoAuto, [TempoFermoAuto] = @TempoFermoAuto, [TempoRun] = @TempoRun, [TotPzFermo] = @TotPzFermo WHERE (([IdxConferma] = @Original_IdxConferma) AND ([IdxODL] = @Original_IdxODL) AND ([DataOraApp] = @Original_DataOraApp) AND ([DataRif] = @Original_DataRif) AND ((@IsNull_TurnoRif = 1 AND [TurnoRif] IS NULL) OR ([TurnoRif] = @Original_TurnoRif)) AND ((@IsNull_CodArticolo = 1 AND [CodArticolo] IS NULL) OR ([CodArticolo] = @Original_CodArticolo)) AND ([IdxMacchina] = @Original_IdxMacchina) AND ((@IsNull_TCAssegnato = 1 AND [TCAssegnato] IS NULL) OR ([TCAssegnato] = @Original_TCAssegnato)) AND ((@IsNull_MatrOpr = 1 AND [MatrOpr] IS NULL) OR ([MatrOpr] = @Original_MatrOpr)) AND ([MatrApp] = @Original_MatrApp) AND ((@IsNull_DataOraFrom = 1 AND [DataOraFrom] IS NULL) OR ([DataOraFrom] = @Original_DataOraFrom)) AND ((@IsNull_DataOraTo = 1 AND [DataOraTo] IS NULL) OR ([DataOraTo] = @Original_DataOraTo)) AND ([IdxStato] = @Original_IdxStato) AND ((@IsNull_TotPzProd = 1 AND [TotPzProd] IS NULL) OR ([TotPzProd] = @Original_TotPzProd)) AND ((@IsNull_TempoProdotto = 1 AND [TempoProdotto] IS NULL) OR ([TempoProdotto] = @Original_TempoProdotto)) AND ((@IsNull_TempoCron = 1 AND [TempoCron] IS NULL) OR ([TempoCron] = @Original_TempoCron)) AND ((@IsNull_TempoND = 1 AND [TempoND] IS NULL) OR ([TempoND] = @Original_TempoND)) AND ((@IsNull_TempoApertura = 1 AND [TempoApertura] IS NULL) OR ([TempoApertura] = @Original_TempoApertura)) AND ((@IsNull_TempoOFF = 1 AND [TempoOFF] IS NULL) OR ([TempoOFF] = @Original_TempoOFF)) AND ((@IsNull_TempoON = 1 AND [TempoON] IS NULL) OR ([TempoON] = @Original_TempoON)) AND ((@IsNull_TempoFermoOn = 1 AND [TempoFermoOn] IS NULL) OR ([TempoFermoOn] = @Original_TempoFermoOn)) AND ((@IsNull_TempoAuto = 1 AND [TempoAuto] IS NULL) OR ([TempoAuto] = @Original_TempoAuto)) AND ((@IsNull_TempoFermoAuto = 1 AND [TempoFermoAuto] IS NULL) OR ([TempoFermoAuto] = @Original_TempoFermoAuto)) AND ((@IsNull_TempoRun = 1 AND [TempoRun] IS NULL) OR ([TempoRun] = @Original_TempoRun)) AND ((@IsNull_TotPzFermo = 1 AND [TotPzFermo] IS NULL) OR ([TotPzFermo] = @Original_TotPzFermo))); +SELECT IdxConferma, IdxODL, DataOraApp, DataRif, TurnoRif, CodArticolo, IdxMacchina, TCAssegnato, MatrOpr, MatrApp, DataOraFrom, DataOraTo, IdxStato, TotPzProd, TempoProdotto, TempoCron, TempoND, TempoApertura, TempoOFF, TempoON, TempoFermoOn, TempoAuto, TempoFermoAuto, TempoRun, TotPzFermo FROM DatiConfermati WHERE (IdxConferma = @IdxConferma) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_DatiConf_getByMacchPeriodo + + + + + + + + + + + + + SELECT TOP (1) IdxConferma, IdxODL, DataOraApp, DataRif, TurnoRif, CodArticolo IdxMacchina, TCAssegnato, MatrOpr, MatrApp, DataOraFrom, DataOraTo, IdxStato, + TotPzProd, TempoProdotto, TempoCron, TempoND, TempoApertura, TempoOFF, TempoON, TempoFermoOn, TempoAuto, TempoFermoAuto, TempoRun, + TotPzFermo +FROM DatiConfermati +WHERE (IdxMacchina = @IdxMacchina) + + + + + + + + + + + + + + DELETE FROM [dbo].[CalendFesteFerie] WHERE (([data] = @Original_data) AND ((@IsNull_descrizione = 1 AND [descrizione] IS NULL) OR ([descrizione] = @Original_descrizione))) + + + + + + + + + + INSERT INTO [dbo].[CalendFesteFerie] ([data], [descrizione]) VALUES (@data, @descrizione); +SELECT data, descrizione FROM CalendFesteFerie WHERE (data = @data) + + + + + + + + + SELECT data, descrizione FROM dbo.CalendFesteFerie + + + + + + UPDATE [dbo].[CalendFesteFerie] SET [data] = @data, [descrizione] = @descrizione WHERE (([data] = @Original_data) AND ((@IsNull_descrizione = 1 AND [descrizione] IS NULL) OR ([descrizione] = @Original_descrizione))); +SELECT data, descrizione FROM CalendFesteFerie WHERE (data = @data) + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_TempoByIdxMaccPeriodClass + + + + + + + + + + + + + + + + + + + + + + DELETE FROM [dbo].[DatiProduzione] WHERE (([IdxConferma] = @Original_IdxConferma) AND ([IdxODL] = @Original_IdxODL) AND ([DataOraApp] = @Original_DataOraApp) AND ([DataRif] = @Original_DataRif) AND ((@IsNull_TurnoRif = 1 AND [TurnoRif] IS NULL) OR ([TurnoRif] = @Original_TurnoRif)) AND ((@IsNull_CodArticolo = 1 AND [CodArticolo] IS NULL) OR ([CodArticolo] = @Original_CodArticolo)) AND ([IdxMacchina] = @Original_IdxMacchina) AND ((@IsNull_TCAssegnato = 1 AND [TCAssegnato] IS NULL) OR ([TCAssegnato] = @Original_TCAssegnato)) AND ((@IsNull_MatrOpr = 1 AND [MatrOpr] IS NULL) OR ([MatrOpr] = @Original_MatrOpr)) AND ([MatrApp] = @Original_MatrApp) AND ((@IsNull_DataOraFrom = 1 AND [DataOraFrom] IS NULL) OR ([DataOraFrom] = @Original_DataOraFrom)) AND ((@IsNull_DataOraTo = 1 AND [DataOraTo] IS NULL) OR ([DataOraTo] = @Original_DataOraTo)) AND ((@IsNull_TotPzProd = 1 AND [TotPzProd] IS NULL) OR ([TotPzProd] = @Original_TotPzProd)) AND ((@IsNull_Tempo = 1 AND [Tempo] IS NULL) OR ([Tempo] = @Original_Tempo)) AND ((@IsNull_ClasseTempo = 1 AND [ClasseTempo] IS NULL) OR ([ClasseTempo] = @Original_ClasseTempo)) AND ((@IsNull_Causale = 1 AND [Causale] IS NULL) OR ([Causale] = @Original_Causale))) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + INSERT INTO [dbo].[DatiProduzione] ([IdxODL], [DataOraApp], [DataRif], [TurnoRif], [CodArticolo], [IdxMacchina], [TCAssegnato], [MatrOpr], [MatrApp], [DataOraFrom], [DataOraTo], [TotPzProd], [Tempo], [ClasseTempo], [Causale]) VALUES (@IdxODL, @DataOraApp, @DataRif, @TurnoRif, @CodArticolo, @IdxMacchina, @TCAssegnato, @MatrOpr, @MatrApp, @DataOraFrom, @DataOraTo, @TotPzProd, @Tempo, @ClasseTempo, @Causale); +SELECT IdxConferma, IdxODL, DataOraApp, DataRif, TurnoRif, CodArticolo, IdxMacchina, TCAssegnato, MatrOpr, MatrApp, DataOraFrom, DataOraTo, TotPzProd, Tempo, ClasseTempo, Causale FROM DatiProduzione WHERE (IdxConferma = SCOPE_IDENTITY()) + + + + + + + + + + + + + + + + + + + + + + SELECT * FROM dbo.DatiProduzione + + + + + + UPDATE [dbo].[DatiProduzione] SET [IdxODL] = @IdxODL, [DataOraApp] = @DataOraApp, [DataRif] = @DataRif, [TurnoRif] = @TurnoRif, [CodArticolo] = @CodArticolo, [IdxMacchina] = @IdxMacchina, [TCAssegnato] = @TCAssegnato, [MatrOpr] = @MatrOpr, [MatrApp] = @MatrApp, [DataOraFrom] = @DataOraFrom, [DataOraTo] = @DataOraTo, [TotPzProd] = @TotPzProd, [Tempo] = @Tempo, [ClasseTempo] = @ClasseTempo, [Causale] = @Causale WHERE (([IdxConferma] = @Original_IdxConferma) AND ([IdxODL] = @Original_IdxODL) AND ([DataOraApp] = @Original_DataOraApp) AND ([DataRif] = @Original_DataRif) AND ((@IsNull_TurnoRif = 1 AND [TurnoRif] IS NULL) OR ([TurnoRif] = @Original_TurnoRif)) AND ((@IsNull_CodArticolo = 1 AND [CodArticolo] IS NULL) OR ([CodArticolo] = @Original_CodArticolo)) AND ([IdxMacchina] = @Original_IdxMacchina) AND ((@IsNull_TCAssegnato = 1 AND [TCAssegnato] IS NULL) OR ([TCAssegnato] = @Original_TCAssegnato)) AND ((@IsNull_MatrOpr = 1 AND [MatrOpr] IS NULL) OR ([MatrOpr] = @Original_MatrOpr)) AND ([MatrApp] = @Original_MatrApp) AND ((@IsNull_DataOraFrom = 1 AND [DataOraFrom] IS NULL) OR ([DataOraFrom] = @Original_DataOraFrom)) AND ((@IsNull_DataOraTo = 1 AND [DataOraTo] IS NULL) OR ([DataOraTo] = @Original_DataOraTo)) AND ((@IsNull_TotPzProd = 1 AND [TotPzProd] IS NULL) OR ([TotPzProd] = @Original_TotPzProd)) AND ((@IsNull_Tempo = 1 AND [Tempo] IS NULL) OR ([Tempo] = @Original_Tempo)) AND ((@IsNull_ClasseTempo = 1 AND [ClasseTempo] IS NULL) OR ([ClasseTempo] = @Original_ClasseTempo)) AND ((@IsNull_Causale = 1 AND [Causale] IS NULL) OR ([Causale] = @Original_Causale))); +SELECT IdxConferma, IdxODL, DataOraApp, DataRif, TurnoRif, CodArticolo, IdxMacchina, TCAssegnato, MatrOpr, MatrApp, DataOraFrom, DataOraTo, TotPzProd, Tempo, ClasseTempo, Causale FROM DatiProduzione WHERE (IdxConferma = @IdxConferma) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_DatiProd_getByMacchPeriodo + + + + + + + + + + + + + dbo.stp_DatiProd_getByPeriodo + + + + + + + + + + + + dbo.stp_DatiProd_insAllPeriodo + + + + + + + + + + + + + + + + dbo.stp_DatiProd_insert + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_repDonati_getDatiProdMacchina + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_repDonati_getLastStatoDurataMacchina + + + + + + + + + + + + + + + + + + + + + dbo.stp_repDonati_getDatiProdMacchinaPeriodo + + + + + + + + + + + + + + + + + + + + + + + + + DELETE FROM [dbo].[TurniMacchina] WHERE (([IdxMacchina] = @Original_IdxMacchina) AND ((@IsNull_T1 = 1 AND [T1] IS NULL) OR ([T1] = @Original_T1)) AND ((@IsNull_T2 = 1 AND [T2] IS NULL) OR ([T2] = @Original_T2)) AND ((@IsNull_T3 = 1 AND [T3] IS NULL) OR ([T3] = @Original_T3))) + + + + + + + + + + + + + + INSERT INTO [dbo].[TurniMacchina] ([IdxMacchina], [T1], [T2], [T3]) VALUES (@IdxMacchina, @T1, @T2, @T3); +SELECT IdxMacchina, T1, T2, T3 FROM TurniMacchina WHERE (IdxMacchina = @IdxMacchina) + + + + + + + + + + + SELECT IdxMacchina, T1, T2, T3 FROM dbo.TurniMacchina + + + + + + UPDATE [dbo].[TurniMacchina] SET [IdxMacchina] = @IdxMacchina, [T1] = @T1, [T2] = @T2, [T3] = @T3 WHERE (([IdxMacchina] = @Original_IdxMacchina) AND ((@IsNull_T1 = 1 AND [T1] IS NULL) OR ([T1] = @Original_T1)) AND ((@IsNull_T2 = 1 AND [T2] IS NULL) OR ([T2] = @Original_T2)) AND ((@IsNull_T3 = 1 AND [T3] IS NULL) OR ([T3] = @Original_T3))); +SELECT IdxMacchina, T1, T2, T3 FROM TurniMacchina WHERE (IdxMacchina = @IdxMacchina) + + + + + + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_turniMacchineByIdxMacc + + + + + + + + + + + dbo.stp_turniMacchineUpdateTurno + + + + + + + + + + + + + + + + DELETE FROM [dbo].[MappaStatoExpl] WHERE (([RowNum] = @Original_RowNum) AND ((@IsNull_lastUpdate = 1 AND [lastUpdate] IS NULL) OR ([lastUpdate] = @Original_lastUpdate)) AND ((@IsNull_IdxMacchina = 1 AND [IdxMacchina] IS NULL) OR ([IdxMacchina] = @Original_IdxMacchina)) AND ((@IsNull_CodMacchina = 1 AND [CodMacchina] IS NULL) OR ([CodMacchina] = @Original_CodMacchina)) AND ((@IsNull_Nome = 1 AND [Nome] IS NULL) OR ([Nome] = @Original_Nome)) AND ((@IsNull_url = 1 AND [url] IS NULL) OR ([url] = @Original_url)) AND ((@IsNull_idxODL = 1 AND [idxODL] IS NULL) OR ([idxODL] = @Original_idxODL)) AND ((@IsNull_CodArticolo = 1 AND [CodArticolo] IS NULL) OR ([CodArticolo] = @Original_CodArticolo)) AND ((@IsNull_NumPezzi = 1 AND [NumPezzi] IS NULL) OR ([NumPezzi] = @Original_NumPezzi)) AND ((@IsNull_TCAssegnato = 1 AND [TCAssegnato] IS NULL) OR ([TCAssegnato] = @Original_TCAssegnato)) AND ((@IsNull_DataInizioODL = 1 AND [DataInizioODL] IS NULL) OR ([DataInizioODL] = @Original_DataInizioODL)) AND ((@IsNull_Semaforo = 1 AND [Semaforo] IS NULL) OR ([Semaforo] = @Original_Semaforo)) AND ((@IsNull_idxStato = 1 AND [idxStato] IS NULL) OR ([idxStato] = @Original_idxStato)) AND ((@IsNull_DescrizioneStato = 1 AND [DescrizioneStato] IS NULL) OR ([DescrizioneStato] = @Original_DescrizioneStato)) AND ((@IsNull_durata = 1 AND [durata] IS NULL) OR ([durata] = @Original_durata)) AND ((@IsNull_PezziProd = 1 AND [PezziProd] IS NULL) OR ([PezziProd] = @Original_PezziProd)) AND ((@IsNull_PezziConf = 1 AND [PezziConf] IS NULL) OR ([PezziConf] = @Original_PezziConf)) AND ((@IsNull_TempoOn = 1 AND [TempoOn] IS NULL) OR ([TempoOn] = @Original_TempoOn)) AND ((@IsNull_TempoAuto = 1 AND [TempoAuto] IS NULL) OR ([TempoAuto] = @Original_TempoAuto)) AND ((@IsNull_TempoRun = 1 AND [TempoRun] IS NULL) OR ([TempoRun] = @Original_TempoRun)) AND ((@IsNull_TCMedio = 1 AND [TCMedio] IS NULL) OR ([TCMedio] = @Original_TCMedio)) AND ((@IsNull_TCLav = 1 AND [TCLav] IS NULL) OR ([TCLav] = @Original_TCLav)) AND ((@IsNull_TCEff = 1 AND [TCEff] IS NULL) OR ([TCEff] = @Original_TCEff)) AND ((@IsNull_TCMedioRT = 1 AND [TCMedioRT] IS NULL) OR ([TCMedioRT] = @Original_TCMedioRT)) AND ((@IsNull_TCLavRT = 1 AND [TCLavRT] IS NULL) OR ([TCLavRT] = @Original_TCLavRT)) AND ((@IsNull_TCEffRT = 1 AND [TCEffRT] IS NULL) OR ([TCEffRT] = @Original_TCEffRT))) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + INSERT INTO [dbo].[MappaStatoExpl] ([lastUpdate], [IdxMacchina], [CodMacchina], [Nome], [url], [idxODL], [CodArticolo], [NumPezzi], [TCAssegnato], [DataInizioODL], [Semaforo], [idxStato], [DescrizioneStato], [durata], [PezziProd], [PezziConf], [TempoOn], [TempoAuto], [TempoRun], [TCMedio], [TCLav], [TCEff], [TCMedioRT], [TCLavRT], [TCEffRT]) VALUES (@lastUpdate, @IdxMacchina, @CodMacchina, @Nome, @url, @idxODL, @CodArticolo, @NumPezzi, @TCAssegnato, @DataInizioODL, @Semaforo, @idxStato, @DescrizioneStato, @durata, @PezziProd, @PezziConf, @TempoOn, @TempoAuto, @TempoRun, @TCMedio, @TCLav, @TCEff, @TCMedioRT, @TCLavRT, @TCEffRT); +SELECT RowNum, lastUpdate, IdxMacchina, CodMacchina, Nome, url, idxODL, CodArticolo, NumPezzi, TCAssegnato, DataInizioODL, Semaforo, idxStato, DescrizioneStato, durata, PezziProd, PezziConf, TempoOn, TempoAuto, TempoRun, TCMedio, TCLav, TCEff, TCMedioRT, TCLavRT, TCEffRT FROM MappaStatoExpl WHERE (RowNum = SCOPE_IDENTITY()) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + SELECT RowNum, lastUpdate, IdxMacchina, CodMacchina, Nome, url, idxODL, CodArticolo, NumPezzi, TCAssegnato, DataInizioODL, Semaforo, idxStato, DescrizioneStato, durata, PezziProd, PezziConf, TempoOn, TempoAuto, TempoRun, TCMedio, TCLav, TCEff, TCMedioRT, TCLavRT, TCEffRT FROM dbo.MappaStatoExpl + + + + + + UPDATE [dbo].[MappaStatoExpl] SET [lastUpdate] = @lastUpdate, [IdxMacchina] = @IdxMacchina, [CodMacchina] = @CodMacchina, [Nome] = @Nome, [url] = @url, [idxODL] = @idxODL, [CodArticolo] = @CodArticolo, [NumPezzi] = @NumPezzi, [TCAssegnato] = @TCAssegnato, [DataInizioODL] = @DataInizioODL, [Semaforo] = @Semaforo, [idxStato] = @idxStato, [DescrizioneStato] = @DescrizioneStato, [durata] = @durata, [PezziProd] = @PezziProd, [PezziConf] = @PezziConf, [TempoOn] = @TempoOn, [TempoAuto] = @TempoAuto, [TempoRun] = @TempoRun, [TCMedio] = @TCMedio, [TCLav] = @TCLav, [TCEff] = @TCEff, [TCMedioRT] = @TCMedioRT, [TCLavRT] = @TCLavRT, [TCEffRT] = @TCEffRT WHERE (([RowNum] = @Original_RowNum) AND ((@IsNull_lastUpdate = 1 AND [lastUpdate] IS NULL) OR ([lastUpdate] = @Original_lastUpdate)) AND ((@IsNull_IdxMacchina = 1 AND [IdxMacchina] IS NULL) OR ([IdxMacchina] = @Original_IdxMacchina)) AND ((@IsNull_CodMacchina = 1 AND [CodMacchina] IS NULL) OR ([CodMacchina] = @Original_CodMacchina)) AND ((@IsNull_Nome = 1 AND [Nome] IS NULL) OR ([Nome] = @Original_Nome)) AND ((@IsNull_url = 1 AND [url] IS NULL) OR ([url] = @Original_url)) AND ((@IsNull_idxODL = 1 AND [idxODL] IS NULL) OR ([idxODL] = @Original_idxODL)) AND ((@IsNull_CodArticolo = 1 AND [CodArticolo] IS NULL) OR ([CodArticolo] = @Original_CodArticolo)) AND ((@IsNull_NumPezzi = 1 AND [NumPezzi] IS NULL) OR ([NumPezzi] = @Original_NumPezzi)) AND ((@IsNull_TCAssegnato = 1 AND [TCAssegnato] IS NULL) OR ([TCAssegnato] = @Original_TCAssegnato)) AND ((@IsNull_DataInizioODL = 1 AND [DataInizioODL] IS NULL) OR ([DataInizioODL] = @Original_DataInizioODL)) AND ((@IsNull_Semaforo = 1 AND [Semaforo] IS NULL) OR ([Semaforo] = @Original_Semaforo)) AND ((@IsNull_idxStato = 1 AND [idxStato] IS NULL) OR ([idxStato] = @Original_idxStato)) AND ((@IsNull_DescrizioneStato = 1 AND [DescrizioneStato] IS NULL) OR ([DescrizioneStato] = @Original_DescrizioneStato)) AND ((@IsNull_durata = 1 AND [durata] IS NULL) OR ([durata] = @Original_durata)) AND ((@IsNull_PezziProd = 1 AND [PezziProd] IS NULL) OR ([PezziProd] = @Original_PezziProd)) AND ((@IsNull_PezziConf = 1 AND [PezziConf] IS NULL) OR ([PezziConf] = @Original_PezziConf)) AND ((@IsNull_TempoOn = 1 AND [TempoOn] IS NULL) OR ([TempoOn] = @Original_TempoOn)) AND ((@IsNull_TempoAuto = 1 AND [TempoAuto] IS NULL) OR ([TempoAuto] = @Original_TempoAuto)) AND ((@IsNull_TempoRun = 1 AND [TempoRun] IS NULL) OR ([TempoRun] = @Original_TempoRun)) AND ((@IsNull_TCMedio = 1 AND [TCMedio] IS NULL) OR ([TCMedio] = @Original_TCMedio)) AND ((@IsNull_TCLav = 1 AND [TCLav] IS NULL) OR ([TCLav] = @Original_TCLav)) AND ((@IsNull_TCEff = 1 AND [TCEff] IS NULL) OR ([TCEff] = @Original_TCEff)) AND ((@IsNull_TCMedioRT = 1 AND [TCMedioRT] IS NULL) OR ([TCMedioRT] = @Original_TCMedioRT)) AND ((@IsNull_TCLavRT = 1 AND [TCLavRT] IS NULL) OR ([TCLavRT] = @Original_TCLavRT)) AND ((@IsNull_TCEffRT = 1 AND [TCEffRT] IS NULL) OR ([TCEffRT] = @Original_TCEffRT))); +SELECT RowNum, lastUpdate, IdxMacchina, CodMacchina, Nome, url, idxODL, CodArticolo, NumPezzi, TCAssegnato, DataInizioODL, Semaforo, idxStato, DescrizioneStato, durata, PezziProd, PezziConf, TempoOn, TempoAuto, TempoRun, TCMedio, TCLav, TCEff, TCMedioRT, TCLavRT, TCEffRT FROM MappaStatoExpl WHERE (RowNum = @RowNum) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_MSE_getByIdxMacchina + + + + + + + + + + + dbo.stp_MSE_getData + + + + + + + + + + + + + + + SELECT IdxODL, CommessaAs400, DataRif, CodArticolo, TotPzProd +FROM export.v_AS400_BufferProdAs400 + + + + + + + + + + + + + + + + + dbo.stp_EXP_insProdAs400_OdlDate + + + + + + + + + + + + + + + + dbo.stp_ResProdDett_splitODL + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_ResProdDett_splitGG + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_ResProd_getByPeriodo + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/MapoDb/DS_ProdTempi.xss b/MapoDb/DS_ProdTempi.xss new file mode 100644 index 00000000..7bcdaffb --- /dev/null +++ b/MapoDb/DS_ProdTempi.xss @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/MapoDb/DS_ProdTempi1.Designer.cs b/MapoDb/DS_ProdTempi1.Designer.cs new file mode 100644 index 00000000..e97334b3 --- /dev/null +++ b/MapoDb/DS_ProdTempi1.Designer.cs @@ -0,0 +1,23263 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +#pragma warning disable 1591 + +namespace MapoDb { + + + /// + ///Represents a strongly typed in-memory cache of data. + /// + [global::System.Serializable()] + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")] + [global::System.Xml.Serialization.XmlRootAttribute("DS_ProdTempi")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")] + public partial class DS_ProdTempi : global::System.Data.DataSet { + + private TempiCicloRilevatiDataTable tableTempiCicloRilevati; + + private ODLDataTable tableODL; + + private AnagArticoliDataTable tableAnagArticoli; + + private DatiMacchineDataTable tableDatiMacchine; + + private PostazioniMapoDataTable tablePostazioniMapo; + + private stp_PzProd_getByMacchinaDataTable tablestp_PzProd_getByMacchina; + + private DatiConfermatiDataTable tableDatiConfermati; + + private CalendFesteFerieDataTable tableCalendFesteFerie; + + private stp_TempoByIdxMaccPeriodClassDataTable tablestp_TempoByIdxMaccPeriodClass; + + private DatiProduzioneDataTable tableDatiProduzione; + + private stp_repDonati_getDatiProdMacchinaDataTable tablestp_repDonati_getDatiProdMacchina; + + private stp_repDonati_getLastStatoDurataMacchinaDataTable tablestp_repDonati_getLastStatoDurataMacchina; + + private stp_repDonati_getDatiProdMacchinaPeriodoDataTable tablestp_repDonati_getDatiProdMacchinaPeriodo; + + private TurniMacchinaDataTable tableTurniMacchina; + + private MappaStatoExplDataTable tableMappaStatoExpl; + + private ProduzioneAs400DataTable tableProduzioneAs400; + + private ResProdDett_splitODLDataTable tableResProdDett_splitODL; + + private ResProdDett_splitGGDataTable tableResProdDett_splitGG; + + private ResProdTotDataTable tableResProdTot; + + private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DS_ProdTempi() { + this.BeginInit(); + this.InitClass(); + global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); + base.Tables.CollectionChanged += schemaChangedHandler; + base.Relations.CollectionChanged += schemaChangedHandler; + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected DS_ProdTempi(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context, false) { + if ((this.IsBinarySerialized(info, context) == true)) { + this.InitVars(false); + global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); + this.Tables.CollectionChanged += schemaChangedHandler1; + this.Relations.CollectionChanged += schemaChangedHandler1; + return; + } + string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string)))); + if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) { + global::System.Data.DataSet ds = new global::System.Data.DataSet(); + ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema))); + if ((ds.Tables["TempiCicloRilevati"] != null)) { + base.Tables.Add(new TempiCicloRilevatiDataTable(ds.Tables["TempiCicloRilevati"])); + } + if ((ds.Tables["ODL"] != null)) { + base.Tables.Add(new ODLDataTable(ds.Tables["ODL"])); + } + if ((ds.Tables["AnagArticoli"] != null)) { + base.Tables.Add(new AnagArticoliDataTable(ds.Tables["AnagArticoli"])); + } + if ((ds.Tables["DatiMacchine"] != null)) { + base.Tables.Add(new DatiMacchineDataTable(ds.Tables["DatiMacchine"])); + } + if ((ds.Tables["PostazioniMapo"] != null)) { + base.Tables.Add(new PostazioniMapoDataTable(ds.Tables["PostazioniMapo"])); + } + if ((ds.Tables["stp_PzProd_getByMacchina"] != null)) { + base.Tables.Add(new stp_PzProd_getByMacchinaDataTable(ds.Tables["stp_PzProd_getByMacchina"])); + } + if ((ds.Tables["DatiConfermati"] != null)) { + base.Tables.Add(new DatiConfermatiDataTable(ds.Tables["DatiConfermati"])); + } + if ((ds.Tables["CalendFesteFerie"] != null)) { + base.Tables.Add(new CalendFesteFerieDataTable(ds.Tables["CalendFesteFerie"])); + } + if ((ds.Tables["stp_TempoByIdxMaccPeriodClass"] != null)) { + base.Tables.Add(new stp_TempoByIdxMaccPeriodClassDataTable(ds.Tables["stp_TempoByIdxMaccPeriodClass"])); + } + if ((ds.Tables["DatiProduzione"] != null)) { + base.Tables.Add(new DatiProduzioneDataTable(ds.Tables["DatiProduzione"])); + } + if ((ds.Tables["stp_repDonati_getDatiProdMacchina"] != null)) { + base.Tables.Add(new stp_repDonati_getDatiProdMacchinaDataTable(ds.Tables["stp_repDonati_getDatiProdMacchina"])); + } + if ((ds.Tables["stp_repDonati_getLastStatoDurataMacchina"] != null)) { + base.Tables.Add(new stp_repDonati_getLastStatoDurataMacchinaDataTable(ds.Tables["stp_repDonati_getLastStatoDurataMacchina"])); + } + if ((ds.Tables["stp_repDonati_getDatiProdMacchinaPeriodo"] != null)) { + base.Tables.Add(new stp_repDonati_getDatiProdMacchinaPeriodoDataTable(ds.Tables["stp_repDonati_getDatiProdMacchinaPeriodo"])); + } + if ((ds.Tables["TurniMacchina"] != null)) { + base.Tables.Add(new TurniMacchinaDataTable(ds.Tables["TurniMacchina"])); + } + if ((ds.Tables["MappaStatoExpl"] != null)) { + base.Tables.Add(new MappaStatoExplDataTable(ds.Tables["MappaStatoExpl"])); + } + if ((ds.Tables["ProduzioneAs400"] != null)) { + base.Tables.Add(new ProduzioneAs400DataTable(ds.Tables["ProduzioneAs400"])); + } + if ((ds.Tables["ResProdDett_splitODL"] != null)) { + base.Tables.Add(new ResProdDett_splitODLDataTable(ds.Tables["ResProdDett_splitODL"])); + } + if ((ds.Tables["ResProdDett_splitGG"] != null)) { + base.Tables.Add(new ResProdDett_splitGGDataTable(ds.Tables["ResProdDett_splitGG"])); + } + if ((ds.Tables["ResProdTot"] != null)) { + base.Tables.Add(new ResProdTotDataTable(ds.Tables["ResProdTot"])); + } + this.DataSetName = ds.DataSetName; + this.Prefix = ds.Prefix; + this.Namespace = ds.Namespace; + this.Locale = ds.Locale; + this.CaseSensitive = ds.CaseSensitive; + this.EnforceConstraints = ds.EnforceConstraints; + this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add); + this.InitVars(); + } + else { + this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema))); + } + this.GetSerializationData(info, context); + global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); + base.Tables.CollectionChanged += schemaChangedHandler; + this.Relations.CollectionChanged += schemaChangedHandler; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public TempiCicloRilevatiDataTable TempiCicloRilevati { + get { + return this.tableTempiCicloRilevati; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public ODLDataTable ODL { + get { + return this.tableODL; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public AnagArticoliDataTable AnagArticoli { + get { + return this.tableAnagArticoli; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public DatiMacchineDataTable DatiMacchine { + get { + return this.tableDatiMacchine; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public PostazioniMapoDataTable PostazioniMapo { + get { + return this.tablePostazioniMapo; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public stp_PzProd_getByMacchinaDataTable stp_PzProd_getByMacchina { + get { + return this.tablestp_PzProd_getByMacchina; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public DatiConfermatiDataTable DatiConfermati { + get { + return this.tableDatiConfermati; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public CalendFesteFerieDataTable CalendFesteFerie { + get { + return this.tableCalendFesteFerie; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public stp_TempoByIdxMaccPeriodClassDataTable stp_TempoByIdxMaccPeriodClass { + get { + return this.tablestp_TempoByIdxMaccPeriodClass; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public DatiProduzioneDataTable DatiProduzione { + get { + return this.tableDatiProduzione; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public stp_repDonati_getDatiProdMacchinaDataTable stp_repDonati_getDatiProdMacchina { + get { + return this.tablestp_repDonati_getDatiProdMacchina; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public stp_repDonati_getLastStatoDurataMacchinaDataTable stp_repDonati_getLastStatoDurataMacchina { + get { + return this.tablestp_repDonati_getLastStatoDurataMacchina; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public stp_repDonati_getDatiProdMacchinaPeriodoDataTable stp_repDonati_getDatiProdMacchinaPeriodo { + get { + return this.tablestp_repDonati_getDatiProdMacchinaPeriodo; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public TurniMacchinaDataTable TurniMacchina { + get { + return this.tableTurniMacchina; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public MappaStatoExplDataTable MappaStatoExpl { + get { + return this.tableMappaStatoExpl; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public ProduzioneAs400DataTable ProduzioneAs400 { + get { + return this.tableProduzioneAs400; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public ResProdDett_splitODLDataTable ResProdDett_splitODL { + get { + return this.tableResProdDett_splitODL; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public ResProdDett_splitGGDataTable ResProdDett_splitGG { + get { + return this.tableResProdDett_splitGG; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public ResProdTotDataTable ResProdTot { + get { + return this.tableResProdTot; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.BrowsableAttribute(true)] + [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)] + public override global::System.Data.SchemaSerializationMode SchemaSerializationMode { + get { + return this._schemaSerializationMode; + } + set { + this._schemaSerializationMode = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)] + public new global::System.Data.DataTableCollection Tables { + get { + return base.Tables; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)] + public new global::System.Data.DataRelationCollection Relations { + get { + return base.Relations; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void InitializeDerivedDataSet() { + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataSet Clone() { + DS_ProdTempi cln = ((DS_ProdTempi)(base.Clone())); + cln.InitVars(); + cln.SchemaSerializationMode = this.SchemaSerializationMode; + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override bool ShouldSerializeTables() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override bool ShouldSerializeRelations() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) { + if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) { + this.Reset(); + global::System.Data.DataSet ds = new global::System.Data.DataSet(); + ds.ReadXml(reader); + if ((ds.Tables["TempiCicloRilevati"] != null)) { + base.Tables.Add(new TempiCicloRilevatiDataTable(ds.Tables["TempiCicloRilevati"])); + } + if ((ds.Tables["ODL"] != null)) { + base.Tables.Add(new ODLDataTable(ds.Tables["ODL"])); + } + if ((ds.Tables["AnagArticoli"] != null)) { + base.Tables.Add(new AnagArticoliDataTable(ds.Tables["AnagArticoli"])); + } + if ((ds.Tables["DatiMacchine"] != null)) { + base.Tables.Add(new DatiMacchineDataTable(ds.Tables["DatiMacchine"])); + } + if ((ds.Tables["PostazioniMapo"] != null)) { + base.Tables.Add(new PostazioniMapoDataTable(ds.Tables["PostazioniMapo"])); + } + if ((ds.Tables["stp_PzProd_getByMacchina"] != null)) { + base.Tables.Add(new stp_PzProd_getByMacchinaDataTable(ds.Tables["stp_PzProd_getByMacchina"])); + } + if ((ds.Tables["DatiConfermati"] != null)) { + base.Tables.Add(new DatiConfermatiDataTable(ds.Tables["DatiConfermati"])); + } + if ((ds.Tables["CalendFesteFerie"] != null)) { + base.Tables.Add(new CalendFesteFerieDataTable(ds.Tables["CalendFesteFerie"])); + } + if ((ds.Tables["stp_TempoByIdxMaccPeriodClass"] != null)) { + base.Tables.Add(new stp_TempoByIdxMaccPeriodClassDataTable(ds.Tables["stp_TempoByIdxMaccPeriodClass"])); + } + if ((ds.Tables["DatiProduzione"] != null)) { + base.Tables.Add(new DatiProduzioneDataTable(ds.Tables["DatiProduzione"])); + } + if ((ds.Tables["stp_repDonati_getDatiProdMacchina"] != null)) { + base.Tables.Add(new stp_repDonati_getDatiProdMacchinaDataTable(ds.Tables["stp_repDonati_getDatiProdMacchina"])); + } + if ((ds.Tables["stp_repDonati_getLastStatoDurataMacchina"] != null)) { + base.Tables.Add(new stp_repDonati_getLastStatoDurataMacchinaDataTable(ds.Tables["stp_repDonati_getLastStatoDurataMacchina"])); + } + if ((ds.Tables["stp_repDonati_getDatiProdMacchinaPeriodo"] != null)) { + base.Tables.Add(new stp_repDonati_getDatiProdMacchinaPeriodoDataTable(ds.Tables["stp_repDonati_getDatiProdMacchinaPeriodo"])); + } + if ((ds.Tables["TurniMacchina"] != null)) { + base.Tables.Add(new TurniMacchinaDataTable(ds.Tables["TurniMacchina"])); + } + if ((ds.Tables["MappaStatoExpl"] != null)) { + base.Tables.Add(new MappaStatoExplDataTable(ds.Tables["MappaStatoExpl"])); + } + if ((ds.Tables["ProduzioneAs400"] != null)) { + base.Tables.Add(new ProduzioneAs400DataTable(ds.Tables["ProduzioneAs400"])); + } + if ((ds.Tables["ResProdDett_splitODL"] != null)) { + base.Tables.Add(new ResProdDett_splitODLDataTable(ds.Tables["ResProdDett_splitODL"])); + } + if ((ds.Tables["ResProdDett_splitGG"] != null)) { + base.Tables.Add(new ResProdDett_splitGGDataTable(ds.Tables["ResProdDett_splitGG"])); + } + if ((ds.Tables["ResProdTot"] != null)) { + base.Tables.Add(new ResProdTotDataTable(ds.Tables["ResProdTot"])); + } + this.DataSetName = ds.DataSetName; + this.Prefix = ds.Prefix; + this.Namespace = ds.Namespace; + this.Locale = ds.Locale; + this.CaseSensitive = ds.CaseSensitive; + this.EnforceConstraints = ds.EnforceConstraints; + this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add); + this.InitVars(); + } + else { + this.ReadXml(reader); + this.InitVars(); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() { + global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream(); + this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null)); + stream.Position = 0; + return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.InitVars(true); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars(bool initTable) { + this.tableTempiCicloRilevati = ((TempiCicloRilevatiDataTable)(base.Tables["TempiCicloRilevati"])); + if ((initTable == true)) { + if ((this.tableTempiCicloRilevati != null)) { + this.tableTempiCicloRilevati.InitVars(); + } + } + this.tableODL = ((ODLDataTable)(base.Tables["ODL"])); + if ((initTable == true)) { + if ((this.tableODL != null)) { + this.tableODL.InitVars(); + } + } + this.tableAnagArticoli = ((AnagArticoliDataTable)(base.Tables["AnagArticoli"])); + if ((initTable == true)) { + if ((this.tableAnagArticoli != null)) { + this.tableAnagArticoli.InitVars(); + } + } + this.tableDatiMacchine = ((DatiMacchineDataTable)(base.Tables["DatiMacchine"])); + if ((initTable == true)) { + if ((this.tableDatiMacchine != null)) { + this.tableDatiMacchine.InitVars(); + } + } + this.tablePostazioniMapo = ((PostazioniMapoDataTable)(base.Tables["PostazioniMapo"])); + if ((initTable == true)) { + if ((this.tablePostazioniMapo != null)) { + this.tablePostazioniMapo.InitVars(); + } + } + this.tablestp_PzProd_getByMacchina = ((stp_PzProd_getByMacchinaDataTable)(base.Tables["stp_PzProd_getByMacchina"])); + if ((initTable == true)) { + if ((this.tablestp_PzProd_getByMacchina != null)) { + this.tablestp_PzProd_getByMacchina.InitVars(); + } + } + this.tableDatiConfermati = ((DatiConfermatiDataTable)(base.Tables["DatiConfermati"])); + if ((initTable == true)) { + if ((this.tableDatiConfermati != null)) { + this.tableDatiConfermati.InitVars(); + } + } + this.tableCalendFesteFerie = ((CalendFesteFerieDataTable)(base.Tables["CalendFesteFerie"])); + if ((initTable == true)) { + if ((this.tableCalendFesteFerie != null)) { + this.tableCalendFesteFerie.InitVars(); + } + } + this.tablestp_TempoByIdxMaccPeriodClass = ((stp_TempoByIdxMaccPeriodClassDataTable)(base.Tables["stp_TempoByIdxMaccPeriodClass"])); + if ((initTable == true)) { + if ((this.tablestp_TempoByIdxMaccPeriodClass != null)) { + this.tablestp_TempoByIdxMaccPeriodClass.InitVars(); + } + } + this.tableDatiProduzione = ((DatiProduzioneDataTable)(base.Tables["DatiProduzione"])); + if ((initTable == true)) { + if ((this.tableDatiProduzione != null)) { + this.tableDatiProduzione.InitVars(); + } + } + this.tablestp_repDonati_getDatiProdMacchina = ((stp_repDonati_getDatiProdMacchinaDataTable)(base.Tables["stp_repDonati_getDatiProdMacchina"])); + if ((initTable == true)) { + if ((this.tablestp_repDonati_getDatiProdMacchina != null)) { + this.tablestp_repDonati_getDatiProdMacchina.InitVars(); + } + } + this.tablestp_repDonati_getLastStatoDurataMacchina = ((stp_repDonati_getLastStatoDurataMacchinaDataTable)(base.Tables["stp_repDonati_getLastStatoDurataMacchina"])); + if ((initTable == true)) { + if ((this.tablestp_repDonati_getLastStatoDurataMacchina != null)) { + this.tablestp_repDonati_getLastStatoDurataMacchina.InitVars(); + } + } + this.tablestp_repDonati_getDatiProdMacchinaPeriodo = ((stp_repDonati_getDatiProdMacchinaPeriodoDataTable)(base.Tables["stp_repDonati_getDatiProdMacchinaPeriodo"])); + if ((initTable == true)) { + if ((this.tablestp_repDonati_getDatiProdMacchinaPeriodo != null)) { + this.tablestp_repDonati_getDatiProdMacchinaPeriodo.InitVars(); + } + } + this.tableTurniMacchina = ((TurniMacchinaDataTable)(base.Tables["TurniMacchina"])); + if ((initTable == true)) { + if ((this.tableTurniMacchina != null)) { + this.tableTurniMacchina.InitVars(); + } + } + this.tableMappaStatoExpl = ((MappaStatoExplDataTable)(base.Tables["MappaStatoExpl"])); + if ((initTable == true)) { + if ((this.tableMappaStatoExpl != null)) { + this.tableMappaStatoExpl.InitVars(); + } + } + this.tableProduzioneAs400 = ((ProduzioneAs400DataTable)(base.Tables["ProduzioneAs400"])); + if ((initTable == true)) { + if ((this.tableProduzioneAs400 != null)) { + this.tableProduzioneAs400.InitVars(); + } + } + this.tableResProdDett_splitODL = ((ResProdDett_splitODLDataTable)(base.Tables["ResProdDett_splitODL"])); + if ((initTable == true)) { + if ((this.tableResProdDett_splitODL != null)) { + this.tableResProdDett_splitODL.InitVars(); + } + } + this.tableResProdDett_splitGG = ((ResProdDett_splitGGDataTable)(base.Tables["ResProdDett_splitGG"])); + if ((initTable == true)) { + if ((this.tableResProdDett_splitGG != null)) { + this.tableResProdDett_splitGG.InitVars(); + } + } + this.tableResProdTot = ((ResProdTotDataTable)(base.Tables["ResProdTot"])); + if ((initTable == true)) { + if ((this.tableResProdTot != null)) { + this.tableResProdTot.InitVars(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.DataSetName = "DS_ProdTempi"; + this.Prefix = ""; + this.Namespace = "http://tempuri.org/DS_ProdTempi.xsd"; + this.EnforceConstraints = true; + this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; + this.tableTempiCicloRilevati = new TempiCicloRilevatiDataTable(); + base.Tables.Add(this.tableTempiCicloRilevati); + this.tableODL = new ODLDataTable(); + base.Tables.Add(this.tableODL); + this.tableAnagArticoli = new AnagArticoliDataTable(); + base.Tables.Add(this.tableAnagArticoli); + this.tableDatiMacchine = new DatiMacchineDataTable(); + base.Tables.Add(this.tableDatiMacchine); + this.tablePostazioniMapo = new PostazioniMapoDataTable(); + base.Tables.Add(this.tablePostazioniMapo); + this.tablestp_PzProd_getByMacchina = new stp_PzProd_getByMacchinaDataTable(); + base.Tables.Add(this.tablestp_PzProd_getByMacchina); + this.tableDatiConfermati = new DatiConfermatiDataTable(); + base.Tables.Add(this.tableDatiConfermati); + this.tableCalendFesteFerie = new CalendFesteFerieDataTable(); + base.Tables.Add(this.tableCalendFesteFerie); + this.tablestp_TempoByIdxMaccPeriodClass = new stp_TempoByIdxMaccPeriodClassDataTable(); + base.Tables.Add(this.tablestp_TempoByIdxMaccPeriodClass); + this.tableDatiProduzione = new DatiProduzioneDataTable(); + base.Tables.Add(this.tableDatiProduzione); + this.tablestp_repDonati_getDatiProdMacchina = new stp_repDonati_getDatiProdMacchinaDataTable(); + base.Tables.Add(this.tablestp_repDonati_getDatiProdMacchina); + this.tablestp_repDonati_getLastStatoDurataMacchina = new stp_repDonati_getLastStatoDurataMacchinaDataTable(); + base.Tables.Add(this.tablestp_repDonati_getLastStatoDurataMacchina); + this.tablestp_repDonati_getDatiProdMacchinaPeriodo = new stp_repDonati_getDatiProdMacchinaPeriodoDataTable(); + base.Tables.Add(this.tablestp_repDonati_getDatiProdMacchinaPeriodo); + this.tableTurniMacchina = new TurniMacchinaDataTable(); + base.Tables.Add(this.tableTurniMacchina); + this.tableMappaStatoExpl = new MappaStatoExplDataTable(); + base.Tables.Add(this.tableMappaStatoExpl); + this.tableProduzioneAs400 = new ProduzioneAs400DataTable(); + base.Tables.Add(this.tableProduzioneAs400); + this.tableResProdDett_splitODL = new ResProdDett_splitODLDataTable(); + base.Tables.Add(this.tableResProdDett_splitODL); + this.tableResProdDett_splitGG = new ResProdDett_splitGGDataTable(); + base.Tables.Add(this.tableResProdDett_splitGG); + this.tableResProdTot = new ResProdTotDataTable(); + base.Tables.Add(this.tableResProdTot); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializeTempiCicloRilevati() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializeODL() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializeAnagArticoli() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializeDatiMacchine() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializePostazioniMapo() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializestp_PzProd_getByMacchina() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializeDatiConfermati() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializeCalendFesteFerie() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializestp_TempoByIdxMaccPeriodClass() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializeDatiProduzione() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializestp_repDonati_getDatiProdMacchina() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializestp_repDonati_getLastStatoDurataMacchina() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializestp_repDonati_getDatiProdMacchinaPeriodo() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializeTurniMacchina() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializeMappaStatoExpl() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializeProduzioneAs400() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializeResProdDett_splitODL() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializeResProdDett_splitGG() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializeResProdTot() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) { + if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) { + this.InitVars(); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + DS_ProdTempi ds = new DS_ProdTempi(); + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny(); + any.Namespace = ds.Namespace; + sequence.Items.Add(any); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void TempiCicloRilevatiRowChangeEventHandler(object sender, TempiCicloRilevatiRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void ODLRowChangeEventHandler(object sender, ODLRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void AnagArticoliRowChangeEventHandler(object sender, AnagArticoliRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void DatiMacchineRowChangeEventHandler(object sender, DatiMacchineRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void PostazioniMapoRowChangeEventHandler(object sender, PostazioniMapoRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void stp_PzProd_getByMacchinaRowChangeEventHandler(object sender, stp_PzProd_getByMacchinaRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void DatiConfermatiRowChangeEventHandler(object sender, DatiConfermatiRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void CalendFesteFerieRowChangeEventHandler(object sender, CalendFesteFerieRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void stp_TempoByIdxMaccPeriodClassRowChangeEventHandler(object sender, stp_TempoByIdxMaccPeriodClassRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void DatiProduzioneRowChangeEventHandler(object sender, DatiProduzioneRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void stp_repDonati_getDatiProdMacchinaRowChangeEventHandler(object sender, stp_repDonati_getDatiProdMacchinaRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void stp_repDonati_getLastStatoDurataMacchinaRowChangeEventHandler(object sender, stp_repDonati_getLastStatoDurataMacchinaRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void stp_repDonati_getDatiProdMacchinaPeriodoRowChangeEventHandler(object sender, stp_repDonati_getDatiProdMacchinaPeriodoRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void TurniMacchinaRowChangeEventHandler(object sender, TurniMacchinaRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void MappaStatoExplRowChangeEventHandler(object sender, MappaStatoExplRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void ProduzioneAs400RowChangeEventHandler(object sender, ProduzioneAs400RowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void ResProdDett_splitODLRowChangeEventHandler(object sender, ResProdDett_splitODLRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void ResProdDett_splitGGRowChangeEventHandler(object sender, ResProdDett_splitGGRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void ResProdTotRowChangeEventHandler(object sender, ResProdTotRowChangeEvent e); + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class TempiCicloRilevatiDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnIdxMacchina; + + private global::System.Data.DataColumn columnCodArticolo; + + private global::System.Data.DataColumn columnDataOraRif; + + private global::System.Data.DataColumn columnTCMedio; + + private global::System.Data.DataColumn columnPzProd; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public TempiCicloRilevatiDataTable() { + this.TableName = "TempiCicloRilevati"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal TempiCicloRilevatiDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected TempiCicloRilevatiDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn IdxMacchinaColumn { + get { + return this.columnIdxMacchina; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn CodArticoloColumn { + get { + return this.columnCodArticolo; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn DataOraRifColumn { + get { + return this.columnDataOraRif; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TCMedioColumn { + get { + return this.columnTCMedio; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn PzProdColumn { + get { + return this.columnPzProd; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public TempiCicloRilevatiRow this[int index] { + get { + return ((TempiCicloRilevatiRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event TempiCicloRilevatiRowChangeEventHandler TempiCicloRilevatiRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event TempiCicloRilevatiRowChangeEventHandler TempiCicloRilevatiRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event TempiCicloRilevatiRowChangeEventHandler TempiCicloRilevatiRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event TempiCicloRilevatiRowChangeEventHandler TempiCicloRilevatiRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddTempiCicloRilevatiRow(TempiCicloRilevatiRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public TempiCicloRilevatiRow AddTempiCicloRilevatiRow(string IdxMacchina, string CodArticolo, System.DateTime DataOraRif, decimal TCMedio, int PzProd) { + TempiCicloRilevatiRow rowTempiCicloRilevatiRow = ((TempiCicloRilevatiRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + IdxMacchina, + CodArticolo, + DataOraRif, + TCMedio, + PzProd}; + rowTempiCicloRilevatiRow.ItemArray = columnValuesArray; + this.Rows.Add(rowTempiCicloRilevatiRow); + return rowTempiCicloRilevatiRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public TempiCicloRilevatiRow FindByIdxMacchinaCodArticoloDataOraRif(string IdxMacchina, string CodArticolo, System.DateTime DataOraRif) { + return ((TempiCicloRilevatiRow)(this.Rows.Find(new object[] { + IdxMacchina, + CodArticolo, + DataOraRif}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + TempiCicloRilevatiDataTable cln = ((TempiCicloRilevatiDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new TempiCicloRilevatiDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnIdxMacchina = base.Columns["IdxMacchina"]; + this.columnCodArticolo = base.Columns["CodArticolo"]; + this.columnDataOraRif = base.Columns["DataOraRif"]; + this.columnTCMedio = base.Columns["TCMedio"]; + this.columnPzProd = base.Columns["PzProd"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnIdxMacchina = new global::System.Data.DataColumn("IdxMacchina", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxMacchina); + this.columnCodArticolo = new global::System.Data.DataColumn("CodArticolo", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodArticolo); + this.columnDataOraRif = new global::System.Data.DataColumn("DataOraRif", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDataOraRif); + this.columnTCMedio = new global::System.Data.DataColumn("TCMedio", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTCMedio); + this.columnPzProd = new global::System.Data.DataColumn("PzProd", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnPzProd); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnIdxMacchina, + this.columnCodArticolo, + this.columnDataOraRif}, true)); + this.columnIdxMacchina.AllowDBNull = false; + this.columnIdxMacchina.MaxLength = 50; + this.columnCodArticolo.AllowDBNull = false; + this.columnCodArticolo.MaxLength = 50; + this.columnDataOraRif.AllowDBNull = false; + this.columnTCMedio.AllowDBNull = false; + this.columnPzProd.AllowDBNull = false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public TempiCicloRilevatiRow NewTempiCicloRilevatiRow() { + return ((TempiCicloRilevatiRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new TempiCicloRilevatiRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(TempiCicloRilevatiRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.TempiCicloRilevatiRowChanged != null)) { + this.TempiCicloRilevatiRowChanged(this, new TempiCicloRilevatiRowChangeEvent(((TempiCicloRilevatiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.TempiCicloRilevatiRowChanging != null)) { + this.TempiCicloRilevatiRowChanging(this, new TempiCicloRilevatiRowChangeEvent(((TempiCicloRilevatiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.TempiCicloRilevatiRowDeleted != null)) { + this.TempiCicloRilevatiRowDeleted(this, new TempiCicloRilevatiRowChangeEvent(((TempiCicloRilevatiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.TempiCicloRilevatiRowDeleting != null)) { + this.TempiCicloRilevatiRowDeleting(this, new TempiCicloRilevatiRowChangeEvent(((TempiCicloRilevatiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveTempiCicloRilevatiRow(TempiCicloRilevatiRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_ProdTempi ds = new DS_ProdTempi(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "TempiCicloRilevatiDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class ODLDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnIdxODL; + + private global::System.Data.DataColumn columnCodArticolo; + + private global::System.Data.DataColumn columnIdxMacchina; + + private global::System.Data.DataColumn columnNumPezzi; + + private global::System.Data.DataColumn columnTCAssegnato; + + private global::System.Data.DataColumn columnDescArticolo; + + private global::System.Data.DataColumn columnCodMacchina; + + private global::System.Data.DataColumn columnNome; + + private global::System.Data.DataColumn columnDataInizio; + + private global::System.Data.DataColumn columnDataFine; + + private global::System.Data.DataColumn columnNote; + + private global::System.Data.DataColumn columnNeedAppr; + + private global::System.Data.DataColumn columnUserAppr; + + private global::System.Data.DataColumn columnDataAppr; + + private global::System.Data.DataColumn columnTCRichAttr; + + private global::System.Data.DataColumn columnToAs400; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public ODLDataTable() { + this.TableName = "ODL"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal ODLDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected ODLDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn IdxODLColumn { + get { + return this.columnIdxODL; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn CodArticoloColumn { + get { + return this.columnCodArticolo; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn IdxMacchinaColumn { + get { + return this.columnIdxMacchina; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn NumPezziColumn { + get { + return this.columnNumPezzi; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TCAssegnatoColumn { + get { + return this.columnTCAssegnato; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn DescArticoloColumn { + get { + return this.columnDescArticolo; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn CodMacchinaColumn { + get { + return this.columnCodMacchina; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn NomeColumn { + get { + return this.columnNome; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn DataInizioColumn { + get { + return this.columnDataInizio; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn DataFineColumn { + get { + return this.columnDataFine; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn NoteColumn { + get { + return this.columnNote; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn NeedApprColumn { + get { + return this.columnNeedAppr; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn UserApprColumn { + get { + return this.columnUserAppr; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn DataApprColumn { + get { + return this.columnDataAppr; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TCRichAttrColumn { + get { + return this.columnTCRichAttr; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn ToAs400Column { + get { + return this.columnToAs400; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public ODLRow this[int index] { + get { + return ((ODLRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event ODLRowChangeEventHandler ODLRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event ODLRowChangeEventHandler ODLRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event ODLRowChangeEventHandler ODLRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event ODLRowChangeEventHandler ODLRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddODLRow(ODLRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public ODLRow AddODLRow(string CodArticolo, string IdxMacchina, int NumPezzi, decimal TCAssegnato, string DescArticolo, string CodMacchina, string Nome, System.DateTime DataInizio, System.DateTime DataFine, string Note, bool NeedAppr, string UserAppr, System.DateTime DataAppr, decimal TCRichAttr, bool ToAs400) { + ODLRow rowODLRow = ((ODLRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + null, + CodArticolo, + IdxMacchina, + NumPezzi, + TCAssegnato, + DescArticolo, + CodMacchina, + Nome, + DataInizio, + DataFine, + Note, + NeedAppr, + UserAppr, + DataAppr, + TCRichAttr, + ToAs400}; + rowODLRow.ItemArray = columnValuesArray; + this.Rows.Add(rowODLRow); + return rowODLRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public ODLRow FindByIdxODL(int IdxODL) { + return ((ODLRow)(this.Rows.Find(new object[] { + IdxODL}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + ODLDataTable cln = ((ODLDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new ODLDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnIdxODL = base.Columns["IdxODL"]; + this.columnCodArticolo = base.Columns["CodArticolo"]; + this.columnIdxMacchina = base.Columns["IdxMacchina"]; + this.columnNumPezzi = base.Columns["NumPezzi"]; + this.columnTCAssegnato = base.Columns["TCAssegnato"]; + this.columnDescArticolo = base.Columns["DescArticolo"]; + this.columnCodMacchina = base.Columns["CodMacchina"]; + this.columnNome = base.Columns["Nome"]; + this.columnDataInizio = base.Columns["DataInizio"]; + this.columnDataFine = base.Columns["DataFine"]; + this.columnNote = base.Columns["Note"]; + this.columnNeedAppr = base.Columns["NeedAppr"]; + this.columnUserAppr = base.Columns["UserAppr"]; + this.columnDataAppr = base.Columns["DataAppr"]; + this.columnTCRichAttr = base.Columns["TCRichAttr"]; + this.columnToAs400 = base.Columns["ToAs400"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnIdxODL = new global::System.Data.DataColumn("IdxODL", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxODL); + this.columnCodArticolo = new global::System.Data.DataColumn("CodArticolo", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodArticolo); + this.columnIdxMacchina = new global::System.Data.DataColumn("IdxMacchina", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxMacchina); + this.columnNumPezzi = new global::System.Data.DataColumn("NumPezzi", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNumPezzi); + this.columnTCAssegnato = new global::System.Data.DataColumn("TCAssegnato", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTCAssegnato); + this.columnDescArticolo = new global::System.Data.DataColumn("DescArticolo", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDescArticolo); + this.columnCodMacchina = new global::System.Data.DataColumn("CodMacchina", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodMacchina); + this.columnNome = new global::System.Data.DataColumn("Nome", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNome); + this.columnDataInizio = new global::System.Data.DataColumn("DataInizio", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDataInizio); + this.columnDataFine = new global::System.Data.DataColumn("DataFine", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDataFine); + this.columnNote = new global::System.Data.DataColumn("Note", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNote); + this.columnNeedAppr = new global::System.Data.DataColumn("NeedAppr", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNeedAppr); + this.columnUserAppr = new global::System.Data.DataColumn("UserAppr", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnUserAppr); + this.columnDataAppr = new global::System.Data.DataColumn("DataAppr", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDataAppr); + this.columnTCRichAttr = new global::System.Data.DataColumn("TCRichAttr", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTCRichAttr); + this.columnToAs400 = new global::System.Data.DataColumn("ToAs400", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnToAs400); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnIdxODL}, true)); + this.columnIdxODL.AutoIncrement = true; + this.columnIdxODL.AutoIncrementSeed = -1; + this.columnIdxODL.AutoIncrementStep = -1; + this.columnIdxODL.AllowDBNull = false; + this.columnIdxODL.ReadOnly = true; + this.columnIdxODL.Unique = true; + this.columnCodArticolo.AllowDBNull = false; + this.columnCodArticolo.MaxLength = 50; + this.columnIdxMacchina.MaxLength = 50; + this.columnNumPezzi.AllowDBNull = false; + this.columnTCAssegnato.AllowDBNull = false; + this.columnDescArticolo.MaxLength = 250; + this.columnCodMacchina.MaxLength = 50; + this.columnNome.MaxLength = 50; + this.columnNote.MaxLength = 2500; + this.columnNeedAppr.AllowDBNull = false; + this.columnUserAppr.MaxLength = 50; + this.columnToAs400.AllowDBNull = false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public ODLRow NewODLRow() { + return ((ODLRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new ODLRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(ODLRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.ODLRowChanged != null)) { + this.ODLRowChanged(this, new ODLRowChangeEvent(((ODLRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.ODLRowChanging != null)) { + this.ODLRowChanging(this, new ODLRowChangeEvent(((ODLRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.ODLRowDeleted != null)) { + this.ODLRowDeleted(this, new ODLRowChangeEvent(((ODLRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.ODLRowDeleting != null)) { + this.ODLRowDeleting(this, new ODLRowChangeEvent(((ODLRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveODLRow(ODLRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_ProdTempi ds = new DS_ProdTempi(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "ODLDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class AnagArticoliDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnCodArticolo; + + private global::System.Data.DataColumn columnDescArticolo; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagArticoliDataTable() { + this.TableName = "AnagArticoli"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal AnagArticoliDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected AnagArticoliDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn CodArticoloColumn { + get { + return this.columnCodArticolo; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn DescArticoloColumn { + get { + return this.columnDescArticolo; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagArticoliRow this[int index] { + get { + return ((AnagArticoliRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event AnagArticoliRowChangeEventHandler AnagArticoliRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event AnagArticoliRowChangeEventHandler AnagArticoliRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event AnagArticoliRowChangeEventHandler AnagArticoliRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event AnagArticoliRowChangeEventHandler AnagArticoliRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddAnagArticoliRow(AnagArticoliRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagArticoliRow AddAnagArticoliRow(string CodArticolo, string DescArticolo) { + AnagArticoliRow rowAnagArticoliRow = ((AnagArticoliRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + CodArticolo, + DescArticolo}; + rowAnagArticoliRow.ItemArray = columnValuesArray; + this.Rows.Add(rowAnagArticoliRow); + return rowAnagArticoliRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagArticoliRow FindByCodArticolo(string CodArticolo) { + return ((AnagArticoliRow)(this.Rows.Find(new object[] { + CodArticolo}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + AnagArticoliDataTable cln = ((AnagArticoliDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new AnagArticoliDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnCodArticolo = base.Columns["CodArticolo"]; + this.columnDescArticolo = base.Columns["DescArticolo"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnCodArticolo = new global::System.Data.DataColumn("CodArticolo", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodArticolo); + this.columnDescArticolo = new global::System.Data.DataColumn("DescArticolo", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDescArticolo); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnCodArticolo}, true)); + this.columnCodArticolo.AllowDBNull = false; + this.columnCodArticolo.Unique = true; + this.columnCodArticolo.MaxLength = 50; + this.columnDescArticolo.MaxLength = 250; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagArticoliRow NewAnagArticoliRow() { + return ((AnagArticoliRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new AnagArticoliRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(AnagArticoliRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.AnagArticoliRowChanged != null)) { + this.AnagArticoliRowChanged(this, new AnagArticoliRowChangeEvent(((AnagArticoliRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.AnagArticoliRowChanging != null)) { + this.AnagArticoliRowChanging(this, new AnagArticoliRowChangeEvent(((AnagArticoliRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.AnagArticoliRowDeleted != null)) { + this.AnagArticoliRowDeleted(this, new AnagArticoliRowChangeEvent(((AnagArticoliRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.AnagArticoliRowDeleting != null)) { + this.AnagArticoliRowDeleting(this, new AnagArticoliRowChangeEvent(((AnagArticoliRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveAnagArticoliRow(AnagArticoliRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_ProdTempi ds = new DS_ProdTempi(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "AnagArticoliDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class DatiMacchineDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnidxMacchina; + + private global::System.Data.DataColumn columnpalletChange; + + private global::System.Data.DataColumn columnkanban_A; + + private global::System.Data.DataColumn columnkanban_B; + + private global::System.Data.DataColumn columnserialPort; + + private global::System.Data.DataColumn columnrefreshPeriod; + + private global::System.Data.DataColumn columnsimulazione; + + private global::System.Data.DataColumn columnDescFull; + + private global::System.Data.DataColumn columnArticolo_A; + + private global::System.Data.DataColumn columnArticolo_B; + + private global::System.Data.DataColumn columnsimplePallet; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DatiMacchineDataTable() { + this.TableName = "DatiMacchine"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal DatiMacchineDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected DatiMacchineDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn idxMacchinaColumn { + get { + return this.columnidxMacchina; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn palletChangeColumn { + get { + return this.columnpalletChange; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn kanban_AColumn { + get { + return this.columnkanban_A; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn kanban_BColumn { + get { + return this.columnkanban_B; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn serialPortColumn { + get { + return this.columnserialPort; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn refreshPeriodColumn { + get { + return this.columnrefreshPeriod; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn simulazioneColumn { + get { + return this.columnsimulazione; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn DescFullColumn { + get { + return this.columnDescFull; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn Articolo_AColumn { + get { + return this.columnArticolo_A; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn Articolo_BColumn { + get { + return this.columnArticolo_B; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn simplePalletColumn { + get { + return this.columnsimplePallet; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DatiMacchineRow this[int index] { + get { + return ((DatiMacchineRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event DatiMacchineRowChangeEventHandler DatiMacchineRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event DatiMacchineRowChangeEventHandler DatiMacchineRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event DatiMacchineRowChangeEventHandler DatiMacchineRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event DatiMacchineRowChangeEventHandler DatiMacchineRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddDatiMacchineRow(DatiMacchineRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DatiMacchineRow AddDatiMacchineRow(int idxMacchina, bool palletChange, string kanban_A, string kanban_B, string serialPort, int refreshPeriod, bool simulazione, string DescFull, string Articolo_A, string Articolo_B, bool simplePallet) { + DatiMacchineRow rowDatiMacchineRow = ((DatiMacchineRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + idxMacchina, + palletChange, + kanban_A, + kanban_B, + serialPort, + refreshPeriod, + simulazione, + DescFull, + Articolo_A, + Articolo_B, + simplePallet}; + rowDatiMacchineRow.ItemArray = columnValuesArray; + this.Rows.Add(rowDatiMacchineRow); + return rowDatiMacchineRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + DatiMacchineDataTable cln = ((DatiMacchineDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new DatiMacchineDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnidxMacchina = base.Columns["idxMacchina"]; + this.columnpalletChange = base.Columns["palletChange"]; + this.columnkanban_A = base.Columns["kanban_A"]; + this.columnkanban_B = base.Columns["kanban_B"]; + this.columnserialPort = base.Columns["serialPort"]; + this.columnrefreshPeriod = base.Columns["refreshPeriod"]; + this.columnsimulazione = base.Columns["simulazione"]; + this.columnDescFull = base.Columns["DescFull"]; + this.columnArticolo_A = base.Columns["Articolo_A"]; + this.columnArticolo_B = base.Columns["Articolo_B"]; + this.columnsimplePallet = base.Columns["simplePallet"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnidxMacchina = new global::System.Data.DataColumn("idxMacchina", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnidxMacchina); + this.columnpalletChange = new global::System.Data.DataColumn("palletChange", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnpalletChange); + this.columnkanban_A = new global::System.Data.DataColumn("kanban_A", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnkanban_A); + this.columnkanban_B = new global::System.Data.DataColumn("kanban_B", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnkanban_B); + this.columnserialPort = new global::System.Data.DataColumn("serialPort", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnserialPort); + this.columnrefreshPeriod = new global::System.Data.DataColumn("refreshPeriod", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnrefreshPeriod); + this.columnsimulazione = new global::System.Data.DataColumn("simulazione", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnsimulazione); + this.columnDescFull = new global::System.Data.DataColumn("DescFull", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDescFull); + this.columnArticolo_A = new global::System.Data.DataColumn("Articolo_A", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnArticolo_A); + this.columnArticolo_B = new global::System.Data.DataColumn("Articolo_B", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnArticolo_B); + this.columnsimplePallet = new global::System.Data.DataColumn("simplePallet", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnsimplePallet); + this.Constraints.Add(new global::System.Data.UniqueConstraint("DatiMacchineKey1", new global::System.Data.DataColumn[] { + this.columnidxMacchina}, false)); + this.columnidxMacchina.AllowDBNull = false; + this.columnidxMacchina.Unique = true; + this.columnkanban_A.MaxLength = 50; + this.columnkanban_B.MaxLength = 50; + this.columnserialPort.MaxLength = 50; + this.columnDescFull.ReadOnly = true; + this.columnDescFull.MaxLength = 159; + this.columnArticolo_A.ReadOnly = true; + this.columnArticolo_A.MaxLength = 50; + this.columnArticolo_B.ReadOnly = true; + this.columnArticolo_B.MaxLength = 50; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DatiMacchineRow NewDatiMacchineRow() { + return ((DatiMacchineRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new DatiMacchineRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(DatiMacchineRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.DatiMacchineRowChanged != null)) { + this.DatiMacchineRowChanged(this, new DatiMacchineRowChangeEvent(((DatiMacchineRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.DatiMacchineRowChanging != null)) { + this.DatiMacchineRowChanging(this, new DatiMacchineRowChangeEvent(((DatiMacchineRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.DatiMacchineRowDeleted != null)) { + this.DatiMacchineRowDeleted(this, new DatiMacchineRowChangeEvent(((DatiMacchineRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.DatiMacchineRowDeleting != null)) { + this.DatiMacchineRowDeleting(this, new DatiMacchineRowChangeEvent(((DatiMacchineRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveDatiMacchineRow(DatiMacchineRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_ProdTempi ds = new DS_ProdTempi(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "DatiMacchineDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class PostazioniMapoDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnIdxPostazione; + + private global::System.Data.DataColumn columnDescPostazione; + + private global::System.Data.DataColumn columnIdxMacchina; + + private global::System.Data.DataColumn columnMatrOperatore; + + private global::System.Data.DataColumn columnInputUntil; + + private global::System.Data.DataColumn columnLastBarcode; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public PostazioniMapoDataTable() { + this.TableName = "PostazioniMapo"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal PostazioniMapoDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected PostazioniMapoDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn IdxPostazioneColumn { + get { + return this.columnIdxPostazione; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn DescPostazioneColumn { + get { + return this.columnDescPostazione; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn IdxMacchinaColumn { + get { + return this.columnIdxMacchina; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn MatrOperatoreColumn { + get { + return this.columnMatrOperatore; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn InputUntilColumn { + get { + return this.columnInputUntil; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn LastBarcodeColumn { + get { + return this.columnLastBarcode; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public PostazioniMapoRow this[int index] { + get { + return ((PostazioniMapoRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event PostazioniMapoRowChangeEventHandler PostazioniMapoRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event PostazioniMapoRowChangeEventHandler PostazioniMapoRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event PostazioniMapoRowChangeEventHandler PostazioniMapoRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event PostazioniMapoRowChangeEventHandler PostazioniMapoRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddPostazioniMapoRow(PostazioniMapoRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public PostazioniMapoRow AddPostazioniMapoRow(string IdxPostazione, string DescPostazione, string IdxMacchina, int MatrOperatore, System.DateTime InputUntil, string LastBarcode) { + PostazioniMapoRow rowPostazioniMapoRow = ((PostazioniMapoRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + IdxPostazione, + DescPostazione, + IdxMacchina, + MatrOperatore, + InputUntil, + LastBarcode}; + rowPostazioniMapoRow.ItemArray = columnValuesArray; + this.Rows.Add(rowPostazioniMapoRow); + return rowPostazioniMapoRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public PostazioniMapoRow FindByIdxPostazione(string IdxPostazione) { + return ((PostazioniMapoRow)(this.Rows.Find(new object[] { + IdxPostazione}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + PostazioniMapoDataTable cln = ((PostazioniMapoDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new PostazioniMapoDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnIdxPostazione = base.Columns["IdxPostazione"]; + this.columnDescPostazione = base.Columns["DescPostazione"]; + this.columnIdxMacchina = base.Columns["IdxMacchina"]; + this.columnMatrOperatore = base.Columns["MatrOperatore"]; + this.columnInputUntil = base.Columns["InputUntil"]; + this.columnLastBarcode = base.Columns["LastBarcode"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnIdxPostazione = new global::System.Data.DataColumn("IdxPostazione", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxPostazione); + this.columnDescPostazione = new global::System.Data.DataColumn("DescPostazione", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDescPostazione); + this.columnIdxMacchina = new global::System.Data.DataColumn("IdxMacchina", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxMacchina); + this.columnMatrOperatore = new global::System.Data.DataColumn("MatrOperatore", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnMatrOperatore); + this.columnInputUntil = new global::System.Data.DataColumn("InputUntil", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnInputUntil); + this.columnLastBarcode = new global::System.Data.DataColumn("LastBarcode", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnLastBarcode); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnIdxPostazione}, true)); + this.columnIdxPostazione.AllowDBNull = false; + this.columnIdxPostazione.Unique = true; + this.columnIdxPostazione.MaxLength = 50; + this.columnDescPostazione.MaxLength = 50; + this.columnIdxMacchina.AllowDBNull = false; + this.columnIdxMacchina.MaxLength = 50; + this.columnLastBarcode.MaxLength = 50; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public PostazioniMapoRow NewPostazioniMapoRow() { + return ((PostazioniMapoRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new PostazioniMapoRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(PostazioniMapoRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.PostazioniMapoRowChanged != null)) { + this.PostazioniMapoRowChanged(this, new PostazioniMapoRowChangeEvent(((PostazioniMapoRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.PostazioniMapoRowChanging != null)) { + this.PostazioniMapoRowChanging(this, new PostazioniMapoRowChangeEvent(((PostazioniMapoRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.PostazioniMapoRowDeleted != null)) { + this.PostazioniMapoRowDeleted(this, new PostazioniMapoRowChangeEvent(((PostazioniMapoRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.PostazioniMapoRowDeleting != null)) { + this.PostazioniMapoRowDeleting(this, new PostazioniMapoRowChangeEvent(((PostazioniMapoRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemovePostazioniMapoRow(PostazioniMapoRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_ProdTempi ds = new DS_ProdTempi(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "PostazioniMapoDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class stp_PzProd_getByMacchinaDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnidxMacchina; + + private global::System.Data.DataColumn columnpezziNonConfermati; + + private global::System.Data.DataColumn columnDataFrom; + + private global::System.Data.DataColumn columnDataTo; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public stp_PzProd_getByMacchinaDataTable() { + this.TableName = "stp_PzProd_getByMacchina"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal stp_PzProd_getByMacchinaDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected stp_PzProd_getByMacchinaDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn idxMacchinaColumn { + get { + return this.columnidxMacchina; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn pezziNonConfermatiColumn { + get { + return this.columnpezziNonConfermati; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn DataFromColumn { + get { + return this.columnDataFrom; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn DataToColumn { + get { + return this.columnDataTo; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public stp_PzProd_getByMacchinaRow this[int index] { + get { + return ((stp_PzProd_getByMacchinaRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event stp_PzProd_getByMacchinaRowChangeEventHandler stp_PzProd_getByMacchinaRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event stp_PzProd_getByMacchinaRowChangeEventHandler stp_PzProd_getByMacchinaRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event stp_PzProd_getByMacchinaRowChangeEventHandler stp_PzProd_getByMacchinaRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event stp_PzProd_getByMacchinaRowChangeEventHandler stp_PzProd_getByMacchinaRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void Addstp_PzProd_getByMacchinaRow(stp_PzProd_getByMacchinaRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public stp_PzProd_getByMacchinaRow Addstp_PzProd_getByMacchinaRow(string idxMacchina, int pezziNonConfermati, System.DateTime DataFrom, System.DateTime DataTo) { + stp_PzProd_getByMacchinaRow rowstp_PzProd_getByMacchinaRow = ((stp_PzProd_getByMacchinaRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + idxMacchina, + pezziNonConfermati, + DataFrom, + DataTo}; + rowstp_PzProd_getByMacchinaRow.ItemArray = columnValuesArray; + this.Rows.Add(rowstp_PzProd_getByMacchinaRow); + return rowstp_PzProd_getByMacchinaRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + stp_PzProd_getByMacchinaDataTable cln = ((stp_PzProd_getByMacchinaDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new stp_PzProd_getByMacchinaDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnidxMacchina = base.Columns["idxMacchina"]; + this.columnpezziNonConfermati = base.Columns["pezziNonConfermati"]; + this.columnDataFrom = base.Columns["DataFrom"]; + this.columnDataTo = base.Columns["DataTo"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnidxMacchina = new global::System.Data.DataColumn("idxMacchina", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnidxMacchina); + this.columnpezziNonConfermati = new global::System.Data.DataColumn("pezziNonConfermati", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnpezziNonConfermati); + this.columnDataFrom = new global::System.Data.DataColumn("DataFrom", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDataFrom); + this.columnDataTo = new global::System.Data.DataColumn("DataTo", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDataTo); + this.columnidxMacchina.ReadOnly = true; + this.columnidxMacchina.MaxLength = 50; + this.columnpezziNonConfermati.ReadOnly = true; + this.columnDataFrom.ReadOnly = true; + this.columnDataTo.ReadOnly = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public stp_PzProd_getByMacchinaRow Newstp_PzProd_getByMacchinaRow() { + return ((stp_PzProd_getByMacchinaRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new stp_PzProd_getByMacchinaRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(stp_PzProd_getByMacchinaRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.stp_PzProd_getByMacchinaRowChanged != null)) { + this.stp_PzProd_getByMacchinaRowChanged(this, new stp_PzProd_getByMacchinaRowChangeEvent(((stp_PzProd_getByMacchinaRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.stp_PzProd_getByMacchinaRowChanging != null)) { + this.stp_PzProd_getByMacchinaRowChanging(this, new stp_PzProd_getByMacchinaRowChangeEvent(((stp_PzProd_getByMacchinaRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.stp_PzProd_getByMacchinaRowDeleted != null)) { + this.stp_PzProd_getByMacchinaRowDeleted(this, new stp_PzProd_getByMacchinaRowChangeEvent(((stp_PzProd_getByMacchinaRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.stp_PzProd_getByMacchinaRowDeleting != null)) { + this.stp_PzProd_getByMacchinaRowDeleting(this, new stp_PzProd_getByMacchinaRowChangeEvent(((stp_PzProd_getByMacchinaRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void Removestp_PzProd_getByMacchinaRow(stp_PzProd_getByMacchinaRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_ProdTempi ds = new DS_ProdTempi(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "stp_PzProd_getByMacchinaDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class DatiConfermatiDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnIdxConferma; + + private global::System.Data.DataColumn columnIdxODL; + + private global::System.Data.DataColumn columnDataOraApp; + + private global::System.Data.DataColumn columnDataRif; + + private global::System.Data.DataColumn columnTurnoRif; + + private global::System.Data.DataColumn columnCodArticolo; + + private global::System.Data.DataColumn columnIdxMacchina; + + private global::System.Data.DataColumn columnTCAssegnato; + + private global::System.Data.DataColumn columnMatrOpr; + + private global::System.Data.DataColumn columnMatrApp; + + private global::System.Data.DataColumn columnDataOraFrom; + + private global::System.Data.DataColumn columnDataOraTo; + + private global::System.Data.DataColumn columnIdxStato; + + private global::System.Data.DataColumn columnTotPzProd; + + private global::System.Data.DataColumn columnTempoProdotto; + + private global::System.Data.DataColumn columnTempoCron; + + private global::System.Data.DataColumn columnTempoND; + + private global::System.Data.DataColumn columnTempoApertura; + + private global::System.Data.DataColumn columnTempoOFF; + + private global::System.Data.DataColumn columnTempoON; + + private global::System.Data.DataColumn columnTempoFermoOn; + + private global::System.Data.DataColumn columnTempoAuto; + + private global::System.Data.DataColumn columnTempoFermoAuto; + + private global::System.Data.DataColumn columnTempoRun; + + private global::System.Data.DataColumn columnTotPzFermo; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DatiConfermatiDataTable() { + this.TableName = "DatiConfermati"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal DatiConfermatiDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected DatiConfermatiDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn IdxConfermaColumn { + get { + return this.columnIdxConferma; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn IdxODLColumn { + get { + return this.columnIdxODL; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn DataOraAppColumn { + get { + return this.columnDataOraApp; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn DataRifColumn { + get { + return this.columnDataRif; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TurnoRifColumn { + get { + return this.columnTurnoRif; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn CodArticoloColumn { + get { + return this.columnCodArticolo; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn IdxMacchinaColumn { + get { + return this.columnIdxMacchina; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TCAssegnatoColumn { + get { + return this.columnTCAssegnato; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn MatrOprColumn { + get { + return this.columnMatrOpr; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn MatrAppColumn { + get { + return this.columnMatrApp; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn DataOraFromColumn { + get { + return this.columnDataOraFrom; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn DataOraToColumn { + get { + return this.columnDataOraTo; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn IdxStatoColumn { + get { + return this.columnIdxStato; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TotPzProdColumn { + get { + return this.columnTotPzProd; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TempoProdottoColumn { + get { + return this.columnTempoProdotto; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TempoCronColumn { + get { + return this.columnTempoCron; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TempoNDColumn { + get { + return this.columnTempoND; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TempoAperturaColumn { + get { + return this.columnTempoApertura; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TempoOFFColumn { + get { + return this.columnTempoOFF; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TempoONColumn { + get { + return this.columnTempoON; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TempoFermoOnColumn { + get { + return this.columnTempoFermoOn; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TempoAutoColumn { + get { + return this.columnTempoAuto; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TempoFermoAutoColumn { + get { + return this.columnTempoFermoAuto; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TempoRunColumn { + get { + return this.columnTempoRun; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TotPzFermoColumn { + get { + return this.columnTotPzFermo; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DatiConfermatiRow this[int index] { + get { + return ((DatiConfermatiRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event DatiConfermatiRowChangeEventHandler DatiConfermatiRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event DatiConfermatiRowChangeEventHandler DatiConfermatiRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event DatiConfermatiRowChangeEventHandler DatiConfermatiRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event DatiConfermatiRowChangeEventHandler DatiConfermatiRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddDatiConfermatiRow(DatiConfermatiRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DatiConfermatiRow AddDatiConfermatiRow( + int IdxODL, + System.DateTime DataOraApp, + System.DateTime DataRif, + int TurnoRif, + string CodArticolo, + string IdxMacchina, + decimal TCAssegnato, + int MatrOpr, + int MatrApp, + System.DateTime DataOraFrom, + System.DateTime DataOraTo, + int IdxStato, + int TotPzProd, + decimal TempoProdotto, + decimal TempoCron, + decimal TempoND, + decimal TempoApertura, + decimal TempoOFF, + decimal TempoON, + decimal TempoFermoOn, + decimal TempoAuto, + decimal TempoFermoAuto, + decimal TempoRun, + int TotPzFermo) { + DatiConfermatiRow rowDatiConfermatiRow = ((DatiConfermatiRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + null, + IdxODL, + DataOraApp, + DataRif, + TurnoRif, + CodArticolo, + IdxMacchina, + TCAssegnato, + MatrOpr, + MatrApp, + DataOraFrom, + DataOraTo, + IdxStato, + TotPzProd, + TempoProdotto, + TempoCron, + TempoND, + TempoApertura, + TempoOFF, + TempoON, + TempoFermoOn, + TempoAuto, + TempoFermoAuto, + TempoRun, + TotPzFermo}; + rowDatiConfermatiRow.ItemArray = columnValuesArray; + this.Rows.Add(rowDatiConfermatiRow); + return rowDatiConfermatiRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DatiConfermatiRow FindByIdxConferma(int IdxConferma) { + return ((DatiConfermatiRow)(this.Rows.Find(new object[] { + IdxConferma}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + DatiConfermatiDataTable cln = ((DatiConfermatiDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new DatiConfermatiDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnIdxConferma = base.Columns["IdxConferma"]; + this.columnIdxODL = base.Columns["IdxODL"]; + this.columnDataOraApp = base.Columns["DataOraApp"]; + this.columnDataRif = base.Columns["DataRif"]; + this.columnTurnoRif = base.Columns["TurnoRif"]; + this.columnCodArticolo = base.Columns["CodArticolo"]; + this.columnIdxMacchina = base.Columns["IdxMacchina"]; + this.columnTCAssegnato = base.Columns["TCAssegnato"]; + this.columnMatrOpr = base.Columns["MatrOpr"]; + this.columnMatrApp = base.Columns["MatrApp"]; + this.columnDataOraFrom = base.Columns["DataOraFrom"]; + this.columnDataOraTo = base.Columns["DataOraTo"]; + this.columnIdxStato = base.Columns["IdxStato"]; + this.columnTotPzProd = base.Columns["TotPzProd"]; + this.columnTempoProdotto = base.Columns["TempoProdotto"]; + this.columnTempoCron = base.Columns["TempoCron"]; + this.columnTempoND = base.Columns["TempoND"]; + this.columnTempoApertura = base.Columns["TempoApertura"]; + this.columnTempoOFF = base.Columns["TempoOFF"]; + this.columnTempoON = base.Columns["TempoON"]; + this.columnTempoFermoOn = base.Columns["TempoFermoOn"]; + this.columnTempoAuto = base.Columns["TempoAuto"]; + this.columnTempoFermoAuto = base.Columns["TempoFermoAuto"]; + this.columnTempoRun = base.Columns["TempoRun"]; + this.columnTotPzFermo = base.Columns["TotPzFermo"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnIdxConferma = new global::System.Data.DataColumn("IdxConferma", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxConferma); + this.columnIdxODL = new global::System.Data.DataColumn("IdxODL", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxODL); + this.columnDataOraApp = new global::System.Data.DataColumn("DataOraApp", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDataOraApp); + this.columnDataRif = new global::System.Data.DataColumn("DataRif", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDataRif); + this.columnTurnoRif = new global::System.Data.DataColumn("TurnoRif", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTurnoRif); + this.columnCodArticolo = new global::System.Data.DataColumn("CodArticolo", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodArticolo); + this.columnIdxMacchina = new global::System.Data.DataColumn("IdxMacchina", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxMacchina); + this.columnTCAssegnato = new global::System.Data.DataColumn("TCAssegnato", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTCAssegnato); + this.columnMatrOpr = new global::System.Data.DataColumn("MatrOpr", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnMatrOpr); + this.columnMatrApp = new global::System.Data.DataColumn("MatrApp", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnMatrApp); + this.columnDataOraFrom = new global::System.Data.DataColumn("DataOraFrom", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDataOraFrom); + this.columnDataOraTo = new global::System.Data.DataColumn("DataOraTo", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDataOraTo); + this.columnIdxStato = new global::System.Data.DataColumn("IdxStato", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxStato); + this.columnTotPzProd = new global::System.Data.DataColumn("TotPzProd", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTotPzProd); + this.columnTempoProdotto = new global::System.Data.DataColumn("TempoProdotto", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTempoProdotto); + this.columnTempoCron = new global::System.Data.DataColumn("TempoCron", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTempoCron); + this.columnTempoND = new global::System.Data.DataColumn("TempoND", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTempoND); + this.columnTempoApertura = new global::System.Data.DataColumn("TempoApertura", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTempoApertura); + this.columnTempoOFF = new global::System.Data.DataColumn("TempoOFF", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTempoOFF); + this.columnTempoON = new global::System.Data.DataColumn("TempoON", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTempoON); + this.columnTempoFermoOn = new global::System.Data.DataColumn("TempoFermoOn", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTempoFermoOn); + this.columnTempoAuto = new global::System.Data.DataColumn("TempoAuto", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTempoAuto); + this.columnTempoFermoAuto = new global::System.Data.DataColumn("TempoFermoAuto", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTempoFermoAuto); + this.columnTempoRun = new global::System.Data.DataColumn("TempoRun", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTempoRun); + this.columnTotPzFermo = new global::System.Data.DataColumn("TotPzFermo", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTotPzFermo); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnIdxConferma}, true)); + this.columnIdxConferma.AutoIncrement = true; + this.columnIdxConferma.AutoIncrementSeed = -1; + this.columnIdxConferma.AutoIncrementStep = -1; + this.columnIdxConferma.AllowDBNull = false; + this.columnIdxConferma.ReadOnly = true; + this.columnIdxConferma.Unique = true; + this.columnIdxODL.AllowDBNull = false; + this.columnDataOraApp.AllowDBNull = false; + this.columnDataRif.AllowDBNull = false; + this.columnCodArticolo.MaxLength = 50; + this.columnIdxMacchina.AllowDBNull = false; + this.columnIdxMacchina.MaxLength = 50; + this.columnMatrApp.AllowDBNull = false; + this.columnIdxStato.AllowDBNull = false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DatiConfermatiRow NewDatiConfermatiRow() { + return ((DatiConfermatiRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new DatiConfermatiRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(DatiConfermatiRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.DatiConfermatiRowChanged != null)) { + this.DatiConfermatiRowChanged(this, new DatiConfermatiRowChangeEvent(((DatiConfermatiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.DatiConfermatiRowChanging != null)) { + this.DatiConfermatiRowChanging(this, new DatiConfermatiRowChangeEvent(((DatiConfermatiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.DatiConfermatiRowDeleted != null)) { + this.DatiConfermatiRowDeleted(this, new DatiConfermatiRowChangeEvent(((DatiConfermatiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.DatiConfermatiRowDeleting != null)) { + this.DatiConfermatiRowDeleting(this, new DatiConfermatiRowChangeEvent(((DatiConfermatiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveDatiConfermatiRow(DatiConfermatiRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_ProdTempi ds = new DS_ProdTempi(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "DatiConfermatiDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class CalendFesteFerieDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columndata; + + private global::System.Data.DataColumn columndescrizione; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public CalendFesteFerieDataTable() { + this.TableName = "CalendFesteFerie"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal CalendFesteFerieDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected CalendFesteFerieDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn dataColumn { + get { + return this.columndata; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn descrizioneColumn { + get { + return this.columndescrizione; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public CalendFesteFerieRow this[int index] { + get { + return ((CalendFesteFerieRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event CalendFesteFerieRowChangeEventHandler CalendFesteFerieRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event CalendFesteFerieRowChangeEventHandler CalendFesteFerieRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event CalendFesteFerieRowChangeEventHandler CalendFesteFerieRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event CalendFesteFerieRowChangeEventHandler CalendFesteFerieRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddCalendFesteFerieRow(CalendFesteFerieRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public CalendFesteFerieRow AddCalendFesteFerieRow(System.DateTime data, string descrizione) { + CalendFesteFerieRow rowCalendFesteFerieRow = ((CalendFesteFerieRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + data, + descrizione}; + rowCalendFesteFerieRow.ItemArray = columnValuesArray; + this.Rows.Add(rowCalendFesteFerieRow); + return rowCalendFesteFerieRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public CalendFesteFerieRow FindBydata(System.DateTime data) { + return ((CalendFesteFerieRow)(this.Rows.Find(new object[] { + data}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + CalendFesteFerieDataTable cln = ((CalendFesteFerieDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new CalendFesteFerieDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columndata = base.Columns["data"]; + this.columndescrizione = base.Columns["descrizione"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columndata = new global::System.Data.DataColumn("data", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columndata); + this.columndescrizione = new global::System.Data.DataColumn("descrizione", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columndescrizione); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columndata}, true)); + this.columndata.AllowDBNull = false; + this.columndata.Unique = true; + this.columndescrizione.MaxLength = 50; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public CalendFesteFerieRow NewCalendFesteFerieRow() { + return ((CalendFesteFerieRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new CalendFesteFerieRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(CalendFesteFerieRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.CalendFesteFerieRowChanged != null)) { + this.CalendFesteFerieRowChanged(this, new CalendFesteFerieRowChangeEvent(((CalendFesteFerieRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.CalendFesteFerieRowChanging != null)) { + this.CalendFesteFerieRowChanging(this, new CalendFesteFerieRowChangeEvent(((CalendFesteFerieRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.CalendFesteFerieRowDeleted != null)) { + this.CalendFesteFerieRowDeleted(this, new CalendFesteFerieRowChangeEvent(((CalendFesteFerieRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.CalendFesteFerieRowDeleting != null)) { + this.CalendFesteFerieRowDeleting(this, new CalendFesteFerieRowChangeEvent(((CalendFesteFerieRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveCalendFesteFerieRow(CalendFesteFerieRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_ProdTempi ds = new DS_ProdTempi(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "CalendFesteFerieDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class stp_TempoByIdxMaccPeriodClassDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnore; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public stp_TempoByIdxMaccPeriodClassDataTable() { + this.TableName = "stp_TempoByIdxMaccPeriodClass"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal stp_TempoByIdxMaccPeriodClassDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected stp_TempoByIdxMaccPeriodClassDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn oreColumn { + get { + return this.columnore; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public stp_TempoByIdxMaccPeriodClassRow this[int index] { + get { + return ((stp_TempoByIdxMaccPeriodClassRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event stp_TempoByIdxMaccPeriodClassRowChangeEventHandler stp_TempoByIdxMaccPeriodClassRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event stp_TempoByIdxMaccPeriodClassRowChangeEventHandler stp_TempoByIdxMaccPeriodClassRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event stp_TempoByIdxMaccPeriodClassRowChangeEventHandler stp_TempoByIdxMaccPeriodClassRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event stp_TempoByIdxMaccPeriodClassRowChangeEventHandler stp_TempoByIdxMaccPeriodClassRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void Addstp_TempoByIdxMaccPeriodClassRow(stp_TempoByIdxMaccPeriodClassRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public stp_TempoByIdxMaccPeriodClassRow Addstp_TempoByIdxMaccPeriodClassRow(decimal ore) { + stp_TempoByIdxMaccPeriodClassRow rowstp_TempoByIdxMaccPeriodClassRow = ((stp_TempoByIdxMaccPeriodClassRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + ore}; + rowstp_TempoByIdxMaccPeriodClassRow.ItemArray = columnValuesArray; + this.Rows.Add(rowstp_TempoByIdxMaccPeriodClassRow); + return rowstp_TempoByIdxMaccPeriodClassRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + stp_TempoByIdxMaccPeriodClassDataTable cln = ((stp_TempoByIdxMaccPeriodClassDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new stp_TempoByIdxMaccPeriodClassDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnore = base.Columns["ore"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnore = new global::System.Data.DataColumn("ore", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnore); + this.columnore.ReadOnly = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public stp_TempoByIdxMaccPeriodClassRow Newstp_TempoByIdxMaccPeriodClassRow() { + return ((stp_TempoByIdxMaccPeriodClassRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new stp_TempoByIdxMaccPeriodClassRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(stp_TempoByIdxMaccPeriodClassRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.stp_TempoByIdxMaccPeriodClassRowChanged != null)) { + this.stp_TempoByIdxMaccPeriodClassRowChanged(this, new stp_TempoByIdxMaccPeriodClassRowChangeEvent(((stp_TempoByIdxMaccPeriodClassRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.stp_TempoByIdxMaccPeriodClassRowChanging != null)) { + this.stp_TempoByIdxMaccPeriodClassRowChanging(this, new stp_TempoByIdxMaccPeriodClassRowChangeEvent(((stp_TempoByIdxMaccPeriodClassRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.stp_TempoByIdxMaccPeriodClassRowDeleted != null)) { + this.stp_TempoByIdxMaccPeriodClassRowDeleted(this, new stp_TempoByIdxMaccPeriodClassRowChangeEvent(((stp_TempoByIdxMaccPeriodClassRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.stp_TempoByIdxMaccPeriodClassRowDeleting != null)) { + this.stp_TempoByIdxMaccPeriodClassRowDeleting(this, new stp_TempoByIdxMaccPeriodClassRowChangeEvent(((stp_TempoByIdxMaccPeriodClassRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void Removestp_TempoByIdxMaccPeriodClassRow(stp_TempoByIdxMaccPeriodClassRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_ProdTempi ds = new DS_ProdTempi(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "stp_TempoByIdxMaccPeriodClassDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class DatiProduzioneDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnIdxConferma; + + private global::System.Data.DataColumn columnIdxODL; + + private global::System.Data.DataColumn columnDataOraApp; + + private global::System.Data.DataColumn columnDataRif; + + private global::System.Data.DataColumn columnTurnoRif; + + private global::System.Data.DataColumn columnCodArticolo; + + private global::System.Data.DataColumn columnIdxMacchina; + + private global::System.Data.DataColumn columnTCAssegnato; + + private global::System.Data.DataColumn columnMatrOpr; + + private global::System.Data.DataColumn columnMatrApp; + + private global::System.Data.DataColumn columnDataOraFrom; + + private global::System.Data.DataColumn columnDataOraTo; + + private global::System.Data.DataColumn columnTotPzProd; + + private global::System.Data.DataColumn columnTempo; + + private global::System.Data.DataColumn columnClasseTempo; + + private global::System.Data.DataColumn columnCausale; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DatiProduzioneDataTable() { + this.TableName = "DatiProduzione"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal DatiProduzioneDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected DatiProduzioneDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn IdxConfermaColumn { + get { + return this.columnIdxConferma; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn IdxODLColumn { + get { + return this.columnIdxODL; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn DataOraAppColumn { + get { + return this.columnDataOraApp; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn DataRifColumn { + get { + return this.columnDataRif; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TurnoRifColumn { + get { + return this.columnTurnoRif; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn CodArticoloColumn { + get { + return this.columnCodArticolo; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn IdxMacchinaColumn { + get { + return this.columnIdxMacchina; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TCAssegnatoColumn { + get { + return this.columnTCAssegnato; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn MatrOprColumn { + get { + return this.columnMatrOpr; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn MatrAppColumn { + get { + return this.columnMatrApp; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn DataOraFromColumn { + get { + return this.columnDataOraFrom; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn DataOraToColumn { + get { + return this.columnDataOraTo; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TotPzProdColumn { + get { + return this.columnTotPzProd; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TempoColumn { + get { + return this.columnTempo; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn ClasseTempoColumn { + get { + return this.columnClasseTempo; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn CausaleColumn { + get { + return this.columnCausale; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DatiProduzioneRow this[int index] { + get { + return ((DatiProduzioneRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event DatiProduzioneRowChangeEventHandler DatiProduzioneRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event DatiProduzioneRowChangeEventHandler DatiProduzioneRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event DatiProduzioneRowChangeEventHandler DatiProduzioneRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event DatiProduzioneRowChangeEventHandler DatiProduzioneRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddDatiProduzioneRow(DatiProduzioneRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DatiProduzioneRow AddDatiProduzioneRow( + int IdxConferma, + int IdxODL, + System.DateTime DataOraApp, + System.DateTime DataRif, + int TurnoRif, + string CodArticolo, + string IdxMacchina, + decimal TCAssegnato, + int MatrOpr, + int MatrApp, + System.DateTime DataOraFrom, + System.DateTime DataOraTo, + int TotPzProd, + decimal Tempo, + string ClasseTempo, + string Causale) { + DatiProduzioneRow rowDatiProduzioneRow = ((DatiProduzioneRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + IdxConferma, + IdxODL, + DataOraApp, + DataRif, + TurnoRif, + CodArticolo, + IdxMacchina, + TCAssegnato, + MatrOpr, + MatrApp, + DataOraFrom, + DataOraTo, + TotPzProd, + Tempo, + ClasseTempo, + Causale}; + rowDatiProduzioneRow.ItemArray = columnValuesArray; + this.Rows.Add(rowDatiProduzioneRow); + return rowDatiProduzioneRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DatiProduzioneRow FindByIdxConferma(int IdxConferma) { + return ((DatiProduzioneRow)(this.Rows.Find(new object[] { + IdxConferma}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + DatiProduzioneDataTable cln = ((DatiProduzioneDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new DatiProduzioneDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnIdxConferma = base.Columns["IdxConferma"]; + this.columnIdxODL = base.Columns["IdxODL"]; + this.columnDataOraApp = base.Columns["DataOraApp"]; + this.columnDataRif = base.Columns["DataRif"]; + this.columnTurnoRif = base.Columns["TurnoRif"]; + this.columnCodArticolo = base.Columns["CodArticolo"]; + this.columnIdxMacchina = base.Columns["IdxMacchina"]; + this.columnTCAssegnato = base.Columns["TCAssegnato"]; + this.columnMatrOpr = base.Columns["MatrOpr"]; + this.columnMatrApp = base.Columns["MatrApp"]; + this.columnDataOraFrom = base.Columns["DataOraFrom"]; + this.columnDataOraTo = base.Columns["DataOraTo"]; + this.columnTotPzProd = base.Columns["TotPzProd"]; + this.columnTempo = base.Columns["Tempo"]; + this.columnClasseTempo = base.Columns["ClasseTempo"]; + this.columnCausale = base.Columns["Causale"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnIdxConferma = new global::System.Data.DataColumn("IdxConferma", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxConferma); + this.columnIdxODL = new global::System.Data.DataColumn("IdxODL", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxODL); + this.columnDataOraApp = new global::System.Data.DataColumn("DataOraApp", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDataOraApp); + this.columnDataRif = new global::System.Data.DataColumn("DataRif", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDataRif); + this.columnTurnoRif = new global::System.Data.DataColumn("TurnoRif", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTurnoRif); + this.columnCodArticolo = new global::System.Data.DataColumn("CodArticolo", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodArticolo); + this.columnIdxMacchina = new global::System.Data.DataColumn("IdxMacchina", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxMacchina); + this.columnTCAssegnato = new global::System.Data.DataColumn("TCAssegnato", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTCAssegnato); + this.columnMatrOpr = new global::System.Data.DataColumn("MatrOpr", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnMatrOpr); + this.columnMatrApp = new global::System.Data.DataColumn("MatrApp", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnMatrApp); + this.columnDataOraFrom = new global::System.Data.DataColumn("DataOraFrom", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDataOraFrom); + this.columnDataOraTo = new global::System.Data.DataColumn("DataOraTo", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDataOraTo); + this.columnTotPzProd = new global::System.Data.DataColumn("TotPzProd", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTotPzProd); + this.columnTempo = new global::System.Data.DataColumn("Tempo", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTempo); + this.columnClasseTempo = new global::System.Data.DataColumn("ClasseTempo", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnClasseTempo); + this.columnCausale = new global::System.Data.DataColumn("Causale", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCausale); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnIdxConferma}, true)); + this.columnIdxConferma.AllowDBNull = false; + this.columnIdxConferma.Unique = true; + this.columnIdxODL.AllowDBNull = false; + this.columnDataOraApp.AllowDBNull = false; + this.columnDataRif.AllowDBNull = false; + this.columnCodArticolo.MaxLength = 50; + this.columnIdxMacchina.AllowDBNull = false; + this.columnIdxMacchina.MaxLength = 50; + this.columnMatrApp.AllowDBNull = false; + this.columnClasseTempo.MaxLength = 50; + this.columnCausale.MaxLength = 50; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DatiProduzioneRow NewDatiProduzioneRow() { + return ((DatiProduzioneRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new DatiProduzioneRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(DatiProduzioneRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.DatiProduzioneRowChanged != null)) { + this.DatiProduzioneRowChanged(this, new DatiProduzioneRowChangeEvent(((DatiProduzioneRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.DatiProduzioneRowChanging != null)) { + this.DatiProduzioneRowChanging(this, new DatiProduzioneRowChangeEvent(((DatiProduzioneRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.DatiProduzioneRowDeleted != null)) { + this.DatiProduzioneRowDeleted(this, new DatiProduzioneRowChangeEvent(((DatiProduzioneRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.DatiProduzioneRowDeleting != null)) { + this.DatiProduzioneRowDeleting(this, new DatiProduzioneRowChangeEvent(((DatiProduzioneRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveDatiProduzioneRow(DatiProduzioneRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_ProdTempi ds = new DS_ProdTempi(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "DatiProduzioneDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class stp_repDonati_getDatiProdMacchinaDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnCodArticolo; + + private global::System.Data.DataColumn columnPezziLanciati; + + private global::System.Data.DataColumn columnPezziProd; + + private global::System.Data.DataColumn columnPezziConf; + + private global::System.Data.DataColumn columnTCAssegnato; + + private global::System.Data.DataColumn columnCodOperatore; + + private global::System.Data.DataColumn columnTempoOn; + + private global::System.Data.DataColumn columnTempoAuto; + + private global::System.Data.DataColumn columnTempoRun; + + private global::System.Data.DataColumn columnTCMedio; + + private global::System.Data.DataColumn columnTCLav; + + private global::System.Data.DataColumn columnTCEff; + + private global::System.Data.DataColumn columnTCMedioRT; + + private global::System.Data.DataColumn columnTCLavRT; + + private global::System.Data.DataColumn columnTCEffRT; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public stp_repDonati_getDatiProdMacchinaDataTable() { + this.TableName = "stp_repDonati_getDatiProdMacchina"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal stp_repDonati_getDatiProdMacchinaDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected stp_repDonati_getDatiProdMacchinaDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn CodArticoloColumn { + get { + return this.columnCodArticolo; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn PezziLanciatiColumn { + get { + return this.columnPezziLanciati; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn PezziProdColumn { + get { + return this.columnPezziProd; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn PezziConfColumn { + get { + return this.columnPezziConf; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TCAssegnatoColumn { + get { + return this.columnTCAssegnato; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn CodOperatoreColumn { + get { + return this.columnCodOperatore; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TempoOnColumn { + get { + return this.columnTempoOn; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TempoAutoColumn { + get { + return this.columnTempoAuto; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TempoRunColumn { + get { + return this.columnTempoRun; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TCMedioColumn { + get { + return this.columnTCMedio; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TCLavColumn { + get { + return this.columnTCLav; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TCEffColumn { + get { + return this.columnTCEff; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TCMedioRTColumn { + get { + return this.columnTCMedioRT; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TCLavRTColumn { + get { + return this.columnTCLavRT; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TCEffRTColumn { + get { + return this.columnTCEffRT; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public stp_repDonati_getDatiProdMacchinaRow this[int index] { + get { + return ((stp_repDonati_getDatiProdMacchinaRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event stp_repDonati_getDatiProdMacchinaRowChangeEventHandler stp_repDonati_getDatiProdMacchinaRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event stp_repDonati_getDatiProdMacchinaRowChangeEventHandler stp_repDonati_getDatiProdMacchinaRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event stp_repDonati_getDatiProdMacchinaRowChangeEventHandler stp_repDonati_getDatiProdMacchinaRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event stp_repDonati_getDatiProdMacchinaRowChangeEventHandler stp_repDonati_getDatiProdMacchinaRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void Addstp_repDonati_getDatiProdMacchinaRow(stp_repDonati_getDatiProdMacchinaRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public stp_repDonati_getDatiProdMacchinaRow Addstp_repDonati_getDatiProdMacchinaRow(string CodArticolo, int PezziLanciati, int PezziProd, int PezziConf, decimal TCAssegnato, int CodOperatore, decimal TempoOn, decimal TempoAuto, decimal TempoRun, decimal TCMedio, decimal TCLav, decimal TCEff, decimal TCMedioRT, decimal TCLavRT, decimal TCEffRT) { + stp_repDonati_getDatiProdMacchinaRow rowstp_repDonati_getDatiProdMacchinaRow = ((stp_repDonati_getDatiProdMacchinaRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + CodArticolo, + PezziLanciati, + PezziProd, + PezziConf, + TCAssegnato, + CodOperatore, + TempoOn, + TempoAuto, + TempoRun, + TCMedio, + TCLav, + TCEff, + TCMedioRT, + TCLavRT, + TCEffRT}; + rowstp_repDonati_getDatiProdMacchinaRow.ItemArray = columnValuesArray; + this.Rows.Add(rowstp_repDonati_getDatiProdMacchinaRow); + return rowstp_repDonati_getDatiProdMacchinaRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + stp_repDonati_getDatiProdMacchinaDataTable cln = ((stp_repDonati_getDatiProdMacchinaDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new stp_repDonati_getDatiProdMacchinaDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnCodArticolo = base.Columns["CodArticolo"]; + this.columnPezziLanciati = base.Columns["PezziLanciati"]; + this.columnPezziProd = base.Columns["PezziProd"]; + this.columnPezziConf = base.Columns["PezziConf"]; + this.columnTCAssegnato = base.Columns["TCAssegnato"]; + this.columnCodOperatore = base.Columns["CodOperatore"]; + this.columnTempoOn = base.Columns["TempoOn"]; + this.columnTempoAuto = base.Columns["TempoAuto"]; + this.columnTempoRun = base.Columns["TempoRun"]; + this.columnTCMedio = base.Columns["TCMedio"]; + this.columnTCLav = base.Columns["TCLav"]; + this.columnTCEff = base.Columns["TCEff"]; + this.columnTCMedioRT = base.Columns["TCMedioRT"]; + this.columnTCLavRT = base.Columns["TCLavRT"]; + this.columnTCEffRT = base.Columns["TCEffRT"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnCodArticolo = new global::System.Data.DataColumn("CodArticolo", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodArticolo); + this.columnPezziLanciati = new global::System.Data.DataColumn("PezziLanciati", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnPezziLanciati); + this.columnPezziProd = new global::System.Data.DataColumn("PezziProd", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnPezziProd); + this.columnPezziConf = new global::System.Data.DataColumn("PezziConf", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnPezziConf); + this.columnTCAssegnato = new global::System.Data.DataColumn("TCAssegnato", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTCAssegnato); + this.columnCodOperatore = new global::System.Data.DataColumn("CodOperatore", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodOperatore); + this.columnTempoOn = new global::System.Data.DataColumn("TempoOn", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTempoOn); + this.columnTempoAuto = new global::System.Data.DataColumn("TempoAuto", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTempoAuto); + this.columnTempoRun = new global::System.Data.DataColumn("TempoRun", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTempoRun); + this.columnTCMedio = new global::System.Data.DataColumn("TCMedio", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTCMedio); + this.columnTCLav = new global::System.Data.DataColumn("TCLav", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTCLav); + this.columnTCEff = new global::System.Data.DataColumn("TCEff", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTCEff); + this.columnTCMedioRT = new global::System.Data.DataColumn("TCMedioRT", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTCMedioRT); + this.columnTCLavRT = new global::System.Data.DataColumn("TCLavRT", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTCLavRT); + this.columnTCEffRT = new global::System.Data.DataColumn("TCEffRT", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTCEffRT); + this.columnCodArticolo.ReadOnly = true; + this.columnCodArticolo.MaxLength = 50; + this.columnPezziLanciati.ReadOnly = true; + this.columnPezziProd.ReadOnly = true; + this.columnPezziConf.ReadOnly = true; + this.columnTCAssegnato.ReadOnly = true; + this.columnCodOperatore.ReadOnly = true; + this.columnTempoOn.ReadOnly = true; + this.columnTempoAuto.ReadOnly = true; + this.columnTempoRun.ReadOnly = true; + this.columnTCMedio.ReadOnly = true; + this.columnTCLav.ReadOnly = true; + this.columnTCEff.ReadOnly = true; + this.columnTCMedioRT.ReadOnly = true; + this.columnTCLavRT.ReadOnly = true; + this.columnTCEffRT.ReadOnly = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public stp_repDonati_getDatiProdMacchinaRow Newstp_repDonati_getDatiProdMacchinaRow() { + return ((stp_repDonati_getDatiProdMacchinaRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new stp_repDonati_getDatiProdMacchinaRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(stp_repDonati_getDatiProdMacchinaRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.stp_repDonati_getDatiProdMacchinaRowChanged != null)) { + this.stp_repDonati_getDatiProdMacchinaRowChanged(this, new stp_repDonati_getDatiProdMacchinaRowChangeEvent(((stp_repDonati_getDatiProdMacchinaRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.stp_repDonati_getDatiProdMacchinaRowChanging != null)) { + this.stp_repDonati_getDatiProdMacchinaRowChanging(this, new stp_repDonati_getDatiProdMacchinaRowChangeEvent(((stp_repDonati_getDatiProdMacchinaRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.stp_repDonati_getDatiProdMacchinaRowDeleted != null)) { + this.stp_repDonati_getDatiProdMacchinaRowDeleted(this, new stp_repDonati_getDatiProdMacchinaRowChangeEvent(((stp_repDonati_getDatiProdMacchinaRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.stp_repDonati_getDatiProdMacchinaRowDeleting != null)) { + this.stp_repDonati_getDatiProdMacchinaRowDeleting(this, new stp_repDonati_getDatiProdMacchinaRowChangeEvent(((stp_repDonati_getDatiProdMacchinaRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void Removestp_repDonati_getDatiProdMacchinaRow(stp_repDonati_getDatiProdMacchinaRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_ProdTempi ds = new DS_ProdTempi(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "stp_repDonati_getDatiProdMacchinaDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class stp_repDonati_getLastStatoDurataMacchinaDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnidxStato; + + private global::System.Data.DataColumn columnMinuti; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public stp_repDonati_getLastStatoDurataMacchinaDataTable() { + this.TableName = "stp_repDonati_getLastStatoDurataMacchina"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal stp_repDonati_getLastStatoDurataMacchinaDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected stp_repDonati_getLastStatoDurataMacchinaDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn idxStatoColumn { + get { + return this.columnidxStato; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn MinutiColumn { + get { + return this.columnMinuti; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public stp_repDonati_getLastStatoDurataMacchinaRow this[int index] { + get { + return ((stp_repDonati_getLastStatoDurataMacchinaRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event stp_repDonati_getLastStatoDurataMacchinaRowChangeEventHandler stp_repDonati_getLastStatoDurataMacchinaRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event stp_repDonati_getLastStatoDurataMacchinaRowChangeEventHandler stp_repDonati_getLastStatoDurataMacchinaRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event stp_repDonati_getLastStatoDurataMacchinaRowChangeEventHandler stp_repDonati_getLastStatoDurataMacchinaRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event stp_repDonati_getLastStatoDurataMacchinaRowChangeEventHandler stp_repDonati_getLastStatoDurataMacchinaRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void Addstp_repDonati_getLastStatoDurataMacchinaRow(stp_repDonati_getLastStatoDurataMacchinaRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public stp_repDonati_getLastStatoDurataMacchinaRow Addstp_repDonati_getLastStatoDurataMacchinaRow(int idxStato, double Minuti) { + stp_repDonati_getLastStatoDurataMacchinaRow rowstp_repDonati_getLastStatoDurataMacchinaRow = ((stp_repDonati_getLastStatoDurataMacchinaRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + idxStato, + Minuti}; + rowstp_repDonati_getLastStatoDurataMacchinaRow.ItemArray = columnValuesArray; + this.Rows.Add(rowstp_repDonati_getLastStatoDurataMacchinaRow); + return rowstp_repDonati_getLastStatoDurataMacchinaRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + stp_repDonati_getLastStatoDurataMacchinaDataTable cln = ((stp_repDonati_getLastStatoDurataMacchinaDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new stp_repDonati_getLastStatoDurataMacchinaDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnidxStato = base.Columns["idxStato"]; + this.columnMinuti = base.Columns["Minuti"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnidxStato = new global::System.Data.DataColumn("idxStato", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnidxStato); + this.columnMinuti = new global::System.Data.DataColumn("Minuti", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnMinuti); + this.columnidxStato.ReadOnly = true; + this.columnMinuti.ReadOnly = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public stp_repDonati_getLastStatoDurataMacchinaRow Newstp_repDonati_getLastStatoDurataMacchinaRow() { + return ((stp_repDonati_getLastStatoDurataMacchinaRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new stp_repDonati_getLastStatoDurataMacchinaRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(stp_repDonati_getLastStatoDurataMacchinaRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.stp_repDonati_getLastStatoDurataMacchinaRowChanged != null)) { + this.stp_repDonati_getLastStatoDurataMacchinaRowChanged(this, new stp_repDonati_getLastStatoDurataMacchinaRowChangeEvent(((stp_repDonati_getLastStatoDurataMacchinaRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.stp_repDonati_getLastStatoDurataMacchinaRowChanging != null)) { + this.stp_repDonati_getLastStatoDurataMacchinaRowChanging(this, new stp_repDonati_getLastStatoDurataMacchinaRowChangeEvent(((stp_repDonati_getLastStatoDurataMacchinaRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.stp_repDonati_getLastStatoDurataMacchinaRowDeleted != null)) { + this.stp_repDonati_getLastStatoDurataMacchinaRowDeleted(this, new stp_repDonati_getLastStatoDurataMacchinaRowChangeEvent(((stp_repDonati_getLastStatoDurataMacchinaRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.stp_repDonati_getLastStatoDurataMacchinaRowDeleting != null)) { + this.stp_repDonati_getLastStatoDurataMacchinaRowDeleting(this, new stp_repDonati_getLastStatoDurataMacchinaRowChangeEvent(((stp_repDonati_getLastStatoDurataMacchinaRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void Removestp_repDonati_getLastStatoDurataMacchinaRow(stp_repDonati_getLastStatoDurataMacchinaRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_ProdTempi ds = new DS_ProdTempi(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "stp_repDonati_getLastStatoDurataMacchinaDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class stp_repDonati_getDatiProdMacchinaPeriodoDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnPezziProd; + + private global::System.Data.DataColumn columnTCAssegnato; + + private global::System.Data.DataColumn columnTCMedioRT; + + private global::System.Data.DataColumn columnTCLavRT; + + private global::System.Data.DataColumn columnTCEffRT; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public stp_repDonati_getDatiProdMacchinaPeriodoDataTable() { + this.TableName = "stp_repDonati_getDatiProdMacchinaPeriodo"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal stp_repDonati_getDatiProdMacchinaPeriodoDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected stp_repDonati_getDatiProdMacchinaPeriodoDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn PezziProdColumn { + get { + return this.columnPezziProd; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TCAssegnatoColumn { + get { + return this.columnTCAssegnato; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TCMedioRTColumn { + get { + return this.columnTCMedioRT; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TCLavRTColumn { + get { + return this.columnTCLavRT; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TCEffRTColumn { + get { + return this.columnTCEffRT; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public stp_repDonati_getDatiProdMacchinaPeriodoRow this[int index] { + get { + return ((stp_repDonati_getDatiProdMacchinaPeriodoRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event stp_repDonati_getDatiProdMacchinaPeriodoRowChangeEventHandler stp_repDonati_getDatiProdMacchinaPeriodoRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event stp_repDonati_getDatiProdMacchinaPeriodoRowChangeEventHandler stp_repDonati_getDatiProdMacchinaPeriodoRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event stp_repDonati_getDatiProdMacchinaPeriodoRowChangeEventHandler stp_repDonati_getDatiProdMacchinaPeriodoRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event stp_repDonati_getDatiProdMacchinaPeriodoRowChangeEventHandler stp_repDonati_getDatiProdMacchinaPeriodoRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void Addstp_repDonati_getDatiProdMacchinaPeriodoRow(stp_repDonati_getDatiProdMacchinaPeriodoRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public stp_repDonati_getDatiProdMacchinaPeriodoRow Addstp_repDonati_getDatiProdMacchinaPeriodoRow(int PezziProd, decimal TCAssegnato, decimal TCMedioRT, decimal TCLavRT, decimal TCEffRT) { + stp_repDonati_getDatiProdMacchinaPeriodoRow rowstp_repDonati_getDatiProdMacchinaPeriodoRow = ((stp_repDonati_getDatiProdMacchinaPeriodoRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + PezziProd, + TCAssegnato, + TCMedioRT, + TCLavRT, + TCEffRT}; + rowstp_repDonati_getDatiProdMacchinaPeriodoRow.ItemArray = columnValuesArray; + this.Rows.Add(rowstp_repDonati_getDatiProdMacchinaPeriodoRow); + return rowstp_repDonati_getDatiProdMacchinaPeriodoRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + stp_repDonati_getDatiProdMacchinaPeriodoDataTable cln = ((stp_repDonati_getDatiProdMacchinaPeriodoDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new stp_repDonati_getDatiProdMacchinaPeriodoDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnPezziProd = base.Columns["PezziProd"]; + this.columnTCAssegnato = base.Columns["TCAssegnato"]; + this.columnTCMedioRT = base.Columns["TCMedioRT"]; + this.columnTCLavRT = base.Columns["TCLavRT"]; + this.columnTCEffRT = base.Columns["TCEffRT"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnPezziProd = new global::System.Data.DataColumn("PezziProd", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnPezziProd); + this.columnTCAssegnato = new global::System.Data.DataColumn("TCAssegnato", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTCAssegnato); + this.columnTCMedioRT = new global::System.Data.DataColumn("TCMedioRT", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTCMedioRT); + this.columnTCLavRT = new global::System.Data.DataColumn("TCLavRT", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTCLavRT); + this.columnTCEffRT = new global::System.Data.DataColumn("TCEffRT", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTCEffRT); + this.columnPezziProd.ReadOnly = true; + this.columnTCAssegnato.ReadOnly = true; + this.columnTCMedioRT.ReadOnly = true; + this.columnTCLavRT.ReadOnly = true; + this.columnTCEffRT.ReadOnly = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public stp_repDonati_getDatiProdMacchinaPeriodoRow Newstp_repDonati_getDatiProdMacchinaPeriodoRow() { + return ((stp_repDonati_getDatiProdMacchinaPeriodoRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new stp_repDonati_getDatiProdMacchinaPeriodoRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(stp_repDonati_getDatiProdMacchinaPeriodoRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.stp_repDonati_getDatiProdMacchinaPeriodoRowChanged != null)) { + this.stp_repDonati_getDatiProdMacchinaPeriodoRowChanged(this, new stp_repDonati_getDatiProdMacchinaPeriodoRowChangeEvent(((stp_repDonati_getDatiProdMacchinaPeriodoRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.stp_repDonati_getDatiProdMacchinaPeriodoRowChanging != null)) { + this.stp_repDonati_getDatiProdMacchinaPeriodoRowChanging(this, new stp_repDonati_getDatiProdMacchinaPeriodoRowChangeEvent(((stp_repDonati_getDatiProdMacchinaPeriodoRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.stp_repDonati_getDatiProdMacchinaPeriodoRowDeleted != null)) { + this.stp_repDonati_getDatiProdMacchinaPeriodoRowDeleted(this, new stp_repDonati_getDatiProdMacchinaPeriodoRowChangeEvent(((stp_repDonati_getDatiProdMacchinaPeriodoRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.stp_repDonati_getDatiProdMacchinaPeriodoRowDeleting != null)) { + this.stp_repDonati_getDatiProdMacchinaPeriodoRowDeleting(this, new stp_repDonati_getDatiProdMacchinaPeriodoRowChangeEvent(((stp_repDonati_getDatiProdMacchinaPeriodoRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void Removestp_repDonati_getDatiProdMacchinaPeriodoRow(stp_repDonati_getDatiProdMacchinaPeriodoRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_ProdTempi ds = new DS_ProdTempi(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "stp_repDonati_getDatiProdMacchinaPeriodoDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class TurniMacchinaDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnIdxMacchina; + + private global::System.Data.DataColumn columnT1; + + private global::System.Data.DataColumn columnT2; + + private global::System.Data.DataColumn columnT3; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public TurniMacchinaDataTable() { + this.TableName = "TurniMacchina"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal TurniMacchinaDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected TurniMacchinaDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn IdxMacchinaColumn { + get { + return this.columnIdxMacchina; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn T1Column { + get { + return this.columnT1; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn T2Column { + get { + return this.columnT2; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn T3Column { + get { + return this.columnT3; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public TurniMacchinaRow this[int index] { + get { + return ((TurniMacchinaRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event TurniMacchinaRowChangeEventHandler TurniMacchinaRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event TurniMacchinaRowChangeEventHandler TurniMacchinaRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event TurniMacchinaRowChangeEventHandler TurniMacchinaRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event TurniMacchinaRowChangeEventHandler TurniMacchinaRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddTurniMacchinaRow(TurniMacchinaRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public TurniMacchinaRow AddTurniMacchinaRow(string IdxMacchina, bool T1, bool T2, bool T3) { + TurniMacchinaRow rowTurniMacchinaRow = ((TurniMacchinaRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + IdxMacchina, + T1, + T2, + T3}; + rowTurniMacchinaRow.ItemArray = columnValuesArray; + this.Rows.Add(rowTurniMacchinaRow); + return rowTurniMacchinaRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public TurniMacchinaRow FindByIdxMacchina(string IdxMacchina) { + return ((TurniMacchinaRow)(this.Rows.Find(new object[] { + IdxMacchina}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + TurniMacchinaDataTable cln = ((TurniMacchinaDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new TurniMacchinaDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnIdxMacchina = base.Columns["IdxMacchina"]; + this.columnT1 = base.Columns["T1"]; + this.columnT2 = base.Columns["T2"]; + this.columnT3 = base.Columns["T3"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnIdxMacchina = new global::System.Data.DataColumn("IdxMacchina", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxMacchina); + this.columnT1 = new global::System.Data.DataColumn("T1", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnT1); + this.columnT2 = new global::System.Data.DataColumn("T2", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnT2); + this.columnT3 = new global::System.Data.DataColumn("T3", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnT3); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnIdxMacchina}, true)); + this.columnIdxMacchina.AllowDBNull = false; + this.columnIdxMacchina.Unique = true; + this.columnIdxMacchina.MaxLength = 50; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public TurniMacchinaRow NewTurniMacchinaRow() { + return ((TurniMacchinaRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new TurniMacchinaRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(TurniMacchinaRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.TurniMacchinaRowChanged != null)) { + this.TurniMacchinaRowChanged(this, new TurniMacchinaRowChangeEvent(((TurniMacchinaRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.TurniMacchinaRowChanging != null)) { + this.TurniMacchinaRowChanging(this, new TurniMacchinaRowChangeEvent(((TurniMacchinaRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.TurniMacchinaRowDeleted != null)) { + this.TurniMacchinaRowDeleted(this, new TurniMacchinaRowChangeEvent(((TurniMacchinaRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.TurniMacchinaRowDeleting != null)) { + this.TurniMacchinaRowDeleting(this, new TurniMacchinaRowChangeEvent(((TurniMacchinaRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveTurniMacchinaRow(TurniMacchinaRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_ProdTempi ds = new DS_ProdTempi(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "TurniMacchinaDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class MappaStatoExplDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnRowNum; + + private global::System.Data.DataColumn columnlastUpdate; + + private global::System.Data.DataColumn columnIdxMacchina; + + private global::System.Data.DataColumn columnCodMacchina; + + private global::System.Data.DataColumn columnNome; + + private global::System.Data.DataColumn columnurl; + + private global::System.Data.DataColumn columnidxODL; + + private global::System.Data.DataColumn columnCodArticolo; + + private global::System.Data.DataColumn columnNumPezzi; + + private global::System.Data.DataColumn columnTCAssegnato; + + private global::System.Data.DataColumn columnDataInizioODL; + + private global::System.Data.DataColumn columnSemaforo; + + private global::System.Data.DataColumn columnidxStato; + + private global::System.Data.DataColumn columnDescrizioneStato; + + private global::System.Data.DataColumn columndurata; + + private global::System.Data.DataColumn columnPezziProd; + + private global::System.Data.DataColumn columnPezziConf; + + private global::System.Data.DataColumn columnTempoOn; + + private global::System.Data.DataColumn columnTempoAuto; + + private global::System.Data.DataColumn columnTempoRun; + + private global::System.Data.DataColumn columnTCMedio; + + private global::System.Data.DataColumn columnTCLav; + + private global::System.Data.DataColumn columnTCEff; + + private global::System.Data.DataColumn columnTCMedioRT; + + private global::System.Data.DataColumn columnTCLavRT; + + private global::System.Data.DataColumn columnTCEffRT; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public MappaStatoExplDataTable() { + this.TableName = "MappaStatoExpl"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal MappaStatoExplDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected MappaStatoExplDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn RowNumColumn { + get { + return this.columnRowNum; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn lastUpdateColumn { + get { + return this.columnlastUpdate; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn IdxMacchinaColumn { + get { + return this.columnIdxMacchina; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn CodMacchinaColumn { + get { + return this.columnCodMacchina; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn NomeColumn { + get { + return this.columnNome; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn urlColumn { + get { + return this.columnurl; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn idxODLColumn { + get { + return this.columnidxODL; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn CodArticoloColumn { + get { + return this.columnCodArticolo; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn NumPezziColumn { + get { + return this.columnNumPezzi; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TCAssegnatoColumn { + get { + return this.columnTCAssegnato; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn DataInizioODLColumn { + get { + return this.columnDataInizioODL; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn SemaforoColumn { + get { + return this.columnSemaforo; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn idxStatoColumn { + get { + return this.columnidxStato; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn DescrizioneStatoColumn { + get { + return this.columnDescrizioneStato; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn durataColumn { + get { + return this.columndurata; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn PezziProdColumn { + get { + return this.columnPezziProd; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn PezziConfColumn { + get { + return this.columnPezziConf; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TempoOnColumn { + get { + return this.columnTempoOn; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TempoAutoColumn { + get { + return this.columnTempoAuto; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TempoRunColumn { + get { + return this.columnTempoRun; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TCMedioColumn { + get { + return this.columnTCMedio; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TCLavColumn { + get { + return this.columnTCLav; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TCEffColumn { + get { + return this.columnTCEff; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TCMedioRTColumn { + get { + return this.columnTCMedioRT; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TCLavRTColumn { + get { + return this.columnTCLavRT; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TCEffRTColumn { + get { + return this.columnTCEffRT; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public MappaStatoExplRow this[int index] { + get { + return ((MappaStatoExplRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event MappaStatoExplRowChangeEventHandler MappaStatoExplRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event MappaStatoExplRowChangeEventHandler MappaStatoExplRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event MappaStatoExplRowChangeEventHandler MappaStatoExplRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event MappaStatoExplRowChangeEventHandler MappaStatoExplRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddMappaStatoExplRow(MappaStatoExplRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public MappaStatoExplRow AddMappaStatoExplRow( + System.DateTime lastUpdate, + string IdxMacchina, + string CodMacchina, + string Nome, + string url, + int idxODL, + string CodArticolo, + int NumPezzi, + decimal TCAssegnato, + System.DateTime DataInizioODL, + string Semaforo, + int idxStato, + string DescrizioneStato, + double durata, + int PezziProd, + int PezziConf, + decimal TempoOn, + decimal TempoAuto, + decimal TempoRun, + decimal TCMedio, + decimal TCLav, + decimal TCEff, + decimal TCMedioRT, + decimal TCLavRT, + decimal TCEffRT) { + MappaStatoExplRow rowMappaStatoExplRow = ((MappaStatoExplRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + null, + lastUpdate, + IdxMacchina, + CodMacchina, + Nome, + url, + idxODL, + CodArticolo, + NumPezzi, + TCAssegnato, + DataInizioODL, + Semaforo, + idxStato, + DescrizioneStato, + durata, + PezziProd, + PezziConf, + TempoOn, + TempoAuto, + TempoRun, + TCMedio, + TCLav, + TCEff, + TCMedioRT, + TCLavRT, + TCEffRT}; + rowMappaStatoExplRow.ItemArray = columnValuesArray; + this.Rows.Add(rowMappaStatoExplRow); + return rowMappaStatoExplRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public MappaStatoExplRow FindByIdxMacchina(string IdxMacchina) { + return ((MappaStatoExplRow)(this.Rows.Find(new object[] { + IdxMacchina}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + MappaStatoExplDataTable cln = ((MappaStatoExplDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new MappaStatoExplDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnRowNum = base.Columns["RowNum"]; + this.columnlastUpdate = base.Columns["lastUpdate"]; + this.columnIdxMacchina = base.Columns["IdxMacchina"]; + this.columnCodMacchina = base.Columns["CodMacchina"]; + this.columnNome = base.Columns["Nome"]; + this.columnurl = base.Columns["url"]; + this.columnidxODL = base.Columns["idxODL"]; + this.columnCodArticolo = base.Columns["CodArticolo"]; + this.columnNumPezzi = base.Columns["NumPezzi"]; + this.columnTCAssegnato = base.Columns["TCAssegnato"]; + this.columnDataInizioODL = base.Columns["DataInizioODL"]; + this.columnSemaforo = base.Columns["Semaforo"]; + this.columnidxStato = base.Columns["idxStato"]; + this.columnDescrizioneStato = base.Columns["DescrizioneStato"]; + this.columndurata = base.Columns["durata"]; + this.columnPezziProd = base.Columns["PezziProd"]; + this.columnPezziConf = base.Columns["PezziConf"]; + this.columnTempoOn = base.Columns["TempoOn"]; + this.columnTempoAuto = base.Columns["TempoAuto"]; + this.columnTempoRun = base.Columns["TempoRun"]; + this.columnTCMedio = base.Columns["TCMedio"]; + this.columnTCLav = base.Columns["TCLav"]; + this.columnTCEff = base.Columns["TCEff"]; + this.columnTCMedioRT = base.Columns["TCMedioRT"]; + this.columnTCLavRT = base.Columns["TCLavRT"]; + this.columnTCEffRT = base.Columns["TCEffRT"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnRowNum = new global::System.Data.DataColumn("RowNum", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnRowNum); + this.columnlastUpdate = new global::System.Data.DataColumn("lastUpdate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnlastUpdate); + this.columnIdxMacchina = new global::System.Data.DataColumn("IdxMacchina", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxMacchina); + this.columnCodMacchina = new global::System.Data.DataColumn("CodMacchina", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodMacchina); + this.columnNome = new global::System.Data.DataColumn("Nome", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNome); + this.columnurl = new global::System.Data.DataColumn("url", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnurl); + this.columnidxODL = new global::System.Data.DataColumn("idxODL", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnidxODL); + this.columnCodArticolo = new global::System.Data.DataColumn("CodArticolo", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodArticolo); + this.columnNumPezzi = new global::System.Data.DataColumn("NumPezzi", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNumPezzi); + this.columnTCAssegnato = new global::System.Data.DataColumn("TCAssegnato", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTCAssegnato); + this.columnDataInizioODL = new global::System.Data.DataColumn("DataInizioODL", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDataInizioODL); + this.columnSemaforo = new global::System.Data.DataColumn("Semaforo", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnSemaforo); + this.columnidxStato = new global::System.Data.DataColumn("idxStato", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnidxStato); + this.columnDescrizioneStato = new global::System.Data.DataColumn("DescrizioneStato", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDescrizioneStato); + this.columndurata = new global::System.Data.DataColumn("durata", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columndurata); + this.columnPezziProd = new global::System.Data.DataColumn("PezziProd", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnPezziProd); + this.columnPezziConf = new global::System.Data.DataColumn("PezziConf", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnPezziConf); + this.columnTempoOn = new global::System.Data.DataColumn("TempoOn", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTempoOn); + this.columnTempoAuto = new global::System.Data.DataColumn("TempoAuto", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTempoAuto); + this.columnTempoRun = new global::System.Data.DataColumn("TempoRun", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTempoRun); + this.columnTCMedio = new global::System.Data.DataColumn("TCMedio", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTCMedio); + this.columnTCLav = new global::System.Data.DataColumn("TCLav", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTCLav); + this.columnTCEff = new global::System.Data.DataColumn("TCEff", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTCEff); + this.columnTCMedioRT = new global::System.Data.DataColumn("TCMedioRT", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTCMedioRT); + this.columnTCLavRT = new global::System.Data.DataColumn("TCLavRT", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTCLavRT); + this.columnTCEffRT = new global::System.Data.DataColumn("TCEffRT", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTCEffRT); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnIdxMacchina}, true)); + this.columnRowNum.AutoIncrement = true; + this.columnRowNum.AutoIncrementSeed = -1; + this.columnRowNum.AutoIncrementStep = -1; + this.columnRowNum.AllowDBNull = false; + this.columnRowNum.ReadOnly = true; + this.columnIdxMacchina.AllowDBNull = false; + this.columnIdxMacchina.Unique = true; + this.columnIdxMacchina.MaxLength = 50; + this.columnCodMacchina.MaxLength = 50; + this.columnNome.MaxLength = 50; + this.columnurl.MaxLength = 250; + this.columnCodArticolo.MaxLength = 50; + this.columnSemaforo.MaxLength = 50; + this.columnDescrizioneStato.MaxLength = 50; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public MappaStatoExplRow NewMappaStatoExplRow() { + return ((MappaStatoExplRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new MappaStatoExplRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(MappaStatoExplRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.MappaStatoExplRowChanged != null)) { + this.MappaStatoExplRowChanged(this, new MappaStatoExplRowChangeEvent(((MappaStatoExplRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.MappaStatoExplRowChanging != null)) { + this.MappaStatoExplRowChanging(this, new MappaStatoExplRowChangeEvent(((MappaStatoExplRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.MappaStatoExplRowDeleted != null)) { + this.MappaStatoExplRowDeleted(this, new MappaStatoExplRowChangeEvent(((MappaStatoExplRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.MappaStatoExplRowDeleting != null)) { + this.MappaStatoExplRowDeleting(this, new MappaStatoExplRowChangeEvent(((MappaStatoExplRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveMappaStatoExplRow(MappaStatoExplRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_ProdTempi ds = new DS_ProdTempi(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "MappaStatoExplDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class ProduzioneAs400DataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnIdxODL; + + private global::System.Data.DataColumn columnCommessaAs400; + + private global::System.Data.DataColumn columnCodArticolo; + + private global::System.Data.DataColumn columnTotPzProd; + + private global::System.Data.DataColumn columnDataRif; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public ProduzioneAs400DataTable() { + this.TableName = "ProduzioneAs400"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal ProduzioneAs400DataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected ProduzioneAs400DataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn IdxODLColumn { + get { + return this.columnIdxODL; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn CommessaAs400Column { + get { + return this.columnCommessaAs400; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn CodArticoloColumn { + get { + return this.columnCodArticolo; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TotPzProdColumn { + get { + return this.columnTotPzProd; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn DataRifColumn { + get { + return this.columnDataRif; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public ProduzioneAs400Row this[int index] { + get { + return ((ProduzioneAs400Row)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event ProduzioneAs400RowChangeEventHandler ProduzioneAs400RowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event ProduzioneAs400RowChangeEventHandler ProduzioneAs400RowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event ProduzioneAs400RowChangeEventHandler ProduzioneAs400RowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event ProduzioneAs400RowChangeEventHandler ProduzioneAs400RowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddProduzioneAs400Row(ProduzioneAs400Row row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public ProduzioneAs400Row AddProduzioneAs400Row(int IdxODL, string CommessaAs400, string CodArticolo, int TotPzProd, string DataRif) { + ProduzioneAs400Row rowProduzioneAs400Row = ((ProduzioneAs400Row)(this.NewRow())); + object[] columnValuesArray = new object[] { + IdxODL, + CommessaAs400, + CodArticolo, + TotPzProd, + DataRif}; + rowProduzioneAs400Row.ItemArray = columnValuesArray; + this.Rows.Add(rowProduzioneAs400Row); + return rowProduzioneAs400Row; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + ProduzioneAs400DataTable cln = ((ProduzioneAs400DataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new ProduzioneAs400DataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnIdxODL = base.Columns["IdxODL"]; + this.columnCommessaAs400 = base.Columns["CommessaAs400"]; + this.columnCodArticolo = base.Columns["CodArticolo"]; + this.columnTotPzProd = base.Columns["TotPzProd"]; + this.columnDataRif = base.Columns["DataRif"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnIdxODL = new global::System.Data.DataColumn("IdxODL", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxODL); + this.columnCommessaAs400 = new global::System.Data.DataColumn("CommessaAs400", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCommessaAs400); + this.columnCodArticolo = new global::System.Data.DataColumn("CodArticolo", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodArticolo); + this.columnTotPzProd = new global::System.Data.DataColumn("TotPzProd", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTotPzProd); + this.columnDataRif = new global::System.Data.DataColumn("DataRif", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDataRif); + this.Constraints.Add(new global::System.Data.UniqueConstraint("ProduzioneAs400Key1", new global::System.Data.DataColumn[] { + this.columnIdxODL, + this.columnDataRif}, false)); + this.columnIdxODL.AllowDBNull = false; + this.columnCommessaAs400.AllowDBNull = false; + this.columnCommessaAs400.MaxLength = 50; + this.columnCodArticolo.AllowDBNull = false; + this.columnCodArticolo.MaxLength = 50; + this.columnDataRif.MaxLength = 10; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public ProduzioneAs400Row NewProduzioneAs400Row() { + return ((ProduzioneAs400Row)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new ProduzioneAs400Row(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(ProduzioneAs400Row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.ProduzioneAs400RowChanged != null)) { + this.ProduzioneAs400RowChanged(this, new ProduzioneAs400RowChangeEvent(((ProduzioneAs400Row)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.ProduzioneAs400RowChanging != null)) { + this.ProduzioneAs400RowChanging(this, new ProduzioneAs400RowChangeEvent(((ProduzioneAs400Row)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.ProduzioneAs400RowDeleted != null)) { + this.ProduzioneAs400RowDeleted(this, new ProduzioneAs400RowChangeEvent(((ProduzioneAs400Row)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.ProduzioneAs400RowDeleting != null)) { + this.ProduzioneAs400RowDeleting(this, new ProduzioneAs400RowChangeEvent(((ProduzioneAs400Row)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveProduzioneAs400Row(ProduzioneAs400Row row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_ProdTempi ds = new DS_ProdTempi(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "ProduzioneAs400DataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class ResProdDett_splitODLDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnIdxODL; + + private global::System.Data.DataColumn columnTCAssegnato; + + private global::System.Data.DataColumn columnpzOrd; + + private global::System.Data.DataColumn columnpzProd; + + private global::System.Data.DataColumn columnpzConf; + + private global::System.Data.DataColumn columnpzRiman; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public ResProdDett_splitODLDataTable() { + this.TableName = "ResProdDett_splitODL"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal ResProdDett_splitODLDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected ResProdDett_splitODLDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn IdxODLColumn { + get { + return this.columnIdxODL; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TCAssegnatoColumn { + get { + return this.columnTCAssegnato; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn pzOrdColumn { + get { + return this.columnpzOrd; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn pzProdColumn { + get { + return this.columnpzProd; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn pzConfColumn { + get { + return this.columnpzConf; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn pzRimanColumn { + get { + return this.columnpzRiman; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public ResProdDett_splitODLRow this[int index] { + get { + return ((ResProdDett_splitODLRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event ResProdDett_splitODLRowChangeEventHandler ResProdDett_splitODLRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event ResProdDett_splitODLRowChangeEventHandler ResProdDett_splitODLRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event ResProdDett_splitODLRowChangeEventHandler ResProdDett_splitODLRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event ResProdDett_splitODLRowChangeEventHandler ResProdDett_splitODLRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddResProdDett_splitODLRow(ResProdDett_splitODLRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public ResProdDett_splitODLRow AddResProdDett_splitODLRow(int IdxODL, decimal TCAssegnato, int pzOrd, int pzProd, int pzConf, int pzRiman) { + ResProdDett_splitODLRow rowResProdDett_splitODLRow = ((ResProdDett_splitODLRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + IdxODL, + TCAssegnato, + pzOrd, + pzProd, + pzConf, + pzRiman}; + rowResProdDett_splitODLRow.ItemArray = columnValuesArray; + this.Rows.Add(rowResProdDett_splitODLRow); + return rowResProdDett_splitODLRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + ResProdDett_splitODLDataTable cln = ((ResProdDett_splitODLDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new ResProdDett_splitODLDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnIdxODL = base.Columns["IdxODL"]; + this.columnTCAssegnato = base.Columns["TCAssegnato"]; + this.columnpzOrd = base.Columns["pzOrd"]; + this.columnpzProd = base.Columns["pzProd"]; + this.columnpzConf = base.Columns["pzConf"]; + this.columnpzRiman = base.Columns["pzRiman"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnIdxODL = new global::System.Data.DataColumn("IdxODL", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxODL); + this.columnTCAssegnato = new global::System.Data.DataColumn("TCAssegnato", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTCAssegnato); + this.columnpzOrd = new global::System.Data.DataColumn("pzOrd", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnpzOrd); + this.columnpzProd = new global::System.Data.DataColumn("pzProd", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnpzProd); + this.columnpzConf = new global::System.Data.DataColumn("pzConf", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnpzConf); + this.columnpzRiman = new global::System.Data.DataColumn("pzRiman", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnpzRiman); + this.columnTCAssegnato.AllowDBNull = false; + this.columnpzOrd.ReadOnly = true; + this.columnpzProd.ReadOnly = true; + this.columnpzConf.ReadOnly = true; + this.columnpzRiman.ReadOnly = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public ResProdDett_splitODLRow NewResProdDett_splitODLRow() { + return ((ResProdDett_splitODLRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new ResProdDett_splitODLRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(ResProdDett_splitODLRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.ResProdDett_splitODLRowChanged != null)) { + this.ResProdDett_splitODLRowChanged(this, new ResProdDett_splitODLRowChangeEvent(((ResProdDett_splitODLRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.ResProdDett_splitODLRowChanging != null)) { + this.ResProdDett_splitODLRowChanging(this, new ResProdDett_splitODLRowChangeEvent(((ResProdDett_splitODLRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.ResProdDett_splitODLRowDeleted != null)) { + this.ResProdDett_splitODLRowDeleted(this, new ResProdDett_splitODLRowChangeEvent(((ResProdDett_splitODLRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.ResProdDett_splitODLRowDeleting != null)) { + this.ResProdDett_splitODLRowDeleting(this, new ResProdDett_splitODLRowChangeEvent(((ResProdDett_splitODLRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveResProdDett_splitODLRow(ResProdDett_splitODLRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_ProdTempi ds = new DS_ProdTempi(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "ResProdDett_splitODLDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class ResProdDett_splitGGDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnData; + + private global::System.Data.DataColumn columnIdxODL; + + private global::System.Data.DataColumn columnTCAssegnato; + + private global::System.Data.DataColumn columnpzProd; + + private global::System.Data.DataColumn columnpzConf; + + private global::System.Data.DataColumn columnNome; + + private global::System.Data.DataColumn columnCodArticolo; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public ResProdDett_splitGGDataTable() { + this.TableName = "ResProdDett_splitGG"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal ResProdDett_splitGGDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected ResProdDett_splitGGDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn DataColumn { + get { + return this.columnData; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn IdxODLColumn { + get { + return this.columnIdxODL; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TCAssegnatoColumn { + get { + return this.columnTCAssegnato; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn pzProdColumn { + get { + return this.columnpzProd; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn pzConfColumn { + get { + return this.columnpzConf; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn NomeColumn { + get { + return this.columnNome; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn CodArticoloColumn { + get { + return this.columnCodArticolo; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public ResProdDett_splitGGRow this[int index] { + get { + return ((ResProdDett_splitGGRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event ResProdDett_splitGGRowChangeEventHandler ResProdDett_splitGGRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event ResProdDett_splitGGRowChangeEventHandler ResProdDett_splitGGRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event ResProdDett_splitGGRowChangeEventHandler ResProdDett_splitGGRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event ResProdDett_splitGGRowChangeEventHandler ResProdDett_splitGGRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddResProdDett_splitGGRow(ResProdDett_splitGGRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public ResProdDett_splitGGRow AddResProdDett_splitGGRow(System.DateTime Data, int IdxODL, decimal TCAssegnato, int pzProd, int pzConf, string Nome, string CodArticolo) { + ResProdDett_splitGGRow rowResProdDett_splitGGRow = ((ResProdDett_splitGGRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + Data, + IdxODL, + TCAssegnato, + pzProd, + pzConf, + Nome, + CodArticolo}; + rowResProdDett_splitGGRow.ItemArray = columnValuesArray; + this.Rows.Add(rowResProdDett_splitGGRow); + return rowResProdDett_splitGGRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + ResProdDett_splitGGDataTable cln = ((ResProdDett_splitGGDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new ResProdDett_splitGGDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnData = base.Columns["Data"]; + this.columnIdxODL = base.Columns["IdxODL"]; + this.columnTCAssegnato = base.Columns["TCAssegnato"]; + this.columnpzProd = base.Columns["pzProd"]; + this.columnpzConf = base.Columns["pzConf"]; + this.columnNome = base.Columns["Nome"]; + this.columnCodArticolo = base.Columns["CodArticolo"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnData = new global::System.Data.DataColumn("Data", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnData); + this.columnIdxODL = new global::System.Data.DataColumn("IdxODL", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxODL); + this.columnTCAssegnato = new global::System.Data.DataColumn("TCAssegnato", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTCAssegnato); + this.columnpzProd = new global::System.Data.DataColumn("pzProd", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnpzProd); + this.columnpzConf = new global::System.Data.DataColumn("pzConf", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnpzConf); + this.columnNome = new global::System.Data.DataColumn("Nome", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNome); + this.columnCodArticolo = new global::System.Data.DataColumn("CodArticolo", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodArticolo); + this.columnData.ReadOnly = true; + this.columnTCAssegnato.AllowDBNull = false; + this.columnpzProd.ReadOnly = true; + this.columnpzConf.ReadOnly = true; + this.columnNome.MaxLength = 50; + this.columnCodArticolo.MaxLength = 50; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public ResProdDett_splitGGRow NewResProdDett_splitGGRow() { + return ((ResProdDett_splitGGRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new ResProdDett_splitGGRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(ResProdDett_splitGGRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.ResProdDett_splitGGRowChanged != null)) { + this.ResProdDett_splitGGRowChanged(this, new ResProdDett_splitGGRowChangeEvent(((ResProdDett_splitGGRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.ResProdDett_splitGGRowChanging != null)) { + this.ResProdDett_splitGGRowChanging(this, new ResProdDett_splitGGRowChangeEvent(((ResProdDett_splitGGRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.ResProdDett_splitGGRowDeleted != null)) { + this.ResProdDett_splitGGRowDeleted(this, new ResProdDett_splitGGRowChangeEvent(((ResProdDett_splitGGRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.ResProdDett_splitGGRowDeleting != null)) { + this.ResProdDett_splitGGRowDeleting(this, new ResProdDett_splitGGRowChangeEvent(((ResProdDett_splitGGRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveResProdDett_splitGGRow(ResProdDett_splitGGRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_ProdTempi ds = new DS_ProdTempi(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "ResProdDett_splitGGDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class ResProdTotDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnNome; + + private global::System.Data.DataColumn columnIdxMacchina; + + private global::System.Data.DataColumn columnCodArticolo; + + private global::System.Data.DataColumn columnpzOrd; + + private global::System.Data.DataColumn columnpzProd; + + private global::System.Data.DataColumn columnpzConf; + + private global::System.Data.DataColumn columnpzRiman; + + private global::System.Data.DataColumn columnStato; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public ResProdTotDataTable() { + this.TableName = "ResProdTot"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal ResProdTotDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected ResProdTotDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn NomeColumn { + get { + return this.columnNome; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn IdxMacchinaColumn { + get { + return this.columnIdxMacchina; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn CodArticoloColumn { + get { + return this.columnCodArticolo; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn pzOrdColumn { + get { + return this.columnpzOrd; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn pzProdColumn { + get { + return this.columnpzProd; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn pzConfColumn { + get { + return this.columnpzConf; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn pzRimanColumn { + get { + return this.columnpzRiman; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn StatoColumn { + get { + return this.columnStato; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public ResProdTotRow this[int index] { + get { + return ((ResProdTotRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event ResProdTotRowChangeEventHandler ResProdTotRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event ResProdTotRowChangeEventHandler ResProdTotRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event ResProdTotRowChangeEventHandler ResProdTotRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event ResProdTotRowChangeEventHandler ResProdTotRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddResProdTotRow(ResProdTotRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public ResProdTotRow AddResProdTotRow(string Nome, string IdxMacchina, string CodArticolo, int pzOrd, int pzProd, int pzConf, int pzRiman, string Stato) { + ResProdTotRow rowResProdTotRow = ((ResProdTotRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + Nome, + IdxMacchina, + CodArticolo, + pzOrd, + pzProd, + pzConf, + pzRiman, + Stato}; + rowResProdTotRow.ItemArray = columnValuesArray; + this.Rows.Add(rowResProdTotRow); + return rowResProdTotRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public ResProdTotRow FindByNomeIdxMacchinaCodArticoloStato(string Nome, string IdxMacchina, string CodArticolo, string Stato) { + return ((ResProdTotRow)(this.Rows.Find(new object[] { + Nome, + IdxMacchina, + CodArticolo, + Stato}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + ResProdTotDataTable cln = ((ResProdTotDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new ResProdTotDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnNome = base.Columns["Nome"]; + this.columnIdxMacchina = base.Columns["IdxMacchina"]; + this.columnCodArticolo = base.Columns["CodArticolo"]; + this.columnpzOrd = base.Columns["pzOrd"]; + this.columnpzProd = base.Columns["pzProd"]; + this.columnpzConf = base.Columns["pzConf"]; + this.columnpzRiman = base.Columns["pzRiman"]; + this.columnStato = base.Columns["Stato"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnNome = new global::System.Data.DataColumn("Nome", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNome); + this.columnIdxMacchina = new global::System.Data.DataColumn("IdxMacchina", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxMacchina); + this.columnCodArticolo = new global::System.Data.DataColumn("CodArticolo", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodArticolo); + this.columnpzOrd = new global::System.Data.DataColumn("pzOrd", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnpzOrd); + this.columnpzProd = new global::System.Data.DataColumn("pzProd", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnpzProd); + this.columnpzConf = new global::System.Data.DataColumn("pzConf", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnpzConf); + this.columnpzRiman = new global::System.Data.DataColumn("pzRiman", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnpzRiman); + this.columnStato = new global::System.Data.DataColumn("Stato", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnStato); + this.Constraints.Add(new global::System.Data.UniqueConstraint("ResProdTotKey1", new global::System.Data.DataColumn[] { + this.columnIdxMacchina, + this.columnCodArticolo, + this.columnStato}, false)); + this.Constraints.Add(new global::System.Data.UniqueConstraint("ResProdTotKey", new global::System.Data.DataColumn[] { + this.columnNome, + this.columnIdxMacchina, + this.columnCodArticolo, + this.columnStato}, true)); + this.columnNome.AllowDBNull = false; + this.columnNome.MaxLength = 50; + this.columnIdxMacchina.AllowDBNull = false; + this.columnIdxMacchina.MaxLength = 50; + this.columnCodArticolo.AllowDBNull = false; + this.columnCodArticolo.MaxLength = 50; + this.columnpzOrd.ReadOnly = true; + this.columnpzProd.ReadOnly = true; + this.columnpzConf.ReadOnly = true; + this.columnpzRiman.ReadOnly = true; + this.columnStato.AllowDBNull = false; + this.columnStato.ReadOnly = true; + this.columnStato.MaxLength = 6; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public ResProdTotRow NewResProdTotRow() { + return ((ResProdTotRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new ResProdTotRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(ResProdTotRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.ResProdTotRowChanged != null)) { + this.ResProdTotRowChanged(this, new ResProdTotRowChangeEvent(((ResProdTotRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.ResProdTotRowChanging != null)) { + this.ResProdTotRowChanging(this, new ResProdTotRowChangeEvent(((ResProdTotRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.ResProdTotRowDeleted != null)) { + this.ResProdTotRowDeleted(this, new ResProdTotRowChangeEvent(((ResProdTotRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.ResProdTotRowDeleting != null)) { + this.ResProdTotRowDeleting(this, new ResProdTotRowChangeEvent(((ResProdTotRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveResProdTotRow(ResProdTotRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_ProdTempi ds = new DS_ProdTempi(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "ResProdTotDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class TempiCicloRilevatiRow : global::System.Data.DataRow { + + private TempiCicloRilevatiDataTable tableTempiCicloRilevati; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal TempiCicloRilevatiRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableTempiCicloRilevati = ((TempiCicloRilevatiDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string IdxMacchina { + get { + return ((string)(this[this.tableTempiCicloRilevati.IdxMacchinaColumn])); + } + set { + this[this.tableTempiCicloRilevati.IdxMacchinaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string CodArticolo { + get { + return ((string)(this[this.tableTempiCicloRilevati.CodArticoloColumn])); + } + set { + this[this.tableTempiCicloRilevati.CodArticoloColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime DataOraRif { + get { + return ((global::System.DateTime)(this[this.tableTempiCicloRilevati.DataOraRifColumn])); + } + set { + this[this.tableTempiCicloRilevati.DataOraRifColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public decimal TCMedio { + get { + return ((decimal)(this[this.tableTempiCicloRilevati.TCMedioColumn])); + } + set { + this[this.tableTempiCicloRilevati.TCMedioColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int PzProd { + get { + return ((int)(this[this.tableTempiCicloRilevati.PzProdColumn])); + } + set { + this[this.tableTempiCicloRilevati.PzProdColumn] = value; + } + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class ODLRow : global::System.Data.DataRow { + + private ODLDataTable tableODL; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal ODLRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableODL = ((ODLDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int IdxODL { + get { + return ((int)(this[this.tableODL.IdxODLColumn])); + } + set { + this[this.tableODL.IdxODLColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string CodArticolo { + get { + return ((string)(this[this.tableODL.CodArticoloColumn])); + } + set { + this[this.tableODL.CodArticoloColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string IdxMacchina { + get { + try { + return ((string)(this[this.tableODL.IdxMacchinaColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'IdxMacchina\' in table \'ODL\' is DBNull.", e); + } + } + set { + this[this.tableODL.IdxMacchinaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int NumPezzi { + get { + return ((int)(this[this.tableODL.NumPezziColumn])); + } + set { + this[this.tableODL.NumPezziColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public decimal TCAssegnato { + get { + return ((decimal)(this[this.tableODL.TCAssegnatoColumn])); + } + set { + this[this.tableODL.TCAssegnatoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string DescArticolo { + get { + try { + return ((string)(this[this.tableODL.DescArticoloColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'DescArticolo\' in table \'ODL\' is DBNull.", e); + } + } + set { + this[this.tableODL.DescArticoloColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string CodMacchina { + get { + try { + return ((string)(this[this.tableODL.CodMacchinaColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'CodMacchina\' in table \'ODL\' is DBNull.", e); + } + } + set { + this[this.tableODL.CodMacchinaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Nome { + get { + try { + return ((string)(this[this.tableODL.NomeColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Nome\' in table \'ODL\' is DBNull.", e); + } + } + set { + this[this.tableODL.NomeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime DataInizio { + get { + try { + return ((global::System.DateTime)(this[this.tableODL.DataInizioColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'DataInizio\' in table \'ODL\' is DBNull.", e); + } + } + set { + this[this.tableODL.DataInizioColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime DataFine { + get { + try { + return ((global::System.DateTime)(this[this.tableODL.DataFineColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'DataFine\' in table \'ODL\' is DBNull.", e); + } + } + set { + this[this.tableODL.DataFineColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Note { + get { + try { + return ((string)(this[this.tableODL.NoteColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Note\' in table \'ODL\' is DBNull.", e); + } + } + set { + this[this.tableODL.NoteColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool NeedAppr { + get { + return ((bool)(this[this.tableODL.NeedApprColumn])); + } + set { + this[this.tableODL.NeedApprColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string UserAppr { + get { + try { + return ((string)(this[this.tableODL.UserApprColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'UserAppr\' in table \'ODL\' is DBNull.", e); + } + } + set { + this[this.tableODL.UserApprColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime DataAppr { + get { + try { + return ((global::System.DateTime)(this[this.tableODL.DataApprColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'DataAppr\' in table \'ODL\' is DBNull.", e); + } + } + set { + this[this.tableODL.DataApprColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public decimal TCRichAttr { + get { + try { + return ((decimal)(this[this.tableODL.TCRichAttrColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'TCRichAttr\' in table \'ODL\' is DBNull.", e); + } + } + set { + this[this.tableODL.TCRichAttrColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ToAs400 { + get { + return ((bool)(this[this.tableODL.ToAs400Column])); + } + set { + this[this.tableODL.ToAs400Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsIdxMacchinaNull() { + return this.IsNull(this.tableODL.IdxMacchinaColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetIdxMacchinaNull() { + this[this.tableODL.IdxMacchinaColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsDescArticoloNull() { + return this.IsNull(this.tableODL.DescArticoloColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetDescArticoloNull() { + this[this.tableODL.DescArticoloColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsCodMacchinaNull() { + return this.IsNull(this.tableODL.CodMacchinaColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetCodMacchinaNull() { + this[this.tableODL.CodMacchinaColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsNomeNull() { + return this.IsNull(this.tableODL.NomeColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetNomeNull() { + this[this.tableODL.NomeColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsDataInizioNull() { + return this.IsNull(this.tableODL.DataInizioColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetDataInizioNull() { + this[this.tableODL.DataInizioColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsDataFineNull() { + return this.IsNull(this.tableODL.DataFineColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetDataFineNull() { + this[this.tableODL.DataFineColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsNoteNull() { + return this.IsNull(this.tableODL.NoteColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetNoteNull() { + this[this.tableODL.NoteColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsUserApprNull() { + return this.IsNull(this.tableODL.UserApprColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetUserApprNull() { + this[this.tableODL.UserApprColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsDataApprNull() { + return this.IsNull(this.tableODL.DataApprColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetDataApprNull() { + this[this.tableODL.DataApprColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsTCRichAttrNull() { + return this.IsNull(this.tableODL.TCRichAttrColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetTCRichAttrNull() { + this[this.tableODL.TCRichAttrColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class AnagArticoliRow : global::System.Data.DataRow { + + private AnagArticoliDataTable tableAnagArticoli; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal AnagArticoliRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableAnagArticoli = ((AnagArticoliDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string CodArticolo { + get { + return ((string)(this[this.tableAnagArticoli.CodArticoloColumn])); + } + set { + this[this.tableAnagArticoli.CodArticoloColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string DescArticolo { + get { + try { + return ((string)(this[this.tableAnagArticoli.DescArticoloColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'DescArticolo\' in table \'AnagArticoli\' is DBNull.", e); + } + } + set { + this[this.tableAnagArticoli.DescArticoloColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsDescArticoloNull() { + return this.IsNull(this.tableAnagArticoli.DescArticoloColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetDescArticoloNull() { + this[this.tableAnagArticoli.DescArticoloColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class DatiMacchineRow : global::System.Data.DataRow { + + private DatiMacchineDataTable tableDatiMacchine; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal DatiMacchineRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableDatiMacchine = ((DatiMacchineDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int idxMacchina { + get { + return ((int)(this[this.tableDatiMacchine.idxMacchinaColumn])); + } + set { + this[this.tableDatiMacchine.idxMacchinaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool palletChange { + get { + try { + return ((bool)(this[this.tableDatiMacchine.palletChangeColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'palletChange\' in table \'DatiMacchine\' is DBNull.", e); + } + } + set { + this[this.tableDatiMacchine.palletChangeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string kanban_A { + get { + try { + return ((string)(this[this.tableDatiMacchine.kanban_AColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'kanban_A\' in table \'DatiMacchine\' is DBNull.", e); + } + } + set { + this[this.tableDatiMacchine.kanban_AColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string kanban_B { + get { + try { + return ((string)(this[this.tableDatiMacchine.kanban_BColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'kanban_B\' in table \'DatiMacchine\' is DBNull.", e); + } + } + set { + this[this.tableDatiMacchine.kanban_BColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string serialPort { + get { + try { + return ((string)(this[this.tableDatiMacchine.serialPortColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'serialPort\' in table \'DatiMacchine\' is DBNull.", e); + } + } + set { + this[this.tableDatiMacchine.serialPortColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int refreshPeriod { + get { + try { + return ((int)(this[this.tableDatiMacchine.refreshPeriodColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'refreshPeriod\' in table \'DatiMacchine\' is DBNull.", e); + } + } + set { + this[this.tableDatiMacchine.refreshPeriodColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool simulazione { + get { + try { + return ((bool)(this[this.tableDatiMacchine.simulazioneColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'simulazione\' in table \'DatiMacchine\' is DBNull.", e); + } + } + set { + this[this.tableDatiMacchine.simulazioneColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string DescFull { + get { + try { + return ((string)(this[this.tableDatiMacchine.DescFullColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'DescFull\' in table \'DatiMacchine\' is DBNull.", e); + } + } + set { + this[this.tableDatiMacchine.DescFullColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Articolo_A { + get { + try { + return ((string)(this[this.tableDatiMacchine.Articolo_AColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Articolo_A\' in table \'DatiMacchine\' is DBNull.", e); + } + } + set { + this[this.tableDatiMacchine.Articolo_AColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Articolo_B { + get { + try { + return ((string)(this[this.tableDatiMacchine.Articolo_BColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Articolo_B\' in table \'DatiMacchine\' is DBNull.", e); + } + } + set { + this[this.tableDatiMacchine.Articolo_BColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool simplePallet { + get { + try { + return ((bool)(this[this.tableDatiMacchine.simplePalletColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'simplePallet\' in table \'DatiMacchine\' is DBNull.", e); + } + } + set { + this[this.tableDatiMacchine.simplePalletColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IspalletChangeNull() { + return this.IsNull(this.tableDatiMacchine.palletChangeColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetpalletChangeNull() { + this[this.tableDatiMacchine.palletChangeColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool Iskanban_ANull() { + return this.IsNull(this.tableDatiMacchine.kanban_AColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void Setkanban_ANull() { + this[this.tableDatiMacchine.kanban_AColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool Iskanban_BNull() { + return this.IsNull(this.tableDatiMacchine.kanban_BColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void Setkanban_BNull() { + this[this.tableDatiMacchine.kanban_BColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsserialPortNull() { + return this.IsNull(this.tableDatiMacchine.serialPortColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetserialPortNull() { + this[this.tableDatiMacchine.serialPortColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsrefreshPeriodNull() { + return this.IsNull(this.tableDatiMacchine.refreshPeriodColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetrefreshPeriodNull() { + this[this.tableDatiMacchine.refreshPeriodColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IssimulazioneNull() { + return this.IsNull(this.tableDatiMacchine.simulazioneColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetsimulazioneNull() { + this[this.tableDatiMacchine.simulazioneColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsDescFullNull() { + return this.IsNull(this.tableDatiMacchine.DescFullColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetDescFullNull() { + this[this.tableDatiMacchine.DescFullColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsArticolo_ANull() { + return this.IsNull(this.tableDatiMacchine.Articolo_AColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetArticolo_ANull() { + this[this.tableDatiMacchine.Articolo_AColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsArticolo_BNull() { + return this.IsNull(this.tableDatiMacchine.Articolo_BColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetArticolo_BNull() { + this[this.tableDatiMacchine.Articolo_BColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IssimplePalletNull() { + return this.IsNull(this.tableDatiMacchine.simplePalletColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetsimplePalletNull() { + this[this.tableDatiMacchine.simplePalletColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class PostazioniMapoRow : global::System.Data.DataRow { + + private PostazioniMapoDataTable tablePostazioniMapo; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal PostazioniMapoRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tablePostazioniMapo = ((PostazioniMapoDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string IdxPostazione { + get { + return ((string)(this[this.tablePostazioniMapo.IdxPostazioneColumn])); + } + set { + this[this.tablePostazioniMapo.IdxPostazioneColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string DescPostazione { + get { + try { + return ((string)(this[this.tablePostazioniMapo.DescPostazioneColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'DescPostazione\' in table \'PostazioniMapo\' is DBNull.", e); + } + } + set { + this[this.tablePostazioniMapo.DescPostazioneColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string IdxMacchina { + get { + return ((string)(this[this.tablePostazioniMapo.IdxMacchinaColumn])); + } + set { + this[this.tablePostazioniMapo.IdxMacchinaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int MatrOperatore { + get { + try { + return ((int)(this[this.tablePostazioniMapo.MatrOperatoreColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'MatrOperatore\' in table \'PostazioniMapo\' is DBNull.", e); + } + } + set { + this[this.tablePostazioniMapo.MatrOperatoreColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime InputUntil { + get { + try { + return ((global::System.DateTime)(this[this.tablePostazioniMapo.InputUntilColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'InputUntil\' in table \'PostazioniMapo\' is DBNull.", e); + } + } + set { + this[this.tablePostazioniMapo.InputUntilColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string LastBarcode { + get { + try { + return ((string)(this[this.tablePostazioniMapo.LastBarcodeColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'LastBarcode\' in table \'PostazioniMapo\' is DBNull.", e); + } + } + set { + this[this.tablePostazioniMapo.LastBarcodeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsDescPostazioneNull() { + return this.IsNull(this.tablePostazioniMapo.DescPostazioneColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetDescPostazioneNull() { + this[this.tablePostazioniMapo.DescPostazioneColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsMatrOperatoreNull() { + return this.IsNull(this.tablePostazioniMapo.MatrOperatoreColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetMatrOperatoreNull() { + this[this.tablePostazioniMapo.MatrOperatoreColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsInputUntilNull() { + return this.IsNull(this.tablePostazioniMapo.InputUntilColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetInputUntilNull() { + this[this.tablePostazioniMapo.InputUntilColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsLastBarcodeNull() { + return this.IsNull(this.tablePostazioniMapo.LastBarcodeColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetLastBarcodeNull() { + this[this.tablePostazioniMapo.LastBarcodeColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class stp_PzProd_getByMacchinaRow : global::System.Data.DataRow { + + private stp_PzProd_getByMacchinaDataTable tablestp_PzProd_getByMacchina; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal stp_PzProd_getByMacchinaRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tablestp_PzProd_getByMacchina = ((stp_PzProd_getByMacchinaDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string idxMacchina { + get { + try { + return ((string)(this[this.tablestp_PzProd_getByMacchina.idxMacchinaColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'idxMacchina\' in table \'stp_PzProd_getByMacchina\' is DBNull." + + "", e); + } + } + set { + this[this.tablestp_PzProd_getByMacchina.idxMacchinaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int pezziNonConfermati { + get { + try { + return ((int)(this[this.tablestp_PzProd_getByMacchina.pezziNonConfermatiColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'pezziNonConfermati\' in table \'stp_PzProd_getByMacchina\' is " + + "DBNull.", e); + } + } + set { + this[this.tablestp_PzProd_getByMacchina.pezziNonConfermatiColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime DataFrom { + get { + try { + return ((global::System.DateTime)(this[this.tablestp_PzProd_getByMacchina.DataFromColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'DataFrom\' in table \'stp_PzProd_getByMacchina\' is DBNull.", e); + } + } + set { + this[this.tablestp_PzProd_getByMacchina.DataFromColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime DataTo { + get { + try { + return ((global::System.DateTime)(this[this.tablestp_PzProd_getByMacchina.DataToColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'DataTo\' in table \'stp_PzProd_getByMacchina\' is DBNull.", e); + } + } + set { + this[this.tablestp_PzProd_getByMacchina.DataToColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsidxMacchinaNull() { + return this.IsNull(this.tablestp_PzProd_getByMacchina.idxMacchinaColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetidxMacchinaNull() { + this[this.tablestp_PzProd_getByMacchina.idxMacchinaColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IspezziNonConfermatiNull() { + return this.IsNull(this.tablestp_PzProd_getByMacchina.pezziNonConfermatiColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetpezziNonConfermatiNull() { + this[this.tablestp_PzProd_getByMacchina.pezziNonConfermatiColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsDataFromNull() { + return this.IsNull(this.tablestp_PzProd_getByMacchina.DataFromColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetDataFromNull() { + this[this.tablestp_PzProd_getByMacchina.DataFromColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsDataToNull() { + return this.IsNull(this.tablestp_PzProd_getByMacchina.DataToColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetDataToNull() { + this[this.tablestp_PzProd_getByMacchina.DataToColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class DatiConfermatiRow : global::System.Data.DataRow { + + private DatiConfermatiDataTable tableDatiConfermati; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal DatiConfermatiRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableDatiConfermati = ((DatiConfermatiDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int IdxConferma { + get { + return ((int)(this[this.tableDatiConfermati.IdxConfermaColumn])); + } + set { + this[this.tableDatiConfermati.IdxConfermaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int IdxODL { + get { + return ((int)(this[this.tableDatiConfermati.IdxODLColumn])); + } + set { + this[this.tableDatiConfermati.IdxODLColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime DataOraApp { + get { + return ((global::System.DateTime)(this[this.tableDatiConfermati.DataOraAppColumn])); + } + set { + this[this.tableDatiConfermati.DataOraAppColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime DataRif { + get { + return ((global::System.DateTime)(this[this.tableDatiConfermati.DataRifColumn])); + } + set { + this[this.tableDatiConfermati.DataRifColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int TurnoRif { + get { + try { + return ((int)(this[this.tableDatiConfermati.TurnoRifColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'TurnoRif\' in table \'DatiConfermati\' is DBNull.", e); + } + } + set { + this[this.tableDatiConfermati.TurnoRifColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string CodArticolo { + get { + try { + return ((string)(this[this.tableDatiConfermati.CodArticoloColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'CodArticolo\' in table \'DatiConfermati\' is DBNull.", e); + } + } + set { + this[this.tableDatiConfermati.CodArticoloColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string IdxMacchina { + get { + return ((string)(this[this.tableDatiConfermati.IdxMacchinaColumn])); + } + set { + this[this.tableDatiConfermati.IdxMacchinaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public decimal TCAssegnato { + get { + try { + return ((decimal)(this[this.tableDatiConfermati.TCAssegnatoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'TCAssegnato\' in table \'DatiConfermati\' is DBNull.", e); + } + } + set { + this[this.tableDatiConfermati.TCAssegnatoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int MatrOpr { + get { + try { + return ((int)(this[this.tableDatiConfermati.MatrOprColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'MatrOpr\' in table \'DatiConfermati\' is DBNull.", e); + } + } + set { + this[this.tableDatiConfermati.MatrOprColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int MatrApp { + get { + return ((int)(this[this.tableDatiConfermati.MatrAppColumn])); + } + set { + this[this.tableDatiConfermati.MatrAppColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime DataOraFrom { + get { + try { + return ((global::System.DateTime)(this[this.tableDatiConfermati.DataOraFromColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'DataOraFrom\' in table \'DatiConfermati\' is DBNull.", e); + } + } + set { + this[this.tableDatiConfermati.DataOraFromColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime DataOraTo { + get { + try { + return ((global::System.DateTime)(this[this.tableDatiConfermati.DataOraToColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'DataOraTo\' in table \'DatiConfermati\' is DBNull.", e); + } + } + set { + this[this.tableDatiConfermati.DataOraToColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int IdxStato { + get { + return ((int)(this[this.tableDatiConfermati.IdxStatoColumn])); + } + set { + this[this.tableDatiConfermati.IdxStatoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int TotPzProd { + get { + try { + return ((int)(this[this.tableDatiConfermati.TotPzProdColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'TotPzProd\' in table \'DatiConfermati\' is DBNull.", e); + } + } + set { + this[this.tableDatiConfermati.TotPzProdColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public decimal TempoProdotto { + get { + try { + return ((decimal)(this[this.tableDatiConfermati.TempoProdottoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'TempoProdotto\' in table \'DatiConfermati\' is DBNull.", e); + } + } + set { + this[this.tableDatiConfermati.TempoProdottoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public decimal TempoCron { + get { + try { + return ((decimal)(this[this.tableDatiConfermati.TempoCronColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'TempoCron\' in table \'DatiConfermati\' is DBNull.", e); + } + } + set { + this[this.tableDatiConfermati.TempoCronColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public decimal TempoND { + get { + try { + return ((decimal)(this[this.tableDatiConfermati.TempoNDColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'TempoND\' in table \'DatiConfermati\' is DBNull.", e); + } + } + set { + this[this.tableDatiConfermati.TempoNDColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public decimal TempoApertura { + get { + try { + return ((decimal)(this[this.tableDatiConfermati.TempoAperturaColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'TempoApertura\' in table \'DatiConfermati\' is DBNull.", e); + } + } + set { + this[this.tableDatiConfermati.TempoAperturaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public decimal TempoOFF { + get { + try { + return ((decimal)(this[this.tableDatiConfermati.TempoOFFColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'TempoOFF\' in table \'DatiConfermati\' is DBNull.", e); + } + } + set { + this[this.tableDatiConfermati.TempoOFFColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public decimal TempoON { + get { + try { + return ((decimal)(this[this.tableDatiConfermati.TempoONColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'TempoON\' in table \'DatiConfermati\' is DBNull.", e); + } + } + set { + this[this.tableDatiConfermati.TempoONColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public decimal TempoFermoOn { + get { + try { + return ((decimal)(this[this.tableDatiConfermati.TempoFermoOnColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'TempoFermoOn\' in table \'DatiConfermati\' is DBNull.", e); + } + } + set { + this[this.tableDatiConfermati.TempoFermoOnColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public decimal TempoAuto { + get { + try { + return ((decimal)(this[this.tableDatiConfermati.TempoAutoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'TempoAuto\' in table \'DatiConfermati\' is DBNull.", e); + } + } + set { + this[this.tableDatiConfermati.TempoAutoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public decimal TempoFermoAuto { + get { + try { + return ((decimal)(this[this.tableDatiConfermati.TempoFermoAutoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'TempoFermoAuto\' in table \'DatiConfermati\' is DBNull.", e); + } + } + set { + this[this.tableDatiConfermati.TempoFermoAutoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public decimal TempoRun { + get { + try { + return ((decimal)(this[this.tableDatiConfermati.TempoRunColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'TempoRun\' in table \'DatiConfermati\' is DBNull.", e); + } + } + set { + this[this.tableDatiConfermati.TempoRunColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int TotPzFermo { + get { + try { + return ((int)(this[this.tableDatiConfermati.TotPzFermoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'TotPzFermo\' in table \'DatiConfermati\' is DBNull.", e); + } + } + set { + this[this.tableDatiConfermati.TotPzFermoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsTurnoRifNull() { + return this.IsNull(this.tableDatiConfermati.TurnoRifColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetTurnoRifNull() { + this[this.tableDatiConfermati.TurnoRifColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsCodArticoloNull() { + return this.IsNull(this.tableDatiConfermati.CodArticoloColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetCodArticoloNull() { + this[this.tableDatiConfermati.CodArticoloColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsTCAssegnatoNull() { + return this.IsNull(this.tableDatiConfermati.TCAssegnatoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetTCAssegnatoNull() { + this[this.tableDatiConfermati.TCAssegnatoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsMatrOprNull() { + return this.IsNull(this.tableDatiConfermati.MatrOprColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetMatrOprNull() { + this[this.tableDatiConfermati.MatrOprColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsDataOraFromNull() { + return this.IsNull(this.tableDatiConfermati.DataOraFromColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetDataOraFromNull() { + this[this.tableDatiConfermati.DataOraFromColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsDataOraToNull() { + return this.IsNull(this.tableDatiConfermati.DataOraToColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetDataOraToNull() { + this[this.tableDatiConfermati.DataOraToColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsTotPzProdNull() { + return this.IsNull(this.tableDatiConfermati.TotPzProdColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetTotPzProdNull() { + this[this.tableDatiConfermati.TotPzProdColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsTempoProdottoNull() { + return this.IsNull(this.tableDatiConfermati.TempoProdottoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetTempoProdottoNull() { + this[this.tableDatiConfermati.TempoProdottoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsTempoCronNull() { + return this.IsNull(this.tableDatiConfermati.TempoCronColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetTempoCronNull() { + this[this.tableDatiConfermati.TempoCronColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsTempoNDNull() { + return this.IsNull(this.tableDatiConfermati.TempoNDColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetTempoNDNull() { + this[this.tableDatiConfermati.TempoNDColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsTempoAperturaNull() { + return this.IsNull(this.tableDatiConfermati.TempoAperturaColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetTempoAperturaNull() { + this[this.tableDatiConfermati.TempoAperturaColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsTempoOFFNull() { + return this.IsNull(this.tableDatiConfermati.TempoOFFColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetTempoOFFNull() { + this[this.tableDatiConfermati.TempoOFFColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsTempoONNull() { + return this.IsNull(this.tableDatiConfermati.TempoONColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetTempoONNull() { + this[this.tableDatiConfermati.TempoONColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsTempoFermoOnNull() { + return this.IsNull(this.tableDatiConfermati.TempoFermoOnColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetTempoFermoOnNull() { + this[this.tableDatiConfermati.TempoFermoOnColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsTempoAutoNull() { + return this.IsNull(this.tableDatiConfermati.TempoAutoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetTempoAutoNull() { + this[this.tableDatiConfermati.TempoAutoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsTempoFermoAutoNull() { + return this.IsNull(this.tableDatiConfermati.TempoFermoAutoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetTempoFermoAutoNull() { + this[this.tableDatiConfermati.TempoFermoAutoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsTempoRunNull() { + return this.IsNull(this.tableDatiConfermati.TempoRunColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetTempoRunNull() { + this[this.tableDatiConfermati.TempoRunColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsTotPzFermoNull() { + return this.IsNull(this.tableDatiConfermati.TotPzFermoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetTotPzFermoNull() { + this[this.tableDatiConfermati.TotPzFermoColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class CalendFesteFerieRow : global::System.Data.DataRow { + + private CalendFesteFerieDataTable tableCalendFesteFerie; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal CalendFesteFerieRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableCalendFesteFerie = ((CalendFesteFerieDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime data { + get { + return ((global::System.DateTime)(this[this.tableCalendFesteFerie.dataColumn])); + } + set { + this[this.tableCalendFesteFerie.dataColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string descrizione { + get { + try { + return ((string)(this[this.tableCalendFesteFerie.descrizioneColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'descrizione\' in table \'CalendFesteFerie\' is DBNull.", e); + } + } + set { + this[this.tableCalendFesteFerie.descrizioneColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsdescrizioneNull() { + return this.IsNull(this.tableCalendFesteFerie.descrizioneColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetdescrizioneNull() { + this[this.tableCalendFesteFerie.descrizioneColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class stp_TempoByIdxMaccPeriodClassRow : global::System.Data.DataRow { + + private stp_TempoByIdxMaccPeriodClassDataTable tablestp_TempoByIdxMaccPeriodClass; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal stp_TempoByIdxMaccPeriodClassRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tablestp_TempoByIdxMaccPeriodClass = ((stp_TempoByIdxMaccPeriodClassDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public decimal ore { + get { + try { + return ((decimal)(this[this.tablestp_TempoByIdxMaccPeriodClass.oreColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'ore\' in table \'stp_TempoByIdxMaccPeriodClass\' is DBNull.", e); + } + } + set { + this[this.tablestp_TempoByIdxMaccPeriodClass.oreColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsoreNull() { + return this.IsNull(this.tablestp_TempoByIdxMaccPeriodClass.oreColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetoreNull() { + this[this.tablestp_TempoByIdxMaccPeriodClass.oreColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class DatiProduzioneRow : global::System.Data.DataRow { + + private DatiProduzioneDataTable tableDatiProduzione; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal DatiProduzioneRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableDatiProduzione = ((DatiProduzioneDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int IdxConferma { + get { + return ((int)(this[this.tableDatiProduzione.IdxConfermaColumn])); + } + set { + this[this.tableDatiProduzione.IdxConfermaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int IdxODL { + get { + return ((int)(this[this.tableDatiProduzione.IdxODLColumn])); + } + set { + this[this.tableDatiProduzione.IdxODLColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime DataOraApp { + get { + return ((global::System.DateTime)(this[this.tableDatiProduzione.DataOraAppColumn])); + } + set { + this[this.tableDatiProduzione.DataOraAppColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime DataRif { + get { + return ((global::System.DateTime)(this[this.tableDatiProduzione.DataRifColumn])); + } + set { + this[this.tableDatiProduzione.DataRifColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int TurnoRif { + get { + try { + return ((int)(this[this.tableDatiProduzione.TurnoRifColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'TurnoRif\' in table \'DatiProduzione\' is DBNull.", e); + } + } + set { + this[this.tableDatiProduzione.TurnoRifColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string CodArticolo { + get { + try { + return ((string)(this[this.tableDatiProduzione.CodArticoloColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'CodArticolo\' in table \'DatiProduzione\' is DBNull.", e); + } + } + set { + this[this.tableDatiProduzione.CodArticoloColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string IdxMacchina { + get { + return ((string)(this[this.tableDatiProduzione.IdxMacchinaColumn])); + } + set { + this[this.tableDatiProduzione.IdxMacchinaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public decimal TCAssegnato { + get { + try { + return ((decimal)(this[this.tableDatiProduzione.TCAssegnatoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'TCAssegnato\' in table \'DatiProduzione\' is DBNull.", e); + } + } + set { + this[this.tableDatiProduzione.TCAssegnatoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int MatrOpr { + get { + try { + return ((int)(this[this.tableDatiProduzione.MatrOprColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'MatrOpr\' in table \'DatiProduzione\' is DBNull.", e); + } + } + set { + this[this.tableDatiProduzione.MatrOprColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int MatrApp { + get { + return ((int)(this[this.tableDatiProduzione.MatrAppColumn])); + } + set { + this[this.tableDatiProduzione.MatrAppColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime DataOraFrom { + get { + try { + return ((global::System.DateTime)(this[this.tableDatiProduzione.DataOraFromColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'DataOraFrom\' in table \'DatiProduzione\' is DBNull.", e); + } + } + set { + this[this.tableDatiProduzione.DataOraFromColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime DataOraTo { + get { + try { + return ((global::System.DateTime)(this[this.tableDatiProduzione.DataOraToColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'DataOraTo\' in table \'DatiProduzione\' is DBNull.", e); + } + } + set { + this[this.tableDatiProduzione.DataOraToColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int TotPzProd { + get { + try { + return ((int)(this[this.tableDatiProduzione.TotPzProdColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'TotPzProd\' in table \'DatiProduzione\' is DBNull.", e); + } + } + set { + this[this.tableDatiProduzione.TotPzProdColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public decimal Tempo { + get { + try { + return ((decimal)(this[this.tableDatiProduzione.TempoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Tempo\' in table \'DatiProduzione\' is DBNull.", e); + } + } + set { + this[this.tableDatiProduzione.TempoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string ClasseTempo { + get { + try { + return ((string)(this[this.tableDatiProduzione.ClasseTempoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'ClasseTempo\' in table \'DatiProduzione\' is DBNull.", e); + } + } + set { + this[this.tableDatiProduzione.ClasseTempoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Causale { + get { + try { + return ((string)(this[this.tableDatiProduzione.CausaleColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Causale\' in table \'DatiProduzione\' is DBNull.", e); + } + } + set { + this[this.tableDatiProduzione.CausaleColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsTurnoRifNull() { + return this.IsNull(this.tableDatiProduzione.TurnoRifColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetTurnoRifNull() { + this[this.tableDatiProduzione.TurnoRifColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsCodArticoloNull() { + return this.IsNull(this.tableDatiProduzione.CodArticoloColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetCodArticoloNull() { + this[this.tableDatiProduzione.CodArticoloColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsTCAssegnatoNull() { + return this.IsNull(this.tableDatiProduzione.TCAssegnatoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetTCAssegnatoNull() { + this[this.tableDatiProduzione.TCAssegnatoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsMatrOprNull() { + return this.IsNull(this.tableDatiProduzione.MatrOprColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetMatrOprNull() { + this[this.tableDatiProduzione.MatrOprColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsDataOraFromNull() { + return this.IsNull(this.tableDatiProduzione.DataOraFromColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetDataOraFromNull() { + this[this.tableDatiProduzione.DataOraFromColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsDataOraToNull() { + return this.IsNull(this.tableDatiProduzione.DataOraToColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetDataOraToNull() { + this[this.tableDatiProduzione.DataOraToColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsTotPzProdNull() { + return this.IsNull(this.tableDatiProduzione.TotPzProdColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetTotPzProdNull() { + this[this.tableDatiProduzione.TotPzProdColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsTempoNull() { + return this.IsNull(this.tableDatiProduzione.TempoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetTempoNull() { + this[this.tableDatiProduzione.TempoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsClasseTempoNull() { + return this.IsNull(this.tableDatiProduzione.ClasseTempoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetClasseTempoNull() { + this[this.tableDatiProduzione.ClasseTempoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsCausaleNull() { + return this.IsNull(this.tableDatiProduzione.CausaleColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetCausaleNull() { + this[this.tableDatiProduzione.CausaleColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class stp_repDonati_getDatiProdMacchinaRow : global::System.Data.DataRow { + + private stp_repDonati_getDatiProdMacchinaDataTable tablestp_repDonati_getDatiProdMacchina; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal stp_repDonati_getDatiProdMacchinaRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tablestp_repDonati_getDatiProdMacchina = ((stp_repDonati_getDatiProdMacchinaDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string CodArticolo { + get { + try { + return ((string)(this[this.tablestp_repDonati_getDatiProdMacchina.CodArticoloColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'CodArticolo\' in table \'stp_repDonati_getDatiProdMacchina\' i" + + "s DBNull.", e); + } + } + set { + this[this.tablestp_repDonati_getDatiProdMacchina.CodArticoloColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int PezziLanciati { + get { + try { + return ((int)(this[this.tablestp_repDonati_getDatiProdMacchina.PezziLanciatiColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'PezziLanciati\' in table \'stp_repDonati_getDatiProdMacchina\'" + + " is DBNull.", e); + } + } + set { + this[this.tablestp_repDonati_getDatiProdMacchina.PezziLanciatiColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int PezziProd { + get { + try { + return ((int)(this[this.tablestp_repDonati_getDatiProdMacchina.PezziProdColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'PezziProd\' in table \'stp_repDonati_getDatiProdMacchina\' is " + + "DBNull.", e); + } + } + set { + this[this.tablestp_repDonati_getDatiProdMacchina.PezziProdColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int PezziConf { + get { + try { + return ((int)(this[this.tablestp_repDonati_getDatiProdMacchina.PezziConfColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'PezziConf\' in table \'stp_repDonati_getDatiProdMacchina\' is " + + "DBNull.", e); + } + } + set { + this[this.tablestp_repDonati_getDatiProdMacchina.PezziConfColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public decimal TCAssegnato { + get { + try { + return ((decimal)(this[this.tablestp_repDonati_getDatiProdMacchina.TCAssegnatoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'TCAssegnato\' in table \'stp_repDonati_getDatiProdMacchina\' i" + + "s DBNull.", e); + } + } + set { + this[this.tablestp_repDonati_getDatiProdMacchina.TCAssegnatoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int CodOperatore { + get { + try { + return ((int)(this[this.tablestp_repDonati_getDatiProdMacchina.CodOperatoreColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'CodOperatore\' in table \'stp_repDonati_getDatiProdMacchina\' " + + "is DBNull.", e); + } + } + set { + this[this.tablestp_repDonati_getDatiProdMacchina.CodOperatoreColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public decimal TempoOn { + get { + try { + return ((decimal)(this[this.tablestp_repDonati_getDatiProdMacchina.TempoOnColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'TempoOn\' in table \'stp_repDonati_getDatiProdMacchina\' is DB" + + "Null.", e); + } + } + set { + this[this.tablestp_repDonati_getDatiProdMacchina.TempoOnColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public decimal TempoAuto { + get { + try { + return ((decimal)(this[this.tablestp_repDonati_getDatiProdMacchina.TempoAutoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'TempoAuto\' in table \'stp_repDonati_getDatiProdMacchina\' is " + + "DBNull.", e); + } + } + set { + this[this.tablestp_repDonati_getDatiProdMacchina.TempoAutoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public decimal TempoRun { + get { + try { + return ((decimal)(this[this.tablestp_repDonati_getDatiProdMacchina.TempoRunColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'TempoRun\' in table \'stp_repDonati_getDatiProdMacchina\' is D" + + "BNull.", e); + } + } + set { + this[this.tablestp_repDonati_getDatiProdMacchina.TempoRunColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public decimal TCMedio { + get { + try { + return ((decimal)(this[this.tablestp_repDonati_getDatiProdMacchina.TCMedioColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'TCMedio\' in table \'stp_repDonati_getDatiProdMacchina\' is DB" + + "Null.", e); + } + } + set { + this[this.tablestp_repDonati_getDatiProdMacchina.TCMedioColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public decimal TCLav { + get { + try { + return ((decimal)(this[this.tablestp_repDonati_getDatiProdMacchina.TCLavColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'TCLav\' in table \'stp_repDonati_getDatiProdMacchina\' is DBNu" + + "ll.", e); + } + } + set { + this[this.tablestp_repDonati_getDatiProdMacchina.TCLavColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public decimal TCEff { + get { + try { + return ((decimal)(this[this.tablestp_repDonati_getDatiProdMacchina.TCEffColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'TCEff\' in table \'stp_repDonati_getDatiProdMacchina\' is DBNu" + + "ll.", e); + } + } + set { + this[this.tablestp_repDonati_getDatiProdMacchina.TCEffColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public decimal TCMedioRT { + get { + try { + return ((decimal)(this[this.tablestp_repDonati_getDatiProdMacchina.TCMedioRTColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'TCMedioRT\' in table \'stp_repDonati_getDatiProdMacchina\' is " + + "DBNull.", e); + } + } + set { + this[this.tablestp_repDonati_getDatiProdMacchina.TCMedioRTColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public decimal TCLavRT { + get { + try { + return ((decimal)(this[this.tablestp_repDonati_getDatiProdMacchina.TCLavRTColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'TCLavRT\' in table \'stp_repDonati_getDatiProdMacchina\' is DB" + + "Null.", e); + } + } + set { + this[this.tablestp_repDonati_getDatiProdMacchina.TCLavRTColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public decimal TCEffRT { + get { + try { + return ((decimal)(this[this.tablestp_repDonati_getDatiProdMacchina.TCEffRTColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'TCEffRT\' in table \'stp_repDonati_getDatiProdMacchina\' is DB" + + "Null.", e); + } + } + set { + this[this.tablestp_repDonati_getDatiProdMacchina.TCEffRTColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsCodArticoloNull() { + return this.IsNull(this.tablestp_repDonati_getDatiProdMacchina.CodArticoloColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetCodArticoloNull() { + this[this.tablestp_repDonati_getDatiProdMacchina.CodArticoloColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsPezziLanciatiNull() { + return this.IsNull(this.tablestp_repDonati_getDatiProdMacchina.PezziLanciatiColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetPezziLanciatiNull() { + this[this.tablestp_repDonati_getDatiProdMacchina.PezziLanciatiColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsPezziProdNull() { + return this.IsNull(this.tablestp_repDonati_getDatiProdMacchina.PezziProdColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetPezziProdNull() { + this[this.tablestp_repDonati_getDatiProdMacchina.PezziProdColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsPezziConfNull() { + return this.IsNull(this.tablestp_repDonati_getDatiProdMacchina.PezziConfColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetPezziConfNull() { + this[this.tablestp_repDonati_getDatiProdMacchina.PezziConfColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsTCAssegnatoNull() { + return this.IsNull(this.tablestp_repDonati_getDatiProdMacchina.TCAssegnatoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetTCAssegnatoNull() { + this[this.tablestp_repDonati_getDatiProdMacchina.TCAssegnatoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsCodOperatoreNull() { + return this.IsNull(this.tablestp_repDonati_getDatiProdMacchina.CodOperatoreColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetCodOperatoreNull() { + this[this.tablestp_repDonati_getDatiProdMacchina.CodOperatoreColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsTempoOnNull() { + return this.IsNull(this.tablestp_repDonati_getDatiProdMacchina.TempoOnColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetTempoOnNull() { + this[this.tablestp_repDonati_getDatiProdMacchina.TempoOnColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsTempoAutoNull() { + return this.IsNull(this.tablestp_repDonati_getDatiProdMacchina.TempoAutoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetTempoAutoNull() { + this[this.tablestp_repDonati_getDatiProdMacchina.TempoAutoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsTempoRunNull() { + return this.IsNull(this.tablestp_repDonati_getDatiProdMacchina.TempoRunColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetTempoRunNull() { + this[this.tablestp_repDonati_getDatiProdMacchina.TempoRunColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsTCMedioNull() { + return this.IsNull(this.tablestp_repDonati_getDatiProdMacchina.TCMedioColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetTCMedioNull() { + this[this.tablestp_repDonati_getDatiProdMacchina.TCMedioColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsTCLavNull() { + return this.IsNull(this.tablestp_repDonati_getDatiProdMacchina.TCLavColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetTCLavNull() { + this[this.tablestp_repDonati_getDatiProdMacchina.TCLavColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsTCEffNull() { + return this.IsNull(this.tablestp_repDonati_getDatiProdMacchina.TCEffColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetTCEffNull() { + this[this.tablestp_repDonati_getDatiProdMacchina.TCEffColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsTCMedioRTNull() { + return this.IsNull(this.tablestp_repDonati_getDatiProdMacchina.TCMedioRTColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetTCMedioRTNull() { + this[this.tablestp_repDonati_getDatiProdMacchina.TCMedioRTColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsTCLavRTNull() { + return this.IsNull(this.tablestp_repDonati_getDatiProdMacchina.TCLavRTColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetTCLavRTNull() { + this[this.tablestp_repDonati_getDatiProdMacchina.TCLavRTColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsTCEffRTNull() { + return this.IsNull(this.tablestp_repDonati_getDatiProdMacchina.TCEffRTColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetTCEffRTNull() { + this[this.tablestp_repDonati_getDatiProdMacchina.TCEffRTColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class stp_repDonati_getLastStatoDurataMacchinaRow : global::System.Data.DataRow { + + private stp_repDonati_getLastStatoDurataMacchinaDataTable tablestp_repDonati_getLastStatoDurataMacchina; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal stp_repDonati_getLastStatoDurataMacchinaRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tablestp_repDonati_getLastStatoDurataMacchina = ((stp_repDonati_getLastStatoDurataMacchinaDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int idxStato { + get { + try { + return ((int)(this[this.tablestp_repDonati_getLastStatoDurataMacchina.idxStatoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'idxStato\' in table \'stp_repDonati_getLastStatoDurataMacchin" + + "a\' is DBNull.", e); + } + } + set { + this[this.tablestp_repDonati_getLastStatoDurataMacchina.idxStatoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public double Minuti { + get { + try { + return ((double)(this[this.tablestp_repDonati_getLastStatoDurataMacchina.MinutiColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Minuti\' in table \'stp_repDonati_getLastStatoDurataMacchina\'" + + " is DBNull.", e); + } + } + set { + this[this.tablestp_repDonati_getLastStatoDurataMacchina.MinutiColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsidxStatoNull() { + return this.IsNull(this.tablestp_repDonati_getLastStatoDurataMacchina.idxStatoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetidxStatoNull() { + this[this.tablestp_repDonati_getLastStatoDurataMacchina.idxStatoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsMinutiNull() { + return this.IsNull(this.tablestp_repDonati_getLastStatoDurataMacchina.MinutiColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetMinutiNull() { + this[this.tablestp_repDonati_getLastStatoDurataMacchina.MinutiColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class stp_repDonati_getDatiProdMacchinaPeriodoRow : global::System.Data.DataRow { + + private stp_repDonati_getDatiProdMacchinaPeriodoDataTable tablestp_repDonati_getDatiProdMacchinaPeriodo; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal stp_repDonati_getDatiProdMacchinaPeriodoRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tablestp_repDonati_getDatiProdMacchinaPeriodo = ((stp_repDonati_getDatiProdMacchinaPeriodoDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int PezziProd { + get { + try { + return ((int)(this[this.tablestp_repDonati_getDatiProdMacchinaPeriodo.PezziProdColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'PezziProd\' in table \'stp_repDonati_getDatiProdMacchinaPerio" + + "do\' is DBNull.", e); + } + } + set { + this[this.tablestp_repDonati_getDatiProdMacchinaPeriodo.PezziProdColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public decimal TCAssegnato { + get { + try { + return ((decimal)(this[this.tablestp_repDonati_getDatiProdMacchinaPeriodo.TCAssegnatoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'TCAssegnato\' in table \'stp_repDonati_getDatiProdMacchinaPer" + + "iodo\' is DBNull.", e); + } + } + set { + this[this.tablestp_repDonati_getDatiProdMacchinaPeriodo.TCAssegnatoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public decimal TCMedioRT { + get { + try { + return ((decimal)(this[this.tablestp_repDonati_getDatiProdMacchinaPeriodo.TCMedioRTColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'TCMedioRT\' in table \'stp_repDonati_getDatiProdMacchinaPerio" + + "do\' is DBNull.", e); + } + } + set { + this[this.tablestp_repDonati_getDatiProdMacchinaPeriodo.TCMedioRTColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public decimal TCLavRT { + get { + try { + return ((decimal)(this[this.tablestp_repDonati_getDatiProdMacchinaPeriodo.TCLavRTColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'TCLavRT\' in table \'stp_repDonati_getDatiProdMacchinaPeriodo" + + "\' is DBNull.", e); + } + } + set { + this[this.tablestp_repDonati_getDatiProdMacchinaPeriodo.TCLavRTColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public decimal TCEffRT { + get { + try { + return ((decimal)(this[this.tablestp_repDonati_getDatiProdMacchinaPeriodo.TCEffRTColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'TCEffRT\' in table \'stp_repDonati_getDatiProdMacchinaPeriodo" + + "\' is DBNull.", e); + } + } + set { + this[this.tablestp_repDonati_getDatiProdMacchinaPeriodo.TCEffRTColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsPezziProdNull() { + return this.IsNull(this.tablestp_repDonati_getDatiProdMacchinaPeriodo.PezziProdColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetPezziProdNull() { + this[this.tablestp_repDonati_getDatiProdMacchinaPeriodo.PezziProdColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsTCAssegnatoNull() { + return this.IsNull(this.tablestp_repDonati_getDatiProdMacchinaPeriodo.TCAssegnatoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetTCAssegnatoNull() { + this[this.tablestp_repDonati_getDatiProdMacchinaPeriodo.TCAssegnatoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsTCMedioRTNull() { + return this.IsNull(this.tablestp_repDonati_getDatiProdMacchinaPeriodo.TCMedioRTColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetTCMedioRTNull() { + this[this.tablestp_repDonati_getDatiProdMacchinaPeriodo.TCMedioRTColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsTCLavRTNull() { + return this.IsNull(this.tablestp_repDonati_getDatiProdMacchinaPeriodo.TCLavRTColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetTCLavRTNull() { + this[this.tablestp_repDonati_getDatiProdMacchinaPeriodo.TCLavRTColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsTCEffRTNull() { + return this.IsNull(this.tablestp_repDonati_getDatiProdMacchinaPeriodo.TCEffRTColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetTCEffRTNull() { + this[this.tablestp_repDonati_getDatiProdMacchinaPeriodo.TCEffRTColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class TurniMacchinaRow : global::System.Data.DataRow { + + private TurniMacchinaDataTable tableTurniMacchina; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal TurniMacchinaRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableTurniMacchina = ((TurniMacchinaDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string IdxMacchina { + get { + return ((string)(this[this.tableTurniMacchina.IdxMacchinaColumn])); + } + set { + this[this.tableTurniMacchina.IdxMacchinaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool T1 { + get { + try { + return ((bool)(this[this.tableTurniMacchina.T1Column])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'T1\' in table \'TurniMacchina\' is DBNull.", e); + } + } + set { + this[this.tableTurniMacchina.T1Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool T2 { + get { + try { + return ((bool)(this[this.tableTurniMacchina.T2Column])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'T2\' in table \'TurniMacchina\' is DBNull.", e); + } + } + set { + this[this.tableTurniMacchina.T2Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool T3 { + get { + try { + return ((bool)(this[this.tableTurniMacchina.T3Column])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'T3\' in table \'TurniMacchina\' is DBNull.", e); + } + } + set { + this[this.tableTurniMacchina.T3Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsT1Null() { + return this.IsNull(this.tableTurniMacchina.T1Column); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetT1Null() { + this[this.tableTurniMacchina.T1Column] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsT2Null() { + return this.IsNull(this.tableTurniMacchina.T2Column); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetT2Null() { + this[this.tableTurniMacchina.T2Column] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsT3Null() { + return this.IsNull(this.tableTurniMacchina.T3Column); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetT3Null() { + this[this.tableTurniMacchina.T3Column] = global::System.Convert.DBNull; + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class MappaStatoExplRow : global::System.Data.DataRow { + + private MappaStatoExplDataTable tableMappaStatoExpl; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal MappaStatoExplRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableMappaStatoExpl = ((MappaStatoExplDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int RowNum { + get { + return ((int)(this[this.tableMappaStatoExpl.RowNumColumn])); + } + set { + this[this.tableMappaStatoExpl.RowNumColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime lastUpdate { + get { + try { + return ((global::System.DateTime)(this[this.tableMappaStatoExpl.lastUpdateColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'lastUpdate\' in table \'MappaStatoExpl\' is DBNull.", e); + } + } + set { + this[this.tableMappaStatoExpl.lastUpdateColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string IdxMacchina { + get { + return ((string)(this[this.tableMappaStatoExpl.IdxMacchinaColumn])); + } + set { + this[this.tableMappaStatoExpl.IdxMacchinaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string CodMacchina { + get { + try { + return ((string)(this[this.tableMappaStatoExpl.CodMacchinaColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'CodMacchina\' in table \'MappaStatoExpl\' is DBNull.", e); + } + } + set { + this[this.tableMappaStatoExpl.CodMacchinaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Nome { + get { + try { + return ((string)(this[this.tableMappaStatoExpl.NomeColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Nome\' in table \'MappaStatoExpl\' is DBNull.", e); + } + } + set { + this[this.tableMappaStatoExpl.NomeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string url { + get { + try { + return ((string)(this[this.tableMappaStatoExpl.urlColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'url\' in table \'MappaStatoExpl\' is DBNull.", e); + } + } + set { + this[this.tableMappaStatoExpl.urlColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int idxODL { + get { + try { + return ((int)(this[this.tableMappaStatoExpl.idxODLColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'idxODL\' in table \'MappaStatoExpl\' is DBNull.", e); + } + } + set { + this[this.tableMappaStatoExpl.idxODLColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string CodArticolo { + get { + try { + return ((string)(this[this.tableMappaStatoExpl.CodArticoloColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'CodArticolo\' in table \'MappaStatoExpl\' is DBNull.", e); + } + } + set { + this[this.tableMappaStatoExpl.CodArticoloColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int NumPezzi { + get { + try { + return ((int)(this[this.tableMappaStatoExpl.NumPezziColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'NumPezzi\' in table \'MappaStatoExpl\' is DBNull.", e); + } + } + set { + this[this.tableMappaStatoExpl.NumPezziColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public decimal TCAssegnato { + get { + try { + return ((decimal)(this[this.tableMappaStatoExpl.TCAssegnatoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'TCAssegnato\' in table \'MappaStatoExpl\' is DBNull.", e); + } + } + set { + this[this.tableMappaStatoExpl.TCAssegnatoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime DataInizioODL { + get { + try { + return ((global::System.DateTime)(this[this.tableMappaStatoExpl.DataInizioODLColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'DataInizioODL\' in table \'MappaStatoExpl\' is DBNull.", e); + } + } + set { + this[this.tableMappaStatoExpl.DataInizioODLColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Semaforo { + get { + try { + return ((string)(this[this.tableMappaStatoExpl.SemaforoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Semaforo\' in table \'MappaStatoExpl\' is DBNull.", e); + } + } + set { + this[this.tableMappaStatoExpl.SemaforoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int idxStato { + get { + try { + return ((int)(this[this.tableMappaStatoExpl.idxStatoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'idxStato\' in table \'MappaStatoExpl\' is DBNull.", e); + } + } + set { + this[this.tableMappaStatoExpl.idxStatoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string DescrizioneStato { + get { + try { + return ((string)(this[this.tableMappaStatoExpl.DescrizioneStatoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'DescrizioneStato\' in table \'MappaStatoExpl\' is DBNull.", e); + } + } + set { + this[this.tableMappaStatoExpl.DescrizioneStatoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public double durata { + get { + try { + return ((double)(this[this.tableMappaStatoExpl.durataColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'durata\' in table \'MappaStatoExpl\' is DBNull.", e); + } + } + set { + this[this.tableMappaStatoExpl.durataColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int PezziProd { + get { + try { + return ((int)(this[this.tableMappaStatoExpl.PezziProdColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'PezziProd\' in table \'MappaStatoExpl\' is DBNull.", e); + } + } + set { + this[this.tableMappaStatoExpl.PezziProdColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int PezziConf { + get { + try { + return ((int)(this[this.tableMappaStatoExpl.PezziConfColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'PezziConf\' in table \'MappaStatoExpl\' is DBNull.", e); + } + } + set { + this[this.tableMappaStatoExpl.PezziConfColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public decimal TempoOn { + get { + try { + return ((decimal)(this[this.tableMappaStatoExpl.TempoOnColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'TempoOn\' in table \'MappaStatoExpl\' is DBNull.", e); + } + } + set { + this[this.tableMappaStatoExpl.TempoOnColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public decimal TempoAuto { + get { + try { + return ((decimal)(this[this.tableMappaStatoExpl.TempoAutoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'TempoAuto\' in table \'MappaStatoExpl\' is DBNull.", e); + } + } + set { + this[this.tableMappaStatoExpl.TempoAutoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public decimal TempoRun { + get { + try { + return ((decimal)(this[this.tableMappaStatoExpl.TempoRunColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'TempoRun\' in table \'MappaStatoExpl\' is DBNull.", e); + } + } + set { + this[this.tableMappaStatoExpl.TempoRunColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public decimal TCMedio { + get { + try { + return ((decimal)(this[this.tableMappaStatoExpl.TCMedioColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'TCMedio\' in table \'MappaStatoExpl\' is DBNull.", e); + } + } + set { + this[this.tableMappaStatoExpl.TCMedioColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public decimal TCLav { + get { + try { + return ((decimal)(this[this.tableMappaStatoExpl.TCLavColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'TCLav\' in table \'MappaStatoExpl\' is DBNull.", e); + } + } + set { + this[this.tableMappaStatoExpl.TCLavColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public decimal TCEff { + get { + try { + return ((decimal)(this[this.tableMappaStatoExpl.TCEffColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'TCEff\' in table \'MappaStatoExpl\' is DBNull.", e); + } + } + set { + this[this.tableMappaStatoExpl.TCEffColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public decimal TCMedioRT { + get { + try { + return ((decimal)(this[this.tableMappaStatoExpl.TCMedioRTColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'TCMedioRT\' in table \'MappaStatoExpl\' is DBNull.", e); + } + } + set { + this[this.tableMappaStatoExpl.TCMedioRTColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public decimal TCLavRT { + get { + try { + return ((decimal)(this[this.tableMappaStatoExpl.TCLavRTColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'TCLavRT\' in table \'MappaStatoExpl\' is DBNull.", e); + } + } + set { + this[this.tableMappaStatoExpl.TCLavRTColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public decimal TCEffRT { + get { + try { + return ((decimal)(this[this.tableMappaStatoExpl.TCEffRTColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'TCEffRT\' in table \'MappaStatoExpl\' is DBNull.", e); + } + } + set { + this[this.tableMappaStatoExpl.TCEffRTColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IslastUpdateNull() { + return this.IsNull(this.tableMappaStatoExpl.lastUpdateColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetlastUpdateNull() { + this[this.tableMappaStatoExpl.lastUpdateColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsCodMacchinaNull() { + return this.IsNull(this.tableMappaStatoExpl.CodMacchinaColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetCodMacchinaNull() { + this[this.tableMappaStatoExpl.CodMacchinaColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsNomeNull() { + return this.IsNull(this.tableMappaStatoExpl.NomeColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetNomeNull() { + this[this.tableMappaStatoExpl.NomeColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsurlNull() { + return this.IsNull(this.tableMappaStatoExpl.urlColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SeturlNull() { + this[this.tableMappaStatoExpl.urlColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsidxODLNull() { + return this.IsNull(this.tableMappaStatoExpl.idxODLColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetidxODLNull() { + this[this.tableMappaStatoExpl.idxODLColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsCodArticoloNull() { + return this.IsNull(this.tableMappaStatoExpl.CodArticoloColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetCodArticoloNull() { + this[this.tableMappaStatoExpl.CodArticoloColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsNumPezziNull() { + return this.IsNull(this.tableMappaStatoExpl.NumPezziColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetNumPezziNull() { + this[this.tableMappaStatoExpl.NumPezziColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsTCAssegnatoNull() { + return this.IsNull(this.tableMappaStatoExpl.TCAssegnatoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetTCAssegnatoNull() { + this[this.tableMappaStatoExpl.TCAssegnatoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsDataInizioODLNull() { + return this.IsNull(this.tableMappaStatoExpl.DataInizioODLColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetDataInizioODLNull() { + this[this.tableMappaStatoExpl.DataInizioODLColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsSemaforoNull() { + return this.IsNull(this.tableMappaStatoExpl.SemaforoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetSemaforoNull() { + this[this.tableMappaStatoExpl.SemaforoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsidxStatoNull() { + return this.IsNull(this.tableMappaStatoExpl.idxStatoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetidxStatoNull() { + this[this.tableMappaStatoExpl.idxStatoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsDescrizioneStatoNull() { + return this.IsNull(this.tableMappaStatoExpl.DescrizioneStatoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetDescrizioneStatoNull() { + this[this.tableMappaStatoExpl.DescrizioneStatoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsdurataNull() { + return this.IsNull(this.tableMappaStatoExpl.durataColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetdurataNull() { + this[this.tableMappaStatoExpl.durataColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsPezziProdNull() { + return this.IsNull(this.tableMappaStatoExpl.PezziProdColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetPezziProdNull() { + this[this.tableMappaStatoExpl.PezziProdColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsPezziConfNull() { + return this.IsNull(this.tableMappaStatoExpl.PezziConfColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetPezziConfNull() { + this[this.tableMappaStatoExpl.PezziConfColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsTempoOnNull() { + return this.IsNull(this.tableMappaStatoExpl.TempoOnColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetTempoOnNull() { + this[this.tableMappaStatoExpl.TempoOnColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsTempoAutoNull() { + return this.IsNull(this.tableMappaStatoExpl.TempoAutoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetTempoAutoNull() { + this[this.tableMappaStatoExpl.TempoAutoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsTempoRunNull() { + return this.IsNull(this.tableMappaStatoExpl.TempoRunColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetTempoRunNull() { + this[this.tableMappaStatoExpl.TempoRunColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsTCMedioNull() { + return this.IsNull(this.tableMappaStatoExpl.TCMedioColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetTCMedioNull() { + this[this.tableMappaStatoExpl.TCMedioColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsTCLavNull() { + return this.IsNull(this.tableMappaStatoExpl.TCLavColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetTCLavNull() { + this[this.tableMappaStatoExpl.TCLavColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsTCEffNull() { + return this.IsNull(this.tableMappaStatoExpl.TCEffColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetTCEffNull() { + this[this.tableMappaStatoExpl.TCEffColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsTCMedioRTNull() { + return this.IsNull(this.tableMappaStatoExpl.TCMedioRTColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetTCMedioRTNull() { + this[this.tableMappaStatoExpl.TCMedioRTColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsTCLavRTNull() { + return this.IsNull(this.tableMappaStatoExpl.TCLavRTColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetTCLavRTNull() { + this[this.tableMappaStatoExpl.TCLavRTColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsTCEffRTNull() { + return this.IsNull(this.tableMappaStatoExpl.TCEffRTColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetTCEffRTNull() { + this[this.tableMappaStatoExpl.TCEffRTColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class ProduzioneAs400Row : global::System.Data.DataRow { + + private ProduzioneAs400DataTable tableProduzioneAs400; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal ProduzioneAs400Row(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableProduzioneAs400 = ((ProduzioneAs400DataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int IdxODL { + get { + return ((int)(this[this.tableProduzioneAs400.IdxODLColumn])); + } + set { + this[this.tableProduzioneAs400.IdxODLColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string CommessaAs400 { + get { + return ((string)(this[this.tableProduzioneAs400.CommessaAs400Column])); + } + set { + this[this.tableProduzioneAs400.CommessaAs400Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string CodArticolo { + get { + return ((string)(this[this.tableProduzioneAs400.CodArticoloColumn])); + } + set { + this[this.tableProduzioneAs400.CodArticoloColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int TotPzProd { + get { + try { + return ((int)(this[this.tableProduzioneAs400.TotPzProdColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'TotPzProd\' in table \'ProduzioneAs400\' is DBNull.", e); + } + } + set { + this[this.tableProduzioneAs400.TotPzProdColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string DataRif { + get { + try { + return ((string)(this[this.tableProduzioneAs400.DataRifColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'DataRif\' in table \'ProduzioneAs400\' is DBNull.", e); + } + } + set { + this[this.tableProduzioneAs400.DataRifColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsTotPzProdNull() { + return this.IsNull(this.tableProduzioneAs400.TotPzProdColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetTotPzProdNull() { + this[this.tableProduzioneAs400.TotPzProdColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsDataRifNull() { + return this.IsNull(this.tableProduzioneAs400.DataRifColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetDataRifNull() { + this[this.tableProduzioneAs400.DataRifColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class ResProdDett_splitODLRow : global::System.Data.DataRow { + + private ResProdDett_splitODLDataTable tableResProdDett_splitODL; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal ResProdDett_splitODLRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableResProdDett_splitODL = ((ResProdDett_splitODLDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int IdxODL { + get { + try { + return ((int)(this[this.tableResProdDett_splitODL.IdxODLColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'IdxODL\' in table \'ResProdDett_splitODL\' is DBNull.", e); + } + } + set { + this[this.tableResProdDett_splitODL.IdxODLColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public decimal TCAssegnato { + get { + return ((decimal)(this[this.tableResProdDett_splitODL.TCAssegnatoColumn])); + } + set { + this[this.tableResProdDett_splitODL.TCAssegnatoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int pzOrd { + get { + try { + return ((int)(this[this.tableResProdDett_splitODL.pzOrdColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'pzOrd\' in table \'ResProdDett_splitODL\' is DBNull.", e); + } + } + set { + this[this.tableResProdDett_splitODL.pzOrdColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int pzProd { + get { + try { + return ((int)(this[this.tableResProdDett_splitODL.pzProdColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'pzProd\' in table \'ResProdDett_splitODL\' is DBNull.", e); + } + } + set { + this[this.tableResProdDett_splitODL.pzProdColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int pzConf { + get { + try { + return ((int)(this[this.tableResProdDett_splitODL.pzConfColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'pzConf\' in table \'ResProdDett_splitODL\' is DBNull.", e); + } + } + set { + this[this.tableResProdDett_splitODL.pzConfColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int pzRiman { + get { + try { + return ((int)(this[this.tableResProdDett_splitODL.pzRimanColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'pzRiman\' in table \'ResProdDett_splitODL\' is DBNull.", e); + } + } + set { + this[this.tableResProdDett_splitODL.pzRimanColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsIdxODLNull() { + return this.IsNull(this.tableResProdDett_splitODL.IdxODLColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetIdxODLNull() { + this[this.tableResProdDett_splitODL.IdxODLColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IspzOrdNull() { + return this.IsNull(this.tableResProdDett_splitODL.pzOrdColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetpzOrdNull() { + this[this.tableResProdDett_splitODL.pzOrdColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IspzProdNull() { + return this.IsNull(this.tableResProdDett_splitODL.pzProdColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetpzProdNull() { + this[this.tableResProdDett_splitODL.pzProdColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IspzConfNull() { + return this.IsNull(this.tableResProdDett_splitODL.pzConfColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetpzConfNull() { + this[this.tableResProdDett_splitODL.pzConfColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IspzRimanNull() { + return this.IsNull(this.tableResProdDett_splitODL.pzRimanColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetpzRimanNull() { + this[this.tableResProdDett_splitODL.pzRimanColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class ResProdDett_splitGGRow : global::System.Data.DataRow { + + private ResProdDett_splitGGDataTable tableResProdDett_splitGG; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal ResProdDett_splitGGRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableResProdDett_splitGG = ((ResProdDett_splitGGDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime Data { + get { + try { + return ((global::System.DateTime)(this[this.tableResProdDett_splitGG.DataColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Data\' in table \'ResProdDett_splitGG\' is DBNull.", e); + } + } + set { + this[this.tableResProdDett_splitGG.DataColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int IdxODL { + get { + try { + return ((int)(this[this.tableResProdDett_splitGG.IdxODLColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'IdxODL\' in table \'ResProdDett_splitGG\' is DBNull.", e); + } + } + set { + this[this.tableResProdDett_splitGG.IdxODLColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public decimal TCAssegnato { + get { + return ((decimal)(this[this.tableResProdDett_splitGG.TCAssegnatoColumn])); + } + set { + this[this.tableResProdDett_splitGG.TCAssegnatoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int pzProd { + get { + try { + return ((int)(this[this.tableResProdDett_splitGG.pzProdColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'pzProd\' in table \'ResProdDett_splitGG\' is DBNull.", e); + } + } + set { + this[this.tableResProdDett_splitGG.pzProdColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int pzConf { + get { + try { + return ((int)(this[this.tableResProdDett_splitGG.pzConfColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'pzConf\' in table \'ResProdDett_splitGG\' is DBNull.", e); + } + } + set { + this[this.tableResProdDett_splitGG.pzConfColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Nome { + get { + try { + return ((string)(this[this.tableResProdDett_splitGG.NomeColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Nome\' in table \'ResProdDett_splitGG\' is DBNull.", e); + } + } + set { + this[this.tableResProdDett_splitGG.NomeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string CodArticolo { + get { + try { + return ((string)(this[this.tableResProdDett_splitGG.CodArticoloColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'CodArticolo\' in table \'ResProdDett_splitGG\' is DBNull.", e); + } + } + set { + this[this.tableResProdDett_splitGG.CodArticoloColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsDataNull() { + return this.IsNull(this.tableResProdDett_splitGG.DataColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetDataNull() { + this[this.tableResProdDett_splitGG.DataColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsIdxODLNull() { + return this.IsNull(this.tableResProdDett_splitGG.IdxODLColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetIdxODLNull() { + this[this.tableResProdDett_splitGG.IdxODLColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IspzProdNull() { + return this.IsNull(this.tableResProdDett_splitGG.pzProdColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetpzProdNull() { + this[this.tableResProdDett_splitGG.pzProdColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IspzConfNull() { + return this.IsNull(this.tableResProdDett_splitGG.pzConfColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetpzConfNull() { + this[this.tableResProdDett_splitGG.pzConfColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsNomeNull() { + return this.IsNull(this.tableResProdDett_splitGG.NomeColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetNomeNull() { + this[this.tableResProdDett_splitGG.NomeColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsCodArticoloNull() { + return this.IsNull(this.tableResProdDett_splitGG.CodArticoloColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetCodArticoloNull() { + this[this.tableResProdDett_splitGG.CodArticoloColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class ResProdTotRow : global::System.Data.DataRow { + + private ResProdTotDataTable tableResProdTot; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal ResProdTotRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableResProdTot = ((ResProdTotDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Nome { + get { + return ((string)(this[this.tableResProdTot.NomeColumn])); + } + set { + this[this.tableResProdTot.NomeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string IdxMacchina { + get { + return ((string)(this[this.tableResProdTot.IdxMacchinaColumn])); + } + set { + this[this.tableResProdTot.IdxMacchinaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string CodArticolo { + get { + return ((string)(this[this.tableResProdTot.CodArticoloColumn])); + } + set { + this[this.tableResProdTot.CodArticoloColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int pzOrd { + get { + try { + return ((int)(this[this.tableResProdTot.pzOrdColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'pzOrd\' in table \'ResProdTot\' is DBNull.", e); + } + } + set { + this[this.tableResProdTot.pzOrdColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int pzProd { + get { + try { + return ((int)(this[this.tableResProdTot.pzProdColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'pzProd\' in table \'ResProdTot\' is DBNull.", e); + } + } + set { + this[this.tableResProdTot.pzProdColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int pzConf { + get { + try { + return ((int)(this[this.tableResProdTot.pzConfColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'pzConf\' in table \'ResProdTot\' is DBNull.", e); + } + } + set { + this[this.tableResProdTot.pzConfColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int pzRiman { + get { + try { + return ((int)(this[this.tableResProdTot.pzRimanColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'pzRiman\' in table \'ResProdTot\' is DBNull.", e); + } + } + set { + this[this.tableResProdTot.pzRimanColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Stato { + get { + return ((string)(this[this.tableResProdTot.StatoColumn])); + } + set { + this[this.tableResProdTot.StatoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IspzOrdNull() { + return this.IsNull(this.tableResProdTot.pzOrdColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetpzOrdNull() { + this[this.tableResProdTot.pzOrdColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IspzProdNull() { + return this.IsNull(this.tableResProdTot.pzProdColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetpzProdNull() { + this[this.tableResProdTot.pzProdColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IspzConfNull() { + return this.IsNull(this.tableResProdTot.pzConfColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetpzConfNull() { + this[this.tableResProdTot.pzConfColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IspzRimanNull() { + return this.IsNull(this.tableResProdTot.pzRimanColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetpzRimanNull() { + this[this.tableResProdTot.pzRimanColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class TempiCicloRilevatiRowChangeEvent : global::System.EventArgs { + + private TempiCicloRilevatiRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public TempiCicloRilevatiRowChangeEvent(TempiCicloRilevatiRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public TempiCicloRilevatiRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class ODLRowChangeEvent : global::System.EventArgs { + + private ODLRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public ODLRowChangeEvent(ODLRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public ODLRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class AnagArticoliRowChangeEvent : global::System.EventArgs { + + private AnagArticoliRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagArticoliRowChangeEvent(AnagArticoliRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagArticoliRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class DatiMacchineRowChangeEvent : global::System.EventArgs { + + private DatiMacchineRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DatiMacchineRowChangeEvent(DatiMacchineRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DatiMacchineRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class PostazioniMapoRowChangeEvent : global::System.EventArgs { + + private PostazioniMapoRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public PostazioniMapoRowChangeEvent(PostazioniMapoRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public PostazioniMapoRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class stp_PzProd_getByMacchinaRowChangeEvent : global::System.EventArgs { + + private stp_PzProd_getByMacchinaRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public stp_PzProd_getByMacchinaRowChangeEvent(stp_PzProd_getByMacchinaRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public stp_PzProd_getByMacchinaRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class DatiConfermatiRowChangeEvent : global::System.EventArgs { + + private DatiConfermatiRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DatiConfermatiRowChangeEvent(DatiConfermatiRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DatiConfermatiRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class CalendFesteFerieRowChangeEvent : global::System.EventArgs { + + private CalendFesteFerieRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public CalendFesteFerieRowChangeEvent(CalendFesteFerieRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public CalendFesteFerieRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class stp_TempoByIdxMaccPeriodClassRowChangeEvent : global::System.EventArgs { + + private stp_TempoByIdxMaccPeriodClassRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public stp_TempoByIdxMaccPeriodClassRowChangeEvent(stp_TempoByIdxMaccPeriodClassRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public stp_TempoByIdxMaccPeriodClassRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class DatiProduzioneRowChangeEvent : global::System.EventArgs { + + private DatiProduzioneRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DatiProduzioneRowChangeEvent(DatiProduzioneRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DatiProduzioneRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class stp_repDonati_getDatiProdMacchinaRowChangeEvent : global::System.EventArgs { + + private stp_repDonati_getDatiProdMacchinaRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public stp_repDonati_getDatiProdMacchinaRowChangeEvent(stp_repDonati_getDatiProdMacchinaRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public stp_repDonati_getDatiProdMacchinaRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class stp_repDonati_getLastStatoDurataMacchinaRowChangeEvent : global::System.EventArgs { + + private stp_repDonati_getLastStatoDurataMacchinaRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public stp_repDonati_getLastStatoDurataMacchinaRowChangeEvent(stp_repDonati_getLastStatoDurataMacchinaRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public stp_repDonati_getLastStatoDurataMacchinaRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class stp_repDonati_getDatiProdMacchinaPeriodoRowChangeEvent : global::System.EventArgs { + + private stp_repDonati_getDatiProdMacchinaPeriodoRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public stp_repDonati_getDatiProdMacchinaPeriodoRowChangeEvent(stp_repDonati_getDatiProdMacchinaPeriodoRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public stp_repDonati_getDatiProdMacchinaPeriodoRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class TurniMacchinaRowChangeEvent : global::System.EventArgs { + + private TurniMacchinaRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public TurniMacchinaRowChangeEvent(TurniMacchinaRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public TurniMacchinaRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class MappaStatoExplRowChangeEvent : global::System.EventArgs { + + private MappaStatoExplRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public MappaStatoExplRowChangeEvent(MappaStatoExplRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public MappaStatoExplRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class ProduzioneAs400RowChangeEvent : global::System.EventArgs { + + private ProduzioneAs400Row eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public ProduzioneAs400RowChangeEvent(ProduzioneAs400Row row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public ProduzioneAs400Row Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class ResProdDett_splitODLRowChangeEvent : global::System.EventArgs { + + private ResProdDett_splitODLRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public ResProdDett_splitODLRowChangeEvent(ResProdDett_splitODLRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public ResProdDett_splitODLRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class ResProdDett_splitGGRowChangeEvent : global::System.EventArgs { + + private ResProdDett_splitGGRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public ResProdDett_splitGGRowChangeEvent(ResProdDett_splitGGRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public ResProdDett_splitGGRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class ResProdTotRowChangeEvent : global::System.EventArgs { + + private ResProdTotRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public ResProdTotRowChangeEvent(ResProdTotRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public ResProdTotRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + } +} +namespace MapoDb.DS_ProdTempiTableAdapters { + + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class TempiCicloRilevatiTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlTransaction _transaction; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public TempiCicloRilevatiTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlTransaction Transaction { + get { + return this._transaction; + } + set { + this._transaction = value; + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + this.CommandCollection[i].Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.DeleteCommand != null))) { + this.Adapter.DeleteCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.InsertCommand != null))) { + this.Adapter.InsertCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.UpdateCommand != null))) { + this.Adapter.UpdateCommand.Transaction = this._transaction; + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "TempiCicloRilevati"; + tableMapping.ColumnMappings.Add("IdxMacchina", "IdxMacchina"); + tableMapping.ColumnMappings.Add("CodArticolo", "CodArticolo"); + tableMapping.ColumnMappings.Add("DataOraRif", "DataOraRif"); + tableMapping.ColumnMappings.Add("TCMedio", "TCMedio"); + tableMapping.ColumnMappings.Add("PzProd", "PzProd"); + this._adapter.TableMappings.Add(tableMapping); + this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.DeleteCommand.Connection = this.Connection; + this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[TempiCicloRilevati] WHERE (([IdxMacchina] = @Original_IdxMacch" + + "ina) AND ([CodArticolo] = @Original_CodArticolo) AND ([DataOraRif] = @Original_D" + + "ataOraRif) AND ([TCMedio] = @Original_TCMedio) AND ([PzProd] = @Original_PzProd)" + + ")"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataOraRif", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraRif", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TCMedio", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TCMedio", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PzProd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PzProd", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.InsertCommand.Connection = this.Connection; + this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[TempiCicloRilevati] ([IdxMacchina], [CodArticolo], [DataOraRif], [TCMedio], [PzProd]) VALUES (@IdxMacchina, @CodArticolo, @DataOraRif, @TCMedio, @PzProd); +SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRilevati WHERE (CodArticolo = @CodArticolo) AND (DataOraRif = @DataOraRif) AND (IdxMacchina = @IdxMacchina)"; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataOraRif", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraRif", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCMedio", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TCMedio", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PzProd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PzProd", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.UpdateCommand.Connection = this.Connection; + this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[TempiCicloRilevati] SET [IdxMacchina] = @IdxMacchina, [CodArticolo] = @CodArticolo, [DataOraRif] = @DataOraRif, [TCMedio] = @TCMedio, [PzProd] = @PzProd WHERE (([IdxMacchina] = @Original_IdxMacchina) AND ([CodArticolo] = @Original_CodArticolo) AND ([DataOraRif] = @Original_DataOraRif) AND ([TCMedio] = @Original_TCMedio) AND ([PzProd] = @Original_PzProd)); +SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRilevati WHERE (CodArticolo = @CodArticolo) AND (DataOraRif = @DataOraRif) AND (IdxMacchina = @IdxMacchina)"; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataOraRif", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraRif", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCMedio", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TCMedio", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PzProd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PzProd", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataOraRif", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraRif", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TCMedio", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TCMedio", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PzProd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PzProd", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[6]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM dbo.TempiCicloR" + + "ilevati"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "dbo.stp_TC_getByMacchinaPeriodo"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Inizio", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Fine", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[2].Connection = this.Connection; + this._commandCollection[2].CommandText = "dbo.stp_TC_getByMacchinaPeriodoFiltMax"; + this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Inizio", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Fine", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MAX", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 8, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[3].Connection = this.Connection; + this._commandCollection[3].CommandText = "dbo.stp_TC_getMaxByMacchinaPeriodo"; + this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Inizio", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Fine", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[4].Connection = this.Connection; + this._commandCollection[4].CommandText = "dbo.stp_TC_getMedByMacchinaPeriodo"; + this._commandCollection[4].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Inizio", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Fine", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[5] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[5].Connection = this.Connection; + this._commandCollection[5].CommandText = "dbo.stp_TC_getMinByMacchinaPeriodo"; + this._commandCollection[5].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Inizio", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Fine", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_ProdTempi.TempiCicloRilevatiDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_ProdTempi.TempiCicloRilevatiDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_ProdTempi.TempiCicloRilevatiDataTable dataTable = new DS_ProdTempi.TempiCicloRilevatiDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_ProdTempi.TempiCicloRilevatiDataTable getByMacchinaPeriodo(string IdxMacchina, global::System.Nullable Inizio, global::System.Nullable Fine) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((IdxMacchina == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(IdxMacchina)); + } + if ((Inizio.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(Inizio.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((Fine.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[3].Value = ((System.DateTime)(Fine.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; + } + DS_ProdTempi.TempiCicloRilevatiDataTable dataTable = new DS_ProdTempi.TempiCicloRilevatiDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_ProdTempi.TempiCicloRilevatiDataTable getByMacchinaPeriodoFiltMax(string IdxMacchina, global::System.Nullable Inizio, global::System.Nullable Fine, global::System.Nullable MAX) { + this.Adapter.SelectCommand = this.CommandCollection[2]; + if ((IdxMacchina == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(IdxMacchina)); + } + if ((Inizio.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(Inizio.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((Fine.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[3].Value = ((System.DateTime)(Fine.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; + } + if ((MAX.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[4].Value = ((decimal)(MAX.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[4].Value = global::System.DBNull.Value; + } + DS_ProdTempi.TempiCicloRilevatiDataTable dataTable = new DS_ProdTempi.TempiCicloRilevatiDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_ProdTempi.TempiCicloRilevatiDataTable getMaxByMacchinaPeriodo(string IdxMacchina, global::System.Nullable Inizio, global::System.Nullable Fine) { + this.Adapter.SelectCommand = this.CommandCollection[3]; + if ((IdxMacchina == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(IdxMacchina)); + } + if ((Inizio.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(Inizio.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((Fine.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[3].Value = ((System.DateTime)(Fine.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; + } + DS_ProdTempi.TempiCicloRilevatiDataTable dataTable = new DS_ProdTempi.TempiCicloRilevatiDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_ProdTempi.TempiCicloRilevatiDataTable getMedByMacchinaPeriodo(string IdxMacchina, global::System.Nullable Inizio, global::System.Nullable Fine) { + this.Adapter.SelectCommand = this.CommandCollection[4]; + if ((IdxMacchina == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(IdxMacchina)); + } + if ((Inizio.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(Inizio.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((Fine.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[3].Value = ((System.DateTime)(Fine.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; + } + DS_ProdTempi.TempiCicloRilevatiDataTable dataTable = new DS_ProdTempi.TempiCicloRilevatiDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_ProdTempi.TempiCicloRilevatiDataTable getMinByMacchinaPeriodo(string IdxMacchina, global::System.Nullable Inizio, global::System.Nullable Fine) { + this.Adapter.SelectCommand = this.CommandCollection[5]; + if ((IdxMacchina == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(IdxMacchina)); + } + if ((Inizio.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(Inizio.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((Fine.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[3].Value = ((System.DateTime)(Fine.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; + } + DS_ProdTempi.TempiCicloRilevatiDataTable dataTable = new DS_ProdTempi.TempiCicloRilevatiDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_ProdTempi.TempiCicloRilevatiDataTable dataTable) { + return this.Adapter.Update(dataTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_ProdTempi dataSet) { + return this.Adapter.Update(dataSet, "TempiCicloRilevati"); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow dataRow) { + return this.Adapter.Update(new global::System.Data.DataRow[] { + dataRow}); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow[] dataRows) { + return this.Adapter.Update(dataRows); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] + public virtual int Delete(string Original_IdxMacchina, string Original_CodArticolo, System.DateTime Original_DataOraRif, decimal Original_TCMedio, int Original_PzProd) { + if ((Original_IdxMacchina == null)) { + throw new global::System.ArgumentNullException("Original_IdxMacchina"); + } + else { + this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_IdxMacchina)); + } + if ((Original_CodArticolo == null)) { + throw new global::System.ArgumentNullException("Original_CodArticolo"); + } + else { + this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_CodArticolo)); + } + this.Adapter.DeleteCommand.Parameters[2].Value = ((System.DateTime)(Original_DataOraRif)); + this.Adapter.DeleteCommand.Parameters[3].Value = ((decimal)(Original_TCMedio)); + this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_PzProd)); + global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; + if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.DeleteCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.DeleteCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] + public virtual int Insert(string IdxMacchina, string CodArticolo, System.DateTime DataOraRif, decimal TCMedio, int PzProd) { + if ((IdxMacchina == null)) { + throw new global::System.ArgumentNullException("IdxMacchina"); + } + else { + this.Adapter.InsertCommand.Parameters[0].Value = ((string)(IdxMacchina)); + } + if ((CodArticolo == null)) { + throw new global::System.ArgumentNullException("CodArticolo"); + } + else { + this.Adapter.InsertCommand.Parameters[1].Value = ((string)(CodArticolo)); + } + this.Adapter.InsertCommand.Parameters[2].Value = ((System.DateTime)(DataOraRif)); + this.Adapter.InsertCommand.Parameters[3].Value = ((decimal)(TCMedio)); + this.Adapter.InsertCommand.Parameters[4].Value = ((int)(PzProd)); + global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; + if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.InsertCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.InsertCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(string IdxMacchina, string CodArticolo, System.DateTime DataOraRif, decimal TCMedio, int PzProd, string Original_IdxMacchina, string Original_CodArticolo, System.DateTime Original_DataOraRif, decimal Original_TCMedio, int Original_PzProd) { + if ((IdxMacchina == null)) { + throw new global::System.ArgumentNullException("IdxMacchina"); + } + else { + this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(IdxMacchina)); + } + if ((CodArticolo == null)) { + throw new global::System.ArgumentNullException("CodArticolo"); + } + else { + this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(CodArticolo)); + } + this.Adapter.UpdateCommand.Parameters[2].Value = ((System.DateTime)(DataOraRif)); + this.Adapter.UpdateCommand.Parameters[3].Value = ((decimal)(TCMedio)); + this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(PzProd)); + if ((Original_IdxMacchina == null)) { + throw new global::System.ArgumentNullException("Original_IdxMacchina"); + } + else { + this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_IdxMacchina)); + } + if ((Original_CodArticolo == null)) { + throw new global::System.ArgumentNullException("Original_CodArticolo"); + } + else { + this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_CodArticolo)); + } + this.Adapter.UpdateCommand.Parameters[7].Value = ((System.DateTime)(Original_DataOraRif)); + this.Adapter.UpdateCommand.Parameters[8].Value = ((decimal)(Original_TCMedio)); + this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_PzProd)); + global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; + if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.UpdateCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.UpdateCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(decimal TCMedio, int PzProd, string Original_IdxMacchina, string Original_CodArticolo, System.DateTime Original_DataOraRif, decimal Original_TCMedio, int Original_PzProd) { + return this.Update(Original_IdxMacchina, Original_CodArticolo, Original_DataOraRif, TCMedio, PzProd, Original_IdxMacchina, Original_CodArticolo, Original_DataOraRif, Original_TCMedio, Original_PzProd); + } + } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class ODLTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlTransaction _transaction; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public ODLTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlTransaction Transaction { + get { + return this._transaction; + } + set { + this._transaction = value; + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + this.CommandCollection[i].Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.DeleteCommand != null))) { + this.Adapter.DeleteCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.InsertCommand != null))) { + this.Adapter.InsertCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.UpdateCommand != null))) { + this.Adapter.UpdateCommand.Transaction = this._transaction; + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "ODL"; + tableMapping.ColumnMappings.Add("IdxODL", "IdxODL"); + tableMapping.ColumnMappings.Add("CodArticolo", "CodArticolo"); + tableMapping.ColumnMappings.Add("IdxMacchina", "IdxMacchina"); + tableMapping.ColumnMappings.Add("NumPezzi", "NumPezzi"); + tableMapping.ColumnMappings.Add("TCAssegnato", "TCAssegnato"); + tableMapping.ColumnMappings.Add("DescArticolo", "DescArticolo"); + tableMapping.ColumnMappings.Add("CodMacchina", "CodMacchina"); + tableMapping.ColumnMappings.Add("Nome", "Nome"); + tableMapping.ColumnMappings.Add("DataInizio", "DataInizio"); + tableMapping.ColumnMappings.Add("DataFine", "DataFine"); + tableMapping.ColumnMappings.Add("Note", "Note"); + tableMapping.ColumnMappings.Add("NeedAppr", "NeedAppr"); + tableMapping.ColumnMappings.Add("UserAppr", "UserAppr"); + tableMapping.ColumnMappings.Add("DataAppr", "DataAppr"); + tableMapping.ColumnMappings.Add("TCRichAttr", "TCRichAttr"); + tableMapping.ColumnMappings.Add("ToAs400", "ToAs400"); + this._adapter.TableMappings.Add(tableMapping); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[17]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT * FROM dbo.v_ODL_exp\r\nORDER BY idxODL DESC"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "dbo.stp_ODL_approvaTC"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxODL", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 2500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserAppr", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Approvato", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[2].Connection = this.Connection; + this._commandCollection[2].CommandText = "DELETE FROM [dbo].[ODL] WHERE ([IdxODL] = @Original_IdxODL)"; + this._commandCollection[2].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxODL", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IdxODL", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[3].Connection = this.Connection; + this._commandCollection[3].CommandText = "dbo.stp_ODL_fineProd"; + this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxODL", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[4].Connection = this.Connection; + this._commandCollection[4].CommandText = "dbo.stp_ODL_getByCodArt"; + this._commandCollection[4].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[5] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[5].Connection = this.Connection; + this._commandCollection[5].CommandText = "dbo.stp_ODL_getByIdx"; + this._commandCollection[5].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxODL", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@onlyUnused", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[6] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[6].Connection = this.Connection; + this._commandCollection[6].CommandText = "dbo.stp_ODL_getByMacchina"; + this._commandCollection[6].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[7] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[7].Connection = this.Connection; + this._commandCollection[7].CommandText = "dbo.stp_ODL_getByMacchinaCodArt"; + this._commandCollection[7].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[8] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[8].Connection = this.Connection; + this._commandCollection[8].CommandText = "dbo.stp_ODL_getByMacchinaPeriodo"; + this._commandCollection[8].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataFrom", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataTo", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[9] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[9].Connection = this.Connection; + this._commandCollection[9].CommandText = "dbo.stp_ODL_getByMacchinaPeriodoNoNull"; + this._commandCollection[9].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataFrom", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataTo", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[10] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[10].Connection = this.Connection; + this._commandCollection[10].CommandText = "dbo.stp_ODL_needAppr"; + this._commandCollection[10].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[11] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[11].Connection = this.Connection; + this._commandCollection[11].CommandText = "dbo.stp_ODL_inizioSetup"; + this._commandCollection[11].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[11].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[11].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxODL", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[11].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[11].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCRichAttr", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 8, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[11].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 2500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[12] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[12].Connection = this.Connection; + this._commandCollection[12].CommandText = "dbo.stp_ODL_insertQuery"; + this._commandCollection[12].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumPezzi", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCAssegnato", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 8, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ToAs400", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CommessaAs400", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[13] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[13].Connection = this.Connection; + this._commandCollection[13].CommandText = "dbo.stp_ODL_split"; + this._commandCollection[13].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[13].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[13].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxODL", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[13].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[13].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCRichAttr", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 8, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[13].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 2500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[13].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@StartNewOdl", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[14] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[14].Connection = this.Connection; + this._commandCollection[14].CommandText = "dbo.stp_ODL_updateQta"; + this._commandCollection[14].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[14].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[14].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumPezzi", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[14].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxODL", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[15] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[15].Connection = this.Connection; + this._commandCollection[15].CommandText = "dbo.stp_ODL_update"; + this._commandCollection[15].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[15].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[15].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[15].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[15].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumPezzi", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[15].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCAssegnato", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 8, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[15].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataInizio", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[15].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataFine", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[15].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 2500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[15].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxODL", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[16] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[16].Connection = this.Connection; + this._commandCollection[16].CommandText = "dbo.stp_ODL_updateSetup"; + this._commandCollection[16].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[16].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[16].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxODL", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[16].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCRichAttr", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 8, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[16].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 2500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_ProdTempi.ODLDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_ProdTempi.ODLDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_ProdTempi.ODLDataTable dataTable = new DS_ProdTempi.ODLDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_ProdTempi.ODLDataTable getByCodArt(string CodArticolo) { + this.Adapter.SelectCommand = this.CommandCollection[4]; + if ((CodArticolo == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodArticolo)); + } + DS_ProdTempi.ODLDataTable dataTable = new DS_ProdTempi.ODLDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_ProdTempi.ODLDataTable getByIdx(global::System.Nullable IdxODL, global::System.Nullable onlyUnused) { + this.Adapter.SelectCommand = this.CommandCollection[5]; + if ((IdxODL.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[1].Value = ((int)(IdxODL.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + if ((onlyUnused.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((bool)(onlyUnused.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + DS_ProdTempi.ODLDataTable dataTable = new DS_ProdTempi.ODLDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_ProdTempi.ODLDataTable getByMacchina(string IdxMacchina) { + this.Adapter.SelectCommand = this.CommandCollection[6]; + if ((IdxMacchina == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(IdxMacchina)); + } + DS_ProdTempi.ODLDataTable dataTable = new DS_ProdTempi.ODLDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_ProdTempi.ODLDataTable getByMacchinaArticolo(string CodArticolo, string IdxMacchina) { + this.Adapter.SelectCommand = this.CommandCollection[7]; + if ((CodArticolo == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodArticolo)); + } + if ((IdxMacchina == null)) { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = ((string)(IdxMacchina)); + } + DS_ProdTempi.ODLDataTable dataTable = new DS_ProdTempi.ODLDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_ProdTempi.ODLDataTable getByMacchinaPeriodo(string IdxMacchina, global::System.Nullable dataFrom, global::System.Nullable dataTo) { + this.Adapter.SelectCommand = this.CommandCollection[8]; + if ((IdxMacchina == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(IdxMacchina)); + } + if ((dataFrom.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(dataFrom.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((dataTo.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[3].Value = ((System.DateTime)(dataTo.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; + } + DS_ProdTempi.ODLDataTable dataTable = new DS_ProdTempi.ODLDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_ProdTempi.ODLDataTable getByMacchinaPeriodoNoNull(string IdxMacchina, global::System.Nullable dataFrom, global::System.Nullable dataTo) { + this.Adapter.SelectCommand = this.CommandCollection[9]; + if ((IdxMacchina == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(IdxMacchina)); + } + if ((dataFrom.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(dataFrom.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((dataTo.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[3].Value = ((System.DateTime)(dataTo.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; + } + DS_ProdTempi.ODLDataTable dataTable = new DS_ProdTempi.ODLDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_ProdTempi.ODLDataTable getNeedAppr() { + this.Adapter.SelectCommand = this.CommandCollection[10]; + DS_ProdTempi.ODLDataTable dataTable = new DS_ProdTempi.ODLDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int approvaTC(global::System.Nullable idxODL, string Note, string UserAppr, global::System.Nullable Approvato) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1]; + if ((idxODL.HasValue == true)) { + command.Parameters[1].Value = ((int)(idxODL.Value)); + } + else { + command.Parameters[1].Value = global::System.DBNull.Value; + } + if ((Note == null)) { + command.Parameters[2].Value = global::System.DBNull.Value; + } + else { + command.Parameters[2].Value = ((string)(Note)); + } + if ((UserAppr == null)) { + command.Parameters[3].Value = global::System.DBNull.Value; + } + else { + command.Parameters[3].Value = ((string)(UserAppr)); + } + if ((Approvato.HasValue == true)) { + command.Parameters[4].Value = ((bool)(Approvato.Value)); + } + else { + command.Parameters[4].Value = global::System.DBNull.Value; + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, false)] + public virtual int DeleteQuery(int Original_IdxODL) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[2]; + command.Parameters[0].Value = ((int)(Original_IdxODL)); + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int fineProd(global::System.Nullable idxODL, string IdxMacchina) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3]; + if ((idxODL.HasValue == true)) { + command.Parameters[1].Value = ((int)(idxODL.Value)); + } + else { + command.Parameters[1].Value = global::System.DBNull.Value; + } + if ((IdxMacchina == null)) { + command.Parameters[2].Value = global::System.DBNull.Value; + } + else { + command.Parameters[2].Value = ((string)(IdxMacchina)); + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int inizioSetup(global::System.Nullable idxODL, string IdxMacchina, global::System.Nullable TCRichAttr, string Note) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[11]; + if ((idxODL.HasValue == true)) { + command.Parameters[1].Value = ((int)(idxODL.Value)); + } + else { + command.Parameters[1].Value = global::System.DBNull.Value; + } + if ((IdxMacchina == null)) { + command.Parameters[2].Value = global::System.DBNull.Value; + } + else { + command.Parameters[2].Value = ((string)(IdxMacchina)); + } + if ((TCRichAttr.HasValue == true)) { + command.Parameters[3].Value = ((decimal)(TCRichAttr.Value)); + } + else { + command.Parameters[3].Value = global::System.DBNull.Value; + } + if ((Note == null)) { + command.Parameters[4].Value = global::System.DBNull.Value; + } + else { + command.Parameters[4].Value = ((string)(Note)); + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, false)] + public virtual int InsertQuery(string CodArticolo, string IdxMacchina, global::System.Nullable NumPezzi, global::System.Nullable TCAssegnato, global::System.Nullable ToAs400, string CommessaAs400) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[12]; + if ((CodArticolo == null)) { + command.Parameters[1].Value = global::System.DBNull.Value; + } + else { + command.Parameters[1].Value = ((string)(CodArticolo)); + } + if ((IdxMacchina == null)) { + command.Parameters[2].Value = global::System.DBNull.Value; + } + else { + command.Parameters[2].Value = ((string)(IdxMacchina)); + } + if ((NumPezzi.HasValue == true)) { + command.Parameters[3].Value = ((int)(NumPezzi.Value)); + } + else { + command.Parameters[3].Value = global::System.DBNull.Value; + } + if ((TCAssegnato.HasValue == true)) { + command.Parameters[4].Value = ((decimal)(TCAssegnato.Value)); + } + else { + command.Parameters[4].Value = global::System.DBNull.Value; + } + if ((ToAs400.HasValue == true)) { + command.Parameters[5].Value = ((bool)(ToAs400.Value)); + } + else { + command.Parameters[5].Value = global::System.DBNull.Value; + } + if ((CommessaAs400 == null)) { + command.Parameters[6].Value = global::System.DBNull.Value; + } + else { + command.Parameters[6].Value = ((string)(CommessaAs400)); + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int splitODL(global::System.Nullable idxODL, string IdxMacchina, global::System.Nullable TCRichAttr, string Note, global::System.Nullable StartNewOdl) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[13]; + if ((idxODL.HasValue == true)) { + command.Parameters[1].Value = ((int)(idxODL.Value)); + } + else { + command.Parameters[1].Value = global::System.DBNull.Value; + } + if ((IdxMacchina == null)) { + command.Parameters[2].Value = global::System.DBNull.Value; + } + else { + command.Parameters[2].Value = ((string)(IdxMacchina)); + } + if ((TCRichAttr.HasValue == true)) { + command.Parameters[3].Value = ((decimal)(TCRichAttr.Value)); + } + else { + command.Parameters[3].Value = global::System.DBNull.Value; + } + if ((Note == null)) { + command.Parameters[4].Value = global::System.DBNull.Value; + } + else { + command.Parameters[4].Value = ((string)(Note)); + } + if ((StartNewOdl.HasValue == true)) { + command.Parameters[5].Value = ((bool)(StartNewOdl.Value)); + } + else { + command.Parameters[5].Value = global::System.DBNull.Value; + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int updateQta(global::System.Nullable NumPezzi, global::System.Nullable Original_IdxODL) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[14]; + if ((NumPezzi.HasValue == true)) { + command.Parameters[1].Value = ((int)(NumPezzi.Value)); + } + else { + command.Parameters[1].Value = global::System.DBNull.Value; + } + if ((Original_IdxODL.HasValue == true)) { + command.Parameters[2].Value = ((int)(Original_IdxODL.Value)); + } + else { + command.Parameters[2].Value = global::System.DBNull.Value; + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, false)] + public virtual int UpdateQuery(string CodArticolo, string IdxMacchina, global::System.Nullable NumPezzi, global::System.Nullable TCAssegnato, global::System.Nullable DataInizio, global::System.Nullable DataFine, string Note, global::System.Nullable Original_IdxODL) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[15]; + if ((CodArticolo == null)) { + command.Parameters[1].Value = global::System.DBNull.Value; + } + else { + command.Parameters[1].Value = ((string)(CodArticolo)); + } + if ((IdxMacchina == null)) { + command.Parameters[2].Value = global::System.DBNull.Value; + } + else { + command.Parameters[2].Value = ((string)(IdxMacchina)); + } + if ((NumPezzi.HasValue == true)) { + command.Parameters[3].Value = ((int)(NumPezzi.Value)); + } + else { + command.Parameters[3].Value = global::System.DBNull.Value; + } + if ((TCAssegnato.HasValue == true)) { + command.Parameters[4].Value = ((decimal)(TCAssegnato.Value)); + } + else { + command.Parameters[4].Value = global::System.DBNull.Value; + } + if ((DataInizio.HasValue == true)) { + command.Parameters[5].Value = ((System.DateTime)(DataInizio.Value)); + } + else { + command.Parameters[5].Value = global::System.DBNull.Value; + } + if ((DataFine.HasValue == true)) { + command.Parameters[6].Value = ((System.DateTime)(DataFine.Value)); + } + else { + command.Parameters[6].Value = global::System.DBNull.Value; + } + if ((Note == null)) { + command.Parameters[7].Value = global::System.DBNull.Value; + } + else { + command.Parameters[7].Value = ((string)(Note)); + } + if ((Original_IdxODL.HasValue == true)) { + command.Parameters[8].Value = ((int)(Original_IdxODL.Value)); + } + else { + command.Parameters[8].Value = global::System.DBNull.Value; + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int updateSetup(global::System.Nullable idxODL, global::System.Nullable TCRichAttr, string Note) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[16]; + if ((idxODL.HasValue == true)) { + command.Parameters[1].Value = ((int)(idxODL.Value)); + } + else { + command.Parameters[1].Value = global::System.DBNull.Value; + } + if ((TCRichAttr.HasValue == true)) { + command.Parameters[2].Value = ((decimal)(TCRichAttr.Value)); + } + else { + command.Parameters[2].Value = global::System.DBNull.Value; + } + if ((Note == null)) { + command.Parameters[3].Value = global::System.DBNull.Value; + } + else { + command.Parameters[3].Value = ((string)(Note)); + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class AnagArticoliTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlTransaction _transaction; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagArticoliTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlTransaction Transaction { + get { + return this._transaction; + } + set { + this._transaction = value; + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + this.CommandCollection[i].Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.DeleteCommand != null))) { + this.Adapter.DeleteCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.InsertCommand != null))) { + this.Adapter.InsertCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.UpdateCommand != null))) { + this.Adapter.UpdateCommand.Transaction = this._transaction; + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "AnagArticoli"; + tableMapping.ColumnMappings.Add("CodArticolo", "CodArticolo"); + tableMapping.ColumnMappings.Add("DescArticolo", "DescArticolo"); + this._adapter.TableMappings.Add(tableMapping); + this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.DeleteCommand.Connection = this.Connection; + this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[AnagArticoli] WHERE (([CodArticolo] = @Original_CodArticolo) A" + + "ND ((@IsNull_DescArticolo = 1 AND [DescArticolo] IS NULL) OR ([DescArticolo] = @" + + "Original_DescArticolo)))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescArticolo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescArticolo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescArticolo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.InsertCommand.Connection = this.Connection; + this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[AnagArticoli] ([CodArticolo], [DescArticolo]) VALUES (@CodArti" + + "colo, @DescArticolo);\r\nSELECT CodArticolo, DescArticolo FROM AnagArticoli WHERE " + + "(CodArticolo = @CodArticolo)"; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescArticolo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.UpdateCommand.Connection = this.Connection; + this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[AnagArticoli] SET [CodArticolo] = @CodArticolo, [DescArticolo] = @DescArticolo WHERE (([CodArticolo] = @Original_CodArticolo) AND ((@IsNull_DescArticolo = 1 AND [DescArticolo] IS NULL) OR ([DescArticolo] = @Original_DescArticolo))); +SELECT CodArticolo, DescArticolo FROM AnagArticoli WHERE (CodArticolo = @CodArticolo)"; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescArticolo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescArticolo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescArticolo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescArticolo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[4]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT CodArticolo, DescArticolo FROM dbo.AnagArticoli"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "dbo.stp_ART_checkUsed"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@isUsed", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.InputOutput, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[2].Connection = this.Connection; + this._commandCollection[2].CommandText = "dbo.stp_ART_delete"; + this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodArticolo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[3].Connection = this.Connection; + this._commandCollection[3].CommandText = "dbo.stp_ART_update"; + this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodArticolo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescArticolo", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_ProdTempi.AnagArticoliDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_ProdTempi.AnagArticoliDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_ProdTempi.AnagArticoliDataTable dataTable = new DS_ProdTempi.AnagArticoliDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_ProdTempi.AnagArticoliDataTable dataTable) { + return this.Adapter.Update(dataTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_ProdTempi dataSet) { + return this.Adapter.Update(dataSet, "AnagArticoli"); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow dataRow) { + return this.Adapter.Update(new global::System.Data.DataRow[] { + dataRow}); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow[] dataRows) { + return this.Adapter.Update(dataRows); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] + public virtual int Delete(string Original_CodArticolo, string Original_DescArticolo) { + if ((Original_CodArticolo == null)) { + throw new global::System.ArgumentNullException("Original_CodArticolo"); + } + else { + this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_CodArticolo)); + } + if ((Original_DescArticolo == null)) { + this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_DescArticolo)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; + if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.DeleteCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.DeleteCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] + public virtual int Insert(string CodArticolo, string DescArticolo) { + if ((CodArticolo == null)) { + throw new global::System.ArgumentNullException("CodArticolo"); + } + else { + this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodArticolo)); + } + if ((DescArticolo == null)) { + this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[1].Value = ((string)(DescArticolo)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; + if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.InsertCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.InsertCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(string CodArticolo, string DescArticolo, string Original_CodArticolo, string Original_DescArticolo) { + if ((CodArticolo == null)) { + throw new global::System.ArgumentNullException("CodArticolo"); + } + else { + this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodArticolo)); + } + if ((DescArticolo == null)) { + this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(DescArticolo)); + } + if ((Original_CodArticolo == null)) { + throw new global::System.ArgumentNullException("Original_CodArticolo"); + } + else { + this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Original_CodArticolo)); + } + if ((Original_DescArticolo == null)) { + this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_DescArticolo)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; + if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.UpdateCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.UpdateCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(string DescArticolo, string Original_CodArticolo, string Original_DescArticolo) { + return this.Update(Original_CodArticolo, DescArticolo, Original_CodArticolo, Original_DescArticolo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual object checkUsed(string CodArticolo, ref global::System.Nullable isUsed) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1]; + if ((CodArticolo == null)) { + command.Parameters[1].Value = global::System.DBNull.Value; + } + else { + command.Parameters[1].Value = ((string)(CodArticolo)); + } + if ((isUsed.HasValue == true)) { + command.Parameters[2].Value = ((bool)(isUsed.Value)); + } + else { + command.Parameters[2].Value = global::System.DBNull.Value; + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + object returnValue; + try { + returnValue = command.ExecuteScalar(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + if (((command.Parameters[2].Value == null) + || (command.Parameters[2].Value.GetType() == typeof(global::System.DBNull)))) { + isUsed = new global::System.Nullable(); + } + else { + isUsed = new global::System.Nullable(((bool)(command.Parameters[2].Value))); + } + if (((returnValue == null) + || (returnValue.GetType() == typeof(global::System.DBNull)))) { + return null; + } + else { + return ((object)(returnValue)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int deleteQry(string Original_CodArticolo) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[2]; + if ((Original_CodArticolo == null)) { + command.Parameters[1].Value = global::System.DBNull.Value; + } + else { + command.Parameters[1].Value = ((string)(Original_CodArticolo)); + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int updateQry(string Original_CodArticolo, string CodArticolo, string DescArticolo) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3]; + if ((Original_CodArticolo == null)) { + command.Parameters[1].Value = global::System.DBNull.Value; + } + else { + command.Parameters[1].Value = ((string)(Original_CodArticolo)); + } + if ((CodArticolo == null)) { + command.Parameters[2].Value = global::System.DBNull.Value; + } + else { + command.Parameters[2].Value = ((string)(CodArticolo)); + } + if ((DescArticolo == null)) { + command.Parameters[3].Value = global::System.DBNull.Value; + } + else { + command.Parameters[3].Value = ((string)(DescArticolo)); + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class DatiMacchineTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlTransaction _transaction; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DatiMacchineTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlTransaction Transaction { + get { + return this._transaction; + } + set { + this._transaction = value; + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + this.CommandCollection[i].Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.DeleteCommand != null))) { + this.Adapter.DeleteCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.InsertCommand != null))) { + this.Adapter.InsertCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.UpdateCommand != null))) { + this.Adapter.UpdateCommand.Transaction = this._transaction; + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "DatiMacchine"; + tableMapping.ColumnMappings.Add("idxMacchina", "idxMacchina"); + tableMapping.ColumnMappings.Add("palletChange", "palletChange"); + tableMapping.ColumnMappings.Add("kanban_A", "kanban_A"); + tableMapping.ColumnMappings.Add("kanban_B", "kanban_B"); + tableMapping.ColumnMappings.Add("serialPort", "serialPort"); + tableMapping.ColumnMappings.Add("refreshPeriod", "refreshPeriod"); + tableMapping.ColumnMappings.Add("simulazione", "simulazione"); + tableMapping.ColumnMappings.Add("DescFull", "DescFull"); + tableMapping.ColumnMappings.Add("Articolo_A", "Articolo_A"); + tableMapping.ColumnMappings.Add("Articolo_B", "Articolo_B"); + tableMapping.ColumnMappings.Add("simplePallet", "simplePallet"); + this._adapter.TableMappings.Add(tableMapping); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[3]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT *\r\nFROM v_DatiMacchina_exp"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "dbo.stp_DATM_getByIdx"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[2].Connection = this.Connection; + this._commandCollection[2].CommandText = "dbo.stp_DATM_update"; + this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxMacchina", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@palletChange", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@kanban_A", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@kanban_B", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_ProdTempi.DatiMacchineDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_ProdTempi.DatiMacchineDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_ProdTempi.DatiMacchineDataTable dataTable = new DS_ProdTempi.DatiMacchineDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_ProdTempi.DatiMacchineDataTable getByIdx(global::System.Nullable IdxMacchina) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((IdxMacchina.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[1].Value = ((int)(IdxMacchina.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + DS_ProdTempi.DatiMacchineDataTable dataTable = new DS_ProdTempi.DatiMacchineDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int updateQry(global::System.Nullable Original_idxMacchina, global::System.Nullable palletChange, string kanban_A, string kanban_B) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[2]; + if ((Original_idxMacchina.HasValue == true)) { + command.Parameters[1].Value = ((int)(Original_idxMacchina.Value)); + } + else { + command.Parameters[1].Value = global::System.DBNull.Value; + } + if ((palletChange.HasValue == true)) { + command.Parameters[2].Value = ((bool)(palletChange.Value)); + } + else { + command.Parameters[2].Value = global::System.DBNull.Value; + } + if ((kanban_A == null)) { + command.Parameters[3].Value = global::System.DBNull.Value; + } + else { + command.Parameters[3].Value = ((string)(kanban_A)); + } + if ((kanban_B == null)) { + command.Parameters[4].Value = global::System.DBNull.Value; + } + else { + command.Parameters[4].Value = ((string)(kanban_B)); + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class PostazioniMapoTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlTransaction _transaction; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public PostazioniMapoTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlTransaction Transaction { + get { + return this._transaction; + } + set { + this._transaction = value; + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + this.CommandCollection[i].Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.DeleteCommand != null))) { + this.Adapter.DeleteCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.InsertCommand != null))) { + this.Adapter.InsertCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.UpdateCommand != null))) { + this.Adapter.UpdateCommand.Transaction = this._transaction; + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "PostazioniMapo"; + tableMapping.ColumnMappings.Add("IdxPostazione", "IdxPostazione"); + tableMapping.ColumnMappings.Add("DescPostazione", "DescPostazione"); + tableMapping.ColumnMappings.Add("IdxMacchina", "IdxMacchina"); + tableMapping.ColumnMappings.Add("MatrOperatore", "MatrOperatore"); + tableMapping.ColumnMappings.Add("InputUntil", "InputUntil"); + tableMapping.ColumnMappings.Add("LastBarcode", "LastBarcode"); + this._adapter.TableMappings.Add(tableMapping); + this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.DeleteCommand.Connection = this.Connection; + this._adapter.DeleteCommand.CommandText = @"DELETE FROM [PostazioniMapo] WHERE (([IdxPostazione] = @Original_IdxPostazione) AND ((@IsNull_DescPostazione = 1 AND [DescPostazione] IS NULL) OR ([DescPostazione] = @Original_DescPostazione)) AND ([IdxMacchina] = @Original_IdxMacchina) AND ((@IsNull_MatrOperatore = 1 AND [MatrOperatore] IS NULL) OR ([MatrOperatore] = @Original_MatrOperatore)) AND ((@IsNull_InputUntil = 1 AND [InputUntil] IS NULL) OR ([InputUntil] = @Original_InputUntil)) AND ((@IsNull_LastBarcode = 1 AND [LastBarcode] IS NULL) OR ([LastBarcode] = @Original_LastBarcode)))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxPostazione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxPostazione", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescPostazione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescPostazione", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescPostazione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescPostazione", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_MatrOperatore", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrOperatore", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MatrOperatore", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrOperatore", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_InputUntil", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InputUntil", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_InputUntil", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InputUntil", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_LastBarcode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LastBarcode", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_LastBarcode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LastBarcode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.InsertCommand.Connection = this.Connection; + this._adapter.InsertCommand.CommandText = @"INSERT INTO [PostazioniMapo] ([IdxPostazione], [DescPostazione], [IdxMacchina], [MatrOperatore], [InputUntil], [LastBarcode]) VALUES (@IdxPostazione, @DescPostazione, @IdxMacchina, @MatrOperatore, @InputUntil, @LastBarcode); +SELECT IdxPostazione, DescPostazione, IdxMacchina, MatrOperatore, InputUntil, LastBarcode FROM PostazioniMapo WHERE (IdxPostazione = @IdxPostazione)"; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxPostazione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxPostazione", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescPostazione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescPostazione", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrOperatore", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrOperatore", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@InputUntil", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InputUntil", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@LastBarcode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LastBarcode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.UpdateCommand.Connection = this.Connection; + this._adapter.UpdateCommand.CommandText = @"UPDATE [PostazioniMapo] SET [IdxPostazione] = @IdxPostazione, [DescPostazione] = @DescPostazione, [IdxMacchina] = @IdxMacchina, [MatrOperatore] = @MatrOperatore, [InputUntil] = @InputUntil, [LastBarcode] = @LastBarcode WHERE (([IdxPostazione] = @Original_IdxPostazione) AND ((@IsNull_DescPostazione = 1 AND [DescPostazione] IS NULL) OR ([DescPostazione] = @Original_DescPostazione)) AND ([IdxMacchina] = @Original_IdxMacchina) AND ((@IsNull_MatrOperatore = 1 AND [MatrOperatore] IS NULL) OR ([MatrOperatore] = @Original_MatrOperatore)) AND ((@IsNull_InputUntil = 1 AND [InputUntil] IS NULL) OR ([InputUntil] = @Original_InputUntil)) AND ((@IsNull_LastBarcode = 1 AND [LastBarcode] IS NULL) OR ([LastBarcode] = @Original_LastBarcode))); +SELECT IdxPostazione, DescPostazione, IdxMacchina, MatrOperatore, InputUntil, LastBarcode FROM PostazioniMapo WHERE (IdxPostazione = @IdxPostazione)"; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxPostazione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxPostazione", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescPostazione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescPostazione", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrOperatore", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrOperatore", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@InputUntil", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InputUntil", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@LastBarcode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LastBarcode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxPostazione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxPostazione", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescPostazione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescPostazione", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescPostazione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescPostazione", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_MatrOperatore", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrOperatore", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MatrOperatore", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrOperatore", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_InputUntil", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InputUntil", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_InputUntil", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InputUntil", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_LastBarcode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LastBarcode", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_LastBarcode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LastBarcode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[4]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT IdxPostazione, DescPostazione, IdxMacchina, MatrOperatore, InputUntil, Las" + + "tBarcode FROM PostazioniMapo"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "dbo.stp_POST_getByIdPostazione"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxPostazione", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[2].Connection = this.Connection; + this._commandCollection[2].CommandText = "dbo.stp_POST_updateMacchina"; + this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxPostazione", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[3].Connection = this.Connection; + this._commandCollection[3].CommandText = "dbo.stp_POST_updateOperatoreAdmin"; + this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxPostazione", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@matrOper", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@minutiModifica", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_ProdTempi.PostazioniMapoDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_ProdTempi.PostazioniMapoDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_ProdTempi.PostazioniMapoDataTable dataTable = new DS_ProdTempi.PostazioniMapoDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_ProdTempi.PostazioniMapoDataTable getByIdxPostaz(string idxPostazione) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((idxPostazione == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(idxPostazione)); + } + DS_ProdTempi.PostazioniMapoDataTable dataTable = new DS_ProdTempi.PostazioniMapoDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_ProdTempi.PostazioniMapoDataTable dataTable) { + return this.Adapter.Update(dataTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_ProdTempi dataSet) { + return this.Adapter.Update(dataSet, "PostazioniMapo"); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow dataRow) { + return this.Adapter.Update(new global::System.Data.DataRow[] { + dataRow}); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow[] dataRows) { + return this.Adapter.Update(dataRows); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] + public virtual int Delete(string Original_IdxPostazione, string Original_DescPostazione, string Original_IdxMacchina, global::System.Nullable Original_MatrOperatore, global::System.Nullable Original_InputUntil, string Original_LastBarcode) { + if ((Original_IdxPostazione == null)) { + throw new global::System.ArgumentNullException("Original_IdxPostazione"); + } + else { + this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_IdxPostazione)); + } + if ((Original_DescPostazione == null)) { + this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_DescPostazione)); + } + if ((Original_IdxMacchina == null)) { + throw new global::System.ArgumentNullException("Original_IdxMacchina"); + } + else { + this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_IdxMacchina)); + } + if ((Original_MatrOperatore.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[5].Value = ((int)(Original_MatrOperatore.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value; + } + if ((Original_InputUntil.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[7].Value = ((System.DateTime)(Original_InputUntil.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value; + } + if ((Original_LastBarcode == null)) { + this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[9].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[9].Value = ((string)(Original_LastBarcode)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; + if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.DeleteCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.DeleteCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] + public virtual int Insert(string IdxPostazione, string DescPostazione, string IdxMacchina, global::System.Nullable MatrOperatore, global::System.Nullable InputUntil, string LastBarcode) { + if ((IdxPostazione == null)) { + throw new global::System.ArgumentNullException("IdxPostazione"); + } + else { + this.Adapter.InsertCommand.Parameters[0].Value = ((string)(IdxPostazione)); + } + if ((DescPostazione == null)) { + this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[1].Value = ((string)(DescPostazione)); + } + if ((IdxMacchina == null)) { + throw new global::System.ArgumentNullException("IdxMacchina"); + } + else { + this.Adapter.InsertCommand.Parameters[2].Value = ((string)(IdxMacchina)); + } + if ((MatrOperatore.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[3].Value = ((int)(MatrOperatore.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value; + } + if ((InputUntil.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[4].Value = ((System.DateTime)(InputUntil.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value; + } + if ((LastBarcode == null)) { + this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[5].Value = ((string)(LastBarcode)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; + if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.InsertCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.InsertCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(string IdxPostazione, string DescPostazione, string IdxMacchina, global::System.Nullable MatrOperatore, global::System.Nullable InputUntil, string LastBarcode, string Original_IdxPostazione, string Original_DescPostazione, string Original_IdxMacchina, global::System.Nullable Original_MatrOperatore, global::System.Nullable Original_InputUntil, string Original_LastBarcode) { + if ((IdxPostazione == null)) { + throw new global::System.ArgumentNullException("IdxPostazione"); + } + else { + this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(IdxPostazione)); + } + if ((DescPostazione == null)) { + this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(DescPostazione)); + } + if ((IdxMacchina == null)) { + throw new global::System.ArgumentNullException("IdxMacchina"); + } + else { + this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(IdxMacchina)); + } + if ((MatrOperatore.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(MatrOperatore.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value; + } + if ((InputUntil.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[4].Value = ((System.DateTime)(InputUntil.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value; + } + if ((LastBarcode == null)) { + this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(LastBarcode)); + } + if ((Original_IdxPostazione == null)) { + throw new global::System.ArgumentNullException("Original_IdxPostazione"); + } + else { + this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_IdxPostazione)); + } + if ((Original_DescPostazione == null)) { + this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_DescPostazione)); + } + if ((Original_IdxMacchina == null)) { + throw new global::System.ArgumentNullException("Original_IdxMacchina"); + } + else { + this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_IdxMacchina)); + } + if ((Original_MatrOperatore.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(Original_MatrOperatore.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value; + } + if ((Original_InputUntil.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[13].Value = ((System.DateTime)(Original_InputUntil.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value; + } + if ((Original_LastBarcode == null)) { + this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_LastBarcode)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; + if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.UpdateCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.UpdateCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(string DescPostazione, string IdxMacchina, global::System.Nullable MatrOperatore, global::System.Nullable InputUntil, string LastBarcode, string Original_IdxPostazione, string Original_DescPostazione, string Original_IdxMacchina, global::System.Nullable Original_MatrOperatore, global::System.Nullable Original_InputUntil, string Original_LastBarcode) { + return this.Update(Original_IdxPostazione, DescPostazione, IdxMacchina, MatrOperatore, InputUntil, LastBarcode, Original_IdxPostazione, Original_DescPostazione, Original_IdxMacchina, Original_MatrOperatore, Original_InputUntil, Original_LastBarcode); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int updateMacchina(string idxPostazione, string idxMacchina) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[2]; + if ((idxPostazione == null)) { + command.Parameters[1].Value = global::System.DBNull.Value; + } + else { + command.Parameters[1].Value = ((string)(idxPostazione)); + } + if ((idxMacchina == null)) { + command.Parameters[2].Value = global::System.DBNull.Value; + } + else { + command.Parameters[2].Value = ((string)(idxMacchina)); + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int updateOperatoreAdmin(string idxPostazione, global::System.Nullable matrOper, global::System.Nullable minutiModifica) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3]; + if ((idxPostazione == null)) { + command.Parameters[1].Value = global::System.DBNull.Value; + } + else { + command.Parameters[1].Value = ((string)(idxPostazione)); + } + if ((matrOper.HasValue == true)) { + command.Parameters[2].Value = ((int)(matrOper.Value)); + } + else { + command.Parameters[2].Value = global::System.DBNull.Value; + } + if ((minutiModifica.HasValue == true)) { + command.Parameters[3].Value = ((int)(minutiModifica.Value)); + } + else { + command.Parameters[3].Value = global::System.DBNull.Value; + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class stp_PzProd_getByMacchinaTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlTransaction _transaction; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public stp_PzProd_getByMacchinaTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlTransaction Transaction { + get { + return this._transaction; + } + set { + this._transaction = value; + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + this.CommandCollection[i].Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.DeleteCommand != null))) { + this.Adapter.DeleteCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.InsertCommand != null))) { + this.Adapter.InsertCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.UpdateCommand != null))) { + this.Adapter.UpdateCommand.Transaction = this._transaction; + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "stp_PzProd_getByMacchina"; + tableMapping.ColumnMappings.Add("idxMacchina", "idxMacchina"); + tableMapping.ColumnMappings.Add("pezziNonConfermati", "pezziNonConfermati"); + tableMapping.ColumnMappings.Add("DataFrom", "DataFrom"); + tableMapping.ColumnMappings.Add("DataTo", "DataTo"); + this._adapter.TableMappings.Add(tableMapping); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[4]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "dbo.stp_PzProd_getByMacchina"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "dbo.stp_PzProd_getByMacchinaPeriodo"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@startProd", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@endProd", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[2].Connection = this.Connection; + this._commandCollection[2].CommandText = "dbo.stp_ConfermaProduzCompleta"; + this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrApp", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataFrom", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataTo", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pezziConf", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TipoConf", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataOraApp", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TestConferma", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[3].Connection = this.Connection; + this._commandCollection[3].CommandText = "dbo.stp_DatiConf_conferma"; + this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxODL", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrApp", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataFrom", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataTo", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@turno", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxStato", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pezziConf", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_ProdTempi.stp_PzProd_getByMacchinaDataTable dataTable, string idxMacchina) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((idxMacchina == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(idxMacchina)); + } + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_ProdTempi.stp_PzProd_getByMacchinaDataTable GetData(string idxMacchina) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((idxMacchina == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(idxMacchina)); + } + DS_ProdTempi.stp_PzProd_getByMacchinaDataTable dataTable = new DS_ProdTempi.stp_PzProd_getByMacchinaDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_ProdTempi.stp_PzProd_getByMacchinaDataTable getByMacchinaPeriodo(string idxMacchina, global::System.Nullable startProd, global::System.Nullable endProd) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((idxMacchina == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(idxMacchina)); + } + if ((startProd.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(startProd.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((endProd.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[3].Value = ((System.DateTime)(endProd.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; + } + DS_ProdTempi.stp_PzProd_getByMacchinaDataTable dataTable = new DS_ProdTempi.stp_PzProd_getByMacchinaDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int stp_ConfermaProduzCompleta(string idxMacchina, global::System.Nullable MatrApp, global::System.Nullable dataFrom, global::System.Nullable dataTo, global::System.Nullable pezziConf, global::System.Nullable TipoConf, global::System.Nullable DataOraApp, global::System.Nullable TestConferma) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[2]; + if ((idxMacchina == null)) { + command.Parameters[1].Value = global::System.DBNull.Value; + } + else { + command.Parameters[1].Value = ((string)(idxMacchina)); + } + if ((MatrApp.HasValue == true)) { + command.Parameters[2].Value = ((int)(MatrApp.Value)); + } + else { + command.Parameters[2].Value = global::System.DBNull.Value; + } + if ((dataFrom.HasValue == true)) { + command.Parameters[3].Value = ((System.DateTime)(dataFrom.Value)); + } + else { + command.Parameters[3].Value = global::System.DBNull.Value; + } + if ((dataTo.HasValue == true)) { + command.Parameters[4].Value = ((System.DateTime)(dataTo.Value)); + } + else { + command.Parameters[4].Value = global::System.DBNull.Value; + } + if ((pezziConf.HasValue == true)) { + command.Parameters[5].Value = ((int)(pezziConf.Value)); + } + else { + command.Parameters[5].Value = global::System.DBNull.Value; + } + if ((TipoConf.HasValue == true)) { + command.Parameters[6].Value = ((int)(TipoConf.Value)); + } + else { + command.Parameters[6].Value = global::System.DBNull.Value; + } + if ((DataOraApp.HasValue == true)) { + command.Parameters[7].Value = ((System.DateTime)(DataOraApp.Value)); + } + else { + command.Parameters[7].Value = global::System.DBNull.Value; + } + if ((TestConferma.HasValue == true)) { + command.Parameters[8].Value = ((bool)(TestConferma.Value)); + } + else { + command.Parameters[8].Value = global::System.DBNull.Value; + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int stp_DatiConf_conferma(global::System.Nullable idxODL, string idxMacchina, global::System.Nullable MatrApp, global::System.Nullable dataFrom, global::System.Nullable dataTo, global::System.Nullable turno, global::System.Nullable idxStato, global::System.Nullable pezziConf) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3]; + if ((idxODL.HasValue == true)) { + command.Parameters[1].Value = ((int)(idxODL.Value)); + } + else { + command.Parameters[1].Value = global::System.DBNull.Value; + } + if ((idxMacchina == null)) { + command.Parameters[2].Value = global::System.DBNull.Value; + } + else { + command.Parameters[2].Value = ((string)(idxMacchina)); + } + if ((MatrApp.HasValue == true)) { + command.Parameters[3].Value = ((int)(MatrApp.Value)); + } + else { + command.Parameters[3].Value = global::System.DBNull.Value; + } + if ((dataFrom.HasValue == true)) { + command.Parameters[4].Value = ((System.DateTime)(dataFrom.Value)); + } + else { + command.Parameters[4].Value = global::System.DBNull.Value; + } + if ((dataTo.HasValue == true)) { + command.Parameters[5].Value = ((System.DateTime)(dataTo.Value)); + } + else { + command.Parameters[5].Value = global::System.DBNull.Value; + } + if ((turno.HasValue == true)) { + command.Parameters[6].Value = ((int)(turno.Value)); + } + else { + command.Parameters[6].Value = global::System.DBNull.Value; + } + if ((idxStato.HasValue == true)) { + command.Parameters[7].Value = ((int)(idxStato.Value)); + } + else { + command.Parameters[7].Value = global::System.DBNull.Value; + } + if ((pezziConf.HasValue == true)) { + command.Parameters[8].Value = ((int)(pezziConf.Value)); + } + else { + command.Parameters[8].Value = global::System.DBNull.Value; + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class DatiConfermatiTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlTransaction _transaction; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DatiConfermatiTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlTransaction Transaction { + get { + return this._transaction; + } + set { + this._transaction = value; + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + this.CommandCollection[i].Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.DeleteCommand != null))) { + this.Adapter.DeleteCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.InsertCommand != null))) { + this.Adapter.InsertCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.UpdateCommand != null))) { + this.Adapter.UpdateCommand.Transaction = this._transaction; + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "DatiConfermati"; + tableMapping.ColumnMappings.Add("IdxConferma", "IdxConferma"); + tableMapping.ColumnMappings.Add("IdxODL", "IdxODL"); + tableMapping.ColumnMappings.Add("DataOraApp", "DataOraApp"); + tableMapping.ColumnMappings.Add("DataRif", "DataRif"); + tableMapping.ColumnMappings.Add("TurnoRif", "TurnoRif"); + tableMapping.ColumnMappings.Add("CodArticolo", "CodArticolo"); + tableMapping.ColumnMappings.Add("IdxMacchina", "IdxMacchina"); + tableMapping.ColumnMappings.Add("TCAssegnato", "TCAssegnato"); + tableMapping.ColumnMappings.Add("MatrOpr", "MatrOpr"); + tableMapping.ColumnMappings.Add("MatrApp", "MatrApp"); + tableMapping.ColumnMappings.Add("DataOraFrom", "DataOraFrom"); + tableMapping.ColumnMappings.Add("DataOraTo", "DataOraTo"); + tableMapping.ColumnMappings.Add("IdxStato", "IdxStato"); + tableMapping.ColumnMappings.Add("TotPzProd", "TotPzProd"); + tableMapping.ColumnMappings.Add("TempoProdotto", "TempoProdotto"); + tableMapping.ColumnMappings.Add("TempoCron", "TempoCron"); + tableMapping.ColumnMappings.Add("TempoND", "TempoND"); + tableMapping.ColumnMappings.Add("TempoApertura", "TempoApertura"); + tableMapping.ColumnMappings.Add("TempoOFF", "TempoOFF"); + tableMapping.ColumnMappings.Add("TempoON", "TempoON"); + tableMapping.ColumnMappings.Add("TempoFermoOn", "TempoFermoOn"); + tableMapping.ColumnMappings.Add("TempoAuto", "TempoAuto"); + tableMapping.ColumnMappings.Add("TempoFermoAuto", "TempoFermoAuto"); + tableMapping.ColumnMappings.Add("TempoRun", "TempoRun"); + tableMapping.ColumnMappings.Add("TotPzFermo", "TotPzFermo"); + this._adapter.TableMappings.Add(tableMapping); + this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.DeleteCommand.Connection = this.Connection; + this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[DatiConfermati] WHERE (([IdxConferma] = @Original_IdxConferma)" + + " AND ([IdxODL] = @Original_IdxODL) AND ([DataOraApp] = @Original_DataOraApp) AND" + + " ([DataRif] = @Original_DataRif) AND ((@IsNull_TurnoRif = 1 AND [TurnoRif] IS NU" + + "LL) OR ([TurnoRif] = @Original_TurnoRif)) AND ((@IsNull_CodArticolo = 1 AND [Cod" + + "Articolo] IS NULL) OR ([CodArticolo] = @Original_CodArticolo)) AND ([IdxMacchina" + + "] = @Original_IdxMacchina) AND ((@IsNull_TCAssegnato = 1 AND [TCAssegnato] IS NU" + + "LL) OR ([TCAssegnato] = @Original_TCAssegnato)) AND ((@IsNull_MatrOpr = 1 AND [M" + + "atrOpr] IS NULL) OR ([MatrOpr] = @Original_MatrOpr)) AND ([MatrApp] = @Original_" + + "MatrApp) AND ((@IsNull_DataOraFrom = 1 AND [DataOraFrom] IS NULL) OR ([DataOraFr" + + "om] = @Original_DataOraFrom)) AND ((@IsNull_DataOraTo = 1 AND [DataOraTo] IS NUL" + + "L) OR ([DataOraTo] = @Original_DataOraTo)) AND ([IdxStato] = @Original_IdxStato)" + + " AND ((@IsNull_TotPzProd = 1 AND [TotPzProd] IS NULL) OR ([TotPzProd] = @Origina" + + "l_TotPzProd)) AND ((@IsNull_TempoProdotto = 1 AND [TempoProdotto] IS NULL) OR ([" + + "TempoProdotto] = @Original_TempoProdotto)) AND ((@IsNull_TempoCron = 1 AND [Temp" + + "oCron] IS NULL) OR ([TempoCron] = @Original_TempoCron)) AND ((@IsNull_TempoND = " + + "1 AND [TempoND] IS NULL) OR ([TempoND] = @Original_TempoND)) AND ((@IsNull_Tempo" + + "Apertura = 1 AND [TempoApertura] IS NULL) OR ([TempoApertura] = @Original_TempoA" + + "pertura)) AND ((@IsNull_TempoOFF = 1 AND [TempoOFF] IS NULL) OR ([TempoOFF] = @O" + + "riginal_TempoOFF)) AND ((@IsNull_TempoON = 1 AND [TempoON] IS NULL) OR ([TempoON" + + "] = @Original_TempoON)) AND ((@IsNull_TempoFermoOn = 1 AND [TempoFermoOn] IS NUL" + + "L) OR ([TempoFermoOn] = @Original_TempoFermoOn)) AND ((@IsNull_TempoAuto = 1 AND" + + " [TempoAuto] IS NULL) OR ([TempoAuto] = @Original_TempoAuto)) AND ((@IsNull_Temp" + + "oFermoAuto = 1 AND [TempoFermoAuto] IS NULL) OR ([TempoFermoAuto] = @Original_Te" + + "mpoFermoAuto)) AND ((@IsNull_TempoRun = 1 AND [TempoRun] IS NULL) OR ([TempoRun]" + + " = @Original_TempoRun)) AND ((@IsNull_TotPzFermo = 1 AND [TotPzFermo] IS NULL) O" + + "R ([TotPzFermo] = @Original_TotPzFermo)))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxConferma", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxConferma", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxODL", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxODL", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataOraApp", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraApp", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataRif", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataRif", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TurnoRif", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TurnoRif", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TurnoRif", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TurnoRif", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodArticolo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TCAssegnato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TCAssegnato", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TCAssegnato", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TCAssegnato", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_MatrOpr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrOpr", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MatrOpr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrOpr", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MatrApp", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrApp", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DataOraFrom", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraFrom", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataOraFrom", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraFrom", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DataOraTo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraTo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataOraTo", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraTo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TotPzProd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TotPzProd", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TotPzProd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TotPzProd", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TempoProdotto", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TempoProdotto", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TempoProdotto", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TempoProdotto", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TempoCron", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TempoCron", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TempoCron", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TempoCron", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TempoND", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TempoND", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TempoND", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TempoND", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TempoApertura", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TempoApertura", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TempoApertura", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TempoApertura", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TempoOFF", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TempoOFF", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TempoOFF", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TempoOFF", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TempoON", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TempoON", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TempoON", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TempoON", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TempoFermoOn", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TempoFermoOn", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TempoFermoOn", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TempoFermoOn", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TempoAuto", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TempoAuto", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TempoAuto", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TempoAuto", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TempoFermoAuto", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TempoFermoAuto", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TempoFermoAuto", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TempoFermoAuto", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TempoRun", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TempoRun", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TempoRun", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TempoRun", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TotPzFermo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TotPzFermo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TotPzFermo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TotPzFermo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.InsertCommand.Connection = this.Connection; + this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[DatiConfermati] ([IdxODL], [DataOraApp], [DataRif], [TurnoRif], [CodArticolo], [IdxMacchina], [TCAssegnato], [MatrOpr], [MatrApp], [DataOraFrom], [DataOraTo], [IdxStato], [TotPzProd], [TempoProdotto], [TempoCron], [TempoND], [TempoApertura], [TempoOFF], [TempoON], [TempoFermoOn], [TempoAuto], [TempoFermoAuto], [TempoRun], [TotPzFermo]) VALUES (@IdxODL, @DataOraApp, @DataRif, @TurnoRif, @CodArticolo, @IdxMacchina, @TCAssegnato, @MatrOpr, @MatrApp, @DataOraFrom, @DataOraTo, @IdxStato, @TotPzProd, @TempoProdotto, @TempoCron, @TempoND, @TempoApertura, @TempoOFF, @TempoON, @TempoFermoOn, @TempoAuto, @TempoFermoAuto, @TempoRun, @TotPzFermo); +SELECT IdxConferma, IdxODL, DataOraApp, DataRif, TurnoRif, CodArticolo, IdxMacchina, TCAssegnato, MatrOpr, MatrApp, DataOraFrom, DataOraTo, IdxStato, TotPzProd, TempoProdotto, TempoCron, TempoND, TempoApertura, TempoOFF, TempoON, TempoFermoOn, TempoAuto, TempoFermoAuto, TempoRun, TotPzFermo FROM DatiConfermati WHERE (IdxConferma = SCOPE_IDENTITY())"; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxODL", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxODL", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataOraApp", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraApp", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataRif", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataRif", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TurnoRif", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TurnoRif", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCAssegnato", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TCAssegnato", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrOpr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrOpr", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrApp", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrApp", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataOraFrom", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraFrom", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataOraTo", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraTo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TotPzProd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TotPzProd", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TempoProdotto", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TempoProdotto", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TempoCron", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TempoCron", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TempoND", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TempoND", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TempoApertura", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TempoApertura", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TempoOFF", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TempoOFF", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TempoON", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TempoON", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TempoFermoOn", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TempoFermoOn", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TempoAuto", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TempoAuto", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TempoFermoAuto", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TempoFermoAuto", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TempoRun", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TempoRun", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TotPzFermo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TotPzFermo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.UpdateCommand.Connection = this.Connection; + this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[DatiConfermati] SET [IdxODL] = @IdxODL, [DataOraApp] = @DataOraApp," + + " [DataRif] = @DataRif, [TurnoRif] = @TurnoRif, [CodArticolo] = @CodArticolo, [Id" + + "xMacchina] = @IdxMacchina, [TCAssegnato] = @TCAssegnato, [MatrOpr] = @MatrOpr, [" + + "MatrApp] = @MatrApp, [DataOraFrom] = @DataOraFrom, [DataOraTo] = @DataOraTo, [Id" + + "xStato] = @IdxStato, [TotPzProd] = @TotPzProd, [TempoProdotto] = @TempoProdotto," + + " [TempoCron] = @TempoCron, [TempoND] = @TempoND, [TempoApertura] = @TempoApertur" + + "a, [TempoOFF] = @TempoOFF, [TempoON] = @TempoON, [TempoFermoOn] = @TempoFermoOn," + + " [TempoAuto] = @TempoAuto, [TempoFermoAuto] = @TempoFermoAuto, [TempoRun] = @Tem" + + "poRun, [TotPzFermo] = @TotPzFermo WHERE (([IdxConferma] = @Original_IdxConferma)" + + " AND ([IdxODL] = @Original_IdxODL) AND ([DataOraApp] = @Original_DataOraApp) AND" + + " ([DataRif] = @Original_DataRif) AND ((@IsNull_TurnoRif = 1 AND [TurnoRif] IS NU" + + "LL) OR ([TurnoRif] = @Original_TurnoRif)) AND ((@IsNull_CodArticolo = 1 AND [Cod" + + "Articolo] IS NULL) OR ([CodArticolo] = @Original_CodArticolo)) AND ([IdxMacchina" + + "] = @Original_IdxMacchina) AND ((@IsNull_TCAssegnato = 1 AND [TCAssegnato] IS NU" + + "LL) OR ([TCAssegnato] = @Original_TCAssegnato)) AND ((@IsNull_MatrOpr = 1 AND [M" + + "atrOpr] IS NULL) OR ([MatrOpr] = @Original_MatrOpr)) AND ([MatrApp] = @Original_" + + "MatrApp) AND ((@IsNull_DataOraFrom = 1 AND [DataOraFrom] IS NULL) OR ([DataOraFr" + + "om] = @Original_DataOraFrom)) AND ((@IsNull_DataOraTo = 1 AND [DataOraTo] IS NUL" + + "L) OR ([DataOraTo] = @Original_DataOraTo)) AND ([IdxStato] = @Original_IdxStato)" + + " AND ((@IsNull_TotPzProd = 1 AND [TotPzProd] IS NULL) OR ([TotPzProd] = @Origina" + + "l_TotPzProd)) AND ((@IsNull_TempoProdotto = 1 AND [TempoProdotto] IS NULL) OR ([" + + "TempoProdotto] = @Original_TempoProdotto)) AND ((@IsNull_TempoCron = 1 AND [Temp" + + "oCron] IS NULL) OR ([TempoCron] = @Original_TempoCron)) AND ((@IsNull_TempoND = " + + "1 AND [TempoND] IS NULL) OR ([TempoND] = @Original_TempoND)) AND ((@IsNull_Tempo" + + "Apertura = 1 AND [TempoApertura] IS NULL) OR ([TempoApertura] = @Original_TempoA" + + "pertura)) AND ((@IsNull_TempoOFF = 1 AND [TempoOFF] IS NULL) OR ([TempoOFF] = @O" + + "riginal_TempoOFF)) AND ((@IsNull_TempoON = 1 AND [TempoON] IS NULL) OR ([TempoON" + + "] = @Original_TempoON)) AND ((@IsNull_TempoFermoOn = 1 AND [TempoFermoOn] IS NUL" + + "L) OR ([TempoFermoOn] = @Original_TempoFermoOn)) AND ((@IsNull_TempoAuto = 1 AND" + + " [TempoAuto] IS NULL) OR ([TempoAuto] = @Original_TempoAuto)) AND ((@IsNull_Temp" + + "oFermoAuto = 1 AND [TempoFermoAuto] IS NULL) OR ([TempoFermoAuto] = @Original_Te" + + "mpoFermoAuto)) AND ((@IsNull_TempoRun = 1 AND [TempoRun] IS NULL) OR ([TempoRun]" + + " = @Original_TempoRun)) AND ((@IsNull_TotPzFermo = 1 AND [TotPzFermo] IS NULL) O" + + "R ([TotPzFermo] = @Original_TotPzFermo)));\r\nSELECT IdxConferma, IdxODL, DataOraA" + + "pp, DataRif, TurnoRif, CodArticolo, IdxMacchina, TCAssegnato, MatrOpr, MatrApp, " + + "DataOraFrom, DataOraTo, IdxStato, TotPzProd, TempoProdotto, TempoCron, TempoND, " + + "TempoApertura, TempoOFF, TempoON, TempoFermoOn, TempoAuto, TempoFermoAuto, Tempo" + + "Run, TotPzFermo FROM DatiConfermati WHERE (IdxConferma = @IdxConferma)"; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxODL", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxODL", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataOraApp", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraApp", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataRif", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataRif", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TurnoRif", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TurnoRif", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCAssegnato", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TCAssegnato", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrOpr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrOpr", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrApp", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrApp", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataOraFrom", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraFrom", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataOraTo", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraTo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TotPzProd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TotPzProd", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TempoProdotto", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TempoProdotto", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TempoCron", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TempoCron", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TempoND", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TempoND", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TempoApertura", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TempoApertura", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TempoOFF", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TempoOFF", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TempoON", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TempoON", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TempoFermoOn", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TempoFermoOn", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TempoAuto", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TempoAuto", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TempoFermoAuto", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TempoFermoAuto", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TempoRun", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TempoRun", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TotPzFermo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TotPzFermo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxConferma", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxConferma", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxODL", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxODL", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataOraApp", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraApp", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataRif", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataRif", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TurnoRif", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TurnoRif", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TurnoRif", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TurnoRif", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodArticolo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TCAssegnato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TCAssegnato", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TCAssegnato", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TCAssegnato", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_MatrOpr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrOpr", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MatrOpr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrOpr", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MatrApp", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrApp", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DataOraFrom", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraFrom", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataOraFrom", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraFrom", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DataOraTo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraTo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataOraTo", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraTo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TotPzProd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TotPzProd", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TotPzProd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TotPzProd", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TempoProdotto", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TempoProdotto", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TempoProdotto", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TempoProdotto", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TempoCron", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TempoCron", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TempoCron", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TempoCron", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TempoND", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TempoND", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TempoND", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TempoND", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TempoApertura", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TempoApertura", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TempoApertura", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TempoApertura", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TempoOFF", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TempoOFF", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TempoOFF", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TempoOFF", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TempoON", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TempoON", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TempoON", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TempoON", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TempoFermoOn", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TempoFermoOn", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TempoFermoOn", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TempoFermoOn", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TempoAuto", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TempoAuto", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TempoAuto", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TempoAuto", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TempoFermoAuto", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TempoFermoAuto", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TempoFermoAuto", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TempoFermoAuto", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TempoRun", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TempoRun", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TempoRun", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TempoRun", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TotPzFermo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TotPzFermo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TotPzFermo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TotPzFermo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxConferma", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IdxConferma", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[3]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = @"SELECT IdxConferma, IdxODL, DataOraApp, DataRif, TurnoRif, CodArticolo, IdxMacchina, TCAssegnato, MatrOpr, MatrApp, DataOraFrom, DataOraTo, IdxStato, TotPzProd, TempoProdotto, TempoCron, TempoND, TempoApertura, TempoOFF, TempoON, TempoFermoOn, TempoAuto, TempoFermoAuto, TempoRun, TotPzFermo FROM dbo.DatiConfermati"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "dbo.stp_DatiConf_getByMacchPeriodo"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataFrom", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataTo", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[2].Connection = this.Connection; + this._commandCollection[2].CommandText = @"SELECT TOP (1) IdxConferma, IdxODL, DataOraApp, DataRif, TurnoRif, CodArticolo IdxMacchina, TCAssegnato, MatrOpr, MatrApp, DataOraFrom, DataOraTo, IdxStato, + TotPzProd, TempoProdotto, TempoCron, TempoND, TempoApertura, TempoOFF, TempoON, TempoFermoOn, TempoAuto, TempoFermoAuto, TempoRun, + TotPzFermo +FROM DatiConfermati +WHERE (IdxMacchina = @IdxMacchina)"; + this._commandCollection[2].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_ProdTempi.DatiConfermatiDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_ProdTempi.DatiConfermatiDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_ProdTempi.DatiConfermatiDataTable dataTable = new DS_ProdTempi.DatiConfermatiDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_ProdTempi.DatiConfermatiDataTable getByMacchPeriodo(string idxMacchina, global::System.Nullable dataFrom, global::System.Nullable dataTo) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((idxMacchina == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(idxMacchina)); + } + if ((dataFrom.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(dataFrom.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((dataTo.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[3].Value = ((System.DateTime)(dataTo.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; + } + DS_ProdTempi.DatiConfermatiDataTable dataTable = new DS_ProdTempi.DatiConfermatiDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_ProdTempi.DatiConfermatiDataTable getTop1ByIdxMacchina(string IdxMacchina) { + this.Adapter.SelectCommand = this.CommandCollection[2]; + if ((IdxMacchina == null)) { + throw new global::System.ArgumentNullException("IdxMacchina"); + } + else { + this.Adapter.SelectCommand.Parameters[0].Value = ((string)(IdxMacchina)); + } + DS_ProdTempi.DatiConfermatiDataTable dataTable = new DS_ProdTempi.DatiConfermatiDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_ProdTempi.DatiConfermatiDataTable dataTable) { + return this.Adapter.Update(dataTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_ProdTempi dataSet) { + return this.Adapter.Update(dataSet, "DatiConfermati"); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow dataRow) { + return this.Adapter.Update(new global::System.Data.DataRow[] { + dataRow}); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow[] dataRows) { + return this.Adapter.Update(dataRows); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] + public virtual int Delete( + int Original_IdxConferma, + int Original_IdxODL, + System.DateTime Original_DataOraApp, + System.DateTime Original_DataRif, + global::System.Nullable Original_TurnoRif, + string Original_CodArticolo, + string Original_IdxMacchina, + global::System.Nullable Original_TCAssegnato, + global::System.Nullable Original_MatrOpr, + int Original_MatrApp, + global::System.Nullable Original_DataOraFrom, + global::System.Nullable Original_DataOraTo, + int Original_IdxStato, + global::System.Nullable Original_TotPzProd, + global::System.Nullable Original_TempoProdotto, + global::System.Nullable Original_TempoCron, + global::System.Nullable Original_TempoND, + global::System.Nullable Original_TempoApertura, + global::System.Nullable Original_TempoOFF, + global::System.Nullable Original_TempoON, + global::System.Nullable Original_TempoFermoOn, + global::System.Nullable Original_TempoAuto, + global::System.Nullable Original_TempoFermoAuto, + global::System.Nullable Original_TempoRun, + global::System.Nullable Original_TotPzFermo) { + this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdxConferma)); + this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_IdxODL)); + this.Adapter.DeleteCommand.Parameters[2].Value = ((System.DateTime)(Original_DataOraApp)); + this.Adapter.DeleteCommand.Parameters[3].Value = ((System.DateTime)(Original_DataRif)); + if ((Original_TurnoRif.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[5].Value = ((int)(Original_TurnoRif.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value; + } + if ((Original_CodArticolo == null)) { + this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[7].Value = ((string)(Original_CodArticolo)); + } + if ((Original_IdxMacchina == null)) { + throw new global::System.ArgumentNullException("Original_IdxMacchina"); + } + else { + this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_IdxMacchina)); + } + if ((Original_TCAssegnato.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[10].Value = ((decimal)(Original_TCAssegnato.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value; + } + if ((Original_MatrOpr.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[12].Value = ((int)(Original_MatrOpr.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value; + } + this.Adapter.DeleteCommand.Parameters[13].Value = ((int)(Original_MatrApp)); + if ((Original_DataOraFrom.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[14].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[15].Value = ((System.DateTime)(Original_DataOraFrom.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[14].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[15].Value = global::System.DBNull.Value; + } + if ((Original_DataOraTo.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[16].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[17].Value = ((System.DateTime)(Original_DataOraTo.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[16].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[17].Value = global::System.DBNull.Value; + } + this.Adapter.DeleteCommand.Parameters[18].Value = ((int)(Original_IdxStato)); + if ((Original_TotPzProd.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[20].Value = ((int)(Original_TotPzProd.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[20].Value = global::System.DBNull.Value; + } + if ((Original_TempoProdotto.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[21].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[22].Value = ((decimal)(Original_TempoProdotto.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[21].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[22].Value = global::System.DBNull.Value; + } + if ((Original_TempoCron.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[23].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[24].Value = ((decimal)(Original_TempoCron.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[23].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[24].Value = global::System.DBNull.Value; + } + if ((Original_TempoND.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[25].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[26].Value = ((decimal)(Original_TempoND.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[25].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[26].Value = global::System.DBNull.Value; + } + if ((Original_TempoApertura.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[27].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[28].Value = ((decimal)(Original_TempoApertura.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[27].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[28].Value = global::System.DBNull.Value; + } + if ((Original_TempoOFF.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[29].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[30].Value = ((decimal)(Original_TempoOFF.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[29].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[30].Value = global::System.DBNull.Value; + } + if ((Original_TempoON.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[31].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[32].Value = ((decimal)(Original_TempoON.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[31].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[32].Value = global::System.DBNull.Value; + } + if ((Original_TempoFermoOn.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[33].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[34].Value = ((decimal)(Original_TempoFermoOn.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[33].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[34].Value = global::System.DBNull.Value; + } + if ((Original_TempoAuto.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[35].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[36].Value = ((decimal)(Original_TempoAuto.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[35].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[36].Value = global::System.DBNull.Value; + } + if ((Original_TempoFermoAuto.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[37].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[38].Value = ((decimal)(Original_TempoFermoAuto.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[37].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[38].Value = global::System.DBNull.Value; + } + if ((Original_TempoRun.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[39].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[40].Value = ((decimal)(Original_TempoRun.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[39].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[40].Value = global::System.DBNull.Value; + } + if ((Original_TotPzFermo.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[41].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[42].Value = ((int)(Original_TotPzFermo.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[41].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[42].Value = global::System.DBNull.Value; + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; + if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.DeleteCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.DeleteCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] + public virtual int Insert( + int IdxODL, + System.DateTime DataOraApp, + System.DateTime DataRif, + global::System.Nullable TurnoRif, + string CodArticolo, + string IdxMacchina, + global::System.Nullable TCAssegnato, + global::System.Nullable MatrOpr, + int MatrApp, + global::System.Nullable DataOraFrom, + global::System.Nullable DataOraTo, + int IdxStato, + global::System.Nullable TotPzProd, + global::System.Nullable TempoProdotto, + global::System.Nullable TempoCron, + global::System.Nullable TempoND, + global::System.Nullable TempoApertura, + global::System.Nullable TempoOFF, + global::System.Nullable TempoON, + global::System.Nullable TempoFermoOn, + global::System.Nullable TempoAuto, + global::System.Nullable TempoFermoAuto, + global::System.Nullable TempoRun, + global::System.Nullable TotPzFermo) { + this.Adapter.InsertCommand.Parameters[0].Value = ((int)(IdxODL)); + this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(DataOraApp)); + this.Adapter.InsertCommand.Parameters[2].Value = ((System.DateTime)(DataRif)); + if ((TurnoRif.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[3].Value = ((int)(TurnoRif.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value; + } + if ((CodArticolo == null)) { + this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[4].Value = ((string)(CodArticolo)); + } + if ((IdxMacchina == null)) { + throw new global::System.ArgumentNullException("IdxMacchina"); + } + else { + this.Adapter.InsertCommand.Parameters[5].Value = ((string)(IdxMacchina)); + } + if ((TCAssegnato.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[6].Value = ((decimal)(TCAssegnato.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value; + } + if ((MatrOpr.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[7].Value = ((int)(MatrOpr.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value; + } + this.Adapter.InsertCommand.Parameters[8].Value = ((int)(MatrApp)); + if ((DataOraFrom.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[9].Value = ((System.DateTime)(DataOraFrom.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value; + } + if ((DataOraTo.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[10].Value = ((System.DateTime)(DataOraTo.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value; + } + this.Adapter.InsertCommand.Parameters[11].Value = ((int)(IdxStato)); + if ((TotPzProd.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[12].Value = ((int)(TotPzProd.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[12].Value = global::System.DBNull.Value; + } + if ((TempoProdotto.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[13].Value = ((decimal)(TempoProdotto.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[13].Value = global::System.DBNull.Value; + } + if ((TempoCron.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[14].Value = ((decimal)(TempoCron.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[14].Value = global::System.DBNull.Value; + } + if ((TempoND.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[15].Value = ((decimal)(TempoND.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[15].Value = global::System.DBNull.Value; + } + if ((TempoApertura.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[16].Value = ((decimal)(TempoApertura.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[16].Value = global::System.DBNull.Value; + } + if ((TempoOFF.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[17].Value = ((decimal)(TempoOFF.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[17].Value = global::System.DBNull.Value; + } + if ((TempoON.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[18].Value = ((decimal)(TempoON.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[18].Value = global::System.DBNull.Value; + } + if ((TempoFermoOn.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[19].Value = ((decimal)(TempoFermoOn.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[19].Value = global::System.DBNull.Value; + } + if ((TempoAuto.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[20].Value = ((decimal)(TempoAuto.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[20].Value = global::System.DBNull.Value; + } + if ((TempoFermoAuto.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[21].Value = ((decimal)(TempoFermoAuto.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[21].Value = global::System.DBNull.Value; + } + if ((TempoRun.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[22].Value = ((decimal)(TempoRun.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[22].Value = global::System.DBNull.Value; + } + if ((TotPzFermo.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[23].Value = ((int)(TotPzFermo.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[23].Value = global::System.DBNull.Value; + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; + if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.InsertCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.InsertCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update( + int IdxODL, + System.DateTime DataOraApp, + System.DateTime DataRif, + global::System.Nullable TurnoRif, + string CodArticolo, + string IdxMacchina, + global::System.Nullable TCAssegnato, + global::System.Nullable MatrOpr, + int MatrApp, + global::System.Nullable DataOraFrom, + global::System.Nullable DataOraTo, + int IdxStato, + global::System.Nullable TotPzProd, + global::System.Nullable TempoProdotto, + global::System.Nullable TempoCron, + global::System.Nullable TempoND, + global::System.Nullable TempoApertura, + global::System.Nullable TempoOFF, + global::System.Nullable TempoON, + global::System.Nullable TempoFermoOn, + global::System.Nullable TempoAuto, + global::System.Nullable TempoFermoAuto, + global::System.Nullable TempoRun, + global::System.Nullable TotPzFermo, + int Original_IdxConferma, + int Original_IdxODL, + System.DateTime Original_DataOraApp, + System.DateTime Original_DataRif, + global::System.Nullable Original_TurnoRif, + string Original_CodArticolo, + string Original_IdxMacchina, + global::System.Nullable Original_TCAssegnato, + global::System.Nullable Original_MatrOpr, + int Original_MatrApp, + global::System.Nullable Original_DataOraFrom, + global::System.Nullable Original_DataOraTo, + int Original_IdxStato, + global::System.Nullable Original_TotPzProd, + global::System.Nullable Original_TempoProdotto, + global::System.Nullable Original_TempoCron, + global::System.Nullable Original_TempoND, + global::System.Nullable Original_TempoApertura, + global::System.Nullable Original_TempoOFF, + global::System.Nullable Original_TempoON, + global::System.Nullable Original_TempoFermoOn, + global::System.Nullable Original_TempoAuto, + global::System.Nullable Original_TempoFermoAuto, + global::System.Nullable Original_TempoRun, + global::System.Nullable Original_TotPzFermo, + int IdxConferma) { + this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(IdxODL)); + this.Adapter.UpdateCommand.Parameters[1].Value = ((System.DateTime)(DataOraApp)); + this.Adapter.UpdateCommand.Parameters[2].Value = ((System.DateTime)(DataRif)); + if ((TurnoRif.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(TurnoRif.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value; + } + if ((CodArticolo == null)) { + this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(CodArticolo)); + } + if ((IdxMacchina == null)) { + throw new global::System.ArgumentNullException("IdxMacchina"); + } + else { + this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(IdxMacchina)); + } + if ((TCAssegnato.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[6].Value = ((decimal)(TCAssegnato.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value; + } + if ((MatrOpr.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(MatrOpr.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value; + } + this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(MatrApp)); + if ((DataOraFrom.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[9].Value = ((System.DateTime)(DataOraFrom.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value; + } + if ((DataOraTo.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[10].Value = ((System.DateTime)(DataOraTo.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value; + } + this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(IdxStato)); + if ((TotPzProd.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[12].Value = ((int)(TotPzProd.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value; + } + if ((TempoProdotto.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[13].Value = ((decimal)(TempoProdotto.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value; + } + if ((TempoCron.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[14].Value = ((decimal)(TempoCron.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value; + } + if ((TempoND.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[15].Value = ((decimal)(TempoND.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value; + } + if ((TempoApertura.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[16].Value = ((decimal)(TempoApertura.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value; + } + if ((TempoOFF.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[17].Value = ((decimal)(TempoOFF.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value; + } + if ((TempoON.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[18].Value = ((decimal)(TempoON.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value; + } + if ((TempoFermoOn.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[19].Value = ((decimal)(TempoFermoOn.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value; + } + if ((TempoAuto.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[20].Value = ((decimal)(TempoAuto.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[20].Value = global::System.DBNull.Value; + } + if ((TempoFermoAuto.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[21].Value = ((decimal)(TempoFermoAuto.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value; + } + if ((TempoRun.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[22].Value = ((decimal)(TempoRun.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[22].Value = global::System.DBNull.Value; + } + if ((TotPzFermo.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[23].Value = ((int)(TotPzFermo.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value; + } + this.Adapter.UpdateCommand.Parameters[24].Value = ((int)(Original_IdxConferma)); + this.Adapter.UpdateCommand.Parameters[25].Value = ((int)(Original_IdxODL)); + this.Adapter.UpdateCommand.Parameters[26].Value = ((System.DateTime)(Original_DataOraApp)); + this.Adapter.UpdateCommand.Parameters[27].Value = ((System.DateTime)(Original_DataRif)); + if ((Original_TurnoRif.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[29].Value = ((int)(Original_TurnoRif.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[29].Value = global::System.DBNull.Value; + } + if ((Original_CodArticolo == null)) { + this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[31].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[31].Value = ((string)(Original_CodArticolo)); + } + if ((Original_IdxMacchina == null)) { + throw new global::System.ArgumentNullException("Original_IdxMacchina"); + } + else { + this.Adapter.UpdateCommand.Parameters[32].Value = ((string)(Original_IdxMacchina)); + } + if ((Original_TCAssegnato.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[33].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[34].Value = ((decimal)(Original_TCAssegnato.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[33].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[34].Value = global::System.DBNull.Value; + } + if ((Original_MatrOpr.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[35].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[36].Value = ((int)(Original_MatrOpr.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[35].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[36].Value = global::System.DBNull.Value; + } + this.Adapter.UpdateCommand.Parameters[37].Value = ((int)(Original_MatrApp)); + if ((Original_DataOraFrom.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[38].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[39].Value = ((System.DateTime)(Original_DataOraFrom.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[38].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[39].Value = global::System.DBNull.Value; + } + if ((Original_DataOraTo.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[40].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[41].Value = ((System.DateTime)(Original_DataOraTo.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[40].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[41].Value = global::System.DBNull.Value; + } + this.Adapter.UpdateCommand.Parameters[42].Value = ((int)(Original_IdxStato)); + if ((Original_TotPzProd.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[43].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[44].Value = ((int)(Original_TotPzProd.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[43].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[44].Value = global::System.DBNull.Value; + } + if ((Original_TempoProdotto.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[45].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[46].Value = ((decimal)(Original_TempoProdotto.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[45].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[46].Value = global::System.DBNull.Value; + } + if ((Original_TempoCron.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[47].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[48].Value = ((decimal)(Original_TempoCron.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[47].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[48].Value = global::System.DBNull.Value; + } + if ((Original_TempoND.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[49].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[50].Value = ((decimal)(Original_TempoND.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[49].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[50].Value = global::System.DBNull.Value; + } + if ((Original_TempoApertura.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[51].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[52].Value = ((decimal)(Original_TempoApertura.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[51].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[52].Value = global::System.DBNull.Value; + } + if ((Original_TempoOFF.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[53].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[54].Value = ((decimal)(Original_TempoOFF.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[53].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[54].Value = global::System.DBNull.Value; + } + if ((Original_TempoON.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[55].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[56].Value = ((decimal)(Original_TempoON.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[55].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[56].Value = global::System.DBNull.Value; + } + if ((Original_TempoFermoOn.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[57].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[58].Value = ((decimal)(Original_TempoFermoOn.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[57].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[58].Value = global::System.DBNull.Value; + } + if ((Original_TempoAuto.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[59].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[60].Value = ((decimal)(Original_TempoAuto.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[59].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[60].Value = global::System.DBNull.Value; + } + if ((Original_TempoFermoAuto.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[61].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[62].Value = ((decimal)(Original_TempoFermoAuto.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[61].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[62].Value = global::System.DBNull.Value; + } + if ((Original_TempoRun.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[63].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[64].Value = ((decimal)(Original_TempoRun.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[63].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[64].Value = global::System.DBNull.Value; + } + if ((Original_TotPzFermo.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[65].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[66].Value = ((int)(Original_TotPzFermo.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[65].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[66].Value = global::System.DBNull.Value; + } + this.Adapter.UpdateCommand.Parameters[67].Value = ((int)(IdxConferma)); + global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; + if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.UpdateCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.UpdateCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update( + int IdxODL, + System.DateTime DataOraApp, + System.DateTime DataRif, + global::System.Nullable TurnoRif, + string CodArticolo, + string IdxMacchina, + global::System.Nullable TCAssegnato, + global::System.Nullable MatrOpr, + int MatrApp, + global::System.Nullable DataOraFrom, + global::System.Nullable DataOraTo, + int IdxStato, + global::System.Nullable TotPzProd, + global::System.Nullable TempoProdotto, + global::System.Nullable TempoCron, + global::System.Nullable TempoND, + global::System.Nullable TempoApertura, + global::System.Nullable TempoOFF, + global::System.Nullable TempoON, + global::System.Nullable TempoFermoOn, + global::System.Nullable TempoAuto, + global::System.Nullable TempoFermoAuto, + global::System.Nullable TempoRun, + global::System.Nullable TotPzFermo, + int Original_IdxConferma, + int Original_IdxODL, + System.DateTime Original_DataOraApp, + System.DateTime Original_DataRif, + global::System.Nullable Original_TurnoRif, + string Original_CodArticolo, + string Original_IdxMacchina, + global::System.Nullable Original_TCAssegnato, + global::System.Nullable Original_MatrOpr, + int Original_MatrApp, + global::System.Nullable Original_DataOraFrom, + global::System.Nullable Original_DataOraTo, + int Original_IdxStato, + global::System.Nullable Original_TotPzProd, + global::System.Nullable Original_TempoProdotto, + global::System.Nullable Original_TempoCron, + global::System.Nullable Original_TempoND, + global::System.Nullable Original_TempoApertura, + global::System.Nullable Original_TempoOFF, + global::System.Nullable Original_TempoON, + global::System.Nullable Original_TempoFermoOn, + global::System.Nullable Original_TempoAuto, + global::System.Nullable Original_TempoFermoAuto, + global::System.Nullable Original_TempoRun, + global::System.Nullable Original_TotPzFermo) { + return this.Update(IdxODL, DataOraApp, DataRif, TurnoRif, CodArticolo, IdxMacchina, TCAssegnato, MatrOpr, MatrApp, DataOraFrom, DataOraTo, IdxStato, TotPzProd, TempoProdotto, TempoCron, TempoND, TempoApertura, TempoOFF, TempoON, TempoFermoOn, TempoAuto, TempoFermoAuto, TempoRun, TotPzFermo, Original_IdxConferma, Original_IdxODL, Original_DataOraApp, Original_DataRif, Original_TurnoRif, Original_CodArticolo, Original_IdxMacchina, Original_TCAssegnato, Original_MatrOpr, Original_MatrApp, Original_DataOraFrom, Original_DataOraTo, Original_IdxStato, Original_TotPzProd, Original_TempoProdotto, Original_TempoCron, Original_TempoND, Original_TempoApertura, Original_TempoOFF, Original_TempoON, Original_TempoFermoOn, Original_TempoAuto, Original_TempoFermoAuto, Original_TempoRun, Original_TotPzFermo, Original_IdxConferma); + } + } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class CalendFesteFerieTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlTransaction _transaction; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public CalendFesteFerieTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlTransaction Transaction { + get { + return this._transaction; + } + set { + this._transaction = value; + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + this.CommandCollection[i].Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.DeleteCommand != null))) { + this.Adapter.DeleteCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.InsertCommand != null))) { + this.Adapter.InsertCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.UpdateCommand != null))) { + this.Adapter.UpdateCommand.Transaction = this._transaction; + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "CalendFesteFerie"; + tableMapping.ColumnMappings.Add("data", "data"); + tableMapping.ColumnMappings.Add("descrizione", "descrizione"); + this._adapter.TableMappings.Add(tableMapping); + this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.DeleteCommand.Connection = this.Connection; + this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[CalendFesteFerie] WHERE (([data] = @Original_data) AND ((@IsNu" + + "ll_descrizione = 1 AND [descrizione] IS NULL) OR ([descrizione] = @Original_desc" + + "rizione)))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_data", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "data", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_descrizione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "descrizione", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_descrizione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "descrizione", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.InsertCommand.Connection = this.Connection; + this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[CalendFesteFerie] ([data], [descrizione]) VALUES (@data, @desc" + + "rizione);\r\nSELECT data, descrizione FROM CalendFesteFerie WHERE (data = @data)"; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@data", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "data", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@descrizione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "descrizione", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.UpdateCommand.Connection = this.Connection; + this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[CalendFesteFerie] SET [data] = @data, [descrizione] = @descrizione WHERE (([data] = @Original_data) AND ((@IsNull_descrizione = 1 AND [descrizione] IS NULL) OR ([descrizione] = @Original_descrizione))); +SELECT data, descrizione FROM CalendFesteFerie WHERE (data = @data)"; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@data", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "data", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@descrizione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "descrizione", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_data", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "data", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_descrizione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "descrizione", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_descrizione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "descrizione", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT data, descrizione FROM dbo.CalendFesteFerie"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_ProdTempi.CalendFesteFerieDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_ProdTempi.CalendFesteFerieDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_ProdTempi.CalendFesteFerieDataTable dataTable = new DS_ProdTempi.CalendFesteFerieDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_ProdTempi.CalendFesteFerieDataTable dataTable) { + return this.Adapter.Update(dataTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_ProdTempi dataSet) { + return this.Adapter.Update(dataSet, "CalendFesteFerie"); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow dataRow) { + return this.Adapter.Update(new global::System.Data.DataRow[] { + dataRow}); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow[] dataRows) { + return this.Adapter.Update(dataRows); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] + public virtual int Delete(System.DateTime Original_data, string Original_descrizione) { + this.Adapter.DeleteCommand.Parameters[0].Value = ((System.DateTime)(Original_data)); + if ((Original_descrizione == null)) { + this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_descrizione)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; + if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.DeleteCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.DeleteCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] + public virtual int Insert(System.DateTime data, string descrizione) { + this.Adapter.InsertCommand.Parameters[0].Value = ((System.DateTime)(data)); + if ((descrizione == null)) { + this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[1].Value = ((string)(descrizione)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; + if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.InsertCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.InsertCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(System.DateTime data, string descrizione, System.DateTime Original_data, string Original_descrizione) { + this.Adapter.UpdateCommand.Parameters[0].Value = ((System.DateTime)(data)); + if ((descrizione == null)) { + this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(descrizione)); + } + this.Adapter.UpdateCommand.Parameters[2].Value = ((System.DateTime)(Original_data)); + if ((Original_descrizione == null)) { + this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_descrizione)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; + if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.UpdateCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.UpdateCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(string descrizione, System.DateTime Original_data, string Original_descrizione) { + return this.Update(Original_data, descrizione, Original_data, Original_descrizione); + } + } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class stp_TempoByIdxMaccPeriodClassTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlTransaction _transaction; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public stp_TempoByIdxMaccPeriodClassTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlTransaction Transaction { + get { + return this._transaction; + } + set { + this._transaction = value; + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + this.CommandCollection[i].Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.DeleteCommand != null))) { + this.Adapter.DeleteCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.InsertCommand != null))) { + this.Adapter.InsertCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.UpdateCommand != null))) { + this.Adapter.UpdateCommand.Transaction = this._transaction; + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "stp_TempoByIdxMaccPeriodClass"; + tableMapping.ColumnMappings.Add("ore", "ore"); + this._adapter.TableMappings.Add(tableMapping); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "dbo.stp_TempoByIdxMaccPeriodClass"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataFrom", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataTo", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ClasseTempo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_ProdTempi.stp_TempoByIdxMaccPeriodClassDataTable dataTable, string IdxMacchina, global::System.Nullable DataFrom, global::System.Nullable DataTo, string ClasseTempo) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((IdxMacchina == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(IdxMacchina)); + } + if ((DataFrom.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(DataFrom.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((DataTo.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[3].Value = ((System.DateTime)(DataTo.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; + } + if ((ClasseTempo == null)) { + this.Adapter.SelectCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[4].Value = ((string)(ClasseTempo)); + } + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_ProdTempi.stp_TempoByIdxMaccPeriodClassDataTable GetData(string IdxMacchina, global::System.Nullable DataFrom, global::System.Nullable DataTo, string ClasseTempo) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((IdxMacchina == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(IdxMacchina)); + } + if ((DataFrom.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(DataFrom.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((DataTo.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[3].Value = ((System.DateTime)(DataTo.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; + } + if ((ClasseTempo == null)) { + this.Adapter.SelectCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[4].Value = ((string)(ClasseTempo)); + } + DS_ProdTempi.stp_TempoByIdxMaccPeriodClassDataTable dataTable = new DS_ProdTempi.stp_TempoByIdxMaccPeriodClassDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class DatiProduzioneTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlTransaction _transaction; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DatiProduzioneTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlTransaction Transaction { + get { + return this._transaction; + } + set { + this._transaction = value; + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + this.CommandCollection[i].Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.DeleteCommand != null))) { + this.Adapter.DeleteCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.InsertCommand != null))) { + this.Adapter.InsertCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.UpdateCommand != null))) { + this.Adapter.UpdateCommand.Transaction = this._transaction; + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "DatiProduzione"; + tableMapping.ColumnMappings.Add("IdxConferma", "IdxConferma"); + tableMapping.ColumnMappings.Add("IdxODL", "IdxODL"); + tableMapping.ColumnMappings.Add("DataOraApp", "DataOraApp"); + tableMapping.ColumnMappings.Add("DataRif", "DataRif"); + tableMapping.ColumnMappings.Add("TurnoRif", "TurnoRif"); + tableMapping.ColumnMappings.Add("CodArticolo", "CodArticolo"); + tableMapping.ColumnMappings.Add("IdxMacchina", "IdxMacchina"); + tableMapping.ColumnMappings.Add("TCAssegnato", "TCAssegnato"); + tableMapping.ColumnMappings.Add("MatrOpr", "MatrOpr"); + tableMapping.ColumnMappings.Add("MatrApp", "MatrApp"); + tableMapping.ColumnMappings.Add("DataOraFrom", "DataOraFrom"); + tableMapping.ColumnMappings.Add("DataOraTo", "DataOraTo"); + tableMapping.ColumnMappings.Add("TotPzProd", "TotPzProd"); + tableMapping.ColumnMappings.Add("Tempo", "Tempo"); + tableMapping.ColumnMappings.Add("ClasseTempo", "ClasseTempo"); + tableMapping.ColumnMappings.Add("Causale", "Causale"); + this._adapter.TableMappings.Add(tableMapping); + this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.DeleteCommand.Connection = this.Connection; + this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[DatiProduzione] WHERE (([IdxConferma] = @Original_IdxConferma) AND ([IdxODL] = @Original_IdxODL) AND ([DataOraApp] = @Original_DataOraApp) AND ([DataRif] = @Original_DataRif) AND ((@IsNull_TurnoRif = 1 AND [TurnoRif] IS NULL) OR ([TurnoRif] = @Original_TurnoRif)) AND ((@IsNull_CodArticolo = 1 AND [CodArticolo] IS NULL) OR ([CodArticolo] = @Original_CodArticolo)) AND ([IdxMacchina] = @Original_IdxMacchina) AND ((@IsNull_TCAssegnato = 1 AND [TCAssegnato] IS NULL) OR ([TCAssegnato] = @Original_TCAssegnato)) AND ((@IsNull_MatrOpr = 1 AND [MatrOpr] IS NULL) OR ([MatrOpr] = @Original_MatrOpr)) AND ([MatrApp] = @Original_MatrApp) AND ((@IsNull_DataOraFrom = 1 AND [DataOraFrom] IS NULL) OR ([DataOraFrom] = @Original_DataOraFrom)) AND ((@IsNull_DataOraTo = 1 AND [DataOraTo] IS NULL) OR ([DataOraTo] = @Original_DataOraTo)) AND ((@IsNull_TotPzProd = 1 AND [TotPzProd] IS NULL) OR ([TotPzProd] = @Original_TotPzProd)) AND ((@IsNull_Tempo = 1 AND [Tempo] IS NULL) OR ([Tempo] = @Original_Tempo)) AND ((@IsNull_ClasseTempo = 1 AND [ClasseTempo] IS NULL) OR ([ClasseTempo] = @Original_ClasseTempo)) AND ((@IsNull_Causale = 1 AND [Causale] IS NULL) OR ([Causale] = @Original_Causale)))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxConferma", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxConferma", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxODL", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxODL", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataOraApp", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraApp", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataRif", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataRif", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TurnoRif", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TurnoRif", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TurnoRif", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TurnoRif", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodArticolo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TCAssegnato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TCAssegnato", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TCAssegnato", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TCAssegnato", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_MatrOpr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrOpr", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MatrOpr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrOpr", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MatrApp", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrApp", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DataOraFrom", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraFrom", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataOraFrom", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraFrom", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DataOraTo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraTo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataOraTo", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraTo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TotPzProd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TotPzProd", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TotPzProd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TotPzProd", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Tempo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Tempo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Tempo", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "Tempo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ClasseTempo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClasseTempo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ClasseTempo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClasseTempo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Causale", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Causale", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Causale", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Causale", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.InsertCommand.Connection = this.Connection; + this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[DatiProduzione] ([IdxODL], [DataOraApp], [DataRif], [TurnoRif], [CodArticolo], [IdxMacchina], [TCAssegnato], [MatrOpr], [MatrApp], [DataOraFrom], [DataOraTo], [TotPzProd], [Tempo], [ClasseTempo], [Causale]) VALUES (@IdxODL, @DataOraApp, @DataRif, @TurnoRif, @CodArticolo, @IdxMacchina, @TCAssegnato, @MatrOpr, @MatrApp, @DataOraFrom, @DataOraTo, @TotPzProd, @Tempo, @ClasseTempo, @Causale); +SELECT IdxConferma, IdxODL, DataOraApp, DataRif, TurnoRif, CodArticolo, IdxMacchina, TCAssegnato, MatrOpr, MatrApp, DataOraFrom, DataOraTo, TotPzProd, Tempo, ClasseTempo, Causale FROM DatiProduzione WHERE (IdxConferma = SCOPE_IDENTITY())"; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxODL", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxODL", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataOraApp", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraApp", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataRif", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataRif", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TurnoRif", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TurnoRif", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCAssegnato", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TCAssegnato", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrOpr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrOpr", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrApp", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrApp", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataOraFrom", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraFrom", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataOraTo", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraTo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TotPzProd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TotPzProd", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Tempo", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "Tempo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ClasseTempo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClasseTempo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Causale", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Causale", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.UpdateCommand.Connection = this.Connection; + this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[DatiProduzione] SET [IdxODL] = @IdxODL, [DataOraApp] = @DataOraApp," + + " [DataRif] = @DataRif, [TurnoRif] = @TurnoRif, [CodArticolo] = @CodArticolo, [Id" + + "xMacchina] = @IdxMacchina, [TCAssegnato] = @TCAssegnato, [MatrOpr] = @MatrOpr, [" + + "MatrApp] = @MatrApp, [DataOraFrom] = @DataOraFrom, [DataOraTo] = @DataOraTo, [To" + + "tPzProd] = @TotPzProd, [Tempo] = @Tempo, [ClasseTempo] = @ClasseTempo, [Causale]" + + " = @Causale WHERE (([IdxConferma] = @Original_IdxConferma) AND ([IdxODL] = @Orig" + + "inal_IdxODL) AND ([DataOraApp] = @Original_DataOraApp) AND ([DataRif] = @Origina" + + "l_DataRif) AND ((@IsNull_TurnoRif = 1 AND [TurnoRif] IS NULL) OR ([TurnoRif] = @" + + "Original_TurnoRif)) AND ((@IsNull_CodArticolo = 1 AND [CodArticolo] IS NULL) OR " + + "([CodArticolo] = @Original_CodArticolo)) AND ([IdxMacchina] = @Original_IdxMacch" + + "ina) AND ((@IsNull_TCAssegnato = 1 AND [TCAssegnato] IS NULL) OR ([TCAssegnato] " + + "= @Original_TCAssegnato)) AND ((@IsNull_MatrOpr = 1 AND [MatrOpr] IS NULL) OR ([" + + "MatrOpr] = @Original_MatrOpr)) AND ([MatrApp] = @Original_MatrApp) AND ((@IsNull" + + "_DataOraFrom = 1 AND [DataOraFrom] IS NULL) OR ([DataOraFrom] = @Original_DataOr" + + "aFrom)) AND ((@IsNull_DataOraTo = 1 AND [DataOraTo] IS NULL) OR ([DataOraTo] = @" + + "Original_DataOraTo)) AND ((@IsNull_TotPzProd = 1 AND [TotPzProd] IS NULL) OR ([T" + + "otPzProd] = @Original_TotPzProd)) AND ((@IsNull_Tempo = 1 AND [Tempo] IS NULL) O" + + "R ([Tempo] = @Original_Tempo)) AND ((@IsNull_ClasseTempo = 1 AND [ClasseTempo] I" + + "S NULL) OR ([ClasseTempo] = @Original_ClasseTempo)) AND ((@IsNull_Causale = 1 AN" + + "D [Causale] IS NULL) OR ([Causale] = @Original_Causale)));\r\nSELECT IdxConferma, " + + "IdxODL, DataOraApp, DataRif, TurnoRif, CodArticolo, IdxMacchina, TCAssegnato, Ma" + + "trOpr, MatrApp, DataOraFrom, DataOraTo, TotPzProd, Tempo, ClasseTempo, Causale F" + + "ROM DatiProduzione WHERE (IdxConferma = @IdxConferma)"; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxODL", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxODL", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataOraApp", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraApp", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataRif", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataRif", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TurnoRif", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TurnoRif", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCAssegnato", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TCAssegnato", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrOpr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrOpr", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrApp", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrApp", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataOraFrom", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraFrom", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataOraTo", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraTo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TotPzProd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TotPzProd", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Tempo", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "Tempo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ClasseTempo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClasseTempo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Causale", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Causale", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxConferma", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxConferma", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxODL", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxODL", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataOraApp", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraApp", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataRif", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataRif", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TurnoRif", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TurnoRif", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TurnoRif", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TurnoRif", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodArticolo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TCAssegnato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TCAssegnato", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TCAssegnato", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TCAssegnato", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_MatrOpr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrOpr", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MatrOpr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrOpr", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MatrApp", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrApp", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DataOraFrom", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraFrom", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataOraFrom", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraFrom", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DataOraTo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraTo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataOraTo", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraTo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TotPzProd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TotPzProd", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TotPzProd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TotPzProd", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Tempo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Tempo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Tempo", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "Tempo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ClasseTempo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClasseTempo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ClasseTempo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClasseTempo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Causale", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Causale", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Causale", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Causale", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxConferma", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IdxConferma", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[5]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT * FROM dbo.DatiProduzione"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "dbo.stp_DatiProd_getByMacchPeriodo"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataFrom", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataTo", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[2].Connection = this.Connection; + this._commandCollection[2].CommandText = "dbo.stp_DatiProd_getByPeriodo"; + this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataFrom", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataTo", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[3].Connection = this.Connection; + this._commandCollection[3].CommandText = "dbo.stp_DatiProd_insAllPeriodo"; + this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataFrom", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataTo", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataRif", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@turnoRif", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrApp", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[4].Connection = this.Connection; + this._commandCollection[4].CommandText = "dbo.stp_DatiProd_insert"; + this._commandCollection[4].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxODL", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrApp", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataFrom", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataTo", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@turno", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pezziConf", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Tempo", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 8, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ClasseTempo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_ProdTempi.DatiProduzioneDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_ProdTempi.DatiProduzioneDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_ProdTempi.DatiProduzioneDataTable dataTable = new DS_ProdTempi.DatiProduzioneDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_ProdTempi.DatiProduzioneDataTable getByMacchPeriodo(string idxMacchina, global::System.Nullable dataFrom, global::System.Nullable dataTo) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((idxMacchina == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(idxMacchina)); + } + if ((dataFrom.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(dataFrom.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((dataTo.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[3].Value = ((System.DateTime)(dataTo.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; + } + DS_ProdTempi.DatiProduzioneDataTable dataTable = new DS_ProdTempi.DatiProduzioneDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_ProdTempi.DatiProduzioneDataTable getByPeriodo(global::System.Nullable dataFrom, global::System.Nullable dataTo) { + this.Adapter.SelectCommand = this.CommandCollection[2]; + if ((dataFrom.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[1].Value = ((System.DateTime)(dataFrom.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + if ((dataTo.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(dataTo.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + DS_ProdTempi.DatiProduzioneDataTable dataTable = new DS_ProdTempi.DatiProduzioneDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_ProdTempi.DatiProduzioneDataTable dataTable) { + return this.Adapter.Update(dataTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_ProdTempi dataSet) { + return this.Adapter.Update(dataSet, "DatiProduzione"); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow dataRow) { + return this.Adapter.Update(new global::System.Data.DataRow[] { + dataRow}); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow[] dataRows) { + return this.Adapter.Update(dataRows); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] + public virtual int Delete( + int Original_IdxConferma, + int Original_IdxODL, + System.DateTime Original_DataOraApp, + System.DateTime Original_DataRif, + global::System.Nullable Original_TurnoRif, + string Original_CodArticolo, + string Original_IdxMacchina, + global::System.Nullable Original_TCAssegnato, + global::System.Nullable Original_MatrOpr, + int Original_MatrApp, + global::System.Nullable Original_DataOraFrom, + global::System.Nullable Original_DataOraTo, + global::System.Nullable Original_TotPzProd, + global::System.Nullable Original_Tempo, + string Original_ClasseTempo, + string Original_Causale) { + this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdxConferma)); + this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_IdxODL)); + this.Adapter.DeleteCommand.Parameters[2].Value = ((System.DateTime)(Original_DataOraApp)); + this.Adapter.DeleteCommand.Parameters[3].Value = ((System.DateTime)(Original_DataRif)); + if ((Original_TurnoRif.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[5].Value = ((int)(Original_TurnoRif.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value; + } + if ((Original_CodArticolo == null)) { + this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[7].Value = ((string)(Original_CodArticolo)); + } + if ((Original_IdxMacchina == null)) { + throw new global::System.ArgumentNullException("Original_IdxMacchina"); + } + else { + this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_IdxMacchina)); + } + if ((Original_TCAssegnato.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[10].Value = ((decimal)(Original_TCAssegnato.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value; + } + if ((Original_MatrOpr.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[12].Value = ((int)(Original_MatrOpr.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value; + } + this.Adapter.DeleteCommand.Parameters[13].Value = ((int)(Original_MatrApp)); + if ((Original_DataOraFrom.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[14].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[15].Value = ((System.DateTime)(Original_DataOraFrom.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[14].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[15].Value = global::System.DBNull.Value; + } + if ((Original_DataOraTo.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[16].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[17].Value = ((System.DateTime)(Original_DataOraTo.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[16].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[17].Value = global::System.DBNull.Value; + } + if ((Original_TotPzProd.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[18].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[19].Value = ((int)(Original_TotPzProd.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[18].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[19].Value = global::System.DBNull.Value; + } + if ((Original_Tempo.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[20].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[21].Value = ((decimal)(Original_Tempo.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[20].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[21].Value = global::System.DBNull.Value; + } + if ((Original_ClasseTempo == null)) { + this.Adapter.DeleteCommand.Parameters[22].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[23].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[22].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[23].Value = ((string)(Original_ClasseTempo)); + } + if ((Original_Causale == null)) { + this.Adapter.DeleteCommand.Parameters[24].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[25].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[24].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[25].Value = ((string)(Original_Causale)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; + if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.DeleteCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.DeleteCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] + public virtual int Insert(int IdxODL, System.DateTime DataOraApp, System.DateTime DataRif, global::System.Nullable TurnoRif, string CodArticolo, string IdxMacchina, global::System.Nullable TCAssegnato, global::System.Nullable MatrOpr, int MatrApp, global::System.Nullable DataOraFrom, global::System.Nullable DataOraTo, global::System.Nullable TotPzProd, global::System.Nullable Tempo, string ClasseTempo, string Causale) { + this.Adapter.InsertCommand.Parameters[0].Value = ((int)(IdxODL)); + this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(DataOraApp)); + this.Adapter.InsertCommand.Parameters[2].Value = ((System.DateTime)(DataRif)); + if ((TurnoRif.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[3].Value = ((int)(TurnoRif.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value; + } + if ((CodArticolo == null)) { + this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[4].Value = ((string)(CodArticolo)); + } + if ((IdxMacchina == null)) { + throw new global::System.ArgumentNullException("IdxMacchina"); + } + else { + this.Adapter.InsertCommand.Parameters[5].Value = ((string)(IdxMacchina)); + } + if ((TCAssegnato.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[6].Value = ((decimal)(TCAssegnato.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value; + } + if ((MatrOpr.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[7].Value = ((int)(MatrOpr.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value; + } + this.Adapter.InsertCommand.Parameters[8].Value = ((int)(MatrApp)); + if ((DataOraFrom.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[9].Value = ((System.DateTime)(DataOraFrom.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value; + } + if ((DataOraTo.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[10].Value = ((System.DateTime)(DataOraTo.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value; + } + if ((TotPzProd.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[11].Value = ((int)(TotPzProd.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[11].Value = global::System.DBNull.Value; + } + if ((Tempo.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[12].Value = ((decimal)(Tempo.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[12].Value = global::System.DBNull.Value; + } + if ((ClasseTempo == null)) { + this.Adapter.InsertCommand.Parameters[13].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[13].Value = ((string)(ClasseTempo)); + } + if ((Causale == null)) { + this.Adapter.InsertCommand.Parameters[14].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[14].Value = ((string)(Causale)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; + if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.InsertCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.InsertCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update( + int IdxODL, + System.DateTime DataOraApp, + System.DateTime DataRif, + global::System.Nullable TurnoRif, + string CodArticolo, + string IdxMacchina, + global::System.Nullable TCAssegnato, + global::System.Nullable MatrOpr, + int MatrApp, + global::System.Nullable DataOraFrom, + global::System.Nullable DataOraTo, + global::System.Nullable TotPzProd, + global::System.Nullable Tempo, + string ClasseTempo, + string Causale, + int Original_IdxConferma, + int Original_IdxODL, + System.DateTime Original_DataOraApp, + System.DateTime Original_DataRif, + global::System.Nullable Original_TurnoRif, + string Original_CodArticolo, + string Original_IdxMacchina, + global::System.Nullable Original_TCAssegnato, + global::System.Nullable Original_MatrOpr, + int Original_MatrApp, + global::System.Nullable Original_DataOraFrom, + global::System.Nullable Original_DataOraTo, + global::System.Nullable Original_TotPzProd, + global::System.Nullable Original_Tempo, + string Original_ClasseTempo, + string Original_Causale, + int IdxConferma) { + this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(IdxODL)); + this.Adapter.UpdateCommand.Parameters[1].Value = ((System.DateTime)(DataOraApp)); + this.Adapter.UpdateCommand.Parameters[2].Value = ((System.DateTime)(DataRif)); + if ((TurnoRif.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(TurnoRif.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value; + } + if ((CodArticolo == null)) { + this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(CodArticolo)); + } + if ((IdxMacchina == null)) { + throw new global::System.ArgumentNullException("IdxMacchina"); + } + else { + this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(IdxMacchina)); + } + if ((TCAssegnato.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[6].Value = ((decimal)(TCAssegnato.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value; + } + if ((MatrOpr.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(MatrOpr.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value; + } + this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(MatrApp)); + if ((DataOraFrom.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[9].Value = ((System.DateTime)(DataOraFrom.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value; + } + if ((DataOraTo.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[10].Value = ((System.DateTime)(DataOraTo.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value; + } + if ((TotPzProd.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(TotPzProd.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value; + } + if ((Tempo.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[12].Value = ((decimal)(Tempo.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value; + } + if ((ClasseTempo == null)) { + this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(ClasseTempo)); + } + if ((Causale == null)) { + this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Causale)); + } + this.Adapter.UpdateCommand.Parameters[15].Value = ((int)(Original_IdxConferma)); + this.Adapter.UpdateCommand.Parameters[16].Value = ((int)(Original_IdxODL)); + this.Adapter.UpdateCommand.Parameters[17].Value = ((System.DateTime)(Original_DataOraApp)); + this.Adapter.UpdateCommand.Parameters[18].Value = ((System.DateTime)(Original_DataRif)); + if ((Original_TurnoRif.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[20].Value = ((int)(Original_TurnoRif.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[20].Value = global::System.DBNull.Value; + } + if ((Original_CodArticolo == null)) { + this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[22].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[22].Value = ((string)(Original_CodArticolo)); + } + if ((Original_IdxMacchina == null)) { + throw new global::System.ArgumentNullException("Original_IdxMacchina"); + } + else { + this.Adapter.UpdateCommand.Parameters[23].Value = ((string)(Original_IdxMacchina)); + } + if ((Original_TCAssegnato.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[25].Value = ((decimal)(Original_TCAssegnato.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[25].Value = global::System.DBNull.Value; + } + if ((Original_MatrOpr.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[27].Value = ((int)(Original_MatrOpr.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[27].Value = global::System.DBNull.Value; + } + this.Adapter.UpdateCommand.Parameters[28].Value = ((int)(Original_MatrApp)); + if ((Original_DataOraFrom.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[29].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[30].Value = ((System.DateTime)(Original_DataOraFrom.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[29].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[30].Value = global::System.DBNull.Value; + } + if ((Original_DataOraTo.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[31].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[32].Value = ((System.DateTime)(Original_DataOraTo.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[31].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[32].Value = global::System.DBNull.Value; + } + if ((Original_TotPzProd.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[33].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[34].Value = ((int)(Original_TotPzProd.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[33].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[34].Value = global::System.DBNull.Value; + } + if ((Original_Tempo.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[35].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[36].Value = ((decimal)(Original_Tempo.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[35].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[36].Value = global::System.DBNull.Value; + } + if ((Original_ClasseTempo == null)) { + this.Adapter.UpdateCommand.Parameters[37].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[38].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[37].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[38].Value = ((string)(Original_ClasseTempo)); + } + if ((Original_Causale == null)) { + this.Adapter.UpdateCommand.Parameters[39].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[40].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[39].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[40].Value = ((string)(Original_Causale)); + } + this.Adapter.UpdateCommand.Parameters[41].Value = ((int)(IdxConferma)); + global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; + if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.UpdateCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.UpdateCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update( + int IdxODL, + System.DateTime DataOraApp, + System.DateTime DataRif, + global::System.Nullable TurnoRif, + string CodArticolo, + string IdxMacchina, + global::System.Nullable TCAssegnato, + global::System.Nullable MatrOpr, + int MatrApp, + global::System.Nullable DataOraFrom, + global::System.Nullable DataOraTo, + global::System.Nullable TotPzProd, + global::System.Nullable Tempo, + string ClasseTempo, + string Causale, + int Original_IdxConferma, + int Original_IdxODL, + System.DateTime Original_DataOraApp, + System.DateTime Original_DataRif, + global::System.Nullable Original_TurnoRif, + string Original_CodArticolo, + string Original_IdxMacchina, + global::System.Nullable Original_TCAssegnato, + global::System.Nullable Original_MatrOpr, + int Original_MatrApp, + global::System.Nullable Original_DataOraFrom, + global::System.Nullable Original_DataOraTo, + global::System.Nullable Original_TotPzProd, + global::System.Nullable Original_Tempo, + string Original_ClasseTempo, + string Original_Causale) { + return this.Update(IdxODL, DataOraApp, DataRif, TurnoRif, CodArticolo, IdxMacchina, TCAssegnato, MatrOpr, MatrApp, DataOraFrom, DataOraTo, TotPzProd, Tempo, ClasseTempo, Causale, Original_IdxConferma, Original_IdxODL, Original_DataOraApp, Original_DataRif, Original_TurnoRif, Original_CodArticolo, Original_IdxMacchina, Original_TCAssegnato, Original_MatrOpr, Original_MatrApp, Original_DataOraFrom, Original_DataOraTo, Original_TotPzProd, Original_Tempo, Original_ClasseTempo, Original_Causale, Original_IdxConferma); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int stp_DatiProd_insAllPeriodo(string IdxMacchina, global::System.Nullable dataFrom, global::System.Nullable dataTo, global::System.Nullable dataRif, global::System.Nullable turnoRif, global::System.Nullable MatrApp) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3]; + if ((IdxMacchina == null)) { + command.Parameters[1].Value = global::System.DBNull.Value; + } + else { + command.Parameters[1].Value = ((string)(IdxMacchina)); + } + if ((dataFrom.HasValue == true)) { + command.Parameters[2].Value = ((System.DateTime)(dataFrom.Value)); + } + else { + command.Parameters[2].Value = global::System.DBNull.Value; + } + if ((dataTo.HasValue == true)) { + command.Parameters[3].Value = ((System.DateTime)(dataTo.Value)); + } + else { + command.Parameters[3].Value = global::System.DBNull.Value; + } + if ((dataRif.HasValue == true)) { + command.Parameters[4].Value = ((System.DateTime)(dataRif.Value)); + } + else { + command.Parameters[4].Value = global::System.DBNull.Value; + } + if ((turnoRif.HasValue == true)) { + command.Parameters[5].Value = ((int)(turnoRif.Value)); + } + else { + command.Parameters[5].Value = global::System.DBNull.Value; + } + if ((MatrApp.HasValue == true)) { + command.Parameters[6].Value = ((int)(MatrApp.Value)); + } + else { + command.Parameters[6].Value = global::System.DBNull.Value; + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int stp_DatiProd_insert(global::System.Nullable idxODL, string idxMacchina, global::System.Nullable MatrApp, global::System.Nullable dataFrom, global::System.Nullable dataTo, global::System.Nullable turno, global::System.Nullable pezziConf, global::System.Nullable Tempo, string ClasseTempo) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[4]; + if ((idxODL.HasValue == true)) { + command.Parameters[1].Value = ((int)(idxODL.Value)); + } + else { + command.Parameters[1].Value = global::System.DBNull.Value; + } + if ((idxMacchina == null)) { + command.Parameters[2].Value = global::System.DBNull.Value; + } + else { + command.Parameters[2].Value = ((string)(idxMacchina)); + } + if ((MatrApp.HasValue == true)) { + command.Parameters[3].Value = ((int)(MatrApp.Value)); + } + else { + command.Parameters[3].Value = global::System.DBNull.Value; + } + if ((dataFrom.HasValue == true)) { + command.Parameters[4].Value = ((System.DateTime)(dataFrom.Value)); + } + else { + command.Parameters[4].Value = global::System.DBNull.Value; + } + if ((dataTo.HasValue == true)) { + command.Parameters[5].Value = ((System.DateTime)(dataTo.Value)); + } + else { + command.Parameters[5].Value = global::System.DBNull.Value; + } + if ((turno.HasValue == true)) { + command.Parameters[6].Value = ((int)(turno.Value)); + } + else { + command.Parameters[6].Value = global::System.DBNull.Value; + } + if ((pezziConf.HasValue == true)) { + command.Parameters[7].Value = ((int)(pezziConf.Value)); + } + else { + command.Parameters[7].Value = global::System.DBNull.Value; + } + if ((Tempo.HasValue == true)) { + command.Parameters[8].Value = ((decimal)(Tempo.Value)); + } + else { + command.Parameters[8].Value = global::System.DBNull.Value; + } + if ((ClasseTempo == null)) { + command.Parameters[9].Value = global::System.DBNull.Value; + } + else { + command.Parameters[9].Value = ((string)(ClasseTempo)); + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class stp_repDonati_getDatiProdMacchinaTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlTransaction _transaction; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public stp_repDonati_getDatiProdMacchinaTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlTransaction Transaction { + get { + return this._transaction; + } + set { + this._transaction = value; + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + this.CommandCollection[i].Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.DeleteCommand != null))) { + this.Adapter.DeleteCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.InsertCommand != null))) { + this.Adapter.InsertCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.UpdateCommand != null))) { + this.Adapter.UpdateCommand.Transaction = this._transaction; + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "stp_repDonati_getDatiProdMacchina"; + tableMapping.ColumnMappings.Add("CodArticolo", "CodArticolo"); + tableMapping.ColumnMappings.Add("PezziLanciati", "PezziLanciati"); + tableMapping.ColumnMappings.Add("PezziProd", "PezziProd"); + tableMapping.ColumnMappings.Add("PezziConf", "PezziConf"); + tableMapping.ColumnMappings.Add("TCAssegnato", "TCAssegnato"); + tableMapping.ColumnMappings.Add("CodOperatore", "CodOperatore"); + tableMapping.ColumnMappings.Add("TempoOn", "TempoOn"); + tableMapping.ColumnMappings.Add("TempoAuto", "TempoAuto"); + tableMapping.ColumnMappings.Add("TempoRun", "TempoRun"); + tableMapping.ColumnMappings.Add("TCMedio", "TCMedio"); + tableMapping.ColumnMappings.Add("TCLav", "TCLav"); + tableMapping.ColumnMappings.Add("TCEff", "TCEff"); + tableMapping.ColumnMappings.Add("TCMedioRT", "TCMedioRT"); + tableMapping.ColumnMappings.Add("TCLavRT", "TCLavRT"); + tableMapping.ColumnMappings.Add("TCEffRT", "TCEffRT"); + this._adapter.TableMappings.Add(tableMapping); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "dbo.stp_repDonati_getDatiProdMacchina"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_ProdTempi.stp_repDonati_getDatiProdMacchinaDataTable dataTable, string idxMacchina) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((idxMacchina == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(idxMacchina)); + } + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_ProdTempi.stp_repDonati_getDatiProdMacchinaDataTable GetData(string idxMacchina) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((idxMacchina == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(idxMacchina)); + } + DS_ProdTempi.stp_repDonati_getDatiProdMacchinaDataTable dataTable = new DS_ProdTempi.stp_repDonati_getDatiProdMacchinaDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class stp_repDonati_getLastStatoDurataMacchinaTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlTransaction _transaction; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public stp_repDonati_getLastStatoDurataMacchinaTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlTransaction Transaction { + get { + return this._transaction; + } + set { + this._transaction = value; + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + this.CommandCollection[i].Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.DeleteCommand != null))) { + this.Adapter.DeleteCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.InsertCommand != null))) { + this.Adapter.InsertCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.UpdateCommand != null))) { + this.Adapter.UpdateCommand.Transaction = this._transaction; + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "stp_repDonati_getLastStatoDurataMacchina"; + tableMapping.ColumnMappings.Add("idxStato", "idxStato"); + tableMapping.ColumnMappings.Add("Minuti", "Minuti"); + this._adapter.TableMappings.Add(tableMapping); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "dbo.stp_repDonati_getLastStatoDurataMacchina"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@minDurata", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_ProdTempi.stp_repDonati_getLastStatoDurataMacchinaDataTable dataTable, string idxMacchina, global::System.Nullable minDurata) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((idxMacchina == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(idxMacchina)); + } + if ((minDurata.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((double)(minDurata.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_ProdTempi.stp_repDonati_getLastStatoDurataMacchinaDataTable GetData(string idxMacchina, global::System.Nullable minDurata) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((idxMacchina == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(idxMacchina)); + } + if ((minDurata.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((double)(minDurata.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + DS_ProdTempi.stp_repDonati_getLastStatoDurataMacchinaDataTable dataTable = new DS_ProdTempi.stp_repDonati_getLastStatoDurataMacchinaDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class stp_repDonati_getDatiProdMacchinaPeriodoTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlTransaction _transaction; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public stp_repDonati_getDatiProdMacchinaPeriodoTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlTransaction Transaction { + get { + return this._transaction; + } + set { + this._transaction = value; + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + this.CommandCollection[i].Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.DeleteCommand != null))) { + this.Adapter.DeleteCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.InsertCommand != null))) { + this.Adapter.InsertCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.UpdateCommand != null))) { + this.Adapter.UpdateCommand.Transaction = this._transaction; + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "stp_repDonati_getDatiProdMacchinaPeriodo"; + tableMapping.ColumnMappings.Add("PezziProd", "PezziProd"); + tableMapping.ColumnMappings.Add("TCAssegnato", "TCAssegnato"); + tableMapping.ColumnMappings.Add("TCMedioRT", "TCMedioRT"); + tableMapping.ColumnMappings.Add("TCLavRT", "TCLavRT"); + tableMapping.ColumnMappings.Add("TCEffRT", "TCEffRT"); + this._adapter.TableMappings.Add(tableMapping); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "dbo.stp_repDonati_getDatiProdMacchinaPeriodo"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataFrom", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataTo", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_ProdTempi.stp_repDonati_getDatiProdMacchinaPeriodoDataTable dataTable, string idxMacchina, global::System.Nullable dataFrom, global::System.Nullable dataTo) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((idxMacchina == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(idxMacchina)); + } + if ((dataFrom.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(dataFrom.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((dataTo.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[3].Value = ((System.DateTime)(dataTo.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; + } + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_ProdTempi.stp_repDonati_getDatiProdMacchinaPeriodoDataTable GetData(string idxMacchina, global::System.Nullable dataFrom, global::System.Nullable dataTo) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((idxMacchina == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(idxMacchina)); + } + if ((dataFrom.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(dataFrom.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((dataTo.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[3].Value = ((System.DateTime)(dataTo.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; + } + DS_ProdTempi.stp_repDonati_getDatiProdMacchinaPeriodoDataTable dataTable = new DS_ProdTempi.stp_repDonati_getDatiProdMacchinaPeriodoDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class TurniMacchinaTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlTransaction _transaction; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public TurniMacchinaTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlTransaction Transaction { + get { + return this._transaction; + } + set { + this._transaction = value; + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + this.CommandCollection[i].Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.DeleteCommand != null))) { + this.Adapter.DeleteCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.InsertCommand != null))) { + this.Adapter.InsertCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.UpdateCommand != null))) { + this.Adapter.UpdateCommand.Transaction = this._transaction; + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "TurniMacchina"; + tableMapping.ColumnMappings.Add("IdxMacchina", "IdxMacchina"); + tableMapping.ColumnMappings.Add("T1", "T1"); + tableMapping.ColumnMappings.Add("T2", "T2"); + tableMapping.ColumnMappings.Add("T3", "T3"); + this._adapter.TableMappings.Add(tableMapping); + this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.DeleteCommand.Connection = this.Connection; + this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[TurniMacchina] WHERE (([IdxMacchina] = @Original_IdxMacchina) AND ((@IsNull_T1 = 1 AND [T1] IS NULL) OR ([T1] = @Original_T1)) AND ((@IsNull_T2 = 1 AND [T2] IS NULL) OR ([T2] = @Original_T2)) AND ((@IsNull_T3 = 1 AND [T3] IS NULL) OR ([T3] = @Original_T3)))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_T1", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "T1", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_T1", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "T1", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_T2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "T2", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_T2", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "T2", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_T3", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "T3", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_T3", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "T3", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.InsertCommand.Connection = this.Connection; + this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[TurniMacchina] ([IdxMacchina], [T1], [T2], [T3]) VALUES (@IdxM" + + "acchina, @T1, @T2, @T3);\r\nSELECT IdxMacchina, T1, T2, T3 FROM TurniMacchina WHER" + + "E (IdxMacchina = @IdxMacchina)"; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@T1", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "T1", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@T2", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "T2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@T3", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "T3", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.UpdateCommand.Connection = this.Connection; + this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[TurniMacchina] SET [IdxMacchina] = @IdxMacchina, [T1] = @T1, [T2] = @T2, [T3] = @T3 WHERE (([IdxMacchina] = @Original_IdxMacchina) AND ((@IsNull_T1 = 1 AND [T1] IS NULL) OR ([T1] = @Original_T1)) AND ((@IsNull_T2 = 1 AND [T2] IS NULL) OR ([T2] = @Original_T2)) AND ((@IsNull_T3 = 1 AND [T3] IS NULL) OR ([T3] = @Original_T3))); +SELECT IdxMacchina, T1, T2, T3 FROM TurniMacchina WHERE (IdxMacchina = @IdxMacchina)"; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@T1", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "T1", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@T2", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "T2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@T3", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "T3", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_T1", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "T1", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_T1", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "T1", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_T2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "T2", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_T2", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "T2", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_T3", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "T3", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_T3", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "T3", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[3]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT IdxMacchina, T1, T2, T3 FROM dbo.TurniMacchina"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "dbo.stp_turniMacchineByIdxMacc"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[2].Connection = this.Connection; + this._commandCollection[2].CommandText = "dbo.stp_turniMacchineUpdateTurno"; + this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@numTurno", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_ProdTempi.TurniMacchinaDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_ProdTempi.TurniMacchinaDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_ProdTempi.TurniMacchinaDataTable dataTable = new DS_ProdTempi.TurniMacchinaDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_ProdTempi.TurniMacchinaDataTable getByIdxMacc(string IdxMacchina) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((IdxMacchina == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(IdxMacchina)); + } + DS_ProdTempi.TurniMacchinaDataTable dataTable = new DS_ProdTempi.TurniMacchinaDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_ProdTempi.TurniMacchinaDataTable dataTable) { + return this.Adapter.Update(dataTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_ProdTempi dataSet) { + return this.Adapter.Update(dataSet, "TurniMacchina"); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow dataRow) { + return this.Adapter.Update(new global::System.Data.DataRow[] { + dataRow}); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow[] dataRows) { + return this.Adapter.Update(dataRows); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] + public virtual int Delete(string Original_IdxMacchina, global::System.Nullable Original_T1, global::System.Nullable Original_T2, global::System.Nullable Original_T3) { + if ((Original_IdxMacchina == null)) { + throw new global::System.ArgumentNullException("Original_IdxMacchina"); + } + else { + this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_IdxMacchina)); + } + if ((Original_T1.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[2].Value = ((bool)(Original_T1.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((Original_T2.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[4].Value = ((bool)(Original_T2.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value; + } + if ((Original_T3.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[6].Value = ((bool)(Original_T3.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value; + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; + if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.DeleteCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.DeleteCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] + public virtual int Insert(string IdxMacchina, global::System.Nullable T1, global::System.Nullable T2, global::System.Nullable T3) { + if ((IdxMacchina == null)) { + throw new global::System.ArgumentNullException("IdxMacchina"); + } + else { + this.Adapter.InsertCommand.Parameters[0].Value = ((string)(IdxMacchina)); + } + if ((T1.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[1].Value = ((bool)(T1.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value; + } + if ((T2.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[2].Value = ((bool)(T2.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((T3.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[3].Value = ((bool)(T3.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value; + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; + if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.InsertCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.InsertCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(string IdxMacchina, global::System.Nullable T1, global::System.Nullable T2, global::System.Nullable T3, string Original_IdxMacchina, global::System.Nullable Original_T1, global::System.Nullable Original_T2, global::System.Nullable Original_T3) { + if ((IdxMacchina == null)) { + throw new global::System.ArgumentNullException("IdxMacchina"); + } + else { + this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(IdxMacchina)); + } + if ((T1.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[1].Value = ((bool)(T1.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value; + } + if ((T2.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[2].Value = ((bool)(T2.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((T3.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[3].Value = ((bool)(T3.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value; + } + if ((Original_IdxMacchina == null)) { + throw new global::System.ArgumentNullException("Original_IdxMacchina"); + } + else { + this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_IdxMacchina)); + } + if ((Original_T1.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[6].Value = ((bool)(Original_T1.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value; + } + if ((Original_T2.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[8].Value = ((bool)(Original_T2.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value; + } + if ((Original_T3.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[10].Value = ((bool)(Original_T3.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value; + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; + if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.UpdateCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.UpdateCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(global::System.Nullable T1, global::System.Nullable T2, global::System.Nullable T3, string Original_IdxMacchina, global::System.Nullable Original_T1, global::System.Nullable Original_T2, global::System.Nullable Original_T3) { + return this.Update(Original_IdxMacchina, T1, T2, T3, Original_IdxMacchina, Original_T1, Original_T2, Original_T3); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int stp_turniMacchineUpdateTurno(string IdxMacchina, global::System.Nullable numTurno) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[2]; + if ((IdxMacchina == null)) { + command.Parameters[1].Value = global::System.DBNull.Value; + } + else { + command.Parameters[1].Value = ((string)(IdxMacchina)); + } + if ((numTurno.HasValue == true)) { + command.Parameters[2].Value = ((int)(numTurno.Value)); + } + else { + command.Parameters[2].Value = global::System.DBNull.Value; + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class MappaStatoExplTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlTransaction _transaction; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public MappaStatoExplTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlTransaction Transaction { + get { + return this._transaction; + } + set { + this._transaction = value; + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + this.CommandCollection[i].Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.DeleteCommand != null))) { + this.Adapter.DeleteCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.InsertCommand != null))) { + this.Adapter.InsertCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.UpdateCommand != null))) { + this.Adapter.UpdateCommand.Transaction = this._transaction; + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "MappaStatoExpl"; + tableMapping.ColumnMappings.Add("RowNum", "RowNum"); + tableMapping.ColumnMappings.Add("lastUpdate", "lastUpdate"); + tableMapping.ColumnMappings.Add("IdxMacchina", "IdxMacchina"); + tableMapping.ColumnMappings.Add("CodMacchina", "CodMacchina"); + tableMapping.ColumnMappings.Add("Nome", "Nome"); + tableMapping.ColumnMappings.Add("url", "url"); + tableMapping.ColumnMappings.Add("idxODL", "idxODL"); + tableMapping.ColumnMappings.Add("CodArticolo", "CodArticolo"); + tableMapping.ColumnMappings.Add("NumPezzi", "NumPezzi"); + tableMapping.ColumnMappings.Add("TCAssegnato", "TCAssegnato"); + tableMapping.ColumnMappings.Add("DataInizioODL", "DataInizioODL"); + tableMapping.ColumnMappings.Add("Semaforo", "Semaforo"); + tableMapping.ColumnMappings.Add("idxStato", "idxStato"); + tableMapping.ColumnMappings.Add("DescrizioneStato", "DescrizioneStato"); + tableMapping.ColumnMappings.Add("durata", "durata"); + tableMapping.ColumnMappings.Add("PezziProd", "PezziProd"); + tableMapping.ColumnMappings.Add("PezziConf", "PezziConf"); + tableMapping.ColumnMappings.Add("TempoOn", "TempoOn"); + tableMapping.ColumnMappings.Add("TempoAuto", "TempoAuto"); + tableMapping.ColumnMappings.Add("TempoRun", "TempoRun"); + tableMapping.ColumnMappings.Add("TCMedio", "TCMedio"); + tableMapping.ColumnMappings.Add("TCLav", "TCLav"); + tableMapping.ColumnMappings.Add("TCEff", "TCEff"); + tableMapping.ColumnMappings.Add("TCMedioRT", "TCMedioRT"); + tableMapping.ColumnMappings.Add("TCLavRT", "TCLavRT"); + tableMapping.ColumnMappings.Add("TCEffRT", "TCEffRT"); + this._adapter.TableMappings.Add(tableMapping); + this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.DeleteCommand.Connection = this.Connection; + this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[MappaStatoExpl] WHERE (([RowNum] = @Original_RowNum) AND ((@Is" + + "Null_lastUpdate = 1 AND [lastUpdate] IS NULL) OR ([lastUpdate] = @Original_lastU" + + "pdate)) AND ((@IsNull_IdxMacchina = 1 AND [IdxMacchina] IS NULL) OR ([IdxMacchin" + + "a] = @Original_IdxMacchina)) AND ((@IsNull_CodMacchina = 1 AND [CodMacchina] IS " + + "NULL) OR ([CodMacchina] = @Original_CodMacchina)) AND ((@IsNull_Nome = 1 AND [No" + + "me] IS NULL) OR ([Nome] = @Original_Nome)) AND ((@IsNull_url = 1 AND [url] IS NU" + + "LL) OR ([url] = @Original_url)) AND ((@IsNull_idxODL = 1 AND [idxODL] IS NULL) O" + + "R ([idxODL] = @Original_idxODL)) AND ((@IsNull_CodArticolo = 1 AND [CodArticolo]" + + " IS NULL) OR ([CodArticolo] = @Original_CodArticolo)) AND ((@IsNull_NumPezzi = 1" + + " AND [NumPezzi] IS NULL) OR ([NumPezzi] = @Original_NumPezzi)) AND ((@IsNull_TCA" + + "ssegnato = 1 AND [TCAssegnato] IS NULL) OR ([TCAssegnato] = @Original_TCAssegnat" + + "o)) AND ((@IsNull_DataInizioODL = 1 AND [DataInizioODL] IS NULL) OR ([DataInizio" + + "ODL] = @Original_DataInizioODL)) AND ((@IsNull_Semaforo = 1 AND [Semaforo] IS NU" + + "LL) OR ([Semaforo] = @Original_Semaforo)) AND ((@IsNull_idxStato = 1 AND [idxSta" + + "to] IS NULL) OR ([idxStato] = @Original_idxStato)) AND ((@IsNull_DescrizioneStat" + + "o = 1 AND [DescrizioneStato] IS NULL) OR ([DescrizioneStato] = @Original_Descriz" + + "ioneStato)) AND ((@IsNull_durata = 1 AND [durata] IS NULL) OR ([durata] = @Origi" + + "nal_durata)) AND ((@IsNull_PezziProd = 1 AND [PezziProd] IS NULL) OR ([PezziProd" + + "] = @Original_PezziProd)) AND ((@IsNull_PezziConf = 1 AND [PezziConf] IS NULL) O" + + "R ([PezziConf] = @Original_PezziConf)) AND ((@IsNull_TempoOn = 1 AND [TempoOn] I" + + "S NULL) OR ([TempoOn] = @Original_TempoOn)) AND ((@IsNull_TempoAuto = 1 AND [Tem" + + "poAuto] IS NULL) OR ([TempoAuto] = @Original_TempoAuto)) AND ((@IsNull_TempoRun " + + "= 1 AND [TempoRun] IS NULL) OR ([TempoRun] = @Original_TempoRun)) AND ((@IsNull_" + + "TCMedio = 1 AND [TCMedio] IS NULL) OR ([TCMedio] = @Original_TCMedio)) AND ((@Is" + + "Null_TCLav = 1 AND [TCLav] IS NULL) OR ([TCLav] = @Original_TCLav)) AND ((@IsNul" + + "l_TCEff = 1 AND [TCEff] IS NULL) OR ([TCEff] = @Original_TCEff)) AND ((@IsNull_T" + + "CMedioRT = 1 AND [TCMedioRT] IS NULL) OR ([TCMedioRT] = @Original_TCMedioRT)) AN" + + "D ((@IsNull_TCLavRT = 1 AND [TCLavRT] IS NULL) OR ([TCLavRT] = @Original_TCLavRT" + + ")) AND ((@IsNull_TCEffRT = 1 AND [TCEffRT] IS NULL) OR ([TCEffRT] = @Original_TC" + + "EffRT)))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RowNum", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RowNum", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_lastUpdate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "lastUpdate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_lastUpdate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "lastUpdate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IdxMacchina", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodMacchina", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMacchina", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMacchina", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Nome", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nome", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Nome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nome", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_url", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "url", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_url", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "url", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_idxODL", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxODL", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxODL", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxODL", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodArticolo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_NumPezzi", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumPezzi", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NumPezzi", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumPezzi", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TCAssegnato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TCAssegnato", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TCAssegnato", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TCAssegnato", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DataInizioODL", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataInizioODL", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataInizioODL", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataInizioODL", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Semaforo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Semaforo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Semaforo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Semaforo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_idxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxStato", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxStato", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescrizioneStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrizioneStato", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescrizioneStato", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrizioneStato", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_durata", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "durata", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_durata", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "durata", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PezziProd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PezziProd", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PezziProd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PezziProd", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PezziConf", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PezziConf", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PezziConf", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PezziConf", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TempoOn", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TempoOn", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TempoOn", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TempoOn", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TempoAuto", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TempoAuto", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TempoAuto", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TempoAuto", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TempoRun", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TempoRun", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TempoRun", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TempoRun", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TCMedio", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TCMedio", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TCMedio", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TCMedio", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TCLav", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TCLav", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TCLav", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TCLav", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TCEff", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TCEff", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TCEff", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TCEff", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TCMedioRT", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TCMedioRT", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TCMedioRT", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TCMedioRT", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TCLavRT", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TCLavRT", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TCLavRT", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TCLavRT", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TCEffRT", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TCEffRT", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TCEffRT", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TCEffRT", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.InsertCommand.Connection = this.Connection; + this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[MappaStatoExpl] ([lastUpdate], [IdxMacchina], [CodMacchina], [Nome], [url], [idxODL], [CodArticolo], [NumPezzi], [TCAssegnato], [DataInizioODL], [Semaforo], [idxStato], [DescrizioneStato], [durata], [PezziProd], [PezziConf], [TempoOn], [TempoAuto], [TempoRun], [TCMedio], [TCLav], [TCEff], [TCMedioRT], [TCLavRT], [TCEffRT]) VALUES (@lastUpdate, @IdxMacchina, @CodMacchina, @Nome, @url, @idxODL, @CodArticolo, @NumPezzi, @TCAssegnato, @DataInizioODL, @Semaforo, @idxStato, @DescrizioneStato, @durata, @PezziProd, @PezziConf, @TempoOn, @TempoAuto, @TempoRun, @TCMedio, @TCLav, @TCEff, @TCMedioRT, @TCLavRT, @TCEffRT); +SELECT RowNum, lastUpdate, IdxMacchina, CodMacchina, Nome, url, idxODL, CodArticolo, NumPezzi, TCAssegnato, DataInizioODL, Semaforo, idxStato, DescrizioneStato, durata, PezziProd, PezziConf, TempoOn, TempoAuto, TempoRun, TCMedio, TCLav, TCEff, TCMedioRT, TCLavRT, TCEffRT FROM MappaStatoExpl WHERE (RowNum = SCOPE_IDENTITY())"; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@lastUpdate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "lastUpdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Nome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nome", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@url", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "url", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxODL", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxODL", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumPezzi", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumPezzi", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCAssegnato", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TCAssegnato", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataInizioODL", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataInizioODL", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Semaforo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Semaforo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxStato", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescrizioneStato", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrizioneStato", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@durata", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "durata", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PezziProd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PezziProd", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PezziConf", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PezziConf", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TempoOn", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TempoOn", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TempoAuto", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TempoAuto", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TempoRun", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TempoRun", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCMedio", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TCMedio", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCLav", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TCLav", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCEff", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TCEff", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCMedioRT", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TCMedioRT", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCLavRT", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TCLavRT", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCEffRT", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TCEffRT", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.UpdateCommand.Connection = this.Connection; + this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[MappaStatoExpl] SET [lastUpdate] = @lastUpdate, [IdxMacchina] = @Id" + + "xMacchina, [CodMacchina] = @CodMacchina, [Nome] = @Nome, [url] = @url, [idxODL] " + + "= @idxODL, [CodArticolo] = @CodArticolo, [NumPezzi] = @NumPezzi, [TCAssegnato] =" + + " @TCAssegnato, [DataInizioODL] = @DataInizioODL, [Semaforo] = @Semaforo, [idxSta" + + "to] = @idxStato, [DescrizioneStato] = @DescrizioneStato, [durata] = @durata, [Pe" + + "zziProd] = @PezziProd, [PezziConf] = @PezziConf, [TempoOn] = @TempoOn, [TempoAut" + + "o] = @TempoAuto, [TempoRun] = @TempoRun, [TCMedio] = @TCMedio, [TCLav] = @TCLav," + + " [TCEff] = @TCEff, [TCMedioRT] = @TCMedioRT, [TCLavRT] = @TCLavRT, [TCEffRT] = @" + + "TCEffRT WHERE (([RowNum] = @Original_RowNum) AND ((@IsNull_lastUpdate = 1 AND [l" + + "astUpdate] IS NULL) OR ([lastUpdate] = @Original_lastUpdate)) AND ((@IsNull_IdxM" + + "acchina = 1 AND [IdxMacchina] IS NULL) OR ([IdxMacchina] = @Original_IdxMacchina" + + ")) AND ((@IsNull_CodMacchina = 1 AND [CodMacchina] IS NULL) OR ([CodMacchina] = " + + "@Original_CodMacchina)) AND ((@IsNull_Nome = 1 AND [Nome] IS NULL) OR ([Nome] = " + + "@Original_Nome)) AND ((@IsNull_url = 1 AND [url] IS NULL) OR ([url] = @Original_" + + "url)) AND ((@IsNull_idxODL = 1 AND [idxODL] IS NULL) OR ([idxODL] = @Original_id" + + "xODL)) AND ((@IsNull_CodArticolo = 1 AND [CodArticolo] IS NULL) OR ([CodArticolo" + + "] = @Original_CodArticolo)) AND ((@IsNull_NumPezzi = 1 AND [NumPezzi] IS NULL) O" + + "R ([NumPezzi] = @Original_NumPezzi)) AND ((@IsNull_TCAssegnato = 1 AND [TCAssegn" + + "ato] IS NULL) OR ([TCAssegnato] = @Original_TCAssegnato)) AND ((@IsNull_DataIniz" + + "ioODL = 1 AND [DataInizioODL] IS NULL) OR ([DataInizioODL] = @Original_DataInizi" + + "oODL)) AND ((@IsNull_Semaforo = 1 AND [Semaforo] IS NULL) OR ([Semaforo] = @Orig" + + "inal_Semaforo)) AND ((@IsNull_idxStato = 1 AND [idxStato] IS NULL) OR ([idxStato" + + "] = @Original_idxStato)) AND ((@IsNull_DescrizioneStato = 1 AND [DescrizioneStat" + + "o] IS NULL) OR ([DescrizioneStato] = @Original_DescrizioneStato)) AND ((@IsNull_" + + "durata = 1 AND [durata] IS NULL) OR ([durata] = @Original_durata)) AND ((@IsNull" + + "_PezziProd = 1 AND [PezziProd] IS NULL) OR ([PezziProd] = @Original_PezziProd)) " + + "AND ((@IsNull_PezziConf = 1 AND [PezziConf] IS NULL) OR ([PezziConf] = @Original" + + "_PezziConf)) AND ((@IsNull_TempoOn = 1 AND [TempoOn] IS NULL) OR ([TempoOn] = @O" + + "riginal_TempoOn)) AND ((@IsNull_TempoAuto = 1 AND [TempoAuto] IS NULL) OR ([Temp" + + "oAuto] = @Original_TempoAuto)) AND ((@IsNull_TempoRun = 1 AND [TempoRun] IS NULL" + + ") OR ([TempoRun] = @Original_TempoRun)) AND ((@IsNull_TCMedio = 1 AND [TCMedio] " + + "IS NULL) OR ([TCMedio] = @Original_TCMedio)) AND ((@IsNull_TCLav = 1 AND [TCLav]" + + " IS NULL) OR ([TCLav] = @Original_TCLav)) AND ((@IsNull_TCEff = 1 AND [TCEff] IS" + + " NULL) OR ([TCEff] = @Original_TCEff)) AND ((@IsNull_TCMedioRT = 1 AND [TCMedioR" + + "T] IS NULL) OR ([TCMedioRT] = @Original_TCMedioRT)) AND ((@IsNull_TCLavRT = 1 AN" + + "D [TCLavRT] IS NULL) OR ([TCLavRT] = @Original_TCLavRT)) AND ((@IsNull_TCEffRT =" + + " 1 AND [TCEffRT] IS NULL) OR ([TCEffRT] = @Original_TCEffRT)));\r\nSELECT RowNum, " + + "lastUpdate, IdxMacchina, CodMacchina, Nome, url, idxODL, CodArticolo, NumPezzi, " + + "TCAssegnato, DataInizioODL, Semaforo, idxStato, DescrizioneStato, durata, PezziP" + + "rod, PezziConf, TempoOn, TempoAuto, TempoRun, TCMedio, TCLav, TCEff, TCMedioRT, " + + "TCLavRT, TCEffRT FROM MappaStatoExpl WHERE (RowNum = @RowNum)"; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@lastUpdate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "lastUpdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Nome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nome", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@url", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "url", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxODL", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxODL", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumPezzi", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumPezzi", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCAssegnato", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TCAssegnato", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataInizioODL", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataInizioODL", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Semaforo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Semaforo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxStato", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescrizioneStato", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrizioneStato", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@durata", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "durata", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PezziProd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PezziProd", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PezziConf", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PezziConf", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TempoOn", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TempoOn", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TempoAuto", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TempoAuto", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TempoRun", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TempoRun", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCMedio", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TCMedio", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCLav", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TCLav", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCEff", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TCEff", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCMedioRT", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TCMedioRT", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCLavRT", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TCLavRT", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCEffRT", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TCEffRT", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RowNum", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RowNum", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_lastUpdate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "lastUpdate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_lastUpdate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "lastUpdate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IdxMacchina", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodMacchina", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMacchina", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMacchina", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Nome", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nome", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Nome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nome", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_url", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "url", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_url", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "url", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_idxODL", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxODL", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxODL", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxODL", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodArticolo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_NumPezzi", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumPezzi", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NumPezzi", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumPezzi", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TCAssegnato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TCAssegnato", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TCAssegnato", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TCAssegnato", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DataInizioODL", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataInizioODL", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataInizioODL", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataInizioODL", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Semaforo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Semaforo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Semaforo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Semaforo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_idxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxStato", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxStato", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescrizioneStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrizioneStato", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescrizioneStato", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrizioneStato", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_durata", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "durata", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_durata", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "durata", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PezziProd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PezziProd", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PezziProd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PezziProd", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PezziConf", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PezziConf", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PezziConf", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PezziConf", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TempoOn", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TempoOn", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TempoOn", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TempoOn", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TempoAuto", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TempoAuto", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TempoAuto", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TempoAuto", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TempoRun", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TempoRun", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TempoRun", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TempoRun", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TCMedio", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TCMedio", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TCMedio", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TCMedio", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TCLav", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TCLav", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TCLav", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TCLav", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TCEff", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TCEff", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TCEff", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TCEff", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TCMedioRT", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TCMedioRT", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TCMedioRT", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TCMedioRT", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TCLavRT", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TCLavRT", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TCLavRT", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TCLavRT", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TCEffRT", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TCEffRT", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TCEffRT", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 8, "TCEffRT", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RowNum", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "RowNum", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[3]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = @"SELECT RowNum, lastUpdate, IdxMacchina, CodMacchina, Nome, url, idxODL, CodArticolo, NumPezzi, TCAssegnato, DataInizioODL, Semaforo, idxStato, DescrizioneStato, durata, PezziProd, PezziConf, TempoOn, TempoAuto, TempoRun, TCMedio, TCLav, TCEff, TCMedioRT, TCLavRT, TCEffRT FROM dbo.MappaStatoExpl"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "dbo.stp_MSE_getByIdxMacchina"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[2].Connection = this.Connection; + this._commandCollection[2].CommandText = "dbo.stp_MSE_getData"; + this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@maxAgeSec", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_ProdTempi.MappaStatoExplDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_ProdTempi.MappaStatoExplDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_ProdTempi.MappaStatoExplDataTable dataTable = new DS_ProdTempi.MappaStatoExplDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_ProdTempi.MappaStatoExplDataTable getByIdxMacchina(string IdxMacchina) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((IdxMacchina == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(IdxMacchina)); + } + DS_ProdTempi.MappaStatoExplDataTable dataTable = new DS_ProdTempi.MappaStatoExplDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_ProdTempi.MappaStatoExplDataTable getByRefreshData(global::System.Nullable maxAgeSec) { + this.Adapter.SelectCommand = this.CommandCollection[2]; + if ((maxAgeSec.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[1].Value = ((int)(maxAgeSec.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + DS_ProdTempi.MappaStatoExplDataTable dataTable = new DS_ProdTempi.MappaStatoExplDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_ProdTempi.MappaStatoExplDataTable dataTable) { + return this.Adapter.Update(dataTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_ProdTempi dataSet) { + return this.Adapter.Update(dataSet, "MappaStatoExpl"); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow dataRow) { + return this.Adapter.Update(new global::System.Data.DataRow[] { + dataRow}); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow[] dataRows) { + return this.Adapter.Update(dataRows); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] + public virtual int Delete( + int Original_RowNum, + global::System.Nullable Original_lastUpdate, + string Original_IdxMacchina, + string Original_CodMacchina, + string Original_Nome, + string Original_url, + global::System.Nullable Original_idxODL, + string Original_CodArticolo, + global::System.Nullable Original_NumPezzi, + global::System.Nullable Original_TCAssegnato, + global::System.Nullable Original_DataInizioODL, + string Original_Semaforo, + global::System.Nullable Original_idxStato, + string Original_DescrizioneStato, + global::System.Nullable Original_durata, + global::System.Nullable Original_PezziProd, + global::System.Nullable Original_PezziConf, + global::System.Nullable Original_TempoOn, + global::System.Nullable Original_TempoAuto, + global::System.Nullable Original_TempoRun, + global::System.Nullable Original_TCMedio, + global::System.Nullable Original_TCLav, + global::System.Nullable Original_TCEff, + global::System.Nullable Original_TCMedioRT, + global::System.Nullable Original_TCLavRT, + global::System.Nullable Original_TCEffRT) { + this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_RowNum)); + if ((Original_lastUpdate.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[2].Value = ((System.DateTime)(Original_lastUpdate.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((Original_IdxMacchina == null)) { + this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_IdxMacchina)); + } + if ((Original_CodMacchina == null)) { + this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_CodMacchina)); + } + if ((Original_Nome == null)) { + this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_Nome)); + } + if ((Original_url == null)) { + this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_url)); + } + if ((Original_idxODL.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[12].Value = ((int)(Original_idxODL.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value; + } + if ((Original_CodArticolo == null)) { + this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[14].Value = ((string)(Original_CodArticolo)); + } + if ((Original_NumPezzi.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[16].Value = ((int)(Original_NumPezzi.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[16].Value = global::System.DBNull.Value; + } + if ((Original_TCAssegnato.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[18].Value = ((decimal)(Original_TCAssegnato.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[18].Value = global::System.DBNull.Value; + } + if ((Original_DataInizioODL.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[20].Value = ((System.DateTime)(Original_DataInizioODL.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[20].Value = global::System.DBNull.Value; + } + if ((Original_Semaforo == null)) { + this.Adapter.DeleteCommand.Parameters[21].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[22].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[21].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[22].Value = ((string)(Original_Semaforo)); + } + if ((Original_idxStato.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[23].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[24].Value = ((int)(Original_idxStato.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[23].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[24].Value = global::System.DBNull.Value; + } + if ((Original_DescrizioneStato == null)) { + this.Adapter.DeleteCommand.Parameters[25].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[26].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[25].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[26].Value = ((string)(Original_DescrizioneStato)); + } + if ((Original_durata.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[27].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[28].Value = ((double)(Original_durata.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[27].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[28].Value = global::System.DBNull.Value; + } + if ((Original_PezziProd.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[29].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[30].Value = ((int)(Original_PezziProd.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[29].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[30].Value = global::System.DBNull.Value; + } + if ((Original_PezziConf.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[31].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[32].Value = ((int)(Original_PezziConf.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[31].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[32].Value = global::System.DBNull.Value; + } + if ((Original_TempoOn.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[33].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[34].Value = ((decimal)(Original_TempoOn.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[33].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[34].Value = global::System.DBNull.Value; + } + if ((Original_TempoAuto.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[35].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[36].Value = ((decimal)(Original_TempoAuto.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[35].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[36].Value = global::System.DBNull.Value; + } + if ((Original_TempoRun.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[37].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[38].Value = ((decimal)(Original_TempoRun.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[37].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[38].Value = global::System.DBNull.Value; + } + if ((Original_TCMedio.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[39].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[40].Value = ((decimal)(Original_TCMedio.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[39].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[40].Value = global::System.DBNull.Value; + } + if ((Original_TCLav.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[41].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[42].Value = ((decimal)(Original_TCLav.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[41].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[42].Value = global::System.DBNull.Value; + } + if ((Original_TCEff.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[43].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[44].Value = ((decimal)(Original_TCEff.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[43].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[44].Value = global::System.DBNull.Value; + } + if ((Original_TCMedioRT.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[45].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[46].Value = ((decimal)(Original_TCMedioRT.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[45].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[46].Value = global::System.DBNull.Value; + } + if ((Original_TCLavRT.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[47].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[48].Value = ((decimal)(Original_TCLavRT.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[47].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[48].Value = global::System.DBNull.Value; + } + if ((Original_TCEffRT.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[49].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[50].Value = ((decimal)(Original_TCEffRT.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[49].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[50].Value = global::System.DBNull.Value; + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; + if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.DeleteCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.DeleteCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] + public virtual int Insert( + global::System.Nullable lastUpdate, + string IdxMacchina, + string CodMacchina, + string Nome, + string url, + global::System.Nullable idxODL, + string CodArticolo, + global::System.Nullable NumPezzi, + global::System.Nullable TCAssegnato, + global::System.Nullable DataInizioODL, + string Semaforo, + global::System.Nullable idxStato, + string DescrizioneStato, + global::System.Nullable durata, + global::System.Nullable PezziProd, + global::System.Nullable PezziConf, + global::System.Nullable TempoOn, + global::System.Nullable TempoAuto, + global::System.Nullable TempoRun, + global::System.Nullable TCMedio, + global::System.Nullable TCLav, + global::System.Nullable TCEff, + global::System.Nullable TCMedioRT, + global::System.Nullable TCLavRT, + global::System.Nullable TCEffRT) { + if ((lastUpdate.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[0].Value = ((System.DateTime)(lastUpdate.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value; + } + if ((IdxMacchina == null)) { + this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[1].Value = ((string)(IdxMacchina)); + } + if ((CodMacchina == null)) { + this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[2].Value = ((string)(CodMacchina)); + } + if ((Nome == null)) { + this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Nome)); + } + if ((url == null)) { + this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[4].Value = ((string)(url)); + } + if ((idxODL.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[5].Value = ((int)(idxODL.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value; + } + if ((CodArticolo == null)) { + this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[6].Value = ((string)(CodArticolo)); + } + if ((NumPezzi.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[7].Value = ((int)(NumPezzi.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value; + } + if ((TCAssegnato.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[8].Value = ((decimal)(TCAssegnato.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value; + } + if ((DataInizioODL.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[9].Value = ((System.DateTime)(DataInizioODL.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value; + } + if ((Semaforo == null)) { + this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[10].Value = ((string)(Semaforo)); + } + if ((idxStato.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[11].Value = ((int)(idxStato.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[11].Value = global::System.DBNull.Value; + } + if ((DescrizioneStato == null)) { + this.Adapter.InsertCommand.Parameters[12].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[12].Value = ((string)(DescrizioneStato)); + } + if ((durata.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[13].Value = ((double)(durata.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[13].Value = global::System.DBNull.Value; + } + if ((PezziProd.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[14].Value = ((int)(PezziProd.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[14].Value = global::System.DBNull.Value; + } + if ((PezziConf.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[15].Value = ((int)(PezziConf.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[15].Value = global::System.DBNull.Value; + } + if ((TempoOn.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[16].Value = ((decimal)(TempoOn.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[16].Value = global::System.DBNull.Value; + } + if ((TempoAuto.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[17].Value = ((decimal)(TempoAuto.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[17].Value = global::System.DBNull.Value; + } + if ((TempoRun.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[18].Value = ((decimal)(TempoRun.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[18].Value = global::System.DBNull.Value; + } + if ((TCMedio.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[19].Value = ((decimal)(TCMedio.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[19].Value = global::System.DBNull.Value; + } + if ((TCLav.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[20].Value = ((decimal)(TCLav.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[20].Value = global::System.DBNull.Value; + } + if ((TCEff.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[21].Value = ((decimal)(TCEff.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[21].Value = global::System.DBNull.Value; + } + if ((TCMedioRT.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[22].Value = ((decimal)(TCMedioRT.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[22].Value = global::System.DBNull.Value; + } + if ((TCLavRT.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[23].Value = ((decimal)(TCLavRT.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[23].Value = global::System.DBNull.Value; + } + if ((TCEffRT.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[24].Value = ((decimal)(TCEffRT.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[24].Value = global::System.DBNull.Value; + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; + if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.InsertCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.InsertCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update( + global::System.Nullable lastUpdate, + string IdxMacchina, + string CodMacchina, + string Nome, + string url, + global::System.Nullable idxODL, + string CodArticolo, + global::System.Nullable NumPezzi, + global::System.Nullable TCAssegnato, + global::System.Nullable DataInizioODL, + string Semaforo, + global::System.Nullable idxStato, + string DescrizioneStato, + global::System.Nullable durata, + global::System.Nullable PezziProd, + global::System.Nullable PezziConf, + global::System.Nullable TempoOn, + global::System.Nullable TempoAuto, + global::System.Nullable TempoRun, + global::System.Nullable TCMedio, + global::System.Nullable TCLav, + global::System.Nullable TCEff, + global::System.Nullable TCMedioRT, + global::System.Nullable TCLavRT, + global::System.Nullable TCEffRT, + int Original_RowNum, + global::System.Nullable Original_lastUpdate, + string Original_IdxMacchina, + string Original_CodMacchina, + string Original_Nome, + string Original_url, + global::System.Nullable Original_idxODL, + string Original_CodArticolo, + global::System.Nullable Original_NumPezzi, + global::System.Nullable Original_TCAssegnato, + global::System.Nullable Original_DataInizioODL, + string Original_Semaforo, + global::System.Nullable Original_idxStato, + string Original_DescrizioneStato, + global::System.Nullable Original_durata, + global::System.Nullable Original_PezziProd, + global::System.Nullable Original_PezziConf, + global::System.Nullable Original_TempoOn, + global::System.Nullable Original_TempoAuto, + global::System.Nullable Original_TempoRun, + global::System.Nullable Original_TCMedio, + global::System.Nullable Original_TCLav, + global::System.Nullable Original_TCEff, + global::System.Nullable Original_TCMedioRT, + global::System.Nullable Original_TCLavRT, + global::System.Nullable Original_TCEffRT, + int RowNum) { + if ((lastUpdate.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[0].Value = ((System.DateTime)(lastUpdate.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value; + } + if ((IdxMacchina == null)) { + this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(IdxMacchina)); + } + if ((CodMacchina == null)) { + this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(CodMacchina)); + } + if ((Nome == null)) { + this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Nome)); + } + if ((url == null)) { + this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(url)); + } + if ((idxODL.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(idxODL.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value; + } + if ((CodArticolo == null)) { + this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(CodArticolo)); + } + if ((NumPezzi.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(NumPezzi.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value; + } + if ((TCAssegnato.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[8].Value = ((decimal)(TCAssegnato.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value; + } + if ((DataInizioODL.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[9].Value = ((System.DateTime)(DataInizioODL.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value; + } + if ((Semaforo == null)) { + this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Semaforo)); + } + if ((idxStato.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(idxStato.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value; + } + if ((DescrizioneStato == null)) { + this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(DescrizioneStato)); + } + if ((durata.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[13].Value = ((double)(durata.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value; + } + if ((PezziProd.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(PezziProd.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value; + } + if ((PezziConf.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[15].Value = ((int)(PezziConf.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value; + } + if ((TempoOn.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[16].Value = ((decimal)(TempoOn.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value; + } + if ((TempoAuto.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[17].Value = ((decimal)(TempoAuto.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value; + } + if ((TempoRun.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[18].Value = ((decimal)(TempoRun.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value; + } + if ((TCMedio.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[19].Value = ((decimal)(TCMedio.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value; + } + if ((TCLav.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[20].Value = ((decimal)(TCLav.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[20].Value = global::System.DBNull.Value; + } + if ((TCEff.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[21].Value = ((decimal)(TCEff.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value; + } + if ((TCMedioRT.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[22].Value = ((decimal)(TCMedioRT.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[22].Value = global::System.DBNull.Value; + } + if ((TCLavRT.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[23].Value = ((decimal)(TCLavRT.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value; + } + if ((TCEffRT.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[24].Value = ((decimal)(TCEffRT.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[24].Value = global::System.DBNull.Value; + } + this.Adapter.UpdateCommand.Parameters[25].Value = ((int)(Original_RowNum)); + if ((Original_lastUpdate.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[27].Value = ((System.DateTime)(Original_lastUpdate.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[27].Value = global::System.DBNull.Value; + } + if ((Original_IdxMacchina == null)) { + this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[29].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[29].Value = ((string)(Original_IdxMacchina)); + } + if ((Original_CodMacchina == null)) { + this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[31].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[31].Value = ((string)(Original_CodMacchina)); + } + if ((Original_Nome == null)) { + this.Adapter.UpdateCommand.Parameters[32].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[33].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[32].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[33].Value = ((string)(Original_Nome)); + } + if ((Original_url == null)) { + this.Adapter.UpdateCommand.Parameters[34].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[35].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[34].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[35].Value = ((string)(Original_url)); + } + if ((Original_idxODL.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[36].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[37].Value = ((int)(Original_idxODL.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[36].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[37].Value = global::System.DBNull.Value; + } + if ((Original_CodArticolo == null)) { + this.Adapter.UpdateCommand.Parameters[38].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[39].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[38].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[39].Value = ((string)(Original_CodArticolo)); + } + if ((Original_NumPezzi.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[40].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[41].Value = ((int)(Original_NumPezzi.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[40].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[41].Value = global::System.DBNull.Value; + } + if ((Original_TCAssegnato.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[42].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[43].Value = ((decimal)(Original_TCAssegnato.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[42].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[43].Value = global::System.DBNull.Value; + } + if ((Original_DataInizioODL.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[44].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[45].Value = ((System.DateTime)(Original_DataInizioODL.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[44].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[45].Value = global::System.DBNull.Value; + } + if ((Original_Semaforo == null)) { + this.Adapter.UpdateCommand.Parameters[46].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[47].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[46].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[47].Value = ((string)(Original_Semaforo)); + } + if ((Original_idxStato.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[48].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[49].Value = ((int)(Original_idxStato.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[48].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[49].Value = global::System.DBNull.Value; + } + if ((Original_DescrizioneStato == null)) { + this.Adapter.UpdateCommand.Parameters[50].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[51].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[50].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[51].Value = ((string)(Original_DescrizioneStato)); + } + if ((Original_durata.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[52].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[53].Value = ((double)(Original_durata.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[52].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[53].Value = global::System.DBNull.Value; + } + if ((Original_PezziProd.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[54].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[55].Value = ((int)(Original_PezziProd.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[54].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[55].Value = global::System.DBNull.Value; + } + if ((Original_PezziConf.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[56].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[57].Value = ((int)(Original_PezziConf.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[56].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[57].Value = global::System.DBNull.Value; + } + if ((Original_TempoOn.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[58].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[59].Value = ((decimal)(Original_TempoOn.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[58].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[59].Value = global::System.DBNull.Value; + } + if ((Original_TempoAuto.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[60].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[61].Value = ((decimal)(Original_TempoAuto.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[60].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[61].Value = global::System.DBNull.Value; + } + if ((Original_TempoRun.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[62].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[63].Value = ((decimal)(Original_TempoRun.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[62].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[63].Value = global::System.DBNull.Value; + } + if ((Original_TCMedio.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[64].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[65].Value = ((decimal)(Original_TCMedio.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[64].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[65].Value = global::System.DBNull.Value; + } + if ((Original_TCLav.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[66].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[67].Value = ((decimal)(Original_TCLav.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[66].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[67].Value = global::System.DBNull.Value; + } + if ((Original_TCEff.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[68].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[69].Value = ((decimal)(Original_TCEff.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[68].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[69].Value = global::System.DBNull.Value; + } + if ((Original_TCMedioRT.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[70].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[71].Value = ((decimal)(Original_TCMedioRT.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[70].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[71].Value = global::System.DBNull.Value; + } + if ((Original_TCLavRT.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[72].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[73].Value = ((decimal)(Original_TCLavRT.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[72].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[73].Value = global::System.DBNull.Value; + } + if ((Original_TCEffRT.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[74].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[75].Value = ((decimal)(Original_TCEffRT.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[74].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[75].Value = global::System.DBNull.Value; + } + this.Adapter.UpdateCommand.Parameters[76].Value = ((int)(RowNum)); + global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; + if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.UpdateCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.UpdateCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update( + global::System.Nullable lastUpdate, + string CodMacchina, + string Nome, + string url, + global::System.Nullable idxODL, + string CodArticolo, + global::System.Nullable NumPezzi, + global::System.Nullable TCAssegnato, + global::System.Nullable DataInizioODL, + string Semaforo, + global::System.Nullable idxStato, + string DescrizioneStato, + global::System.Nullable durata, + global::System.Nullable PezziProd, + global::System.Nullable PezziConf, + global::System.Nullable TempoOn, + global::System.Nullable TempoAuto, + global::System.Nullable TempoRun, + global::System.Nullable TCMedio, + global::System.Nullable TCLav, + global::System.Nullable TCEff, + global::System.Nullable TCMedioRT, + global::System.Nullable TCLavRT, + global::System.Nullable TCEffRT, + int Original_RowNum, + global::System.Nullable Original_lastUpdate, + string Original_IdxMacchina, + string Original_CodMacchina, + string Original_Nome, + string Original_url, + global::System.Nullable Original_idxODL, + string Original_CodArticolo, + global::System.Nullable Original_NumPezzi, + global::System.Nullable Original_TCAssegnato, + global::System.Nullable Original_DataInizioODL, + string Original_Semaforo, + global::System.Nullable Original_idxStato, + string Original_DescrizioneStato, + global::System.Nullable Original_durata, + global::System.Nullable Original_PezziProd, + global::System.Nullable Original_PezziConf, + global::System.Nullable Original_TempoOn, + global::System.Nullable Original_TempoAuto, + global::System.Nullable Original_TempoRun, + global::System.Nullable Original_TCMedio, + global::System.Nullable Original_TCLav, + global::System.Nullable Original_TCEff, + global::System.Nullable Original_TCMedioRT, + global::System.Nullable Original_TCLavRT, + global::System.Nullable Original_TCEffRT, + int RowNum) { + return this.Update(lastUpdate, Original_IdxMacchina, CodMacchina, Nome, url, idxODL, CodArticolo, NumPezzi, TCAssegnato, DataInizioODL, Semaforo, idxStato, DescrizioneStato, durata, PezziProd, PezziConf, TempoOn, TempoAuto, TempoRun, TCMedio, TCLav, TCEff, TCMedioRT, TCLavRT, TCEffRT, Original_RowNum, Original_lastUpdate, Original_IdxMacchina, Original_CodMacchina, Original_Nome, Original_url, Original_idxODL, Original_CodArticolo, Original_NumPezzi, Original_TCAssegnato, Original_DataInizioODL, Original_Semaforo, Original_idxStato, Original_DescrizioneStato, Original_durata, Original_PezziProd, Original_PezziConf, Original_TempoOn, Original_TempoAuto, Original_TempoRun, Original_TCMedio, Original_TCLav, Original_TCEff, Original_TCMedioRT, Original_TCLavRT, Original_TCEffRT, RowNum); + } + } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class ProduzioneAs400TableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlTransaction _transaction; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public ProduzioneAs400TableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlTransaction Transaction { + get { + return this._transaction; + } + set { + this._transaction = value; + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + this.CommandCollection[i].Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.DeleteCommand != null))) { + this.Adapter.DeleteCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.InsertCommand != null))) { + this.Adapter.InsertCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.UpdateCommand != null))) { + this.Adapter.UpdateCommand.Transaction = this._transaction; + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "ProduzioneAs400"; + tableMapping.ColumnMappings.Add("IdxODL", "IdxODL"); + tableMapping.ColumnMappings.Add("CommessaAs400", "CommessaAs400"); + tableMapping.ColumnMappings.Add("CodArticolo", "CodArticolo"); + tableMapping.ColumnMappings.Add("TotPzProd", "TotPzProd"); + tableMapping.ColumnMappings.Add("DataRif", "DataRif"); + this._adapter.TableMappings.Add(tableMapping); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT IdxODL, CommessaAs400, DataRif, CodArticolo, TotPzProd\r\nFROM " + + " export.v_AS400_BufferProdAs400"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "dbo.stp_EXP_insProdAs400_OdlDate"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxODL", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataRif", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_ProdTempi.ProduzioneAs400DataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_ProdTempi.ProduzioneAs400DataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_ProdTempi.ProduzioneAs400DataTable dataTable = new DS_ProdTempi.ProduzioneAs400DataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int insProdAs400(global::System.Nullable IdxODL, global::System.Nullable DataRif) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1]; + if ((IdxODL.HasValue == true)) { + command.Parameters[1].Value = ((int)(IdxODL.Value)); + } + else { + command.Parameters[1].Value = global::System.DBNull.Value; + } + if ((DataRif.HasValue == true)) { + command.Parameters[2].Value = ((System.DateTime)(DataRif.Value)); + } + else { + command.Parameters[2].Value = global::System.DBNull.Value; + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class ResProdDett_splitODLTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlTransaction _transaction; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public ResProdDett_splitODLTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlTransaction Transaction { + get { + return this._transaction; + } + set { + this._transaction = value; + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + this.CommandCollection[i].Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.DeleteCommand != null))) { + this.Adapter.DeleteCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.InsertCommand != null))) { + this.Adapter.InsertCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.UpdateCommand != null))) { + this.Adapter.UpdateCommand.Transaction = this._transaction; + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "ResProdDett_splitODL"; + tableMapping.ColumnMappings.Add("IdxODL", "IdxODL"); + tableMapping.ColumnMappings.Add("TCAssegnato", "TCAssegnato"); + tableMapping.ColumnMappings.Add("pzOrd", "pzOrd"); + tableMapping.ColumnMappings.Add("pzProd", "pzProd"); + tableMapping.ColumnMappings.Add("pzConf", "pzConf"); + tableMapping.ColumnMappings.Add("pzRiman", "pzRiman"); + this._adapter.TableMappings.Add(tableMapping); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "dbo.stp_ResProdDett_splitODL"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataFrom", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataTo", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OdlClosed", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OdlOpen", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OdlNew", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_ProdTempi.ResProdDett_splitODLDataTable dataTable, string idxMacchina, string CodArticolo, global::System.Nullable dataFrom, global::System.Nullable dataTo, global::System.Nullable OdlClosed, global::System.Nullable OdlOpen, global::System.Nullable OdlNew) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((idxMacchina == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(idxMacchina)); + } + if ((CodArticolo == null)) { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = ((string)(CodArticolo)); + } + if ((dataFrom.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[3].Value = ((System.DateTime)(dataFrom.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; + } + if ((dataTo.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[4].Value = ((System.DateTime)(dataTo.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[4].Value = global::System.DBNull.Value; + } + if ((OdlClosed.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[5].Value = ((bool)(OdlClosed.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[5].Value = global::System.DBNull.Value; + } + if ((OdlOpen.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[6].Value = ((bool)(OdlOpen.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[6].Value = global::System.DBNull.Value; + } + if ((OdlNew.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[7].Value = ((bool)(OdlNew.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[7].Value = global::System.DBNull.Value; + } + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_ProdTempi.ResProdDett_splitODLDataTable GetData(string idxMacchina, string CodArticolo, global::System.Nullable dataFrom, global::System.Nullable dataTo, global::System.Nullable OdlClosed, global::System.Nullable OdlOpen, global::System.Nullable OdlNew) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((idxMacchina == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(idxMacchina)); + } + if ((CodArticolo == null)) { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = ((string)(CodArticolo)); + } + if ((dataFrom.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[3].Value = ((System.DateTime)(dataFrom.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; + } + if ((dataTo.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[4].Value = ((System.DateTime)(dataTo.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[4].Value = global::System.DBNull.Value; + } + if ((OdlClosed.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[5].Value = ((bool)(OdlClosed.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[5].Value = global::System.DBNull.Value; + } + if ((OdlOpen.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[6].Value = ((bool)(OdlOpen.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[6].Value = global::System.DBNull.Value; + } + if ((OdlNew.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[7].Value = ((bool)(OdlNew.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[7].Value = global::System.DBNull.Value; + } + DS_ProdTempi.ResProdDett_splitODLDataTable dataTable = new DS_ProdTempi.ResProdDett_splitODLDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class ResProdDett_splitGGTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlTransaction _transaction; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public ResProdDett_splitGGTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlTransaction Transaction { + get { + return this._transaction; + } + set { + this._transaction = value; + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + this.CommandCollection[i].Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.DeleteCommand != null))) { + this.Adapter.DeleteCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.InsertCommand != null))) { + this.Adapter.InsertCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.UpdateCommand != null))) { + this.Adapter.UpdateCommand.Transaction = this._transaction; + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "ResProdDett_splitGG"; + tableMapping.ColumnMappings.Add("Data", "Data"); + tableMapping.ColumnMappings.Add("IdxODL", "IdxODL"); + tableMapping.ColumnMappings.Add("TCAssegnato", "TCAssegnato"); + tableMapping.ColumnMappings.Add("pzProd", "pzProd"); + tableMapping.ColumnMappings.Add("pzConf", "pzConf"); + tableMapping.ColumnMappings.Add("Nome", "Nome"); + tableMapping.ColumnMappings.Add("CodArticolo", "CodArticolo"); + this._adapter.TableMappings.Add(tableMapping); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "dbo.stp_ResProdDett_splitGG"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataFrom", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataTo", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OdlClosed", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OdlOpen", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OdlNew", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_ProdTempi.ResProdDett_splitGGDataTable dataTable, string idxMacchina, string CodArticolo, global::System.Nullable dataFrom, global::System.Nullable dataTo, global::System.Nullable OdlClosed, global::System.Nullable OdlOpen, global::System.Nullable OdlNew) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((idxMacchina == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(idxMacchina)); + } + if ((CodArticolo == null)) { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = ((string)(CodArticolo)); + } + if ((dataFrom.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[3].Value = ((System.DateTime)(dataFrom.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; + } + if ((dataTo.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[4].Value = ((System.DateTime)(dataTo.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[4].Value = global::System.DBNull.Value; + } + if ((OdlClosed.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[5].Value = ((bool)(OdlClosed.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[5].Value = global::System.DBNull.Value; + } + if ((OdlOpen.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[6].Value = ((bool)(OdlOpen.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[6].Value = global::System.DBNull.Value; + } + if ((OdlNew.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[7].Value = ((bool)(OdlNew.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[7].Value = global::System.DBNull.Value; + } + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_ProdTempi.ResProdDett_splitGGDataTable GetData(string idxMacchina, string CodArticolo, global::System.Nullable dataFrom, global::System.Nullable dataTo, global::System.Nullable OdlClosed, global::System.Nullable OdlOpen, global::System.Nullable OdlNew) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((idxMacchina == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(idxMacchina)); + } + if ((CodArticolo == null)) { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = ((string)(CodArticolo)); + } + if ((dataFrom.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[3].Value = ((System.DateTime)(dataFrom.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; + } + if ((dataTo.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[4].Value = ((System.DateTime)(dataTo.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[4].Value = global::System.DBNull.Value; + } + if ((OdlClosed.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[5].Value = ((bool)(OdlClosed.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[5].Value = global::System.DBNull.Value; + } + if ((OdlOpen.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[6].Value = ((bool)(OdlOpen.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[6].Value = global::System.DBNull.Value; + } + if ((OdlNew.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[7].Value = ((bool)(OdlNew.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[7].Value = global::System.DBNull.Value; + } + DS_ProdTempi.ResProdDett_splitGGDataTable dataTable = new DS_ProdTempi.ResProdDett_splitGGDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class ResProdTotTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlTransaction _transaction; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public ResProdTotTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlTransaction Transaction { + get { + return this._transaction; + } + set { + this._transaction = value; + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + this.CommandCollection[i].Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.DeleteCommand != null))) { + this.Adapter.DeleteCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.InsertCommand != null))) { + this.Adapter.InsertCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.UpdateCommand != null))) { + this.Adapter.UpdateCommand.Transaction = this._transaction; + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "ResProdTot"; + tableMapping.ColumnMappings.Add("Nome", "Nome"); + tableMapping.ColumnMappings.Add("IdxMacchina", "IdxMacchina"); + tableMapping.ColumnMappings.Add("CodArticolo", "CodArticolo"); + tableMapping.ColumnMappings.Add("pzOrd", "pzOrd"); + tableMapping.ColumnMappings.Add("pzProd", "pzProd"); + tableMapping.ColumnMappings.Add("pzConf", "pzConf"); + tableMapping.ColumnMappings.Add("pzRiman", "pzRiman"); + tableMapping.ColumnMappings.Add("Stato", "Stato"); + this._adapter.TableMappings.Add(tableMapping); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "dbo.stp_ResProd_getByPeriodo"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataFrom", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataTo", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OdlClosed", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OdlOpen", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OdlNew", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxMulti", global::System.Data.SqlDbType.NVarChar, 2147483647, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_ProdTempi.ResProdTotDataTable dataTable, global::System.Nullable dataFrom, global::System.Nullable dataTo, global::System.Nullable OdlClosed, global::System.Nullable OdlOpen, global::System.Nullable OdlNew, string idxMulti) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((dataFrom.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[1].Value = ((System.DateTime)(dataFrom.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + if ((dataTo.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(dataTo.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((OdlClosed.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[3].Value = ((bool)(OdlClosed.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; + } + if ((OdlOpen.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[4].Value = ((bool)(OdlOpen.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[4].Value = global::System.DBNull.Value; + } + if ((OdlNew.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[5].Value = ((bool)(OdlNew.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[5].Value = global::System.DBNull.Value; + } + if ((idxMulti == null)) { + this.Adapter.SelectCommand.Parameters[6].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[6].Value = ((string)(idxMulti)); + } + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_ProdTempi.ResProdTotDataTable GetData(global::System.Nullable dataFrom, global::System.Nullable dataTo, global::System.Nullable OdlClosed, global::System.Nullable OdlOpen, global::System.Nullable OdlNew, string idxMulti) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((dataFrom.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[1].Value = ((System.DateTime)(dataFrom.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + if ((dataTo.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(dataTo.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((OdlClosed.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[3].Value = ((bool)(OdlClosed.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; + } + if ((OdlOpen.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[4].Value = ((bool)(OdlOpen.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[4].Value = global::System.DBNull.Value; + } + if ((OdlNew.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[5].Value = ((bool)(OdlNew.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[5].Value = global::System.DBNull.Value; + } + if ((idxMulti == null)) { + this.Adapter.SelectCommand.Parameters[6].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[6].Value = ((string)(idxMulti)); + } + DS_ProdTempi.ResProdTotDataTable dataTable = new DS_ProdTempi.ResProdTotDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + } + + /// + ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" + + "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")] + public partial class TableAdapterManager : global::System.ComponentModel.Component { + + private UpdateOrderOption _updateOrder; + + private TempiCicloRilevatiTableAdapter _tempiCicloRilevatiTableAdapter; + + private AnagArticoliTableAdapter _anagArticoliTableAdapter; + + private PostazioniMapoTableAdapter _postazioniMapoTableAdapter; + + private DatiConfermatiTableAdapter _datiConfermatiTableAdapter; + + private CalendFesteFerieTableAdapter _calendFesteFerieTableAdapter; + + private DatiProduzioneTableAdapter _datiProduzioneTableAdapter; + + private TurniMacchinaTableAdapter _turniMacchinaTableAdapter; + + private MappaStatoExplTableAdapter _mappaStatoExplTableAdapter; + + private bool _backupDataSetBeforeUpdate; + + private global::System.Data.IDbConnection _connection; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public UpdateOrderOption UpdateOrder { + get { + return this._updateOrder; + } + set { + this._updateOrder = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + + "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" + + "a", "System.Drawing.Design.UITypeEditor")] + public TempiCicloRilevatiTableAdapter TempiCicloRilevatiTableAdapter { + get { + return this._tempiCicloRilevatiTableAdapter; + } + set { + this._tempiCicloRilevatiTableAdapter = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + + "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" + + "a", "System.Drawing.Design.UITypeEditor")] + public AnagArticoliTableAdapter AnagArticoliTableAdapter { + get { + return this._anagArticoliTableAdapter; + } + set { + this._anagArticoliTableAdapter = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + + "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" + + "a", "System.Drawing.Design.UITypeEditor")] + public PostazioniMapoTableAdapter PostazioniMapoTableAdapter { + get { + return this._postazioniMapoTableAdapter; + } + set { + this._postazioniMapoTableAdapter = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + + "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" + + "a", "System.Drawing.Design.UITypeEditor")] + public DatiConfermatiTableAdapter DatiConfermatiTableAdapter { + get { + return this._datiConfermatiTableAdapter; + } + set { + this._datiConfermatiTableAdapter = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + + "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" + + "a", "System.Drawing.Design.UITypeEditor")] + public CalendFesteFerieTableAdapter CalendFesteFerieTableAdapter { + get { + return this._calendFesteFerieTableAdapter; + } + set { + this._calendFesteFerieTableAdapter = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + + "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" + + "a", "System.Drawing.Design.UITypeEditor")] + public DatiProduzioneTableAdapter DatiProduzioneTableAdapter { + get { + return this._datiProduzioneTableAdapter; + } + set { + this._datiProduzioneTableAdapter = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + + "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" + + "a", "System.Drawing.Design.UITypeEditor")] + public TurniMacchinaTableAdapter TurniMacchinaTableAdapter { + get { + return this._turniMacchinaTableAdapter; + } + set { + this._turniMacchinaTableAdapter = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + + "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" + + "a", "System.Drawing.Design.UITypeEditor")] + public MappaStatoExplTableAdapter MappaStatoExplTableAdapter { + get { + return this._mappaStatoExplTableAdapter; + } + set { + this._mappaStatoExplTableAdapter = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool BackupDataSetBeforeUpdate { + get { + return this._backupDataSetBeforeUpdate; + } + set { + this._backupDataSetBeforeUpdate = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public global::System.Data.IDbConnection Connection { + get { + if ((this._connection != null)) { + return this._connection; + } + if (((this._tempiCicloRilevatiTableAdapter != null) + && (this._tempiCicloRilevatiTableAdapter.Connection != null))) { + return this._tempiCicloRilevatiTableAdapter.Connection; + } + if (((this._anagArticoliTableAdapter != null) + && (this._anagArticoliTableAdapter.Connection != null))) { + return this._anagArticoliTableAdapter.Connection; + } + if (((this._postazioniMapoTableAdapter != null) + && (this._postazioniMapoTableAdapter.Connection != null))) { + return this._postazioniMapoTableAdapter.Connection; + } + if (((this._datiConfermatiTableAdapter != null) + && (this._datiConfermatiTableAdapter.Connection != null))) { + return this._datiConfermatiTableAdapter.Connection; + } + if (((this._calendFesteFerieTableAdapter != null) + && (this._calendFesteFerieTableAdapter.Connection != null))) { + return this._calendFesteFerieTableAdapter.Connection; + } + if (((this._datiProduzioneTableAdapter != null) + && (this._datiProduzioneTableAdapter.Connection != null))) { + return this._datiProduzioneTableAdapter.Connection; + } + if (((this._turniMacchinaTableAdapter != null) + && (this._turniMacchinaTableAdapter.Connection != null))) { + return this._turniMacchinaTableAdapter.Connection; + } + if (((this._mappaStatoExplTableAdapter != null) + && (this._mappaStatoExplTableAdapter.Connection != null))) { + return this._mappaStatoExplTableAdapter.Connection; + } + return null; + } + set { + this._connection = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int TableAdapterInstanceCount { + get { + int count = 0; + if ((this._tempiCicloRilevatiTableAdapter != null)) { + count = (count + 1); + } + if ((this._anagArticoliTableAdapter != null)) { + count = (count + 1); + } + if ((this._postazioniMapoTableAdapter != null)) { + count = (count + 1); + } + if ((this._datiConfermatiTableAdapter != null)) { + count = (count + 1); + } + if ((this._calendFesteFerieTableAdapter != null)) { + count = (count + 1); + } + if ((this._datiProduzioneTableAdapter != null)) { + count = (count + 1); + } + if ((this._turniMacchinaTableAdapter != null)) { + count = (count + 1); + } + if ((this._mappaStatoExplTableAdapter != null)) { + count = (count + 1); + } + return count; + } + } + + /// + ///Update rows in top-down order. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private int UpdateUpdatedRows(DS_ProdTempi dataSet, global::System.Collections.Generic.List allChangedRows, global::System.Collections.Generic.List allAddedRows) { + int result = 0; + if ((this._tempiCicloRilevatiTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.TempiCicloRilevati.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._tempiCicloRilevatiTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } + if ((this._mappaStatoExplTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.MappaStatoExpl.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._mappaStatoExplTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } + if ((this._turniMacchinaTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.TurniMacchina.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._turniMacchinaTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } + if ((this._datiProduzioneTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.DatiProduzione.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._datiProduzioneTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } + if ((this._calendFesteFerieTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.CalendFesteFerie.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._calendFesteFerieTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } + if ((this._datiConfermatiTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.DatiConfermati.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._datiConfermatiTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } + if ((this._postazioniMapoTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.PostazioniMapo.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._postazioniMapoTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } + if ((this._anagArticoliTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.AnagArticoli.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._anagArticoliTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } + return result; + } + + /// + ///Insert rows in top-down order. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private int UpdateInsertedRows(DS_ProdTempi dataSet, global::System.Collections.Generic.List allAddedRows) { + int result = 0; + if ((this._tempiCicloRilevatiTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.TempiCicloRilevati.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._tempiCicloRilevatiTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } + if ((this._mappaStatoExplTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.MappaStatoExpl.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._mappaStatoExplTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } + if ((this._turniMacchinaTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.TurniMacchina.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._turniMacchinaTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } + if ((this._datiProduzioneTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.DatiProduzione.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._datiProduzioneTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } + if ((this._calendFesteFerieTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.CalendFesteFerie.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._calendFesteFerieTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } + if ((this._datiConfermatiTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.DatiConfermati.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._datiConfermatiTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } + if ((this._postazioniMapoTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.PostazioniMapo.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._postazioniMapoTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } + if ((this._anagArticoliTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.AnagArticoli.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._anagArticoliTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } + return result; + } + + /// + ///Delete rows in bottom-up order. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private int UpdateDeletedRows(DS_ProdTempi dataSet, global::System.Collections.Generic.List allChangedRows) { + int result = 0; + if ((this._anagArticoliTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.AnagArticoli.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._anagArticoliTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } + if ((this._postazioniMapoTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.PostazioniMapo.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._postazioniMapoTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } + if ((this._datiConfermatiTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.DatiConfermati.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._datiConfermatiTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } + if ((this._calendFesteFerieTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.CalendFesteFerie.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._calendFesteFerieTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } + if ((this._datiProduzioneTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.DatiProduzione.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._datiProduzioneTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } + if ((this._turniMacchinaTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.TurniMacchina.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._turniMacchinaTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } + if ((this._mappaStatoExplTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.MappaStatoExpl.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._mappaStatoExplTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } + if ((this._tempiCicloRilevatiTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.TempiCicloRilevati.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._tempiCicloRilevatiTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } + return result; + } + + /// + ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List allAddedRows) { + if (((updatedRows == null) + || (updatedRows.Length < 1))) { + return updatedRows; + } + if (((allAddedRows == null) + || (allAddedRows.Count < 1))) { + return updatedRows; + } + global::System.Collections.Generic.List realUpdatedRows = new global::System.Collections.Generic.List(); + for (int i = 0; (i < updatedRows.Length); i = (i + 1)) { + global::System.Data.DataRow row = updatedRows[i]; + if ((allAddedRows.Contains(row) == false)) { + realUpdatedRows.Add(row); + } + } + return realUpdatedRows.ToArray(); + } + + /// + ///Update all changes to the dataset. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public virtual int UpdateAll(DS_ProdTempi dataSet) { + if ((dataSet == null)) { + throw new global::System.ArgumentNullException("dataSet"); + } + if ((dataSet.HasChanges() == false)) { + return 0; + } + if (((this._tempiCicloRilevatiTableAdapter != null) + && (this.MatchTableAdapterConnection(this._tempiCicloRilevatiTableAdapter.Connection) == false))) { + throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + + "tring."); + } + if (((this._anagArticoliTableAdapter != null) + && (this.MatchTableAdapterConnection(this._anagArticoliTableAdapter.Connection) == false))) { + throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + + "tring."); + } + if (((this._postazioniMapoTableAdapter != null) + && (this.MatchTableAdapterConnection(this._postazioniMapoTableAdapter.Connection) == false))) { + throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + + "tring."); + } + if (((this._datiConfermatiTableAdapter != null) + && (this.MatchTableAdapterConnection(this._datiConfermatiTableAdapter.Connection) == false))) { + throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + + "tring."); + } + if (((this._calendFesteFerieTableAdapter != null) + && (this.MatchTableAdapterConnection(this._calendFesteFerieTableAdapter.Connection) == false))) { + throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + + "tring."); + } + if (((this._datiProduzioneTableAdapter != null) + && (this.MatchTableAdapterConnection(this._datiProduzioneTableAdapter.Connection) == false))) { + throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + + "tring."); + } + if (((this._turniMacchinaTableAdapter != null) + && (this.MatchTableAdapterConnection(this._turniMacchinaTableAdapter.Connection) == false))) { + throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + + "tring."); + } + if (((this._mappaStatoExplTableAdapter != null) + && (this.MatchTableAdapterConnection(this._mappaStatoExplTableAdapter.Connection) == false))) { + throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + + "tring."); + } + global::System.Data.IDbConnection workConnection = this.Connection; + if ((workConnection == null)) { + throw new global::System.ApplicationException("TableAdapterManager contains no connection information. Set each TableAdapterMana" + + "ger TableAdapter property to a valid TableAdapter instance."); + } + bool workConnOpened = false; + if (((workConnection.State & global::System.Data.ConnectionState.Broken) + == global::System.Data.ConnectionState.Broken)) { + workConnection.Close(); + } + if ((workConnection.State == global::System.Data.ConnectionState.Closed)) { + workConnection.Open(); + workConnOpened = true; + } + global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction(); + if ((workTransaction == null)) { + throw new global::System.ApplicationException("The transaction cannot begin. The current data connection does not support transa" + + "ctions or the current state is not allowing the transaction to begin."); + } + global::System.Collections.Generic.List allChangedRows = new global::System.Collections.Generic.List(); + global::System.Collections.Generic.List allAddedRows = new global::System.Collections.Generic.List(); + global::System.Collections.Generic.List adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List(); + global::System.Collections.Generic.Dictionary revertConnections = new global::System.Collections.Generic.Dictionary(); + int result = 0; + global::System.Data.DataSet backupDataSet = null; + if (this.BackupDataSetBeforeUpdate) { + backupDataSet = new global::System.Data.DataSet(); + backupDataSet.Merge(dataSet); + } + try { + // ---- Prepare for update ----------- + // + if ((this._tempiCicloRilevatiTableAdapter != null)) { + revertConnections.Add(this._tempiCicloRilevatiTableAdapter, this._tempiCicloRilevatiTableAdapter.Connection); + this._tempiCicloRilevatiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); + this._tempiCicloRilevatiTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); + if (this._tempiCicloRilevatiTableAdapter.Adapter.AcceptChangesDuringUpdate) { + this._tempiCicloRilevatiTableAdapter.Adapter.AcceptChangesDuringUpdate = false; + adaptersWithAcceptChangesDuringUpdate.Add(this._tempiCicloRilevatiTableAdapter.Adapter); + } + } + if ((this._anagArticoliTableAdapter != null)) { + revertConnections.Add(this._anagArticoliTableAdapter, this._anagArticoliTableAdapter.Connection); + this._anagArticoliTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); + this._anagArticoliTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); + if (this._anagArticoliTableAdapter.Adapter.AcceptChangesDuringUpdate) { + this._anagArticoliTableAdapter.Adapter.AcceptChangesDuringUpdate = false; + adaptersWithAcceptChangesDuringUpdate.Add(this._anagArticoliTableAdapter.Adapter); + } + } + if ((this._postazioniMapoTableAdapter != null)) { + revertConnections.Add(this._postazioniMapoTableAdapter, this._postazioniMapoTableAdapter.Connection); + this._postazioniMapoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); + this._postazioniMapoTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); + if (this._postazioniMapoTableAdapter.Adapter.AcceptChangesDuringUpdate) { + this._postazioniMapoTableAdapter.Adapter.AcceptChangesDuringUpdate = false; + adaptersWithAcceptChangesDuringUpdate.Add(this._postazioniMapoTableAdapter.Adapter); + } + } + if ((this._datiConfermatiTableAdapter != null)) { + revertConnections.Add(this._datiConfermatiTableAdapter, this._datiConfermatiTableAdapter.Connection); + this._datiConfermatiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); + this._datiConfermatiTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); + if (this._datiConfermatiTableAdapter.Adapter.AcceptChangesDuringUpdate) { + this._datiConfermatiTableAdapter.Adapter.AcceptChangesDuringUpdate = false; + adaptersWithAcceptChangesDuringUpdate.Add(this._datiConfermatiTableAdapter.Adapter); + } + } + if ((this._calendFesteFerieTableAdapter != null)) { + revertConnections.Add(this._calendFesteFerieTableAdapter, this._calendFesteFerieTableAdapter.Connection); + this._calendFesteFerieTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); + this._calendFesteFerieTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); + if (this._calendFesteFerieTableAdapter.Adapter.AcceptChangesDuringUpdate) { + this._calendFesteFerieTableAdapter.Adapter.AcceptChangesDuringUpdate = false; + adaptersWithAcceptChangesDuringUpdate.Add(this._calendFesteFerieTableAdapter.Adapter); + } + } + if ((this._datiProduzioneTableAdapter != null)) { + revertConnections.Add(this._datiProduzioneTableAdapter, this._datiProduzioneTableAdapter.Connection); + this._datiProduzioneTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); + this._datiProduzioneTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); + if (this._datiProduzioneTableAdapter.Adapter.AcceptChangesDuringUpdate) { + this._datiProduzioneTableAdapter.Adapter.AcceptChangesDuringUpdate = false; + adaptersWithAcceptChangesDuringUpdate.Add(this._datiProduzioneTableAdapter.Adapter); + } + } + if ((this._turniMacchinaTableAdapter != null)) { + revertConnections.Add(this._turniMacchinaTableAdapter, this._turniMacchinaTableAdapter.Connection); + this._turniMacchinaTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); + this._turniMacchinaTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); + if (this._turniMacchinaTableAdapter.Adapter.AcceptChangesDuringUpdate) { + this._turniMacchinaTableAdapter.Adapter.AcceptChangesDuringUpdate = false; + adaptersWithAcceptChangesDuringUpdate.Add(this._turniMacchinaTableAdapter.Adapter); + } + } + if ((this._mappaStatoExplTableAdapter != null)) { + revertConnections.Add(this._mappaStatoExplTableAdapter, this._mappaStatoExplTableAdapter.Connection); + this._mappaStatoExplTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); + this._mappaStatoExplTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); + if (this._mappaStatoExplTableAdapter.Adapter.AcceptChangesDuringUpdate) { + this._mappaStatoExplTableAdapter.Adapter.AcceptChangesDuringUpdate = false; + adaptersWithAcceptChangesDuringUpdate.Add(this._mappaStatoExplTableAdapter.Adapter); + } + } + // + //---- Perform updates ----------- + // + if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) { + result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows)); + result = (result + this.UpdateInsertedRows(dataSet, allAddedRows)); + } + else { + result = (result + this.UpdateInsertedRows(dataSet, allAddedRows)); + result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows)); + } + result = (result + this.UpdateDeletedRows(dataSet, allChangedRows)); + // + //---- Commit updates ----------- + // + workTransaction.Commit(); + if ((0 < allAddedRows.Count)) { + global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count]; + allAddedRows.CopyTo(rows); + for (int i = 0; (i < rows.Length); i = (i + 1)) { + global::System.Data.DataRow row = rows[i]; + row.AcceptChanges(); + } + } + if ((0 < allChangedRows.Count)) { + global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count]; + allChangedRows.CopyTo(rows); + for (int i = 0; (i < rows.Length); i = (i + 1)) { + global::System.Data.DataRow row = rows[i]; + row.AcceptChanges(); + } + } + } + catch (global::System.Exception ex) { + workTransaction.Rollback(); + // ---- Restore the dataset ----------- + if (this.BackupDataSetBeforeUpdate) { + global::System.Diagnostics.Debug.Assert((backupDataSet != null)); + dataSet.Clear(); + dataSet.Merge(backupDataSet); + } + else { + if ((0 < allAddedRows.Count)) { + global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count]; + allAddedRows.CopyTo(rows); + for (int i = 0; (i < rows.Length); i = (i + 1)) { + global::System.Data.DataRow row = rows[i]; + row.AcceptChanges(); + row.SetAdded(); + } + } + } + throw ex; + } + finally { + if (workConnOpened) { + workConnection.Close(); + } + if ((this._tempiCicloRilevatiTableAdapter != null)) { + this._tempiCicloRilevatiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._tempiCicloRilevatiTableAdapter])); + this._tempiCicloRilevatiTableAdapter.Transaction = null; + } + if ((this._anagArticoliTableAdapter != null)) { + this._anagArticoliTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagArticoliTableAdapter])); + this._anagArticoliTableAdapter.Transaction = null; + } + if ((this._postazioniMapoTableAdapter != null)) { + this._postazioniMapoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._postazioniMapoTableAdapter])); + this._postazioniMapoTableAdapter.Transaction = null; + } + if ((this._datiConfermatiTableAdapter != null)) { + this._datiConfermatiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._datiConfermatiTableAdapter])); + this._datiConfermatiTableAdapter.Transaction = null; + } + if ((this._calendFesteFerieTableAdapter != null)) { + this._calendFesteFerieTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._calendFesteFerieTableAdapter])); + this._calendFesteFerieTableAdapter.Transaction = null; + } + if ((this._datiProduzioneTableAdapter != null)) { + this._datiProduzioneTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._datiProduzioneTableAdapter])); + this._datiProduzioneTableAdapter.Transaction = null; + } + if ((this._turniMacchinaTableAdapter != null)) { + this._turniMacchinaTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._turniMacchinaTableAdapter])); + this._turniMacchinaTableAdapter.Transaction = null; + } + if ((this._mappaStatoExplTableAdapter != null)) { + this._mappaStatoExplTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._mappaStatoExplTableAdapter])); + this._mappaStatoExplTableAdapter.Transaction = null; + } + if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) { + global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count]; + adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters); + for (int i = 0; (i < adapters.Length); i = (i + 1)) { + global::System.Data.Common.DataAdapter adapter = adapters[i]; + adapter.AcceptChangesDuringUpdate = true; + } + } + } + return result; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) { + global::System.Array.Sort(rows, new SelfReferenceComparer(relation, childFirst)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) { + if ((this._connection != null)) { + return true; + } + if (((this.Connection == null) + || (inputConnection == null))) { + return true; + } + if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) { + return true; + } + return false; + } + + /// + ///Update Order Option + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public enum UpdateOrderOption { + + InsertUpdateDelete = 0, + + UpdateInsertDelete = 1, + } + + /// + ///Used to sort self-referenced table's rows + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer { + + private global::System.Data.DataRelation _relation; + + private int _childFirst; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) { + this._relation = relation; + if (childFirst) { + this._childFirst = -1; + } + else { + this._childFirst = 1; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) { + global::System.Diagnostics.Debug.Assert((row != null)); + global::System.Data.DataRow root = row; + distance = 0; + + global::System.Collections.Generic.IDictionary traversedRows = new global::System.Collections.Generic.Dictionary(); + traversedRows[row] = row; + + global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default); + for ( + ; ((parent != null) + && (traversedRows.ContainsKey(parent) == false)); + ) { + distance = (distance + 1); + root = parent; + traversedRows[parent] = parent; + parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default); + } + + if ((distance == 0)) { + traversedRows.Clear(); + traversedRows[row] = row; + parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original); + for ( + ; ((parent != null) + && (traversedRows.ContainsKey(parent) == false)); + ) { + distance = (distance + 1); + root = parent; + traversedRows[parent] = parent; + parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original); + } + } + + return root; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) { + if (object.ReferenceEquals(row1, row2)) { + return 0; + } + if ((row1 == null)) { + return -1; + } + if ((row2 == null)) { + return 1; + } + + int distance1 = 0; + global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1); + + int distance2 = 0; + global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2); + + if (object.ReferenceEquals(root1, root2)) { + return (this._childFirst * distance1.CompareTo(distance2)); + } + else { + global::System.Diagnostics.Debug.Assert(((root1.Table != null) + && (root2.Table != null))); + if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) { + return -1; + } + else { + return 1; + } + } + } + } + } +} + +#pragma warning restore 1591 \ No newline at end of file diff --git a/MapoDb/DS_Utility.Designer.cs b/MapoDb/DS_Utility.Designer.cs new file mode 100644 index 00000000..676b2eff --- /dev/null +++ b/MapoDb/DS_Utility.Designer.cs @@ -0,0 +1,8945 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.34014 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +#pragma warning disable 1591 + +namespace MapoDb { + + + /// + ///Represents a strongly typed in-memory cache of data. + /// + [global::System.Serializable()] + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")] + [global::System.Xml.Serialization.XmlRootAttribute("DS_Utility")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")] + public partial class DS_Utility : global::System.Data.DataSet { + + private StatoMacchineDataTable tableStatoMacchine; + + private v_selArticoliDataTable tablev_selArticoli; + + private v_selKanbanDataTable tablev_selKanban; + + private v_selOperatoriDataTable tablev_selOperatori; + + private v_selODLDataTable tablev_selODL; + + private v_selEventiBCodeDataTable tablev_selEventiBCode; + + private v_selMacchineDataTable tablev_selMacchine; + + private stp_statusCorrenteDataTable tablestp_statusCorrente; + + private CommentiDataTable tableCommenti; + + private FermiNonQualDataTable tableFermiNonQual; + + private v_selTallyDataTable tablev_selTally; + + private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DS_Utility() { + this.BeginInit(); + this.InitClass(); + global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); + base.Tables.CollectionChanged += schemaChangedHandler; + base.Relations.CollectionChanged += schemaChangedHandler; + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected DS_Utility(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context, false) { + if ((this.IsBinarySerialized(info, context) == true)) { + this.InitVars(false); + global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); + this.Tables.CollectionChanged += schemaChangedHandler1; + this.Relations.CollectionChanged += schemaChangedHandler1; + return; + } + string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string)))); + if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) { + global::System.Data.DataSet ds = new global::System.Data.DataSet(); + ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema))); + if ((ds.Tables["StatoMacchine"] != null)) { + base.Tables.Add(new StatoMacchineDataTable(ds.Tables["StatoMacchine"])); + } + if ((ds.Tables["v_selArticoli"] != null)) { + base.Tables.Add(new v_selArticoliDataTable(ds.Tables["v_selArticoli"])); + } + if ((ds.Tables["v_selKanban"] != null)) { + base.Tables.Add(new v_selKanbanDataTable(ds.Tables["v_selKanban"])); + } + if ((ds.Tables["v_selOperatori"] != null)) { + base.Tables.Add(new v_selOperatoriDataTable(ds.Tables["v_selOperatori"])); + } + if ((ds.Tables["v_selODL"] != null)) { + base.Tables.Add(new v_selODLDataTable(ds.Tables["v_selODL"])); + } + if ((ds.Tables["v_selEventiBCode"] != null)) { + base.Tables.Add(new v_selEventiBCodeDataTable(ds.Tables["v_selEventiBCode"])); + } + if ((ds.Tables["v_selMacchine"] != null)) { + base.Tables.Add(new v_selMacchineDataTable(ds.Tables["v_selMacchine"])); + } + if ((ds.Tables["stp_statusCorrente"] != null)) { + base.Tables.Add(new stp_statusCorrenteDataTable(ds.Tables["stp_statusCorrente"])); + } + if ((ds.Tables["Commenti"] != null)) { + base.Tables.Add(new CommentiDataTable(ds.Tables["Commenti"])); + } + if ((ds.Tables["FermiNonQual"] != null)) { + base.Tables.Add(new FermiNonQualDataTable(ds.Tables["FermiNonQual"])); + } + if ((ds.Tables["v_selTally"] != null)) { + base.Tables.Add(new v_selTallyDataTable(ds.Tables["v_selTally"])); + } + this.DataSetName = ds.DataSetName; + this.Prefix = ds.Prefix; + this.Namespace = ds.Namespace; + this.Locale = ds.Locale; + this.CaseSensitive = ds.CaseSensitive; + this.EnforceConstraints = ds.EnforceConstraints; + this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add); + this.InitVars(); + } + else { + this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema))); + } + this.GetSerializationData(info, context); + global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); + base.Tables.CollectionChanged += schemaChangedHandler; + this.Relations.CollectionChanged += schemaChangedHandler; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public StatoMacchineDataTable StatoMacchine { + get { + return this.tableStatoMacchine; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public v_selArticoliDataTable v_selArticoli { + get { + return this.tablev_selArticoli; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public v_selKanbanDataTable v_selKanban { + get { + return this.tablev_selKanban; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public v_selOperatoriDataTable v_selOperatori { + get { + return this.tablev_selOperatori; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public v_selODLDataTable v_selODL { + get { + return this.tablev_selODL; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public v_selEventiBCodeDataTable v_selEventiBCode { + get { + return this.tablev_selEventiBCode; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public v_selMacchineDataTable v_selMacchine { + get { + return this.tablev_selMacchine; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public stp_statusCorrenteDataTable stp_statusCorrente { + get { + return this.tablestp_statusCorrente; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public CommentiDataTable Commenti { + get { + return this.tableCommenti; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public FermiNonQualDataTable FermiNonQual { + get { + return this.tableFermiNonQual; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public v_selTallyDataTable v_selTally { + get { + return this.tablev_selTally; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.BrowsableAttribute(true)] + [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)] + public override global::System.Data.SchemaSerializationMode SchemaSerializationMode { + get { + return this._schemaSerializationMode; + } + set { + this._schemaSerializationMode = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)] + public new global::System.Data.DataTableCollection Tables { + get { + return base.Tables; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)] + public new global::System.Data.DataRelationCollection Relations { + get { + return base.Relations; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void InitializeDerivedDataSet() { + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataSet Clone() { + DS_Utility cln = ((DS_Utility)(base.Clone())); + cln.InitVars(); + cln.SchemaSerializationMode = this.SchemaSerializationMode; + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override bool ShouldSerializeTables() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override bool ShouldSerializeRelations() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) { + if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) { + this.Reset(); + global::System.Data.DataSet ds = new global::System.Data.DataSet(); + ds.ReadXml(reader); + if ((ds.Tables["StatoMacchine"] != null)) { + base.Tables.Add(new StatoMacchineDataTable(ds.Tables["StatoMacchine"])); + } + if ((ds.Tables["v_selArticoli"] != null)) { + base.Tables.Add(new v_selArticoliDataTable(ds.Tables["v_selArticoli"])); + } + if ((ds.Tables["v_selKanban"] != null)) { + base.Tables.Add(new v_selKanbanDataTable(ds.Tables["v_selKanban"])); + } + if ((ds.Tables["v_selOperatori"] != null)) { + base.Tables.Add(new v_selOperatoriDataTable(ds.Tables["v_selOperatori"])); + } + if ((ds.Tables["v_selODL"] != null)) { + base.Tables.Add(new v_selODLDataTable(ds.Tables["v_selODL"])); + } + if ((ds.Tables["v_selEventiBCode"] != null)) { + base.Tables.Add(new v_selEventiBCodeDataTable(ds.Tables["v_selEventiBCode"])); + } + if ((ds.Tables["v_selMacchine"] != null)) { + base.Tables.Add(new v_selMacchineDataTable(ds.Tables["v_selMacchine"])); + } + if ((ds.Tables["stp_statusCorrente"] != null)) { + base.Tables.Add(new stp_statusCorrenteDataTable(ds.Tables["stp_statusCorrente"])); + } + if ((ds.Tables["Commenti"] != null)) { + base.Tables.Add(new CommentiDataTable(ds.Tables["Commenti"])); + } + if ((ds.Tables["FermiNonQual"] != null)) { + base.Tables.Add(new FermiNonQualDataTable(ds.Tables["FermiNonQual"])); + } + if ((ds.Tables["v_selTally"] != null)) { + base.Tables.Add(new v_selTallyDataTable(ds.Tables["v_selTally"])); + } + this.DataSetName = ds.DataSetName; + this.Prefix = ds.Prefix; + this.Namespace = ds.Namespace; + this.Locale = ds.Locale; + this.CaseSensitive = ds.CaseSensitive; + this.EnforceConstraints = ds.EnforceConstraints; + this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add); + this.InitVars(); + } + else { + this.ReadXml(reader); + this.InitVars(); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() { + global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream(); + this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null)); + stream.Position = 0; + return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.InitVars(true); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars(bool initTable) { + this.tableStatoMacchine = ((StatoMacchineDataTable)(base.Tables["StatoMacchine"])); + if ((initTable == true)) { + if ((this.tableStatoMacchine != null)) { + this.tableStatoMacchine.InitVars(); + } + } + this.tablev_selArticoli = ((v_selArticoliDataTable)(base.Tables["v_selArticoli"])); + if ((initTable == true)) { + if ((this.tablev_selArticoli != null)) { + this.tablev_selArticoli.InitVars(); + } + } + this.tablev_selKanban = ((v_selKanbanDataTable)(base.Tables["v_selKanban"])); + if ((initTable == true)) { + if ((this.tablev_selKanban != null)) { + this.tablev_selKanban.InitVars(); + } + } + this.tablev_selOperatori = ((v_selOperatoriDataTable)(base.Tables["v_selOperatori"])); + if ((initTable == true)) { + if ((this.tablev_selOperatori != null)) { + this.tablev_selOperatori.InitVars(); + } + } + this.tablev_selODL = ((v_selODLDataTable)(base.Tables["v_selODL"])); + if ((initTable == true)) { + if ((this.tablev_selODL != null)) { + this.tablev_selODL.InitVars(); + } + } + this.tablev_selEventiBCode = ((v_selEventiBCodeDataTable)(base.Tables["v_selEventiBCode"])); + if ((initTable == true)) { + if ((this.tablev_selEventiBCode != null)) { + this.tablev_selEventiBCode.InitVars(); + } + } + this.tablev_selMacchine = ((v_selMacchineDataTable)(base.Tables["v_selMacchine"])); + if ((initTable == true)) { + if ((this.tablev_selMacchine != null)) { + this.tablev_selMacchine.InitVars(); + } + } + this.tablestp_statusCorrente = ((stp_statusCorrenteDataTable)(base.Tables["stp_statusCorrente"])); + if ((initTable == true)) { + if ((this.tablestp_statusCorrente != null)) { + this.tablestp_statusCorrente.InitVars(); + } + } + this.tableCommenti = ((CommentiDataTable)(base.Tables["Commenti"])); + if ((initTable == true)) { + if ((this.tableCommenti != null)) { + this.tableCommenti.InitVars(); + } + } + this.tableFermiNonQual = ((FermiNonQualDataTable)(base.Tables["FermiNonQual"])); + if ((initTable == true)) { + if ((this.tableFermiNonQual != null)) { + this.tableFermiNonQual.InitVars(); + } + } + this.tablev_selTally = ((v_selTallyDataTable)(base.Tables["v_selTally"])); + if ((initTable == true)) { + if ((this.tablev_selTally != null)) { + this.tablev_selTally.InitVars(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.DataSetName = "DS_Utility"; + this.Prefix = ""; + this.Namespace = "http://tempuri.org/DS_Utility.xsd"; + this.EnforceConstraints = true; + this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; + this.tableStatoMacchine = new StatoMacchineDataTable(); + base.Tables.Add(this.tableStatoMacchine); + this.tablev_selArticoli = new v_selArticoliDataTable(); + base.Tables.Add(this.tablev_selArticoli); + this.tablev_selKanban = new v_selKanbanDataTable(); + base.Tables.Add(this.tablev_selKanban); + this.tablev_selOperatori = new v_selOperatoriDataTable(); + base.Tables.Add(this.tablev_selOperatori); + this.tablev_selODL = new v_selODLDataTable(); + base.Tables.Add(this.tablev_selODL); + this.tablev_selEventiBCode = new v_selEventiBCodeDataTable(); + base.Tables.Add(this.tablev_selEventiBCode); + this.tablev_selMacchine = new v_selMacchineDataTable(); + base.Tables.Add(this.tablev_selMacchine); + this.tablestp_statusCorrente = new stp_statusCorrenteDataTable(); + base.Tables.Add(this.tablestp_statusCorrente); + this.tableCommenti = new CommentiDataTable(); + base.Tables.Add(this.tableCommenti); + this.tableFermiNonQual = new FermiNonQualDataTable(); + base.Tables.Add(this.tableFermiNonQual); + this.tablev_selTally = new v_selTallyDataTable(); + base.Tables.Add(this.tablev_selTally); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializeStatoMacchine() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializev_selArticoli() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializev_selKanban() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializev_selOperatori() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializev_selODL() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializev_selEventiBCode() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializev_selMacchine() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializestp_statusCorrente() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializeCommenti() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializeFermiNonQual() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializev_selTally() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) { + if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) { + this.InitVars(); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + DS_Utility ds = new DS_Utility(); + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny(); + any.Namespace = ds.Namespace; + sequence.Items.Add(any); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void StatoMacchineRowChangeEventHandler(object sender, StatoMacchineRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void v_selArticoliRowChangeEventHandler(object sender, v_selArticoliRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void v_selKanbanRowChangeEventHandler(object sender, v_selKanbanRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void v_selOperatoriRowChangeEventHandler(object sender, v_selOperatoriRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void v_selODLRowChangeEventHandler(object sender, v_selODLRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void v_selEventiBCodeRowChangeEventHandler(object sender, v_selEventiBCodeRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void v_selMacchineRowChangeEventHandler(object sender, v_selMacchineRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void stp_statusCorrenteRowChangeEventHandler(object sender, stp_statusCorrenteRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void CommentiRowChangeEventHandler(object sender, CommentiRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void FermiNonQualRowChangeEventHandler(object sender, FermiNonQualRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void v_selTallyRowChangeEventHandler(object sender, v_selTallyRowChangeEvent e); + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class StatoMacchineDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnIdxMacchina; + + private global::System.Data.DataColumn columnIdxStato; + + private global::System.Data.DataColumn columnInizioStato; + + private global::System.Data.DataColumn columnValue; + + private global::System.Data.DataColumn columnMatricolaKanban; + + private global::System.Data.DataColumn columnKanbanCode; + + private global::System.Data.DataColumn columnTempoCicloBase; + + private global::System.Data.DataColumn columnPzPalletProd; + + private global::System.Data.DataColumn columnMatrOpr; + + private global::System.Data.DataColumn columnpallet; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public StatoMacchineDataTable() { + this.TableName = "StatoMacchine"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal StatoMacchineDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected StatoMacchineDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn IdxMacchinaColumn { + get { + return this.columnIdxMacchina; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn IdxStatoColumn { + get { + return this.columnIdxStato; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn InizioStatoColumn { + get { + return this.columnInizioStato; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn ValueColumn { + get { + return this.columnValue; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn MatricolaKanbanColumn { + get { + return this.columnMatricolaKanban; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn KanbanCodeColumn { + get { + return this.columnKanbanCode; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TempoCicloBaseColumn { + get { + return this.columnTempoCicloBase; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn PzPalletProdColumn { + get { + return this.columnPzPalletProd; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn MatrOprColumn { + get { + return this.columnMatrOpr; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn palletColumn { + get { + return this.columnpallet; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public StatoMacchineRow this[int index] { + get { + return ((StatoMacchineRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event StatoMacchineRowChangeEventHandler StatoMacchineRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event StatoMacchineRowChangeEventHandler StatoMacchineRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event StatoMacchineRowChangeEventHandler StatoMacchineRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event StatoMacchineRowChangeEventHandler StatoMacchineRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddStatoMacchineRow(StatoMacchineRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public StatoMacchineRow AddStatoMacchineRow(string IdxMacchina, int IdxStato, System.DateTime InizioStato, string Value, string MatricolaKanban, string KanbanCode, double TempoCicloBase, int PzPalletProd, int MatrOpr, string pallet) { + StatoMacchineRow rowStatoMacchineRow = ((StatoMacchineRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + IdxMacchina, + IdxStato, + InizioStato, + Value, + MatricolaKanban, + KanbanCode, + TempoCicloBase, + PzPalletProd, + MatrOpr, + pallet}; + rowStatoMacchineRow.ItemArray = columnValuesArray; + this.Rows.Add(rowStatoMacchineRow); + return rowStatoMacchineRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public StatoMacchineRow FindByIdxMacchina(string IdxMacchina) { + return ((StatoMacchineRow)(this.Rows.Find(new object[] { + IdxMacchina}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + StatoMacchineDataTable cln = ((StatoMacchineDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new StatoMacchineDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnIdxMacchina = base.Columns["IdxMacchina"]; + this.columnIdxStato = base.Columns["IdxStato"]; + this.columnInizioStato = base.Columns["InizioStato"]; + this.columnValue = base.Columns["Value"]; + this.columnMatricolaKanban = base.Columns["MatricolaKanban"]; + this.columnKanbanCode = base.Columns["KanbanCode"]; + this.columnTempoCicloBase = base.Columns["TempoCicloBase"]; + this.columnPzPalletProd = base.Columns["PzPalletProd"]; + this.columnMatrOpr = base.Columns["MatrOpr"]; + this.columnpallet = base.Columns["pallet"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnIdxMacchina = new global::System.Data.DataColumn("IdxMacchina", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxMacchina); + this.columnIdxStato = new global::System.Data.DataColumn("IdxStato", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxStato); + this.columnInizioStato = new global::System.Data.DataColumn("InizioStato", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnInizioStato); + this.columnValue = new global::System.Data.DataColumn("Value", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnValue); + this.columnMatricolaKanban = new global::System.Data.DataColumn("MatricolaKanban", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnMatricolaKanban); + this.columnKanbanCode = new global::System.Data.DataColumn("KanbanCode", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnKanbanCode); + this.columnTempoCicloBase = new global::System.Data.DataColumn("TempoCicloBase", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTempoCicloBase); + this.columnPzPalletProd = new global::System.Data.DataColumn("PzPalletProd", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnPzPalletProd); + this.columnMatrOpr = new global::System.Data.DataColumn("MatrOpr", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnMatrOpr); + this.columnpallet = new global::System.Data.DataColumn("pallet", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnpallet); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnIdxMacchina}, true)); + this.columnIdxMacchina.AllowDBNull = false; + this.columnIdxMacchina.Unique = true; + this.columnIdxMacchina.MaxLength = 50; + this.columnIdxStato.AllowDBNull = false; + this.columnValue.MaxLength = 50; + this.columnMatricolaKanban.MaxLength = 50; + this.columnKanbanCode.MaxLength = 50; + this.columnpallet.MaxLength = 20; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public StatoMacchineRow NewStatoMacchineRow() { + return ((StatoMacchineRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new StatoMacchineRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(StatoMacchineRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.StatoMacchineRowChanged != null)) { + this.StatoMacchineRowChanged(this, new StatoMacchineRowChangeEvent(((StatoMacchineRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.StatoMacchineRowChanging != null)) { + this.StatoMacchineRowChanging(this, new StatoMacchineRowChangeEvent(((StatoMacchineRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.StatoMacchineRowDeleted != null)) { + this.StatoMacchineRowDeleted(this, new StatoMacchineRowChangeEvent(((StatoMacchineRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.StatoMacchineRowDeleting != null)) { + this.StatoMacchineRowDeleting(this, new StatoMacchineRowChangeEvent(((StatoMacchineRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveStatoMacchineRow(StatoMacchineRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_Utility ds = new DS_Utility(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "StatoMacchineDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class v_selArticoliDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnvalue; + + private global::System.Data.DataColumn columnlabel; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selArticoliDataTable() { + this.TableName = "v_selArticoli"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal v_selArticoliDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected v_selArticoliDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn valueColumn { + get { + return this.columnvalue; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn labelColumn { + get { + return this.columnlabel; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selArticoliRow this[int index] { + get { + return ((v_selArticoliRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_selArticoliRowChangeEventHandler v_selArticoliRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_selArticoliRowChangeEventHandler v_selArticoliRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_selArticoliRowChangeEventHandler v_selArticoliRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_selArticoliRowChangeEventHandler v_selArticoliRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void Addv_selArticoliRow(v_selArticoliRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selArticoliRow Addv_selArticoliRow(string value, string label) { + v_selArticoliRow rowv_selArticoliRow = ((v_selArticoliRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + value, + label}; + rowv_selArticoliRow.ItemArray = columnValuesArray; + this.Rows.Add(rowv_selArticoliRow); + return rowv_selArticoliRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selArticoliRow FindByvalue(string value) { + return ((v_selArticoliRow)(this.Rows.Find(new object[] { + value}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + v_selArticoliDataTable cln = ((v_selArticoliDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new v_selArticoliDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnvalue = base.Columns["value"]; + this.columnlabel = base.Columns["label"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnvalue = new global::System.Data.DataColumn("value", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnvalue); + this.columnlabel = new global::System.Data.DataColumn("label", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnlabel); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnvalue}, true)); + this.columnvalue.AllowDBNull = false; + this.columnvalue.Unique = true; + this.columnvalue.MaxLength = 50; + this.columnlabel.MaxLength = 250; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selArticoliRow Newv_selArticoliRow() { + return ((v_selArticoliRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new v_selArticoliRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(v_selArticoliRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.v_selArticoliRowChanged != null)) { + this.v_selArticoliRowChanged(this, new v_selArticoliRowChangeEvent(((v_selArticoliRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.v_selArticoliRowChanging != null)) { + this.v_selArticoliRowChanging(this, new v_selArticoliRowChangeEvent(((v_selArticoliRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.v_selArticoliRowDeleted != null)) { + this.v_selArticoliRowDeleted(this, new v_selArticoliRowChangeEvent(((v_selArticoliRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.v_selArticoliRowDeleting != null)) { + this.v_selArticoliRowDeleting(this, new v_selArticoliRowChangeEvent(((v_selArticoliRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void Removev_selArticoliRow(v_selArticoliRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_Utility ds = new DS_Utility(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "v_selArticoliDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class v_selKanbanDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnvalue; + + private global::System.Data.DataColumn columnlabel; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selKanbanDataTable() { + this.TableName = "v_selKanban"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal v_selKanbanDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected v_selKanbanDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn valueColumn { + get { + return this.columnvalue; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn labelColumn { + get { + return this.columnlabel; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selKanbanRow this[int index] { + get { + return ((v_selKanbanRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_selKanbanRowChangeEventHandler v_selKanbanRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_selKanbanRowChangeEventHandler v_selKanbanRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_selKanbanRowChangeEventHandler v_selKanbanRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_selKanbanRowChangeEventHandler v_selKanbanRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void Addv_selKanbanRow(v_selKanbanRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selKanbanRow Addv_selKanbanRow(string value, string label) { + v_selKanbanRow rowv_selKanbanRow = ((v_selKanbanRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + value, + label}; + rowv_selKanbanRow.ItemArray = columnValuesArray; + this.Rows.Add(rowv_selKanbanRow); + return rowv_selKanbanRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selKanbanRow FindByvalue(string value) { + return ((v_selKanbanRow)(this.Rows.Find(new object[] { + value}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + v_selKanbanDataTable cln = ((v_selKanbanDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new v_selKanbanDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnvalue = base.Columns["value"]; + this.columnlabel = base.Columns["label"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnvalue = new global::System.Data.DataColumn("value", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnvalue); + this.columnlabel = new global::System.Data.DataColumn("label", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnlabel); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnvalue}, true)); + this.columnvalue.AllowDBNull = false; + this.columnvalue.Unique = true; + this.columnvalue.MaxLength = 50; + this.columnlabel.ReadOnly = true; + this.columnlabel.MaxLength = 52; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selKanbanRow Newv_selKanbanRow() { + return ((v_selKanbanRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new v_selKanbanRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(v_selKanbanRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.v_selKanbanRowChanged != null)) { + this.v_selKanbanRowChanged(this, new v_selKanbanRowChangeEvent(((v_selKanbanRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.v_selKanbanRowChanging != null)) { + this.v_selKanbanRowChanging(this, new v_selKanbanRowChangeEvent(((v_selKanbanRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.v_selKanbanRowDeleted != null)) { + this.v_selKanbanRowDeleted(this, new v_selKanbanRowChangeEvent(((v_selKanbanRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.v_selKanbanRowDeleting != null)) { + this.v_selKanbanRowDeleting(this, new v_selKanbanRowChangeEvent(((v_selKanbanRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void Removev_selKanbanRow(v_selKanbanRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_Utility ds = new DS_Utility(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "v_selKanbanDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class v_selOperatoriDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnvalue; + + private global::System.Data.DataColumn columnlabel; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selOperatoriDataTable() { + this.TableName = "v_selOperatori"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal v_selOperatoriDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected v_selOperatoriDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn valueColumn { + get { + return this.columnvalue; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn labelColumn { + get { + return this.columnlabel; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selOperatoriRow this[int index] { + get { + return ((v_selOperatoriRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_selOperatoriRowChangeEventHandler v_selOperatoriRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_selOperatoriRowChangeEventHandler v_selOperatoriRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_selOperatoriRowChangeEventHandler v_selOperatoriRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_selOperatoriRowChangeEventHandler v_selOperatoriRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void Addv_selOperatoriRow(v_selOperatoriRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selOperatoriRow Addv_selOperatoriRow(int value, string label) { + v_selOperatoriRow rowv_selOperatoriRow = ((v_selOperatoriRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + value, + label}; + rowv_selOperatoriRow.ItemArray = columnValuesArray; + this.Rows.Add(rowv_selOperatoriRow); + return rowv_selOperatoriRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selOperatoriRow FindByvalue(int value) { + return ((v_selOperatoriRow)(this.Rows.Find(new object[] { + value}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + v_selOperatoriDataTable cln = ((v_selOperatoriDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new v_selOperatoriDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnvalue = base.Columns["value"]; + this.columnlabel = base.Columns["label"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnvalue = new global::System.Data.DataColumn("value", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnvalue); + this.columnlabel = new global::System.Data.DataColumn("label", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnlabel); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnvalue}, true)); + this.columnvalue.AllowDBNull = false; + this.columnvalue.Unique = true; + this.columnlabel.ReadOnly = true; + this.columnlabel.MaxLength = 101; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selOperatoriRow Newv_selOperatoriRow() { + return ((v_selOperatoriRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new v_selOperatoriRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(v_selOperatoriRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.v_selOperatoriRowChanged != null)) { + this.v_selOperatoriRowChanged(this, new v_selOperatoriRowChangeEvent(((v_selOperatoriRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.v_selOperatoriRowChanging != null)) { + this.v_selOperatoriRowChanging(this, new v_selOperatoriRowChangeEvent(((v_selOperatoriRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.v_selOperatoriRowDeleted != null)) { + this.v_selOperatoriRowDeleted(this, new v_selOperatoriRowChangeEvent(((v_selOperatoriRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.v_selOperatoriRowDeleting != null)) { + this.v_selOperatoriRowDeleting(this, new v_selOperatoriRowChangeEvent(((v_selOperatoriRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void Removev_selOperatoriRow(v_selOperatoriRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_Utility ds = new DS_Utility(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "v_selOperatoriDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class v_selODLDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnvalue; + + private global::System.Data.DataColumn columnlabel; + + private global::System.Data.DataColumn columnconditio; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selODLDataTable() { + this.TableName = "v_selODL"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal v_selODLDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected v_selODLDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn valueColumn { + get { + return this.columnvalue; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn labelColumn { + get { + return this.columnlabel; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn conditioColumn { + get { + return this.columnconditio; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selODLRow this[int index] { + get { + return ((v_selODLRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_selODLRowChangeEventHandler v_selODLRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_selODLRowChangeEventHandler v_selODLRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_selODLRowChangeEventHandler v_selODLRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_selODLRowChangeEventHandler v_selODLRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void Addv_selODLRow(v_selODLRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selODLRow Addv_selODLRow(string label, System.DateTime conditio) { + v_selODLRow rowv_selODLRow = ((v_selODLRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + null, + label, + conditio}; + rowv_selODLRow.ItemArray = columnValuesArray; + this.Rows.Add(rowv_selODLRow); + return rowv_selODLRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selODLRow FindByvalue(int value) { + return ((v_selODLRow)(this.Rows.Find(new object[] { + value}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + v_selODLDataTable cln = ((v_selODLDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new v_selODLDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnvalue = base.Columns["value"]; + this.columnlabel = base.Columns["label"]; + this.columnconditio = base.Columns["conditio"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnvalue = new global::System.Data.DataColumn("value", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnvalue); + this.columnlabel = new global::System.Data.DataColumn("label", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnlabel); + this.columnconditio = new global::System.Data.DataColumn("conditio", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnconditio); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnvalue}, true)); + this.columnvalue.AutoIncrement = true; + this.columnvalue.AutoIncrementSeed = -1; + this.columnvalue.AutoIncrementStep = -1; + this.columnvalue.AllowDBNull = false; + this.columnvalue.ReadOnly = true; + this.columnvalue.Unique = true; + this.columnlabel.ReadOnly = true; + this.columnlabel.MaxLength = 250; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selODLRow Newv_selODLRow() { + return ((v_selODLRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new v_selODLRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(v_selODLRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.v_selODLRowChanged != null)) { + this.v_selODLRowChanged(this, new v_selODLRowChangeEvent(((v_selODLRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.v_selODLRowChanging != null)) { + this.v_selODLRowChanging(this, new v_selODLRowChangeEvent(((v_selODLRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.v_selODLRowDeleted != null)) { + this.v_selODLRowDeleted(this, new v_selODLRowChangeEvent(((v_selODLRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.v_selODLRowDeleting != null)) { + this.v_selODLRowDeleting(this, new v_selODLRowChangeEvent(((v_selODLRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void Removev_selODLRow(v_selODLRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_Utility ds = new DS_Utility(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "v_selODLDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class v_selEventiBCodeDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnvalue; + + private global::System.Data.DataColumn columnlabel; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selEventiBCodeDataTable() { + this.TableName = "v_selEventiBCode"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal v_selEventiBCodeDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected v_selEventiBCodeDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn valueColumn { + get { + return this.columnvalue; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn labelColumn { + get { + return this.columnlabel; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selEventiBCodeRow this[int index] { + get { + return ((v_selEventiBCodeRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_selEventiBCodeRowChangeEventHandler v_selEventiBCodeRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_selEventiBCodeRowChangeEventHandler v_selEventiBCodeRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_selEventiBCodeRowChangeEventHandler v_selEventiBCodeRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_selEventiBCodeRowChangeEventHandler v_selEventiBCodeRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void Addv_selEventiBCodeRow(v_selEventiBCodeRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selEventiBCodeRow Addv_selEventiBCodeRow(int value, string label) { + v_selEventiBCodeRow rowv_selEventiBCodeRow = ((v_selEventiBCodeRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + value, + label}; + rowv_selEventiBCodeRow.ItemArray = columnValuesArray; + this.Rows.Add(rowv_selEventiBCodeRow); + return rowv_selEventiBCodeRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selEventiBCodeRow FindByvalue(int value) { + return ((v_selEventiBCodeRow)(this.Rows.Find(new object[] { + value}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + v_selEventiBCodeDataTable cln = ((v_selEventiBCodeDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new v_selEventiBCodeDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnvalue = base.Columns["value"]; + this.columnlabel = base.Columns["label"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnvalue = new global::System.Data.DataColumn("value", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnvalue); + this.columnlabel = new global::System.Data.DataColumn("label", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnlabel); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnvalue}, true)); + this.columnvalue.AllowDBNull = false; + this.columnvalue.Unique = true; + this.columnlabel.ReadOnly = true; + this.columnlabel.MaxLength = 4000; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selEventiBCodeRow Newv_selEventiBCodeRow() { + return ((v_selEventiBCodeRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new v_selEventiBCodeRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(v_selEventiBCodeRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.v_selEventiBCodeRowChanged != null)) { + this.v_selEventiBCodeRowChanged(this, new v_selEventiBCodeRowChangeEvent(((v_selEventiBCodeRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.v_selEventiBCodeRowChanging != null)) { + this.v_selEventiBCodeRowChanging(this, new v_selEventiBCodeRowChangeEvent(((v_selEventiBCodeRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.v_selEventiBCodeRowDeleted != null)) { + this.v_selEventiBCodeRowDeleted(this, new v_selEventiBCodeRowChangeEvent(((v_selEventiBCodeRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.v_selEventiBCodeRowDeleting != null)) { + this.v_selEventiBCodeRowDeleting(this, new v_selEventiBCodeRowChangeEvent(((v_selEventiBCodeRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void Removev_selEventiBCodeRow(v_selEventiBCodeRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_Utility ds = new DS_Utility(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "v_selEventiBCodeDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class v_selMacchineDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnvalue; + + private global::System.Data.DataColumn columnlabel; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selMacchineDataTable() { + this.TableName = "v_selMacchine"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal v_selMacchineDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected v_selMacchineDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn valueColumn { + get { + return this.columnvalue; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn labelColumn { + get { + return this.columnlabel; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selMacchineRow this[int index] { + get { + return ((v_selMacchineRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_selMacchineRowChangeEventHandler v_selMacchineRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_selMacchineRowChangeEventHandler v_selMacchineRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_selMacchineRowChangeEventHandler v_selMacchineRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_selMacchineRowChangeEventHandler v_selMacchineRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void Addv_selMacchineRow(v_selMacchineRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selMacchineRow Addv_selMacchineRow(string value, string label) { + v_selMacchineRow rowv_selMacchineRow = ((v_selMacchineRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + value, + label}; + rowv_selMacchineRow.ItemArray = columnValuesArray; + this.Rows.Add(rowv_selMacchineRow); + return rowv_selMacchineRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selMacchineRow FindByvalue(string value) { + return ((v_selMacchineRow)(this.Rows.Find(new object[] { + value}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + v_selMacchineDataTable cln = ((v_selMacchineDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new v_selMacchineDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnvalue = base.Columns["value"]; + this.columnlabel = base.Columns["label"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnvalue = new global::System.Data.DataColumn("value", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnvalue); + this.columnlabel = new global::System.Data.DataColumn("label", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnlabel); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnvalue}, true)); + this.columnvalue.AllowDBNull = false; + this.columnvalue.Unique = true; + this.columnvalue.MaxLength = 50; + this.columnlabel.MaxLength = 50; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selMacchineRow Newv_selMacchineRow() { + return ((v_selMacchineRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new v_selMacchineRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(v_selMacchineRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.v_selMacchineRowChanged != null)) { + this.v_selMacchineRowChanged(this, new v_selMacchineRowChangeEvent(((v_selMacchineRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.v_selMacchineRowChanging != null)) { + this.v_selMacchineRowChanging(this, new v_selMacchineRowChangeEvent(((v_selMacchineRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.v_selMacchineRowDeleted != null)) { + this.v_selMacchineRowDeleted(this, new v_selMacchineRowChangeEvent(((v_selMacchineRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.v_selMacchineRowDeleting != null)) { + this.v_selMacchineRowDeleting(this, new v_selMacchineRowChangeEvent(((v_selMacchineRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void Removev_selMacchineRow(v_selMacchineRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_Utility ds = new DS_Utility(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "v_selMacchineDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class stp_statusCorrenteDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnIdxMacchina; + + private global::System.Data.DataColumn columnCodMacchina; + + private global::System.Data.DataColumn columnidxFamigliaIngresso; + + private global::System.Data.DataColumn columnNome; + + private global::System.Data.DataColumn columnDescrizione; + + private global::System.Data.DataColumn columnurl; + + private global::System.Data.DataColumn columnlocazione; + + private global::System.Data.DataColumn columnDataOraServer; + + private global::System.Data.DataColumn columnDataOraMacchina; + + private global::System.Data.DataColumn columnDataOraStart; + + private global::System.Data.DataColumn columnIPv4; + + private global::System.Data.DataColumn columnlastReboot; + + private global::System.Data.DataColumn columnuptime; + + private global::System.Data.DataColumn columnlastEvent; + + private global::System.Data.DataColumn columnidxStato; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public stp_statusCorrenteDataTable() { + this.TableName = "stp_statusCorrente"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal stp_statusCorrenteDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected stp_statusCorrenteDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn IdxMacchinaColumn { + get { + return this.columnIdxMacchina; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn CodMacchinaColumn { + get { + return this.columnCodMacchina; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn idxFamigliaIngressoColumn { + get { + return this.columnidxFamigliaIngresso; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn NomeColumn { + get { + return this.columnNome; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn DescrizioneColumn { + get { + return this.columnDescrizione; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn urlColumn { + get { + return this.columnurl; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn locazioneColumn { + get { + return this.columnlocazione; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn DataOraServerColumn { + get { + return this.columnDataOraServer; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn DataOraMacchinaColumn { + get { + return this.columnDataOraMacchina; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn DataOraStartColumn { + get { + return this.columnDataOraStart; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn IPv4Column { + get { + return this.columnIPv4; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn lastRebootColumn { + get { + return this.columnlastReboot; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn uptimeColumn { + get { + return this.columnuptime; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn lastEventColumn { + get { + return this.columnlastEvent; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn idxStatoColumn { + get { + return this.columnidxStato; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public stp_statusCorrenteRow this[int index] { + get { + return ((stp_statusCorrenteRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event stp_statusCorrenteRowChangeEventHandler stp_statusCorrenteRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event stp_statusCorrenteRowChangeEventHandler stp_statusCorrenteRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event stp_statusCorrenteRowChangeEventHandler stp_statusCorrenteRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event stp_statusCorrenteRowChangeEventHandler stp_statusCorrenteRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void Addstp_statusCorrenteRow(stp_statusCorrenteRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public stp_statusCorrenteRow Addstp_statusCorrenteRow(string IdxMacchina, string CodMacchina, int idxFamigliaIngresso, string Nome, string Descrizione, string url, string locazione, System.DateTime DataOraServer, System.DateTime DataOraMacchina, System.DateTime DataOraStart, string IPv4, System.DateTime lastReboot, string uptime, System.DateTime lastEvent, int idxStato) { + stp_statusCorrenteRow rowstp_statusCorrenteRow = ((stp_statusCorrenteRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + IdxMacchina, + CodMacchina, + idxFamigliaIngresso, + Nome, + Descrizione, + url, + locazione, + DataOraServer, + DataOraMacchina, + DataOraStart, + IPv4, + lastReboot, + uptime, + lastEvent, + idxStato}; + rowstp_statusCorrenteRow.ItemArray = columnValuesArray; + this.Rows.Add(rowstp_statusCorrenteRow); + return rowstp_statusCorrenteRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + stp_statusCorrenteDataTable cln = ((stp_statusCorrenteDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new stp_statusCorrenteDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnIdxMacchina = base.Columns["IdxMacchina"]; + this.columnCodMacchina = base.Columns["CodMacchina"]; + this.columnidxFamigliaIngresso = base.Columns["idxFamigliaIngresso"]; + this.columnNome = base.Columns["Nome"]; + this.columnDescrizione = base.Columns["Descrizione"]; + this.columnurl = base.Columns["url"]; + this.columnlocazione = base.Columns["locazione"]; + this.columnDataOraServer = base.Columns["DataOraServer"]; + this.columnDataOraMacchina = base.Columns["DataOraMacchina"]; + this.columnDataOraStart = base.Columns["DataOraStart"]; + this.columnIPv4 = base.Columns["IPv4"]; + this.columnlastReboot = base.Columns["lastReboot"]; + this.columnuptime = base.Columns["uptime"]; + this.columnlastEvent = base.Columns["lastEvent"]; + this.columnidxStato = base.Columns["idxStato"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnIdxMacchina = new global::System.Data.DataColumn("IdxMacchina", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxMacchina); + this.columnCodMacchina = new global::System.Data.DataColumn("CodMacchina", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodMacchina); + this.columnidxFamigliaIngresso = new global::System.Data.DataColumn("idxFamigliaIngresso", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnidxFamigliaIngresso); + this.columnNome = new global::System.Data.DataColumn("Nome", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNome); + this.columnDescrizione = new global::System.Data.DataColumn("Descrizione", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDescrizione); + this.columnurl = new global::System.Data.DataColumn("url", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnurl); + this.columnlocazione = new global::System.Data.DataColumn("locazione", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnlocazione); + this.columnDataOraServer = new global::System.Data.DataColumn("DataOraServer", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDataOraServer); + this.columnDataOraMacchina = new global::System.Data.DataColumn("DataOraMacchina", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDataOraMacchina); + this.columnDataOraStart = new global::System.Data.DataColumn("DataOraStart", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDataOraStart); + this.columnIPv4 = new global::System.Data.DataColumn("IPv4", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIPv4); + this.columnlastReboot = new global::System.Data.DataColumn("lastReboot", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnlastReboot); + this.columnuptime = new global::System.Data.DataColumn("uptime", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnuptime); + this.columnlastEvent = new global::System.Data.DataColumn("lastEvent", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnlastEvent); + this.columnidxStato = new global::System.Data.DataColumn("idxStato", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnidxStato); + this.columnIdxMacchina.AllowDBNull = false; + this.columnIdxMacchina.MaxLength = 50; + this.columnCodMacchina.MaxLength = 50; + this.columnidxFamigliaIngresso.AllowDBNull = false; + this.columnNome.MaxLength = 50; + this.columnDescrizione.MaxLength = 50; + this.columnurl.MaxLength = 250; + this.columnlocazione.ReadOnly = true; + this.columnlocazione.MaxLength = 2; + this.columnIPv4.ReadOnly = true; + this.columnIPv4.MaxLength = 50; + this.columnlastReboot.ReadOnly = true; + this.columnuptime.ReadOnly = true; + this.columnuptime.MaxLength = 15; + this.columnlastEvent.ReadOnly = true; + this.columnidxStato.ReadOnly = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public stp_statusCorrenteRow Newstp_statusCorrenteRow() { + return ((stp_statusCorrenteRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new stp_statusCorrenteRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(stp_statusCorrenteRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.stp_statusCorrenteRowChanged != null)) { + this.stp_statusCorrenteRowChanged(this, new stp_statusCorrenteRowChangeEvent(((stp_statusCorrenteRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.stp_statusCorrenteRowChanging != null)) { + this.stp_statusCorrenteRowChanging(this, new stp_statusCorrenteRowChangeEvent(((stp_statusCorrenteRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.stp_statusCorrenteRowDeleted != null)) { + this.stp_statusCorrenteRowDeleted(this, new stp_statusCorrenteRowChangeEvent(((stp_statusCorrenteRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.stp_statusCorrenteRowDeleting != null)) { + this.stp_statusCorrenteRowDeleting(this, new stp_statusCorrenteRowChangeEvent(((stp_statusCorrenteRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void Removestp_statusCorrenteRow(stp_statusCorrenteRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_Utility ds = new DS_Utility(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "stp_statusCorrenteDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class CommentiDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnidxODL; + + private global::System.Data.DataColumn columnCodArticolo; + + private global::System.Data.DataColumn columnIdxMacchina; + + private global::System.Data.DataColumn columnInizioStato; + + private global::System.Data.DataColumn columnValue; + + private global::System.Data.DataColumn columnOperatore; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public CommentiDataTable() { + this.TableName = "Commenti"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal CommentiDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected CommentiDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn idxODLColumn { + get { + return this.columnidxODL; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn CodArticoloColumn { + get { + return this.columnCodArticolo; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn IdxMacchinaColumn { + get { + return this.columnIdxMacchina; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn InizioStatoColumn { + get { + return this.columnInizioStato; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn ValueColumn { + get { + return this.columnValue; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn OperatoreColumn { + get { + return this.columnOperatore; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public CommentiRow this[int index] { + get { + return ((CommentiRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event CommentiRowChangeEventHandler CommentiRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event CommentiRowChangeEventHandler CommentiRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event CommentiRowChangeEventHandler CommentiRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event CommentiRowChangeEventHandler CommentiRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddCommentiRow(CommentiRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public CommentiRow AddCommentiRow(string CodArticolo, string IdxMacchina, System.DateTime InizioStato, string Value, string Operatore) { + CommentiRow rowCommentiRow = ((CommentiRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + null, + CodArticolo, + IdxMacchina, + InizioStato, + Value, + Operatore}; + rowCommentiRow.ItemArray = columnValuesArray; + this.Rows.Add(rowCommentiRow); + return rowCommentiRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + CommentiDataTable cln = ((CommentiDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new CommentiDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnidxODL = base.Columns["idxODL"]; + this.columnCodArticolo = base.Columns["CodArticolo"]; + this.columnIdxMacchina = base.Columns["IdxMacchina"]; + this.columnInizioStato = base.Columns["InizioStato"]; + this.columnValue = base.Columns["Value"]; + this.columnOperatore = base.Columns["Operatore"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnidxODL = new global::System.Data.DataColumn("idxODL", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnidxODL); + this.columnCodArticolo = new global::System.Data.DataColumn("CodArticolo", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodArticolo); + this.columnIdxMacchina = new global::System.Data.DataColumn("IdxMacchina", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxMacchina); + this.columnInizioStato = new global::System.Data.DataColumn("InizioStato", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnInizioStato); + this.columnValue = new global::System.Data.DataColumn("Value", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnValue); + this.columnOperatore = new global::System.Data.DataColumn("Operatore", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnOperatore); + this.Constraints.Add(new global::System.Data.UniqueConstraint("CommentiPK", new global::System.Data.DataColumn[] { + this.columnIdxMacchina, + this.columnInizioStato}, false)); + this.columnidxODL.AutoIncrement = true; + this.columnidxODL.AllowDBNull = false; + this.columnidxODL.ReadOnly = true; + this.columnCodArticolo.AllowDBNull = false; + this.columnCodArticolo.MaxLength = 50; + this.columnIdxMacchina.AllowDBNull = false; + this.columnIdxMacchina.MaxLength = 50; + this.columnInizioStato.AllowDBNull = false; + this.columnValue.MaxLength = 250; + this.columnOperatore.ReadOnly = true; + this.columnOperatore.MaxLength = 124; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public CommentiRow NewCommentiRow() { + return ((CommentiRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new CommentiRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(CommentiRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.CommentiRowChanged != null)) { + this.CommentiRowChanged(this, new CommentiRowChangeEvent(((CommentiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.CommentiRowChanging != null)) { + this.CommentiRowChanging(this, new CommentiRowChangeEvent(((CommentiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.CommentiRowDeleted != null)) { + this.CommentiRowDeleted(this, new CommentiRowChangeEvent(((CommentiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.CommentiRowDeleting != null)) { + this.CommentiRowDeleting(this, new CommentiRowChangeEvent(((CommentiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveCommentiRow(CommentiRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_Utility ds = new DS_Utility(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "CommentiDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class FermiNonQualDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnIdxMacchina; + + private global::System.Data.DataColumn columnInizioStato; + + private global::System.Data.DataColumn columnMacchina; + + private global::System.Data.DataColumn columnIdxStato; + + private global::System.Data.DataColumn columnStato; + + private global::System.Data.DataColumn columnSemaforo; + + private global::System.Data.DataColumn columnDurataMinuti; + + private global::System.Data.DataColumn columnValue; + + private global::System.Data.DataColumn columnCodArticolo; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public FermiNonQualDataTable() { + this.TableName = "FermiNonQual"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal FermiNonQualDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected FermiNonQualDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn IdxMacchinaColumn { + get { + return this.columnIdxMacchina; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn InizioStatoColumn { + get { + return this.columnInizioStato; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn MacchinaColumn { + get { + return this.columnMacchina; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn IdxStatoColumn { + get { + return this.columnIdxStato; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn StatoColumn { + get { + return this.columnStato; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn SemaforoColumn { + get { + return this.columnSemaforo; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn DurataMinutiColumn { + get { + return this.columnDurataMinuti; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn ValueColumn { + get { + return this.columnValue; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn CodArticoloColumn { + get { + return this.columnCodArticolo; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public FermiNonQualRow this[int index] { + get { + return ((FermiNonQualRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event FermiNonQualRowChangeEventHandler FermiNonQualRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event FermiNonQualRowChangeEventHandler FermiNonQualRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event FermiNonQualRowChangeEventHandler FermiNonQualRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event FermiNonQualRowChangeEventHandler FermiNonQualRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddFermiNonQualRow(FermiNonQualRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public FermiNonQualRow AddFermiNonQualRow(string IdxMacchina, System.DateTime InizioStato, string Macchina, int IdxStato, string Stato, string Semaforo, double DurataMinuti, string Value, string CodArticolo) { + FermiNonQualRow rowFermiNonQualRow = ((FermiNonQualRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + IdxMacchina, + InizioStato, + Macchina, + IdxStato, + Stato, + Semaforo, + DurataMinuti, + Value, + CodArticolo}; + rowFermiNonQualRow.ItemArray = columnValuesArray; + this.Rows.Add(rowFermiNonQualRow); + return rowFermiNonQualRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + FermiNonQualDataTable cln = ((FermiNonQualDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new FermiNonQualDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnIdxMacchina = base.Columns["IdxMacchina"]; + this.columnInizioStato = base.Columns["InizioStato"]; + this.columnMacchina = base.Columns["Macchina"]; + this.columnIdxStato = base.Columns["IdxStato"]; + this.columnStato = base.Columns["Stato"]; + this.columnSemaforo = base.Columns["Semaforo"]; + this.columnDurataMinuti = base.Columns["DurataMinuti"]; + this.columnValue = base.Columns["Value"]; + this.columnCodArticolo = base.Columns["CodArticolo"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnIdxMacchina = new global::System.Data.DataColumn("IdxMacchina", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxMacchina); + this.columnInizioStato = new global::System.Data.DataColumn("InizioStato", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnInizioStato); + this.columnMacchina = new global::System.Data.DataColumn("Macchina", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnMacchina); + this.columnIdxStato = new global::System.Data.DataColumn("IdxStato", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxStato); + this.columnStato = new global::System.Data.DataColumn("Stato", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnStato); + this.columnSemaforo = new global::System.Data.DataColumn("Semaforo", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnSemaforo); + this.columnDurataMinuti = new global::System.Data.DataColumn("DurataMinuti", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDurataMinuti); + this.columnValue = new global::System.Data.DataColumn("Value", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnValue); + this.columnCodArticolo = new global::System.Data.DataColumn("CodArticolo", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodArticolo); + this.Constraints.Add(new global::System.Data.UniqueConstraint("stp_FNQ_getFiltKey1", new global::System.Data.DataColumn[] { + this.columnIdxMacchina, + this.columnInizioStato}, false)); + this.columnIdxMacchina.AllowDBNull = false; + this.columnIdxMacchina.MaxLength = 50; + this.columnInizioStato.AllowDBNull = false; + this.columnMacchina.MaxLength = 50; + this.columnIdxStato.AllowDBNull = false; + this.columnStato.MaxLength = 50; + this.columnSemaforo.MaxLength = 50; + this.columnDurataMinuti.ReadOnly = true; + this.columnValue.MaxLength = 50; + this.columnCodArticolo.MaxLength = 50; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public FermiNonQualRow NewFermiNonQualRow() { + return ((FermiNonQualRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new FermiNonQualRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(FermiNonQualRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.FermiNonQualRowChanged != null)) { + this.FermiNonQualRowChanged(this, new FermiNonQualRowChangeEvent(((FermiNonQualRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.FermiNonQualRowChanging != null)) { + this.FermiNonQualRowChanging(this, new FermiNonQualRowChangeEvent(((FermiNonQualRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.FermiNonQualRowDeleted != null)) { + this.FermiNonQualRowDeleted(this, new FermiNonQualRowChangeEvent(((FermiNonQualRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.FermiNonQualRowDeleting != null)) { + this.FermiNonQualRowDeleting(this, new FermiNonQualRowChangeEvent(((FermiNonQualRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveFermiNonQualRow(FermiNonQualRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_Utility ds = new DS_Utility(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "FermiNonQualDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class v_selTallyDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnlabel; + + private global::System.Data.DataColumn columnvalue; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selTallyDataTable() { + this.TableName = "v_selTally"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal v_selTallyDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected v_selTallyDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn labelColumn { + get { + return this.columnlabel; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn valueColumn { + get { + return this.columnvalue; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selTallyRow this[int index] { + get { + return ((v_selTallyRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_selTallyRowChangeEventHandler v_selTallyRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_selTallyRowChangeEventHandler v_selTallyRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_selTallyRowChangeEventHandler v_selTallyRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_selTallyRowChangeEventHandler v_selTallyRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void Addv_selTallyRow(v_selTallyRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selTallyRow Addv_selTallyRow(long label, long value) { + v_selTallyRow rowv_selTallyRow = ((v_selTallyRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + label, + value}; + rowv_selTallyRow.ItemArray = columnValuesArray; + this.Rows.Add(rowv_selTallyRow); + return rowv_selTallyRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + v_selTallyDataTable cln = ((v_selTallyDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new v_selTallyDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnlabel = base.Columns["label"]; + this.columnvalue = base.Columns["value"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnlabel = new global::System.Data.DataColumn("label", typeof(long), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnlabel); + this.columnvalue = new global::System.Data.DataColumn("value", typeof(long), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnvalue); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selTallyRow Newv_selTallyRow() { + return ((v_selTallyRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new v_selTallyRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(v_selTallyRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.v_selTallyRowChanged != null)) { + this.v_selTallyRowChanged(this, new v_selTallyRowChangeEvent(((v_selTallyRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.v_selTallyRowChanging != null)) { + this.v_selTallyRowChanging(this, new v_selTallyRowChangeEvent(((v_selTallyRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.v_selTallyRowDeleted != null)) { + this.v_selTallyRowDeleted(this, new v_selTallyRowChangeEvent(((v_selTallyRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.v_selTallyRowDeleting != null)) { + this.v_selTallyRowDeleting(this, new v_selTallyRowChangeEvent(((v_selTallyRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void Removev_selTallyRow(v_selTallyRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_Utility ds = new DS_Utility(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "v_selTallyDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class StatoMacchineRow : global::System.Data.DataRow { + + private StatoMacchineDataTable tableStatoMacchine; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal StatoMacchineRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableStatoMacchine = ((StatoMacchineDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string IdxMacchina { + get { + return ((string)(this[this.tableStatoMacchine.IdxMacchinaColumn])); + } + set { + this[this.tableStatoMacchine.IdxMacchinaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int IdxStato { + get { + return ((int)(this[this.tableStatoMacchine.IdxStatoColumn])); + } + set { + this[this.tableStatoMacchine.IdxStatoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime InizioStato { + get { + try { + return ((global::System.DateTime)(this[this.tableStatoMacchine.InizioStatoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'InizioStato\' in table \'StatoMacchine\' is DBNull.", e); + } + } + set { + this[this.tableStatoMacchine.InizioStatoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Value { + get { + try { + return ((string)(this[this.tableStatoMacchine.ValueColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Value\' in table \'StatoMacchine\' is DBNull.", e); + } + } + set { + this[this.tableStatoMacchine.ValueColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string MatricolaKanban { + get { + try { + return ((string)(this[this.tableStatoMacchine.MatricolaKanbanColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'MatricolaKanban\' in table \'StatoMacchine\' is DBNull.", e); + } + } + set { + this[this.tableStatoMacchine.MatricolaKanbanColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string KanbanCode { + get { + try { + return ((string)(this[this.tableStatoMacchine.KanbanCodeColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'KanbanCode\' in table \'StatoMacchine\' is DBNull.", e); + } + } + set { + this[this.tableStatoMacchine.KanbanCodeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public double TempoCicloBase { + get { + try { + return ((double)(this[this.tableStatoMacchine.TempoCicloBaseColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'TempoCicloBase\' in table \'StatoMacchine\' is DBNull.", e); + } + } + set { + this[this.tableStatoMacchine.TempoCicloBaseColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int PzPalletProd { + get { + try { + return ((int)(this[this.tableStatoMacchine.PzPalletProdColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'PzPalletProd\' in table \'StatoMacchine\' is DBNull.", e); + } + } + set { + this[this.tableStatoMacchine.PzPalletProdColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int MatrOpr { + get { + try { + return ((int)(this[this.tableStatoMacchine.MatrOprColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'MatrOpr\' in table \'StatoMacchine\' is DBNull.", e); + } + } + set { + this[this.tableStatoMacchine.MatrOprColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string pallet { + get { + try { + return ((string)(this[this.tableStatoMacchine.palletColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'pallet\' in table \'StatoMacchine\' is DBNull.", e); + } + } + set { + this[this.tableStatoMacchine.palletColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsInizioStatoNull() { + return this.IsNull(this.tableStatoMacchine.InizioStatoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetInizioStatoNull() { + this[this.tableStatoMacchine.InizioStatoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsValueNull() { + return this.IsNull(this.tableStatoMacchine.ValueColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetValueNull() { + this[this.tableStatoMacchine.ValueColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsMatricolaKanbanNull() { + return this.IsNull(this.tableStatoMacchine.MatricolaKanbanColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetMatricolaKanbanNull() { + this[this.tableStatoMacchine.MatricolaKanbanColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsKanbanCodeNull() { + return this.IsNull(this.tableStatoMacchine.KanbanCodeColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetKanbanCodeNull() { + this[this.tableStatoMacchine.KanbanCodeColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsTempoCicloBaseNull() { + return this.IsNull(this.tableStatoMacchine.TempoCicloBaseColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetTempoCicloBaseNull() { + this[this.tableStatoMacchine.TempoCicloBaseColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsPzPalletProdNull() { + return this.IsNull(this.tableStatoMacchine.PzPalletProdColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetPzPalletProdNull() { + this[this.tableStatoMacchine.PzPalletProdColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsMatrOprNull() { + return this.IsNull(this.tableStatoMacchine.MatrOprColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetMatrOprNull() { + this[this.tableStatoMacchine.MatrOprColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IspalletNull() { + return this.IsNull(this.tableStatoMacchine.palletColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetpalletNull() { + this[this.tableStatoMacchine.palletColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class v_selArticoliRow : global::System.Data.DataRow { + + private v_selArticoliDataTable tablev_selArticoli; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal v_selArticoliRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tablev_selArticoli = ((v_selArticoliDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string value { + get { + return ((string)(this[this.tablev_selArticoli.valueColumn])); + } + set { + this[this.tablev_selArticoli.valueColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string label { + get { + try { + return ((string)(this[this.tablev_selArticoli.labelColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'label\' in table \'v_selArticoli\' is DBNull.", e); + } + } + set { + this[this.tablev_selArticoli.labelColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IslabelNull() { + return this.IsNull(this.tablev_selArticoli.labelColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetlabelNull() { + this[this.tablev_selArticoli.labelColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class v_selKanbanRow : global::System.Data.DataRow { + + private v_selKanbanDataTable tablev_selKanban; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal v_selKanbanRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tablev_selKanban = ((v_selKanbanDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string value { + get { + return ((string)(this[this.tablev_selKanban.valueColumn])); + } + set { + this[this.tablev_selKanban.valueColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string label { + get { + try { + return ((string)(this[this.tablev_selKanban.labelColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'label\' in table \'v_selKanban\' is DBNull.", e); + } + } + set { + this[this.tablev_selKanban.labelColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IslabelNull() { + return this.IsNull(this.tablev_selKanban.labelColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetlabelNull() { + this[this.tablev_selKanban.labelColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class v_selOperatoriRow : global::System.Data.DataRow { + + private v_selOperatoriDataTable tablev_selOperatori; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal v_selOperatoriRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tablev_selOperatori = ((v_selOperatoriDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int value { + get { + return ((int)(this[this.tablev_selOperatori.valueColumn])); + } + set { + this[this.tablev_selOperatori.valueColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string label { + get { + try { + return ((string)(this[this.tablev_selOperatori.labelColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'label\' in table \'v_selOperatori\' is DBNull.", e); + } + } + set { + this[this.tablev_selOperatori.labelColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IslabelNull() { + return this.IsNull(this.tablev_selOperatori.labelColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetlabelNull() { + this[this.tablev_selOperatori.labelColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class v_selODLRow : global::System.Data.DataRow { + + private v_selODLDataTable tablev_selODL; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal v_selODLRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tablev_selODL = ((v_selODLDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int value { + get { + return ((int)(this[this.tablev_selODL.valueColumn])); + } + set { + this[this.tablev_selODL.valueColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string label { + get { + try { + return ((string)(this[this.tablev_selODL.labelColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'label\' in table \'v_selODL\' is DBNull.", e); + } + } + set { + this[this.tablev_selODL.labelColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime conditio { + get { + try { + return ((global::System.DateTime)(this[this.tablev_selODL.conditioColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'conditio\' in table \'v_selODL\' is DBNull.", e); + } + } + set { + this[this.tablev_selODL.conditioColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IslabelNull() { + return this.IsNull(this.tablev_selODL.labelColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetlabelNull() { + this[this.tablev_selODL.labelColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsconditioNull() { + return this.IsNull(this.tablev_selODL.conditioColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetconditioNull() { + this[this.tablev_selODL.conditioColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class v_selEventiBCodeRow : global::System.Data.DataRow { + + private v_selEventiBCodeDataTable tablev_selEventiBCode; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal v_selEventiBCodeRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tablev_selEventiBCode = ((v_selEventiBCodeDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int value { + get { + return ((int)(this[this.tablev_selEventiBCode.valueColumn])); + } + set { + this[this.tablev_selEventiBCode.valueColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string label { + get { + try { + return ((string)(this[this.tablev_selEventiBCode.labelColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'label\' in table \'v_selEventiBCode\' is DBNull.", e); + } + } + set { + this[this.tablev_selEventiBCode.labelColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IslabelNull() { + return this.IsNull(this.tablev_selEventiBCode.labelColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetlabelNull() { + this[this.tablev_selEventiBCode.labelColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class v_selMacchineRow : global::System.Data.DataRow { + + private v_selMacchineDataTable tablev_selMacchine; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal v_selMacchineRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tablev_selMacchine = ((v_selMacchineDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string value { + get { + return ((string)(this[this.tablev_selMacchine.valueColumn])); + } + set { + this[this.tablev_selMacchine.valueColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string label { + get { + try { + return ((string)(this[this.tablev_selMacchine.labelColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'label\' in table \'v_selMacchine\' is DBNull.", e); + } + } + set { + this[this.tablev_selMacchine.labelColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IslabelNull() { + return this.IsNull(this.tablev_selMacchine.labelColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetlabelNull() { + this[this.tablev_selMacchine.labelColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class stp_statusCorrenteRow : global::System.Data.DataRow { + + private stp_statusCorrenteDataTable tablestp_statusCorrente; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal stp_statusCorrenteRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tablestp_statusCorrente = ((stp_statusCorrenteDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string IdxMacchina { + get { + return ((string)(this[this.tablestp_statusCorrente.IdxMacchinaColumn])); + } + set { + this[this.tablestp_statusCorrente.IdxMacchinaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string CodMacchina { + get { + try { + return ((string)(this[this.tablestp_statusCorrente.CodMacchinaColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'CodMacchina\' in table \'stp_statusCorrente\' is DBNull.", e); + } + } + set { + this[this.tablestp_statusCorrente.CodMacchinaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int idxFamigliaIngresso { + get { + return ((int)(this[this.tablestp_statusCorrente.idxFamigliaIngressoColumn])); + } + set { + this[this.tablestp_statusCorrente.idxFamigliaIngressoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Nome { + get { + try { + return ((string)(this[this.tablestp_statusCorrente.NomeColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Nome\' in table \'stp_statusCorrente\' is DBNull.", e); + } + } + set { + this[this.tablestp_statusCorrente.NomeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Descrizione { + get { + try { + return ((string)(this[this.tablestp_statusCorrente.DescrizioneColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Descrizione\' in table \'stp_statusCorrente\' is DBNull.", e); + } + } + set { + this[this.tablestp_statusCorrente.DescrizioneColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string url { + get { + try { + return ((string)(this[this.tablestp_statusCorrente.urlColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'url\' in table \'stp_statusCorrente\' is DBNull.", e); + } + } + set { + this[this.tablestp_statusCorrente.urlColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string locazione { + get { + try { + return ((string)(this[this.tablestp_statusCorrente.locazioneColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'locazione\' in table \'stp_statusCorrente\' is DBNull.", e); + } + } + set { + this[this.tablestp_statusCorrente.locazioneColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime DataOraServer { + get { + try { + return ((global::System.DateTime)(this[this.tablestp_statusCorrente.DataOraServerColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'DataOraServer\' in table \'stp_statusCorrente\' is DBNull.", e); + } + } + set { + this[this.tablestp_statusCorrente.DataOraServerColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime DataOraMacchina { + get { + try { + return ((global::System.DateTime)(this[this.tablestp_statusCorrente.DataOraMacchinaColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'DataOraMacchina\' in table \'stp_statusCorrente\' is DBNull.", e); + } + } + set { + this[this.tablestp_statusCorrente.DataOraMacchinaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime DataOraStart { + get { + try { + return ((global::System.DateTime)(this[this.tablestp_statusCorrente.DataOraStartColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'DataOraStart\' in table \'stp_statusCorrente\' is DBNull.", e); + } + } + set { + this[this.tablestp_statusCorrente.DataOraStartColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string IPv4 { + get { + try { + return ((string)(this[this.tablestp_statusCorrente.IPv4Column])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'IPv4\' in table \'stp_statusCorrente\' is DBNull.", e); + } + } + set { + this[this.tablestp_statusCorrente.IPv4Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime lastReboot { + get { + try { + return ((global::System.DateTime)(this[this.tablestp_statusCorrente.lastRebootColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'lastReboot\' in table \'stp_statusCorrente\' is DBNull.", e); + } + } + set { + this[this.tablestp_statusCorrente.lastRebootColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string uptime { + get { + try { + return ((string)(this[this.tablestp_statusCorrente.uptimeColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'uptime\' in table \'stp_statusCorrente\' is DBNull.", e); + } + } + set { + this[this.tablestp_statusCorrente.uptimeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime lastEvent { + get { + try { + return ((global::System.DateTime)(this[this.tablestp_statusCorrente.lastEventColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'lastEvent\' in table \'stp_statusCorrente\' is DBNull.", e); + } + } + set { + this[this.tablestp_statusCorrente.lastEventColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int idxStato { + get { + try { + return ((int)(this[this.tablestp_statusCorrente.idxStatoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'idxStato\' in table \'stp_statusCorrente\' is DBNull.", e); + } + } + set { + this[this.tablestp_statusCorrente.idxStatoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsCodMacchinaNull() { + return this.IsNull(this.tablestp_statusCorrente.CodMacchinaColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetCodMacchinaNull() { + this[this.tablestp_statusCorrente.CodMacchinaColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsNomeNull() { + return this.IsNull(this.tablestp_statusCorrente.NomeColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetNomeNull() { + this[this.tablestp_statusCorrente.NomeColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsDescrizioneNull() { + return this.IsNull(this.tablestp_statusCorrente.DescrizioneColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetDescrizioneNull() { + this[this.tablestp_statusCorrente.DescrizioneColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsurlNull() { + return this.IsNull(this.tablestp_statusCorrente.urlColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SeturlNull() { + this[this.tablestp_statusCorrente.urlColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IslocazioneNull() { + return this.IsNull(this.tablestp_statusCorrente.locazioneColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetlocazioneNull() { + this[this.tablestp_statusCorrente.locazioneColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsDataOraServerNull() { + return this.IsNull(this.tablestp_statusCorrente.DataOraServerColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetDataOraServerNull() { + this[this.tablestp_statusCorrente.DataOraServerColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsDataOraMacchinaNull() { + return this.IsNull(this.tablestp_statusCorrente.DataOraMacchinaColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetDataOraMacchinaNull() { + this[this.tablestp_statusCorrente.DataOraMacchinaColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsDataOraStartNull() { + return this.IsNull(this.tablestp_statusCorrente.DataOraStartColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetDataOraStartNull() { + this[this.tablestp_statusCorrente.DataOraStartColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsIPv4Null() { + return this.IsNull(this.tablestp_statusCorrente.IPv4Column); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetIPv4Null() { + this[this.tablestp_statusCorrente.IPv4Column] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IslastRebootNull() { + return this.IsNull(this.tablestp_statusCorrente.lastRebootColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetlastRebootNull() { + this[this.tablestp_statusCorrente.lastRebootColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsuptimeNull() { + return this.IsNull(this.tablestp_statusCorrente.uptimeColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetuptimeNull() { + this[this.tablestp_statusCorrente.uptimeColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IslastEventNull() { + return this.IsNull(this.tablestp_statusCorrente.lastEventColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetlastEventNull() { + this[this.tablestp_statusCorrente.lastEventColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsidxStatoNull() { + return this.IsNull(this.tablestp_statusCorrente.idxStatoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetidxStatoNull() { + this[this.tablestp_statusCorrente.idxStatoColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class CommentiRow : global::System.Data.DataRow { + + private CommentiDataTable tableCommenti; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal CommentiRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableCommenti = ((CommentiDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int idxODL { + get { + return ((int)(this[this.tableCommenti.idxODLColumn])); + } + set { + this[this.tableCommenti.idxODLColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string CodArticolo { + get { + return ((string)(this[this.tableCommenti.CodArticoloColumn])); + } + set { + this[this.tableCommenti.CodArticoloColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string IdxMacchina { + get { + return ((string)(this[this.tableCommenti.IdxMacchinaColumn])); + } + set { + this[this.tableCommenti.IdxMacchinaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime InizioStato { + get { + return ((global::System.DateTime)(this[this.tableCommenti.InizioStatoColumn])); + } + set { + this[this.tableCommenti.InizioStatoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Value { + get { + try { + return ((string)(this[this.tableCommenti.ValueColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Value\' in table \'Commenti\' is DBNull.", e); + } + } + set { + this[this.tableCommenti.ValueColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Operatore { + get { + try { + return ((string)(this[this.tableCommenti.OperatoreColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Operatore\' in table \'Commenti\' is DBNull.", e); + } + } + set { + this[this.tableCommenti.OperatoreColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsValueNull() { + return this.IsNull(this.tableCommenti.ValueColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetValueNull() { + this[this.tableCommenti.ValueColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsOperatoreNull() { + return this.IsNull(this.tableCommenti.OperatoreColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetOperatoreNull() { + this[this.tableCommenti.OperatoreColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class FermiNonQualRow : global::System.Data.DataRow { + + private FermiNonQualDataTable tableFermiNonQual; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal FermiNonQualRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableFermiNonQual = ((FermiNonQualDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string IdxMacchina { + get { + return ((string)(this[this.tableFermiNonQual.IdxMacchinaColumn])); + } + set { + this[this.tableFermiNonQual.IdxMacchinaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime InizioStato { + get { + return ((global::System.DateTime)(this[this.tableFermiNonQual.InizioStatoColumn])); + } + set { + this[this.tableFermiNonQual.InizioStatoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Macchina { + get { + try { + return ((string)(this[this.tableFermiNonQual.MacchinaColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Macchina\' in table \'FermiNonQual\' is DBNull.", e); + } + } + set { + this[this.tableFermiNonQual.MacchinaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int IdxStato { + get { + return ((int)(this[this.tableFermiNonQual.IdxStatoColumn])); + } + set { + this[this.tableFermiNonQual.IdxStatoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Stato { + get { + try { + return ((string)(this[this.tableFermiNonQual.StatoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Stato\' in table \'FermiNonQual\' is DBNull.", e); + } + } + set { + this[this.tableFermiNonQual.StatoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Semaforo { + get { + try { + return ((string)(this[this.tableFermiNonQual.SemaforoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Semaforo\' in table \'FermiNonQual\' is DBNull.", e); + } + } + set { + this[this.tableFermiNonQual.SemaforoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public double DurataMinuti { + get { + try { + return ((double)(this[this.tableFermiNonQual.DurataMinutiColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'DurataMinuti\' in table \'FermiNonQual\' is DBNull.", e); + } + } + set { + this[this.tableFermiNonQual.DurataMinutiColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Value { + get { + try { + return ((string)(this[this.tableFermiNonQual.ValueColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Value\' in table \'FermiNonQual\' is DBNull.", e); + } + } + set { + this[this.tableFermiNonQual.ValueColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string CodArticolo { + get { + try { + return ((string)(this[this.tableFermiNonQual.CodArticoloColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'CodArticolo\' in table \'FermiNonQual\' is DBNull.", e); + } + } + set { + this[this.tableFermiNonQual.CodArticoloColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsMacchinaNull() { + return this.IsNull(this.tableFermiNonQual.MacchinaColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetMacchinaNull() { + this[this.tableFermiNonQual.MacchinaColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsStatoNull() { + return this.IsNull(this.tableFermiNonQual.StatoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetStatoNull() { + this[this.tableFermiNonQual.StatoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsSemaforoNull() { + return this.IsNull(this.tableFermiNonQual.SemaforoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetSemaforoNull() { + this[this.tableFermiNonQual.SemaforoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsDurataMinutiNull() { + return this.IsNull(this.tableFermiNonQual.DurataMinutiColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetDurataMinutiNull() { + this[this.tableFermiNonQual.DurataMinutiColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsValueNull() { + return this.IsNull(this.tableFermiNonQual.ValueColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetValueNull() { + this[this.tableFermiNonQual.ValueColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsCodArticoloNull() { + return this.IsNull(this.tableFermiNonQual.CodArticoloColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetCodArticoloNull() { + this[this.tableFermiNonQual.CodArticoloColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class v_selTallyRow : global::System.Data.DataRow { + + private v_selTallyDataTable tablev_selTally; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal v_selTallyRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tablev_selTally = ((v_selTallyDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public long label { + get { + try { + return ((long)(this[this.tablev_selTally.labelColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'label\' in table \'v_selTally\' is DBNull.", e); + } + } + set { + this[this.tablev_selTally.labelColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public long value { + get { + try { + return ((long)(this[this.tablev_selTally.valueColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'value\' in table \'v_selTally\' is DBNull.", e); + } + } + set { + this[this.tablev_selTally.valueColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IslabelNull() { + return this.IsNull(this.tablev_selTally.labelColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetlabelNull() { + this[this.tablev_selTally.labelColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsvalueNull() { + return this.IsNull(this.tablev_selTally.valueColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetvalueNull() { + this[this.tablev_selTally.valueColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class StatoMacchineRowChangeEvent : global::System.EventArgs { + + private StatoMacchineRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public StatoMacchineRowChangeEvent(StatoMacchineRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public StatoMacchineRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class v_selArticoliRowChangeEvent : global::System.EventArgs { + + private v_selArticoliRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selArticoliRowChangeEvent(v_selArticoliRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selArticoliRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class v_selKanbanRowChangeEvent : global::System.EventArgs { + + private v_selKanbanRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selKanbanRowChangeEvent(v_selKanbanRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selKanbanRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class v_selOperatoriRowChangeEvent : global::System.EventArgs { + + private v_selOperatoriRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selOperatoriRowChangeEvent(v_selOperatoriRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selOperatoriRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class v_selODLRowChangeEvent : global::System.EventArgs { + + private v_selODLRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selODLRowChangeEvent(v_selODLRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selODLRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class v_selEventiBCodeRowChangeEvent : global::System.EventArgs { + + private v_selEventiBCodeRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selEventiBCodeRowChangeEvent(v_selEventiBCodeRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selEventiBCodeRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class v_selMacchineRowChangeEvent : global::System.EventArgs { + + private v_selMacchineRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selMacchineRowChangeEvent(v_selMacchineRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selMacchineRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class stp_statusCorrenteRowChangeEvent : global::System.EventArgs { + + private stp_statusCorrenteRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public stp_statusCorrenteRowChangeEvent(stp_statusCorrenteRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public stp_statusCorrenteRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class CommentiRowChangeEvent : global::System.EventArgs { + + private CommentiRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public CommentiRowChangeEvent(CommentiRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public CommentiRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class FermiNonQualRowChangeEvent : global::System.EventArgs { + + private FermiNonQualRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public FermiNonQualRowChangeEvent(FermiNonQualRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public FermiNonQualRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class v_selTallyRowChangeEvent : global::System.EventArgs { + + private v_selTallyRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selTallyRowChangeEvent(v_selTallyRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selTallyRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + } +} +namespace MapoDb.DS_UtilityTableAdapters { + + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class StatoMacchineTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlTransaction _transaction; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public StatoMacchineTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlTransaction Transaction { + get { + return this._transaction; + } + set { + this._transaction = value; + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + this.CommandCollection[i].Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.DeleteCommand != null))) { + this.Adapter.DeleteCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.InsertCommand != null))) { + this.Adapter.InsertCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.UpdateCommand != null))) { + this.Adapter.UpdateCommand.Transaction = this._transaction; + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "StatoMacchine"; + tableMapping.ColumnMappings.Add("IdxMacchina", "IdxMacchina"); + tableMapping.ColumnMappings.Add("IdxStato", "IdxStato"); + tableMapping.ColumnMappings.Add("InizioStato", "InizioStato"); + tableMapping.ColumnMappings.Add("Value", "Value"); + tableMapping.ColumnMappings.Add("MatricolaKanban", "MatricolaKanban"); + tableMapping.ColumnMappings.Add("KanbanCode", "KanbanCode"); + tableMapping.ColumnMappings.Add("TempoCicloBase", "TempoCicloBase"); + tableMapping.ColumnMappings.Add("PzPalletProd", "PzPalletProd"); + tableMapping.ColumnMappings.Add("MatrOpr", "MatrOpr"); + tableMapping.ColumnMappings.Add("pallet", "pallet"); + this._adapter.TableMappings.Add(tableMapping); + this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.DeleteCommand.Connection = this.Connection; + this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[StatoMacchine] WHERE (([IdxMacchina] = @Original_IdxMacchina) AND ([IdxStato] = @Original_IdxStato) AND ((@IsNull_InizioStato = 1 AND [InizioStato] IS NULL) OR ([InizioStato] = @Original_InizioStato)) AND ((@IsNull_Value = 1 AND [Value] IS NULL) OR ([Value] = @Original_Value)) AND ((@IsNull_MatricolaKanban = 1 AND [MatricolaKanban] IS NULL) OR ([MatricolaKanban] = @Original_MatricolaKanban)) AND ((@IsNull_KanbanCode = 1 AND [KanbanCode] IS NULL) OR ([KanbanCode] = @Original_KanbanCode)) AND ((@IsNull_TempoCicloBase = 1 AND [TempoCicloBase] IS NULL) OR ([TempoCicloBase] = @Original_TempoCicloBase)) AND ((@IsNull_PzPalletProd = 1 AND [PzPalletProd] IS NULL) OR ([PzPalletProd] = @Original_PzPalletProd)) AND ((@IsNull_MatrOpr = 1 AND [MatrOpr] IS NULL) OR ([MatrOpr] = @Original_MatrOpr)) AND ((@IsNull_pallet = 1 AND [pallet] IS NULL) OR ([pallet] = @Original_pallet)))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_InizioStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioStato", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_InizioStato", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioStato", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Value", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Value", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Value", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Value", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_MatricolaKanban", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatricolaKanban", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MatricolaKanban", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatricolaKanban", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_KanbanCode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KanbanCode", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_KanbanCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KanbanCode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TempoCicloBase", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TempoCicloBase", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TempoCicloBase", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TempoCicloBase", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PzPalletProd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PzPalletProd", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PzPalletProd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PzPalletProd", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_MatrOpr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrOpr", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MatrOpr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrOpr", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pallet", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pallet", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pallet", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pallet", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.InsertCommand.Connection = this.Connection; + this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[StatoMacchine] ([IdxMacchina], [IdxStato], [InizioStato], [Value], [MatricolaKanban], [KanbanCode], [TempoCicloBase], [PzPalletProd], [MatrOpr], [pallet]) VALUES (@IdxMacchina, @IdxStato, @InizioStato, @Value, @MatricolaKanban, @KanbanCode, @TempoCicloBase, @PzPalletProd, @MatrOpr, @pallet); +SELECT IdxMacchina, IdxStato, InizioStato, Value, MatricolaKanban, KanbanCode, TempoCicloBase, PzPalletProd, MatrOpr, pallet FROM StatoMacchine WHERE (IdxMacchina = @IdxMacchina)"; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@InizioStato", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioStato", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Value", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Value", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatricolaKanban", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatricolaKanban", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@KanbanCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KanbanCode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TempoCicloBase", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TempoCicloBase", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PzPalletProd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PzPalletProd", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrOpr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrOpr", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pallet", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pallet", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.UpdateCommand.Connection = this.Connection; + this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[StatoMacchine] SET [IdxMacchina] = @IdxMacchina, [IdxStato] = @IdxStato, [InizioStato] = @InizioStato, [Value] = @Value, [MatricolaKanban] = @MatricolaKanban, [KanbanCode] = @KanbanCode, [TempoCicloBase] = @TempoCicloBase, [PzPalletProd] = @PzPalletProd, [MatrOpr] = @MatrOpr, [pallet] = @pallet WHERE (([IdxMacchina] = @Original_IdxMacchina) AND ([IdxStato] = @Original_IdxStato) AND ((@IsNull_InizioStato = 1 AND [InizioStato] IS NULL) OR ([InizioStato] = @Original_InizioStato)) AND ((@IsNull_Value = 1 AND [Value] IS NULL) OR ([Value] = @Original_Value)) AND ((@IsNull_MatricolaKanban = 1 AND [MatricolaKanban] IS NULL) OR ([MatricolaKanban] = @Original_MatricolaKanban)) AND ((@IsNull_KanbanCode = 1 AND [KanbanCode] IS NULL) OR ([KanbanCode] = @Original_KanbanCode)) AND ((@IsNull_TempoCicloBase = 1 AND [TempoCicloBase] IS NULL) OR ([TempoCicloBase] = @Original_TempoCicloBase)) AND ((@IsNull_PzPalletProd = 1 AND [PzPalletProd] IS NULL) OR ([PzPalletProd] = @Original_PzPalletProd)) AND ((@IsNull_MatrOpr = 1 AND [MatrOpr] IS NULL) OR ([MatrOpr] = @Original_MatrOpr)) AND ((@IsNull_pallet = 1 AND [pallet] IS NULL) OR ([pallet] = @Original_pallet))); +SELECT IdxMacchina, IdxStato, InizioStato, Value, MatricolaKanban, KanbanCode, TempoCicloBase, PzPalletProd, MatrOpr, pallet FROM StatoMacchine WHERE (IdxMacchina = @IdxMacchina)"; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@InizioStato", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioStato", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Value", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Value", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatricolaKanban", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatricolaKanban", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@KanbanCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KanbanCode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TempoCicloBase", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TempoCicloBase", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PzPalletProd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PzPalletProd", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrOpr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrOpr", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pallet", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pallet", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_InizioStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioStato", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_InizioStato", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioStato", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Value", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Value", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Value", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Value", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_MatricolaKanban", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatricolaKanban", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MatricolaKanban", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatricolaKanban", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_KanbanCode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KanbanCode", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_KanbanCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KanbanCode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TempoCicloBase", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TempoCicloBase", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TempoCicloBase", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TempoCicloBase", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PzPalletProd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PzPalletProd", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PzPalletProd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PzPalletProd", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_MatrOpr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrOpr", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MatrOpr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrOpr", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pallet", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pallet", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pallet", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pallet", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT IdxMacchina, IdxStato, InizioStato, Value, MatricolaKanban, KanbanCode, Te" + + "mpoCicloBase, PzPalletProd, MatrOpr, pallet FROM dbo.StatoMacchine"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "dbo.stp_ZZZ_riallineaDateDb"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_Utility.StatoMacchineDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_Utility.StatoMacchineDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_Utility.StatoMacchineDataTable dataTable = new DS_Utility.StatoMacchineDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_Utility.StatoMacchineDataTable dataTable) { + return this.Adapter.Update(dataTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_Utility dataSet) { + return this.Adapter.Update(dataSet, "StatoMacchine"); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow dataRow) { + return this.Adapter.Update(new global::System.Data.DataRow[] { + dataRow}); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow[] dataRows) { + return this.Adapter.Update(dataRows); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] + public virtual int Delete(string Original_IdxMacchina, int Original_IdxStato, global::System.Nullable Original_InizioStato, string Original_Value, string Original_MatricolaKanban, string Original_KanbanCode, global::System.Nullable Original_TempoCicloBase, global::System.Nullable Original_PzPalletProd, global::System.Nullable Original_MatrOpr, string Original_pallet) { + if ((Original_IdxMacchina == null)) { + throw new global::System.ArgumentNullException("Original_IdxMacchina"); + } + else { + this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_IdxMacchina)); + } + this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_IdxStato)); + if ((Original_InizioStato.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[3].Value = ((System.DateTime)(Original_InizioStato.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value; + } + if ((Original_Value == null)) { + this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_Value)); + } + if ((Original_MatricolaKanban == null)) { + this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[7].Value = ((string)(Original_MatricolaKanban)); + } + if ((Original_KanbanCode == null)) { + this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[9].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[9].Value = ((string)(Original_KanbanCode)); + } + if ((Original_TempoCicloBase.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[10].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[11].Value = ((double)(Original_TempoCicloBase.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[10].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[11].Value = global::System.DBNull.Value; + } + if ((Original_PzPalletProd.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[12].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[13].Value = ((int)(Original_PzPalletProd.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[12].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[13].Value = global::System.DBNull.Value; + } + if ((Original_MatrOpr.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[14].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[15].Value = ((int)(Original_MatrOpr.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[14].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[15].Value = global::System.DBNull.Value; + } + if ((Original_pallet == null)) { + this.Adapter.DeleteCommand.Parameters[16].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[17].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[16].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[17].Value = ((string)(Original_pallet)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; + if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.DeleteCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.DeleteCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] + public virtual int Insert(string IdxMacchina, int IdxStato, global::System.Nullable InizioStato, string Value, string MatricolaKanban, string KanbanCode, global::System.Nullable TempoCicloBase, global::System.Nullable PzPalletProd, global::System.Nullable MatrOpr, string pallet) { + if ((IdxMacchina == null)) { + throw new global::System.ArgumentNullException("IdxMacchina"); + } + else { + this.Adapter.InsertCommand.Parameters[0].Value = ((string)(IdxMacchina)); + } + this.Adapter.InsertCommand.Parameters[1].Value = ((int)(IdxStato)); + if ((InizioStato.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[2].Value = ((System.DateTime)(InizioStato.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((Value == null)) { + this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Value)); + } + if ((MatricolaKanban == null)) { + this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[4].Value = ((string)(MatricolaKanban)); + } + if ((KanbanCode == null)) { + this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[5].Value = ((string)(KanbanCode)); + } + if ((TempoCicloBase.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[6].Value = ((double)(TempoCicloBase.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value; + } + if ((PzPalletProd.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[7].Value = ((int)(PzPalletProd.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value; + } + if ((MatrOpr.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[8].Value = ((int)(MatrOpr.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value; + } + if ((pallet == null)) { + this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[9].Value = ((string)(pallet)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; + if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.InsertCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.InsertCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update( + string IdxMacchina, + int IdxStato, + global::System.Nullable InizioStato, + string Value, + string MatricolaKanban, + string KanbanCode, + global::System.Nullable TempoCicloBase, + global::System.Nullable PzPalletProd, + global::System.Nullable MatrOpr, + string pallet, + string Original_IdxMacchina, + int Original_IdxStato, + global::System.Nullable Original_InizioStato, + string Original_Value, + string Original_MatricolaKanban, + string Original_KanbanCode, + global::System.Nullable Original_TempoCicloBase, + global::System.Nullable Original_PzPalletProd, + global::System.Nullable Original_MatrOpr, + string Original_pallet) { + if ((IdxMacchina == null)) { + throw new global::System.ArgumentNullException("IdxMacchina"); + } + else { + this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(IdxMacchina)); + } + this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(IdxStato)); + if ((InizioStato.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[2].Value = ((System.DateTime)(InizioStato.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((Value == null)) { + this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Value)); + } + if ((MatricolaKanban == null)) { + this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(MatricolaKanban)); + } + if ((KanbanCode == null)) { + this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(KanbanCode)); + } + if ((TempoCicloBase.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[6].Value = ((double)(TempoCicloBase.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value; + } + if ((PzPalletProd.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(PzPalletProd.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value; + } + if ((MatrOpr.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(MatrOpr.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value; + } + if ((pallet == null)) { + this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(pallet)); + } + if ((Original_IdxMacchina == null)) { + throw new global::System.ArgumentNullException("Original_IdxMacchina"); + } + else { + this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_IdxMacchina)); + } + this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(Original_IdxStato)); + if ((Original_InizioStato.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[13].Value = ((System.DateTime)(Original_InizioStato.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value; + } + if ((Original_Value == null)) { + this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_Value)); + } + if ((Original_MatricolaKanban == null)) { + this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Original_MatricolaKanban)); + } + if ((Original_KanbanCode == null)) { + this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_KanbanCode)); + } + if ((Original_TempoCicloBase.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[21].Value = ((double)(Original_TempoCicloBase.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value; + } + if ((Original_PzPalletProd.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[23].Value = ((int)(Original_PzPalletProd.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value; + } + if ((Original_MatrOpr.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[25].Value = ((int)(Original_MatrOpr.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[25].Value = global::System.DBNull.Value; + } + if ((Original_pallet == null)) { + this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[27].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[27].Value = ((string)(Original_pallet)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; + if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.UpdateCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.UpdateCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update( + int IdxStato, + global::System.Nullable InizioStato, + string Value, + string MatricolaKanban, + string KanbanCode, + global::System.Nullable TempoCicloBase, + global::System.Nullable PzPalletProd, + global::System.Nullable MatrOpr, + string pallet, + string Original_IdxMacchina, + int Original_IdxStato, + global::System.Nullable Original_InizioStato, + string Original_Value, + string Original_MatricolaKanban, + string Original_KanbanCode, + global::System.Nullable Original_TempoCicloBase, + global::System.Nullable Original_PzPalletProd, + global::System.Nullable Original_MatrOpr, + string Original_pallet) { + return this.Update(Original_IdxMacchina, IdxStato, InizioStato, Value, MatricolaKanban, KanbanCode, TempoCicloBase, PzPalletProd, MatrOpr, pallet, Original_IdxMacchina, Original_IdxStato, Original_InizioStato, Original_Value, Original_MatricolaKanban, Original_KanbanCode, Original_TempoCicloBase, Original_PzPalletProd, Original_MatrOpr, Original_pallet); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int stp_ZZZ_riallineaDateDb() { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1]; + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class v_selArticoliTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlTransaction _transaction; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selArticoliTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlTransaction Transaction { + get { + return this._transaction; + } + set { + this._transaction = value; + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + this.CommandCollection[i].Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.DeleteCommand != null))) { + this.Adapter.DeleteCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.InsertCommand != null))) { + this.Adapter.InsertCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.UpdateCommand != null))) { + this.Adapter.UpdateCommand.Transaction = this._transaction; + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "v_selArticoli"; + tableMapping.ColumnMappings.Add("value", "value"); + tableMapping.ColumnMappings.Add("label", "label"); + this._adapter.TableMappings.Add(tableMapping); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT value, label FROM dbo.v_selArticoli"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "dbo.stp_ART_getDataFiltered"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@conditio", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_Utility.v_selArticoliDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_Utility.v_selArticoliDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_Utility.v_selArticoliDataTable dataTable = new DS_Utility.v_selArticoliDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_Utility.v_selArticoliDataTable getByConditio(string conditio) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((conditio == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(conditio)); + } + DS_Utility.v_selArticoliDataTable dataTable = new DS_Utility.v_selArticoliDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class v_selKanbanTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlTransaction _transaction; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selKanbanTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlTransaction Transaction { + get { + return this._transaction; + } + set { + this._transaction = value; + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + this.CommandCollection[i].Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.DeleteCommand != null))) { + this.Adapter.DeleteCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.InsertCommand != null))) { + this.Adapter.InsertCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.UpdateCommand != null))) { + this.Adapter.UpdateCommand.Transaction = this._transaction; + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "v_selKanban"; + tableMapping.ColumnMappings.Add("value", "value"); + tableMapping.ColumnMappings.Add("label", "label"); + this._adapter.TableMappings.Add(tableMapping); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT value, label FROM dbo.v_selKanban"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "dbo.stp_KAN_getDataFiltered"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@conditio", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_Utility.v_selKanbanDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_Utility.v_selKanbanDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_Utility.v_selKanbanDataTable dataTable = new DS_Utility.v_selKanbanDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_Utility.v_selKanbanDataTable getByConditio(string conditio) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((conditio == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(conditio)); + } + DS_Utility.v_selKanbanDataTable dataTable = new DS_Utility.v_selKanbanDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class v_selOperatoriTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlTransaction _transaction; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selOperatoriTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlTransaction Transaction { + get { + return this._transaction; + } + set { + this._transaction = value; + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + this.CommandCollection[i].Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.DeleteCommand != null))) { + this.Adapter.DeleteCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.InsertCommand != null))) { + this.Adapter.InsertCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.UpdateCommand != null))) { + this.Adapter.UpdateCommand.Transaction = this._transaction; + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "v_selOperatori"; + tableMapping.ColumnMappings.Add("value", "value"); + tableMapping.ColumnMappings.Add("label", "label"); + this._adapter.TableMappings.Add(tableMapping); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT value, label\r\nFROM v_selOperatori\r\nORDER BY label"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_Utility.v_selOperatoriDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_Utility.v_selOperatoriDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_Utility.v_selOperatoriDataTable dataTable = new DS_Utility.v_selOperatoriDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class v_selODLTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlTransaction _transaction; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selODLTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlTransaction Transaction { + get { + return this._transaction; + } + set { + this._transaction = value; + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + this.CommandCollection[i].Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.DeleteCommand != null))) { + this.Adapter.DeleteCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.InsertCommand != null))) { + this.Adapter.InsertCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.UpdateCommand != null))) { + this.Adapter.UpdateCommand.Transaction = this._transaction; + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "v_selODL"; + tableMapping.ColumnMappings.Add("value", "value"); + tableMapping.ColumnMappings.Add("label", "label"); + tableMapping.ColumnMappings.Add("conditio", "conditio"); + this._adapter.TableMappings.Add(tableMapping); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT value, label, conditio FROM dbo.v_selODL"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "dbo.stp_vsODL_getUnused"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_Utility.v_selODLDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_Utility.v_selODLDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_Utility.v_selODLDataTable dataTable = new DS_Utility.v_selODLDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_Utility.v_selODLDataTable getUnused() { + this.Adapter.SelectCommand = this.CommandCollection[1]; + DS_Utility.v_selODLDataTable dataTable = new DS_Utility.v_selODLDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class v_selEventiBCodeTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlTransaction _transaction; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selEventiBCodeTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlTransaction Transaction { + get { + return this._transaction; + } + set { + this._transaction = value; + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + this.CommandCollection[i].Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.DeleteCommand != null))) { + this.Adapter.DeleteCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.InsertCommand != null))) { + this.Adapter.InsertCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.UpdateCommand != null))) { + this.Adapter.UpdateCommand.Transaction = this._transaction; + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "v_selEventiBCode"; + tableMapping.ColumnMappings.Add("value", "value"); + tableMapping.ColumnMappings.Add("label", "label"); + this._adapter.TableMappings.Add(tableMapping); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT value, label FROM dbo.v_selEventiBCode\r\nORDER BY label"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_Utility.v_selEventiBCodeDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_Utility.v_selEventiBCodeDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_Utility.v_selEventiBCodeDataTable dataTable = new DS_Utility.v_selEventiBCodeDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class v_selMacchineTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlTransaction _transaction; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selMacchineTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlTransaction Transaction { + get { + return this._transaction; + } + set { + this._transaction = value; + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + this.CommandCollection[i].Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.DeleteCommand != null))) { + this.Adapter.DeleteCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.InsertCommand != null))) { + this.Adapter.InsertCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.UpdateCommand != null))) { + this.Adapter.UpdateCommand.Transaction = this._transaction; + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "v_selMacchine"; + tableMapping.ColumnMappings.Add("value", "value"); + tableMapping.ColumnMappings.Add("label", "label"); + this._adapter.TableMappings.Add(tableMapping); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT value, label\r\nFROM v_selMacchine\r\nORDER BY label"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "dbo.stp_vsm_attive"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_Utility.v_selMacchineDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_Utility.v_selMacchineDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_Utility.v_selMacchineDataTable dataTable = new DS_Utility.v_selMacchineDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_Utility.v_selMacchineDataTable getAttive() { + this.Adapter.SelectCommand = this.CommandCollection[1]; + DS_Utility.v_selMacchineDataTable dataTable = new DS_Utility.v_selMacchineDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class stp_statusCorrenteTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlTransaction _transaction; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public stp_statusCorrenteTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlTransaction Transaction { + get { + return this._transaction; + } + set { + this._transaction = value; + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + this.CommandCollection[i].Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.DeleteCommand != null))) { + this.Adapter.DeleteCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.InsertCommand != null))) { + this.Adapter.InsertCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.UpdateCommand != null))) { + this.Adapter.UpdateCommand.Transaction = this._transaction; + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "stp_statusCorrente"; + tableMapping.ColumnMappings.Add("IdxMacchina", "IdxMacchina"); + tableMapping.ColumnMappings.Add("CodMacchina", "CodMacchina"); + tableMapping.ColumnMappings.Add("idxFamigliaIngresso", "idxFamigliaIngresso"); + tableMapping.ColumnMappings.Add("Nome", "Nome"); + tableMapping.ColumnMappings.Add("Descrizione", "Descrizione"); + tableMapping.ColumnMappings.Add("url", "url"); + tableMapping.ColumnMappings.Add("locazione", "locazione"); + tableMapping.ColumnMappings.Add("DataOraServer", "DataOraServer"); + tableMapping.ColumnMappings.Add("DataOraMacchina", "DataOraMacchina"); + tableMapping.ColumnMappings.Add("DataOraStart", "DataOraStart"); + tableMapping.ColumnMappings.Add("IPv4", "IPv4"); + tableMapping.ColumnMappings.Add("lastReboot", "lastReboot"); + tableMapping.ColumnMappings.Add("uptime", "uptime"); + tableMapping.ColumnMappings.Add("lastEvent", "lastEvent"); + tableMapping.ColumnMappings.Add("idxStato", "idxStato"); + this._adapter.TableMappings.Add(tableMapping); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "dbo.stp_statusCorrente"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_Utility.stp_statusCorrenteDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_Utility.stp_statusCorrenteDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_Utility.stp_statusCorrenteDataTable dataTable = new DS_Utility.stp_statusCorrenteDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class CommentiTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlTransaction _transaction; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public CommentiTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlTransaction Transaction { + get { + return this._transaction; + } + set { + this._transaction = value; + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + this.CommandCollection[i].Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.DeleteCommand != null))) { + this.Adapter.DeleteCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.InsertCommand != null))) { + this.Adapter.InsertCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.UpdateCommand != null))) { + this.Adapter.UpdateCommand.Transaction = this._transaction; + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "Commenti"; + tableMapping.ColumnMappings.Add("ODL", "idxODL"); + tableMapping.ColumnMappings.Add("CodArticolo", "CodArticolo"); + tableMapping.ColumnMappings.Add("IdxMacchina", "IdxMacchina"); + tableMapping.ColumnMappings.Add("InizioStato", "InizioStato"); + tableMapping.ColumnMappings.Add("Value", "Value"); + tableMapping.ColumnMappings.Add("idxODL", "idxODL"); + tableMapping.ColumnMappings.Add("Operatore", "Operatore"); + this._adapter.TableMappings.Add(tableMapping); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[3]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "dbo.stp_Comm_getLastByMacchina"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@showMax", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "man.stp_riallineaDateDb"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[2].Connection = this.Connection; + this._commandCollection[2].CommandText = "man.stp_ricalcolaDatiMacchinaFromDate"; + this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@inizio", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxStatoStart", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_Utility.CommentiDataTable dataTable, string IdxMacchina, global::System.Nullable showMax) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((IdxMacchina == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(IdxMacchina)); + } + if ((showMax.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((int)(showMax.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_Utility.CommentiDataTable GetData(string IdxMacchina, global::System.Nullable showMax) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((IdxMacchina == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(IdxMacchina)); + } + if ((showMax.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((int)(showMax.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + DS_Utility.CommentiDataTable dataTable = new DS_Utility.CommentiDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int stp_riallineaDateDb() { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1]; + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int stp_ricalcolaDatiMacchinaFromDate(string idxMacchina, global::System.Nullable inizio, global::System.Nullable idxStatoStart) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[2]; + if ((idxMacchina == null)) { + command.Parameters[1].Value = global::System.DBNull.Value; + } + else { + command.Parameters[1].Value = ((string)(idxMacchina)); + } + if ((inizio.HasValue == true)) { + command.Parameters[2].Value = ((System.DateTime)(inizio.Value)); + } + else { + command.Parameters[2].Value = global::System.DBNull.Value; + } + if ((idxStatoStart.HasValue == true)) { + command.Parameters[3].Value = ((int)(idxStatoStart.Value)); + } + else { + command.Parameters[3].Value = global::System.DBNull.Value; + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class FermiNonQualTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlTransaction _transaction; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public FermiNonQualTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlTransaction Transaction { + get { + return this._transaction; + } + set { + this._transaction = value; + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + this.CommandCollection[i].Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.DeleteCommand != null))) { + this.Adapter.DeleteCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.InsertCommand != null))) { + this.Adapter.InsertCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.UpdateCommand != null))) { + this.Adapter.UpdateCommand.Transaction = this._transaction; + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "FermiNonQual"; + tableMapping.ColumnMappings.Add("IdxMacchina", "IdxMacchina"); + tableMapping.ColumnMappings.Add("InizioStato", "InizioStato"); + tableMapping.ColumnMappings.Add("Macchina", "Macchina"); + tableMapping.ColumnMappings.Add("IdxStato", "IdxStato"); + tableMapping.ColumnMappings.Add("Stato", "Stato"); + tableMapping.ColumnMappings.Add("Semaforo", "Semaforo"); + tableMapping.ColumnMappings.Add("DurataMinuti", "DurataMinuti"); + tableMapping.ColumnMappings.Add("Value", "Value"); + tableMapping.ColumnMappings.Add("CodArticolo", "CodArticolo"); + this._adapter.TableMappings.Add(tableMapping); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "dbo.stp_FNQ_getFilt"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gg", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@durataMin", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_Utility.FermiNonQualDataTable dataTable, string IdxMacchina, global::System.Nullable gg, global::System.Nullable durataMin) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((IdxMacchina == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(IdxMacchina)); + } + if ((gg.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((int)(gg.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((durataMin.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[3].Value = ((double)(durataMin.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; + } + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_Utility.FermiNonQualDataTable GetData(string IdxMacchina, global::System.Nullable gg, global::System.Nullable durataMin) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((IdxMacchina == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(IdxMacchina)); + } + if ((gg.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((int)(gg.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((durataMin.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[3].Value = ((double)(durataMin.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; + } + DS_Utility.FermiNonQualDataTable dataTable = new DS_Utility.FermiNonQualDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class v_selTallyTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlTransaction _transaction; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_selTallyTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlTransaction Transaction { + get { + return this._transaction; + } + set { + this._transaction = value; + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + this.CommandCollection[i].Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.DeleteCommand != null))) { + this.Adapter.DeleteCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.InsertCommand != null))) { + this.Adapter.InsertCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.UpdateCommand != null))) { + this.Adapter.UpdateCommand.Transaction = this._transaction; + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "v_selTally"; + tableMapping.ColumnMappings.Add("label", "label"); + tableMapping.ColumnMappings.Add("value", "value"); + this._adapter.TableMappings.Add(tableMapping); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT label, value FROM dbo.v_selTally"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "dbo.stp_selTallyLimit"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@minVal", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@maxVal", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_Utility.v_selTallyDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_Utility.v_selTallyDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_Utility.v_selTallyDataTable dataTable = new DS_Utility.v_selTallyDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_Utility.v_selTallyDataTable getSubset(global::System.Nullable minVal, global::System.Nullable maxVal) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((minVal.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[1].Value = ((int)(minVal.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + if ((maxVal.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((int)(maxVal.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + DS_Utility.v_selTallyDataTable dataTable = new DS_Utility.v_selTallyDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + } + + /// + ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" + + "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")] + public partial class TableAdapterManager : global::System.ComponentModel.Component { + + private UpdateOrderOption _updateOrder; + + private StatoMacchineTableAdapter _statoMacchineTableAdapter; + + private bool _backupDataSetBeforeUpdate; + + private global::System.Data.IDbConnection _connection; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public UpdateOrderOption UpdateOrder { + get { + return this._updateOrder; + } + set { + this._updateOrder = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + + "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" + + "a", "System.Drawing.Design.UITypeEditor")] + public StatoMacchineTableAdapter StatoMacchineTableAdapter { + get { + return this._statoMacchineTableAdapter; + } + set { + this._statoMacchineTableAdapter = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool BackupDataSetBeforeUpdate { + get { + return this._backupDataSetBeforeUpdate; + } + set { + this._backupDataSetBeforeUpdate = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public global::System.Data.IDbConnection Connection { + get { + if ((this._connection != null)) { + return this._connection; + } + if (((this._statoMacchineTableAdapter != null) + && (this._statoMacchineTableAdapter.Connection != null))) { + return this._statoMacchineTableAdapter.Connection; + } + return null; + } + set { + this._connection = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int TableAdapterInstanceCount { + get { + int count = 0; + if ((this._statoMacchineTableAdapter != null)) { + count = (count + 1); + } + return count; + } + } + + /// + ///Update rows in top-down order. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private int UpdateUpdatedRows(DS_Utility dataSet, global::System.Collections.Generic.List allChangedRows, global::System.Collections.Generic.List allAddedRows) { + int result = 0; + if ((this._statoMacchineTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.StatoMacchine.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._statoMacchineTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } + return result; + } + + /// + ///Insert rows in top-down order. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private int UpdateInsertedRows(DS_Utility dataSet, global::System.Collections.Generic.List allAddedRows) { + int result = 0; + if ((this._statoMacchineTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.StatoMacchine.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._statoMacchineTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } + return result; + } + + /// + ///Delete rows in bottom-up order. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private int UpdateDeletedRows(DS_Utility dataSet, global::System.Collections.Generic.List allChangedRows) { + int result = 0; + if ((this._statoMacchineTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.StatoMacchine.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._statoMacchineTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } + return result; + } + + /// + ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List allAddedRows) { + if (((updatedRows == null) + || (updatedRows.Length < 1))) { + return updatedRows; + } + if (((allAddedRows == null) + || (allAddedRows.Count < 1))) { + return updatedRows; + } + global::System.Collections.Generic.List realUpdatedRows = new global::System.Collections.Generic.List(); + for (int i = 0; (i < updatedRows.Length); i = (i + 1)) { + global::System.Data.DataRow row = updatedRows[i]; + if ((allAddedRows.Contains(row) == false)) { + realUpdatedRows.Add(row); + } + } + return realUpdatedRows.ToArray(); + } + + /// + ///Update all changes to the dataset. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public virtual int UpdateAll(DS_Utility dataSet) { + if ((dataSet == null)) { + throw new global::System.ArgumentNullException("dataSet"); + } + if ((dataSet.HasChanges() == false)) { + return 0; + } + if (((this._statoMacchineTableAdapter != null) + && (this.MatchTableAdapterConnection(this._statoMacchineTableAdapter.Connection) == false))) { + throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + + "tring."); + } + global::System.Data.IDbConnection workConnection = this.Connection; + if ((workConnection == null)) { + throw new global::System.ApplicationException("TableAdapterManager contains no connection information. Set each TableAdapterMana" + + "ger TableAdapter property to a valid TableAdapter instance."); + } + bool workConnOpened = false; + if (((workConnection.State & global::System.Data.ConnectionState.Broken) + == global::System.Data.ConnectionState.Broken)) { + workConnection.Close(); + } + if ((workConnection.State == global::System.Data.ConnectionState.Closed)) { + workConnection.Open(); + workConnOpened = true; + } + global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction(); + if ((workTransaction == null)) { + throw new global::System.ApplicationException("The transaction cannot begin. The current data connection does not support transa" + + "ctions or the current state is not allowing the transaction to begin."); + } + global::System.Collections.Generic.List allChangedRows = new global::System.Collections.Generic.List(); + global::System.Collections.Generic.List allAddedRows = new global::System.Collections.Generic.List(); + global::System.Collections.Generic.List adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List(); + global::System.Collections.Generic.Dictionary revertConnections = new global::System.Collections.Generic.Dictionary(); + int result = 0; + global::System.Data.DataSet backupDataSet = null; + if (this.BackupDataSetBeforeUpdate) { + backupDataSet = new global::System.Data.DataSet(); + backupDataSet.Merge(dataSet); + } + try { + // ---- Prepare for update ----------- + // + if ((this._statoMacchineTableAdapter != null)) { + revertConnections.Add(this._statoMacchineTableAdapter, this._statoMacchineTableAdapter.Connection); + this._statoMacchineTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); + this._statoMacchineTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); + if (this._statoMacchineTableAdapter.Adapter.AcceptChangesDuringUpdate) { + this._statoMacchineTableAdapter.Adapter.AcceptChangesDuringUpdate = false; + adaptersWithAcceptChangesDuringUpdate.Add(this._statoMacchineTableAdapter.Adapter); + } + } + // + //---- Perform updates ----------- + // + if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) { + result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows)); + result = (result + this.UpdateInsertedRows(dataSet, allAddedRows)); + } + else { + result = (result + this.UpdateInsertedRows(dataSet, allAddedRows)); + result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows)); + } + result = (result + this.UpdateDeletedRows(dataSet, allChangedRows)); + // + //---- Commit updates ----------- + // + workTransaction.Commit(); + if ((0 < allAddedRows.Count)) { + global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count]; + allAddedRows.CopyTo(rows); + for (int i = 0; (i < rows.Length); i = (i + 1)) { + global::System.Data.DataRow row = rows[i]; + row.AcceptChanges(); + } + } + if ((0 < allChangedRows.Count)) { + global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count]; + allChangedRows.CopyTo(rows); + for (int i = 0; (i < rows.Length); i = (i + 1)) { + global::System.Data.DataRow row = rows[i]; + row.AcceptChanges(); + } + } + } + catch (global::System.Exception ex) { + workTransaction.Rollback(); + // ---- Restore the dataset ----------- + if (this.BackupDataSetBeforeUpdate) { + global::System.Diagnostics.Debug.Assert((backupDataSet != null)); + dataSet.Clear(); + dataSet.Merge(backupDataSet); + } + else { + if ((0 < allAddedRows.Count)) { + global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count]; + allAddedRows.CopyTo(rows); + for (int i = 0; (i < rows.Length); i = (i + 1)) { + global::System.Data.DataRow row = rows[i]; + row.AcceptChanges(); + row.SetAdded(); + } + } + } + throw ex; + } + finally { + if (workConnOpened) { + workConnection.Close(); + } + if ((this._statoMacchineTableAdapter != null)) { + this._statoMacchineTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._statoMacchineTableAdapter])); + this._statoMacchineTableAdapter.Transaction = null; + } + if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) { + global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count]; + adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters); + for (int i = 0; (i < adapters.Length); i = (i + 1)) { + global::System.Data.Common.DataAdapter adapter = adapters[i]; + adapter.AcceptChangesDuringUpdate = true; + } + } + } + return result; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) { + global::System.Array.Sort(rows, new SelfReferenceComparer(relation, childFirst)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) { + if ((this._connection != null)) { + return true; + } + if (((this.Connection == null) + || (inputConnection == null))) { + return true; + } + if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) { + return true; + } + return false; + } + + /// + ///Update Order Option + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public enum UpdateOrderOption { + + InsertUpdateDelete = 0, + + UpdateInsertDelete = 1, + } + + /// + ///Used to sort self-referenced table's rows + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer { + + private global::System.Data.DataRelation _relation; + + private int _childFirst; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) { + this._relation = relation; + if (childFirst) { + this._childFirst = -1; + } + else { + this._childFirst = 1; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) { + global::System.Diagnostics.Debug.Assert((row != null)); + global::System.Data.DataRow root = row; + distance = 0; + + global::System.Collections.Generic.IDictionary traversedRows = new global::System.Collections.Generic.Dictionary(); + traversedRows[row] = row; + + global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default); + for ( + ; ((parent != null) + && (traversedRows.ContainsKey(parent) == false)); + ) { + distance = (distance + 1); + root = parent; + traversedRows[parent] = parent; + parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default); + } + + if ((distance == 0)) { + traversedRows.Clear(); + traversedRows[row] = row; + parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original); + for ( + ; ((parent != null) + && (traversedRows.ContainsKey(parent) == false)); + ) { + distance = (distance + 1); + root = parent; + traversedRows[parent] = parent; + parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original); + } + } + + return root; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) { + if (object.ReferenceEquals(row1, row2)) { + return 0; + } + if ((row1 == null)) { + return -1; + } + if ((row2 == null)) { + return 1; + } + + int distance1 = 0; + global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1); + + int distance2 = 0; + global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2); + + if (object.ReferenceEquals(root1, root2)) { + return (this._childFirst * distance1.CompareTo(distance2)); + } + else { + global::System.Diagnostics.Debug.Assert(((root1.Table != null) + && (root2.Table != null))); + if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) { + return -1; + } + else { + return 1; + } + } + } + } + } +} + +#pragma warning restore 1591 \ No newline at end of file diff --git a/MapoDb/DS_Utility.cs b/MapoDb/DS_Utility.cs new file mode 100644 index 00000000..10da2a45 --- /dev/null +++ b/MapoDb/DS_Utility.cs @@ -0,0 +1,6 @@ +namespace MapoDb { + + + public partial class DS_Utility { + } +} diff --git a/MapoDb/DS_Utility.xsc b/MapoDb/DS_Utility.xsc new file mode 100644 index 00000000..05b01991 --- /dev/null +++ b/MapoDb/DS_Utility.xsc @@ -0,0 +1,9 @@ + + + + + \ No newline at end of file diff --git a/MapoDb/DS_Utility.xsd b/MapoDb/DS_Utility.xsd new file mode 100644 index 00000000..2a0c0f92 --- /dev/null +++ b/MapoDb/DS_Utility.xsd @@ -0,0 +1,783 @@ + + + + + + + + + + + + + + + + DELETE FROM [dbo].[StatoMacchine] WHERE (([IdxMacchina] = @Original_IdxMacchina) AND ([IdxStato] = @Original_IdxStato) AND ((@IsNull_InizioStato = 1 AND [InizioStato] IS NULL) OR ([InizioStato] = @Original_InizioStato)) AND ((@IsNull_Value = 1 AND [Value] IS NULL) OR ([Value] = @Original_Value)) AND ((@IsNull_MatricolaKanban = 1 AND [MatricolaKanban] IS NULL) OR ([MatricolaKanban] = @Original_MatricolaKanban)) AND ((@IsNull_KanbanCode = 1 AND [KanbanCode] IS NULL) OR ([KanbanCode] = @Original_KanbanCode)) AND ((@IsNull_TempoCicloBase = 1 AND [TempoCicloBase] IS NULL) OR ([TempoCicloBase] = @Original_TempoCicloBase)) AND ((@IsNull_PzPalletProd = 1 AND [PzPalletProd] IS NULL) OR ([PzPalletProd] = @Original_PzPalletProd)) AND ((@IsNull_MatrOpr = 1 AND [MatrOpr] IS NULL) OR ([MatrOpr] = @Original_MatrOpr)) AND ((@IsNull_pallet = 1 AND [pallet] IS NULL) OR ([pallet] = @Original_pallet))) + + + + + + + + + + + + + + + + + + + + + + + + + INSERT INTO [dbo].[StatoMacchine] ([IdxMacchina], [IdxStato], [InizioStato], [Value], [MatricolaKanban], [KanbanCode], [TempoCicloBase], [PzPalletProd], [MatrOpr], [pallet]) VALUES (@IdxMacchina, @IdxStato, @InizioStato, @Value, @MatricolaKanban, @KanbanCode, @TempoCicloBase, @PzPalletProd, @MatrOpr, @pallet); +SELECT IdxMacchina, IdxStato, InizioStato, Value, MatricolaKanban, KanbanCode, TempoCicloBase, PzPalletProd, MatrOpr, pallet FROM StatoMacchine WHERE (IdxMacchina = @IdxMacchina) + + + + + + + + + + + + + + + + + SELECT IdxMacchina, IdxStato, InizioStato, Value, MatricolaKanban, KanbanCode, TempoCicloBase, PzPalletProd, MatrOpr, pallet FROM dbo.StatoMacchine + + + + + + UPDATE [dbo].[StatoMacchine] SET [IdxMacchina] = @IdxMacchina, [IdxStato] = @IdxStato, [InizioStato] = @InizioStato, [Value] = @Value, [MatricolaKanban] = @MatricolaKanban, [KanbanCode] = @KanbanCode, [TempoCicloBase] = @TempoCicloBase, [PzPalletProd] = @PzPalletProd, [MatrOpr] = @MatrOpr, [pallet] = @pallet WHERE (([IdxMacchina] = @Original_IdxMacchina) AND ([IdxStato] = @Original_IdxStato) AND ((@IsNull_InizioStato = 1 AND [InizioStato] IS NULL) OR ([InizioStato] = @Original_InizioStato)) AND ((@IsNull_Value = 1 AND [Value] IS NULL) OR ([Value] = @Original_Value)) AND ((@IsNull_MatricolaKanban = 1 AND [MatricolaKanban] IS NULL) OR ([MatricolaKanban] = @Original_MatricolaKanban)) AND ((@IsNull_KanbanCode = 1 AND [KanbanCode] IS NULL) OR ([KanbanCode] = @Original_KanbanCode)) AND ((@IsNull_TempoCicloBase = 1 AND [TempoCicloBase] IS NULL) OR ([TempoCicloBase] = @Original_TempoCicloBase)) AND ((@IsNull_PzPalletProd = 1 AND [PzPalletProd] IS NULL) OR ([PzPalletProd] = @Original_PzPalletProd)) AND ((@IsNull_MatrOpr = 1 AND [MatrOpr] IS NULL) OR ([MatrOpr] = @Original_MatrOpr)) AND ((@IsNull_pallet = 1 AND [pallet] IS NULL) OR ([pallet] = @Original_pallet))); +SELECT IdxMacchina, IdxStato, InizioStato, Value, MatricolaKanban, KanbanCode, TempoCicloBase, PzPalletProd, MatrOpr, pallet FROM StatoMacchine WHERE (IdxMacchina = @IdxMacchina) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_ZZZ_riallineaDateDb + + + + + + + + + + + + + + SELECT value, label FROM dbo.v_selArticoli + + + + + + + + + + + + + + dbo.stp_ART_getDataFiltered + + + + + + + + + + + + + + + SELECT value, label FROM dbo.v_selKanban + + + + + + + + + + + + + + dbo.stp_KAN_getDataFiltered + + + + + + + + + + + + + + + SELECT value, label +FROM v_selOperatori +ORDER BY label + + + + + + + + + + + + + + + + + SELECT value, label, conditio FROM dbo.v_selODL + + + + + + + + + + + + + + + dbo.stp_vsODL_getUnused + + + + + + + + + + + + + + SELECT value, label FROM dbo.v_selEventiBCode +ORDER BY label + + + + + + + + + + + + + + + + + SELECT value, label +FROM v_selMacchine +ORDER BY label + + + + + + + + + + + + + + dbo.stp_vsm_attive + + + + + + + + + + + + + + dbo.stp_statusCorrente + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_Comm_getLastByMacchina + + + + + + + + + + + + + + + + + + + + + + + man.stp_riallineaDateDb + + + + + + + + + + man.stp_ricalcolaDatiMacchinaFromDate + + + + + + + + + + + + + + + + + dbo.stp_FNQ_getFilt + + + + + + + + + + + + + + + + + + + + + + + + + + + + + SELECT label, value FROM dbo.v_selTally + + + + + + + + + + + + + + dbo.stp_selTallyLimit + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/MapoDb/DS_Utility.xss b/MapoDb/DS_Utility.xss new file mode 100644 index 00000000..ef1ee6f5 --- /dev/null +++ b/MapoDb/DS_Utility.xss @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/MapoDb/DS_applicazione.Designer.cs b/MapoDb/DS_applicazione.Designer.cs new file mode 100644 index 00000000..ed6ab28c --- /dev/null +++ b/MapoDb/DS_applicazione.Designer.cs @@ -0,0 +1,23810 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +#pragma warning disable 1591 + +namespace MapoDb { + + + /// + ///Represents a strongly typed in-memory cache of data. + /// + [global::System.Serializable()] + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")] + [global::System.Xml.Serialization.XmlRootAttribute("DS_applicazione")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")] + public partial class DS_applicazione : global::System.Data.DataSet { + + private Macchine2FamiglieMacchineDataTable tableMacchine2FamiglieMacchine; + + private FamiglieMacchineDataTable tableFamiglieMacchine; + + private MacchineDataTable tableMacchine; + + private TransizioneStatiDataTable tableTransizioneStati; + + private StatoMacchineDataTable tableStatoMacchine; + + private AnagraficaStatiDataTable tableAnagraficaStati; + + private KanbanDataTable tableKanban; + + private EventListDataTable tableEventList; + + private AnagraficaEventiDataTable tableAnagraficaEventi; + + private DiarioDiBordoDataTable tableDiarioDiBordo; + + private TransizioneEventiDataTable tableTransizioneEventi; + + private KeepAliveDataTable tableKeepAlive; + + private Macchine2FamigliaIngressiDataTable tableMacchine2FamigliaIngressi; + + private FamigliaTipoIngressiDataTable tableFamigliaTipoIngressi; + + private TransizioneIngressiDataTable tableTransizioneIngressi; + + private AnagraficaOperatoriDataTable tableAnagraficaOperatori; + + private Kanban2insDataTable tableKanban2ins; + + private AnagraficaOperatori2insDataTable tableAnagraficaOperatori2ins; + + private DatiMacchineDataTable tableDatiMacchine; + + private MicroStatoMacchinaDataTable tableMicroStatoMacchina; + + private LinkMenuJQMDataTable tableLinkMenuJQM; + + private RemoteRebootLogDataTable tableRemoteRebootLog; + + private ParetoDurateDataTable tableParetoDurate; + + private global::System.Data.DataRelation relationFK_Macchine2FamiglieMacchine_FamiglieMacchine; + + private global::System.Data.DataRelation relationFK_Macchine2FamiglieMacchine_Macchine; + + private global::System.Data.DataRelation relationFK_TransizioneStati_FamiglieMacchine; + + private global::System.Data.DataRelation relationFK_StatoMacchine_Macchine; + + private global::System.Data.DataRelation relationFK_TransizioneStati_AnagraficaStati; + + private global::System.Data.DataRelation relationFK_StatoMacchine_AnagraficaStati; + + private global::System.Data.DataRelation relationFK_StatoMacchine_Kanban; + + private global::System.Data.DataRelation relationFK_EventList_Kanban; + + private global::System.Data.DataRelation relationFK_EventList_Macchine; + + private global::System.Data.DataRelation relationFK_TransizioneStati_AnagraficaEventi; + + private global::System.Data.DataRelation relationFK_EventList_AnagraficaEventi; + + private global::System.Data.DataRelation relationFK_DiarioDiBordo_AnagraficaStati; + + private global::System.Data.DataRelation relationFK_DiarioDiBordo_Kanban; + + private global::System.Data.DataRelation relationFK_DiarioDiBordo_Macchine; + + private global::System.Data.DataRelation relationFK_TransizioneEventi_AnagraficaEventi1; + + private global::System.Data.DataRelation relationFK_Macchine2FamigliaIngressi_Macchine; + + private global::System.Data.DataRelation relationFK_Macchine2FamigliaIngressi_FamigliaTipoIngressi; + + private global::System.Data.DataRelation relationFK_TransizioneIngressi_AnagraficaEventi; + + private global::System.Data.DataRelation relationFK_TransizioneIngressi_FamigliaTipoIngressi; + + private global::System.Data.DataRelation relationFK_DiarioDiBordo_AnagraficaOperatori; + + private global::System.Data.DataRelation relationFK_EventList_AnagraficaOperatori; + + private global::System.Data.DataRelation relationFK_StatoMacchine_AnagraficaOperatori; + + private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DS_applicazione() { + this.BeginInit(); + this.InitClass(); + global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); + base.Tables.CollectionChanged += schemaChangedHandler; + base.Relations.CollectionChanged += schemaChangedHandler; + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected DS_applicazione(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context, false) { + if ((this.IsBinarySerialized(info, context) == true)) { + this.InitVars(false); + global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); + this.Tables.CollectionChanged += schemaChangedHandler1; + this.Relations.CollectionChanged += schemaChangedHandler1; + return; + } + string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string)))); + if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) { + global::System.Data.DataSet ds = new global::System.Data.DataSet(); + ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema))); + if ((ds.Tables["Macchine2FamiglieMacchine"] != null)) { + base.Tables.Add(new Macchine2FamiglieMacchineDataTable(ds.Tables["Macchine2FamiglieMacchine"])); + } + if ((ds.Tables["FamiglieMacchine"] != null)) { + base.Tables.Add(new FamiglieMacchineDataTable(ds.Tables["FamiglieMacchine"])); + } + if ((ds.Tables["Macchine"] != null)) { + base.Tables.Add(new MacchineDataTable(ds.Tables["Macchine"])); + } + if ((ds.Tables["TransizioneStati"] != null)) { + base.Tables.Add(new TransizioneStatiDataTable(ds.Tables["TransizioneStati"])); + } + if ((ds.Tables["StatoMacchine"] != null)) { + base.Tables.Add(new StatoMacchineDataTable(ds.Tables["StatoMacchine"])); + } + if ((ds.Tables["AnagraficaStati"] != null)) { + base.Tables.Add(new AnagraficaStatiDataTable(ds.Tables["AnagraficaStati"])); + } + if ((ds.Tables["Kanban"] != null)) { + base.Tables.Add(new KanbanDataTable(ds.Tables["Kanban"])); + } + if ((ds.Tables["EventList"] != null)) { + base.Tables.Add(new EventListDataTable(ds.Tables["EventList"])); + } + if ((ds.Tables["AnagraficaEventi"] != null)) { + base.Tables.Add(new AnagraficaEventiDataTable(ds.Tables["AnagraficaEventi"])); + } + if ((ds.Tables["DiarioDiBordo"] != null)) { + base.Tables.Add(new DiarioDiBordoDataTable(ds.Tables["DiarioDiBordo"])); + } + if ((ds.Tables["TransizioneEventi"] != null)) { + base.Tables.Add(new TransizioneEventiDataTable(ds.Tables["TransizioneEventi"])); + } + if ((ds.Tables["KeepAlive"] != null)) { + base.Tables.Add(new KeepAliveDataTable(ds.Tables["KeepAlive"])); + } + if ((ds.Tables["Macchine2FamigliaIngressi"] != null)) { + base.Tables.Add(new Macchine2FamigliaIngressiDataTable(ds.Tables["Macchine2FamigliaIngressi"])); + } + if ((ds.Tables["FamigliaTipoIngressi"] != null)) { + base.Tables.Add(new FamigliaTipoIngressiDataTable(ds.Tables["FamigliaTipoIngressi"])); + } + if ((ds.Tables["TransizioneIngressi"] != null)) { + base.Tables.Add(new TransizioneIngressiDataTable(ds.Tables["TransizioneIngressi"])); + } + if ((ds.Tables["AnagraficaOperatori"] != null)) { + base.Tables.Add(new AnagraficaOperatoriDataTable(ds.Tables["AnagraficaOperatori"])); + } + if ((ds.Tables["Kanban2ins"] != null)) { + base.Tables.Add(new Kanban2insDataTable(ds.Tables["Kanban2ins"])); + } + if ((ds.Tables["AnagraficaOperatori2ins"] != null)) { + base.Tables.Add(new AnagraficaOperatori2insDataTable(ds.Tables["AnagraficaOperatori2ins"])); + } + if ((ds.Tables["DatiMacchine"] != null)) { + base.Tables.Add(new DatiMacchineDataTable(ds.Tables["DatiMacchine"])); + } + if ((ds.Tables["MicroStatoMacchina"] != null)) { + base.Tables.Add(new MicroStatoMacchinaDataTable(ds.Tables["MicroStatoMacchina"])); + } + if ((ds.Tables["LinkMenuJQM"] != null)) { + base.Tables.Add(new LinkMenuJQMDataTable(ds.Tables["LinkMenuJQM"])); + } + if ((ds.Tables["RemoteRebootLog"] != null)) { + base.Tables.Add(new RemoteRebootLogDataTable(ds.Tables["RemoteRebootLog"])); + } + if ((ds.Tables["ParetoDurate"] != null)) { + base.Tables.Add(new ParetoDurateDataTable(ds.Tables["ParetoDurate"])); + } + this.DataSetName = ds.DataSetName; + this.Prefix = ds.Prefix; + this.Namespace = ds.Namespace; + this.Locale = ds.Locale; + this.CaseSensitive = ds.CaseSensitive; + this.EnforceConstraints = ds.EnforceConstraints; + this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add); + this.InitVars(); + } + else { + this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema))); + } + this.GetSerializationData(info, context); + global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); + base.Tables.CollectionChanged += schemaChangedHandler; + this.Relations.CollectionChanged += schemaChangedHandler; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public Macchine2FamiglieMacchineDataTable Macchine2FamiglieMacchine { + get { + return this.tableMacchine2FamiglieMacchine; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public FamiglieMacchineDataTable FamiglieMacchine { + get { + return this.tableFamiglieMacchine; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public MacchineDataTable Macchine { + get { + return this.tableMacchine; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public TransizioneStatiDataTable TransizioneStati { + get { + return this.tableTransizioneStati; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public StatoMacchineDataTable StatoMacchine { + get { + return this.tableStatoMacchine; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public AnagraficaStatiDataTable AnagraficaStati { + get { + return this.tableAnagraficaStati; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public KanbanDataTable Kanban { + get { + return this.tableKanban; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public EventListDataTable EventList { + get { + return this.tableEventList; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public AnagraficaEventiDataTable AnagraficaEventi { + get { + return this.tableAnagraficaEventi; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public DiarioDiBordoDataTable DiarioDiBordo { + get { + return this.tableDiarioDiBordo; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public TransizioneEventiDataTable TransizioneEventi { + get { + return this.tableTransizioneEventi; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public KeepAliveDataTable KeepAlive { + get { + return this.tableKeepAlive; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public Macchine2FamigliaIngressiDataTable Macchine2FamigliaIngressi { + get { + return this.tableMacchine2FamigliaIngressi; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public FamigliaTipoIngressiDataTable FamigliaTipoIngressi { + get { + return this.tableFamigliaTipoIngressi; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public TransizioneIngressiDataTable TransizioneIngressi { + get { + return this.tableTransizioneIngressi; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public AnagraficaOperatoriDataTable AnagraficaOperatori { + get { + return this.tableAnagraficaOperatori; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public Kanban2insDataTable Kanban2ins { + get { + return this.tableKanban2ins; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public AnagraficaOperatori2insDataTable AnagraficaOperatori2ins { + get { + return this.tableAnagraficaOperatori2ins; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public DatiMacchineDataTable DatiMacchine { + get { + return this.tableDatiMacchine; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public MicroStatoMacchinaDataTable MicroStatoMacchina { + get { + return this.tableMicroStatoMacchina; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public LinkMenuJQMDataTable LinkMenuJQM { + get { + return this.tableLinkMenuJQM; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public RemoteRebootLogDataTable RemoteRebootLog { + get { + return this.tableRemoteRebootLog; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public ParetoDurateDataTable ParetoDurate { + get { + return this.tableParetoDurate; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.BrowsableAttribute(true)] + [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)] + public override global::System.Data.SchemaSerializationMode SchemaSerializationMode { + get { + return this._schemaSerializationMode; + } + set { + this._schemaSerializationMode = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)] + public new global::System.Data.DataTableCollection Tables { + get { + return base.Tables; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)] + public new global::System.Data.DataRelationCollection Relations { + get { + return base.Relations; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void InitializeDerivedDataSet() { + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataSet Clone() { + DS_applicazione cln = ((DS_applicazione)(base.Clone())); + cln.InitVars(); + cln.SchemaSerializationMode = this.SchemaSerializationMode; + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override bool ShouldSerializeTables() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override bool ShouldSerializeRelations() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) { + if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) { + this.Reset(); + global::System.Data.DataSet ds = new global::System.Data.DataSet(); + ds.ReadXml(reader); + if ((ds.Tables["Macchine2FamiglieMacchine"] != null)) { + base.Tables.Add(new Macchine2FamiglieMacchineDataTable(ds.Tables["Macchine2FamiglieMacchine"])); + } + if ((ds.Tables["FamiglieMacchine"] != null)) { + base.Tables.Add(new FamiglieMacchineDataTable(ds.Tables["FamiglieMacchine"])); + } + if ((ds.Tables["Macchine"] != null)) { + base.Tables.Add(new MacchineDataTable(ds.Tables["Macchine"])); + } + if ((ds.Tables["TransizioneStati"] != null)) { + base.Tables.Add(new TransizioneStatiDataTable(ds.Tables["TransizioneStati"])); + } + if ((ds.Tables["StatoMacchine"] != null)) { + base.Tables.Add(new StatoMacchineDataTable(ds.Tables["StatoMacchine"])); + } + if ((ds.Tables["AnagraficaStati"] != null)) { + base.Tables.Add(new AnagraficaStatiDataTable(ds.Tables["AnagraficaStati"])); + } + if ((ds.Tables["Kanban"] != null)) { + base.Tables.Add(new KanbanDataTable(ds.Tables["Kanban"])); + } + if ((ds.Tables["EventList"] != null)) { + base.Tables.Add(new EventListDataTable(ds.Tables["EventList"])); + } + if ((ds.Tables["AnagraficaEventi"] != null)) { + base.Tables.Add(new AnagraficaEventiDataTable(ds.Tables["AnagraficaEventi"])); + } + if ((ds.Tables["DiarioDiBordo"] != null)) { + base.Tables.Add(new DiarioDiBordoDataTable(ds.Tables["DiarioDiBordo"])); + } + if ((ds.Tables["TransizioneEventi"] != null)) { + base.Tables.Add(new TransizioneEventiDataTable(ds.Tables["TransizioneEventi"])); + } + if ((ds.Tables["KeepAlive"] != null)) { + base.Tables.Add(new KeepAliveDataTable(ds.Tables["KeepAlive"])); + } + if ((ds.Tables["Macchine2FamigliaIngressi"] != null)) { + base.Tables.Add(new Macchine2FamigliaIngressiDataTable(ds.Tables["Macchine2FamigliaIngressi"])); + } + if ((ds.Tables["FamigliaTipoIngressi"] != null)) { + base.Tables.Add(new FamigliaTipoIngressiDataTable(ds.Tables["FamigliaTipoIngressi"])); + } + if ((ds.Tables["TransizioneIngressi"] != null)) { + base.Tables.Add(new TransizioneIngressiDataTable(ds.Tables["TransizioneIngressi"])); + } + if ((ds.Tables["AnagraficaOperatori"] != null)) { + base.Tables.Add(new AnagraficaOperatoriDataTable(ds.Tables["AnagraficaOperatori"])); + } + if ((ds.Tables["Kanban2ins"] != null)) { + base.Tables.Add(new Kanban2insDataTable(ds.Tables["Kanban2ins"])); + } + if ((ds.Tables["AnagraficaOperatori2ins"] != null)) { + base.Tables.Add(new AnagraficaOperatori2insDataTable(ds.Tables["AnagraficaOperatori2ins"])); + } + if ((ds.Tables["DatiMacchine"] != null)) { + base.Tables.Add(new DatiMacchineDataTable(ds.Tables["DatiMacchine"])); + } + if ((ds.Tables["MicroStatoMacchina"] != null)) { + base.Tables.Add(new MicroStatoMacchinaDataTable(ds.Tables["MicroStatoMacchina"])); + } + if ((ds.Tables["LinkMenuJQM"] != null)) { + base.Tables.Add(new LinkMenuJQMDataTable(ds.Tables["LinkMenuJQM"])); + } + if ((ds.Tables["RemoteRebootLog"] != null)) { + base.Tables.Add(new RemoteRebootLogDataTable(ds.Tables["RemoteRebootLog"])); + } + if ((ds.Tables["ParetoDurate"] != null)) { + base.Tables.Add(new ParetoDurateDataTable(ds.Tables["ParetoDurate"])); + } + this.DataSetName = ds.DataSetName; + this.Prefix = ds.Prefix; + this.Namespace = ds.Namespace; + this.Locale = ds.Locale; + this.CaseSensitive = ds.CaseSensitive; + this.EnforceConstraints = ds.EnforceConstraints; + this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add); + this.InitVars(); + } + else { + this.ReadXml(reader); + this.InitVars(); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() { + global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream(); + this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null)); + stream.Position = 0; + return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.InitVars(true); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars(bool initTable) { + this.tableMacchine2FamiglieMacchine = ((Macchine2FamiglieMacchineDataTable)(base.Tables["Macchine2FamiglieMacchine"])); + if ((initTable == true)) { + if ((this.tableMacchine2FamiglieMacchine != null)) { + this.tableMacchine2FamiglieMacchine.InitVars(); + } + } + this.tableFamiglieMacchine = ((FamiglieMacchineDataTable)(base.Tables["FamiglieMacchine"])); + if ((initTable == true)) { + if ((this.tableFamiglieMacchine != null)) { + this.tableFamiglieMacchine.InitVars(); + } + } + this.tableMacchine = ((MacchineDataTable)(base.Tables["Macchine"])); + if ((initTable == true)) { + if ((this.tableMacchine != null)) { + this.tableMacchine.InitVars(); + } + } + this.tableTransizioneStati = ((TransizioneStatiDataTable)(base.Tables["TransizioneStati"])); + if ((initTable == true)) { + if ((this.tableTransizioneStati != null)) { + this.tableTransizioneStati.InitVars(); + } + } + this.tableStatoMacchine = ((StatoMacchineDataTable)(base.Tables["StatoMacchine"])); + if ((initTable == true)) { + if ((this.tableStatoMacchine != null)) { + this.tableStatoMacchine.InitVars(); + } + } + this.tableAnagraficaStati = ((AnagraficaStatiDataTable)(base.Tables["AnagraficaStati"])); + if ((initTable == true)) { + if ((this.tableAnagraficaStati != null)) { + this.tableAnagraficaStati.InitVars(); + } + } + this.tableKanban = ((KanbanDataTable)(base.Tables["Kanban"])); + if ((initTable == true)) { + if ((this.tableKanban != null)) { + this.tableKanban.InitVars(); + } + } + this.tableEventList = ((EventListDataTable)(base.Tables["EventList"])); + if ((initTable == true)) { + if ((this.tableEventList != null)) { + this.tableEventList.InitVars(); + } + } + this.tableAnagraficaEventi = ((AnagraficaEventiDataTable)(base.Tables["AnagraficaEventi"])); + if ((initTable == true)) { + if ((this.tableAnagraficaEventi != null)) { + this.tableAnagraficaEventi.InitVars(); + } + } + this.tableDiarioDiBordo = ((DiarioDiBordoDataTable)(base.Tables["DiarioDiBordo"])); + if ((initTable == true)) { + if ((this.tableDiarioDiBordo != null)) { + this.tableDiarioDiBordo.InitVars(); + } + } + this.tableTransizioneEventi = ((TransizioneEventiDataTable)(base.Tables["TransizioneEventi"])); + if ((initTable == true)) { + if ((this.tableTransizioneEventi != null)) { + this.tableTransizioneEventi.InitVars(); + } + } + this.tableKeepAlive = ((KeepAliveDataTable)(base.Tables["KeepAlive"])); + if ((initTable == true)) { + if ((this.tableKeepAlive != null)) { + this.tableKeepAlive.InitVars(); + } + } + this.tableMacchine2FamigliaIngressi = ((Macchine2FamigliaIngressiDataTable)(base.Tables["Macchine2FamigliaIngressi"])); + if ((initTable == true)) { + if ((this.tableMacchine2FamigliaIngressi != null)) { + this.tableMacchine2FamigliaIngressi.InitVars(); + } + } + this.tableFamigliaTipoIngressi = ((FamigliaTipoIngressiDataTable)(base.Tables["FamigliaTipoIngressi"])); + if ((initTable == true)) { + if ((this.tableFamigliaTipoIngressi != null)) { + this.tableFamigliaTipoIngressi.InitVars(); + } + } + this.tableTransizioneIngressi = ((TransizioneIngressiDataTable)(base.Tables["TransizioneIngressi"])); + if ((initTable == true)) { + if ((this.tableTransizioneIngressi != null)) { + this.tableTransizioneIngressi.InitVars(); + } + } + this.tableAnagraficaOperatori = ((AnagraficaOperatoriDataTable)(base.Tables["AnagraficaOperatori"])); + if ((initTable == true)) { + if ((this.tableAnagraficaOperatori != null)) { + this.tableAnagraficaOperatori.InitVars(); + } + } + this.tableKanban2ins = ((Kanban2insDataTable)(base.Tables["Kanban2ins"])); + if ((initTable == true)) { + if ((this.tableKanban2ins != null)) { + this.tableKanban2ins.InitVars(); + } + } + this.tableAnagraficaOperatori2ins = ((AnagraficaOperatori2insDataTable)(base.Tables["AnagraficaOperatori2ins"])); + if ((initTable == true)) { + if ((this.tableAnagraficaOperatori2ins != null)) { + this.tableAnagraficaOperatori2ins.InitVars(); + } + } + this.tableDatiMacchine = ((DatiMacchineDataTable)(base.Tables["DatiMacchine"])); + if ((initTable == true)) { + if ((this.tableDatiMacchine != null)) { + this.tableDatiMacchine.InitVars(); + } + } + this.tableMicroStatoMacchina = ((MicroStatoMacchinaDataTable)(base.Tables["MicroStatoMacchina"])); + if ((initTable == true)) { + if ((this.tableMicroStatoMacchina != null)) { + this.tableMicroStatoMacchina.InitVars(); + } + } + this.tableLinkMenuJQM = ((LinkMenuJQMDataTable)(base.Tables["LinkMenuJQM"])); + if ((initTable == true)) { + if ((this.tableLinkMenuJQM != null)) { + this.tableLinkMenuJQM.InitVars(); + } + } + this.tableRemoteRebootLog = ((RemoteRebootLogDataTable)(base.Tables["RemoteRebootLog"])); + if ((initTable == true)) { + if ((this.tableRemoteRebootLog != null)) { + this.tableRemoteRebootLog.InitVars(); + } + } + this.tableParetoDurate = ((ParetoDurateDataTable)(base.Tables["ParetoDurate"])); + if ((initTable == true)) { + if ((this.tableParetoDurate != null)) { + this.tableParetoDurate.InitVars(); + } + } + this.relationFK_Macchine2FamiglieMacchine_FamiglieMacchine = this.Relations["FK_Macchine2FamiglieMacchine_FamiglieMacchine"]; + this.relationFK_Macchine2FamiglieMacchine_Macchine = this.Relations["FK_Macchine2FamiglieMacchine_Macchine"]; + this.relationFK_TransizioneStati_FamiglieMacchine = this.Relations["FK_TransizioneStati_FamiglieMacchine"]; + this.relationFK_StatoMacchine_Macchine = this.Relations["FK_StatoMacchine_Macchine"]; + this.relationFK_TransizioneStati_AnagraficaStati = this.Relations["FK_TransizioneStati_AnagraficaStati"]; + this.relationFK_StatoMacchine_AnagraficaStati = this.Relations["FK_StatoMacchine_AnagraficaStati"]; + this.relationFK_StatoMacchine_Kanban = this.Relations["FK_StatoMacchine_Kanban"]; + this.relationFK_EventList_Kanban = this.Relations["FK_EventList_Kanban"]; + this.relationFK_EventList_Macchine = this.Relations["FK_EventList_Macchine"]; + this.relationFK_TransizioneStati_AnagraficaEventi = this.Relations["FK_TransizioneStati_AnagraficaEventi"]; + this.relationFK_EventList_AnagraficaEventi = this.Relations["FK_EventList_AnagraficaEventi"]; + this.relationFK_DiarioDiBordo_AnagraficaStati = this.Relations["FK_DiarioDiBordo_AnagraficaStati"]; + this.relationFK_DiarioDiBordo_Kanban = this.Relations["FK_DiarioDiBordo_Kanban"]; + this.relationFK_DiarioDiBordo_Macchine = this.Relations["FK_DiarioDiBordo_Macchine"]; + this.relationFK_TransizioneEventi_AnagraficaEventi1 = this.Relations["FK_TransizioneEventi_AnagraficaEventi1"]; + this.relationFK_Macchine2FamigliaIngressi_Macchine = this.Relations["FK_Macchine2FamigliaIngressi_Macchine"]; + this.relationFK_Macchine2FamigliaIngressi_FamigliaTipoIngressi = this.Relations["FK_Macchine2FamigliaIngressi_FamigliaTipoIngressi"]; + this.relationFK_TransizioneIngressi_AnagraficaEventi = this.Relations["FK_TransizioneIngressi_AnagraficaEventi"]; + this.relationFK_TransizioneIngressi_FamigliaTipoIngressi = this.Relations["FK_TransizioneIngressi_FamigliaTipoIngressi"]; + this.relationFK_DiarioDiBordo_AnagraficaOperatori = this.Relations["FK_DiarioDiBordo_AnagraficaOperatori"]; + this.relationFK_EventList_AnagraficaOperatori = this.Relations["FK_EventList_AnagraficaOperatori"]; + this.relationFK_StatoMacchine_AnagraficaOperatori = this.Relations["FK_StatoMacchine_AnagraficaOperatori"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.DataSetName = "DS_applicazione"; + this.Prefix = ""; + this.Namespace = "http://tempuri.org/DS_applicazione.xsd"; + this.EnforceConstraints = true; + this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; + this.tableMacchine2FamiglieMacchine = new Macchine2FamiglieMacchineDataTable(); + base.Tables.Add(this.tableMacchine2FamiglieMacchine); + this.tableFamiglieMacchine = new FamiglieMacchineDataTable(); + base.Tables.Add(this.tableFamiglieMacchine); + this.tableMacchine = new MacchineDataTable(); + base.Tables.Add(this.tableMacchine); + this.tableTransizioneStati = new TransizioneStatiDataTable(); + base.Tables.Add(this.tableTransizioneStati); + this.tableStatoMacchine = new StatoMacchineDataTable(); + base.Tables.Add(this.tableStatoMacchine); + this.tableAnagraficaStati = new AnagraficaStatiDataTable(); + base.Tables.Add(this.tableAnagraficaStati); + this.tableKanban = new KanbanDataTable(); + base.Tables.Add(this.tableKanban); + this.tableEventList = new EventListDataTable(); + base.Tables.Add(this.tableEventList); + this.tableAnagraficaEventi = new AnagraficaEventiDataTable(); + base.Tables.Add(this.tableAnagraficaEventi); + this.tableDiarioDiBordo = new DiarioDiBordoDataTable(); + base.Tables.Add(this.tableDiarioDiBordo); + this.tableTransizioneEventi = new TransizioneEventiDataTable(); + base.Tables.Add(this.tableTransizioneEventi); + this.tableKeepAlive = new KeepAliveDataTable(); + base.Tables.Add(this.tableKeepAlive); + this.tableMacchine2FamigliaIngressi = new Macchine2FamigliaIngressiDataTable(); + base.Tables.Add(this.tableMacchine2FamigliaIngressi); + this.tableFamigliaTipoIngressi = new FamigliaTipoIngressiDataTable(); + base.Tables.Add(this.tableFamigliaTipoIngressi); + this.tableTransizioneIngressi = new TransizioneIngressiDataTable(); + base.Tables.Add(this.tableTransizioneIngressi); + this.tableAnagraficaOperatori = new AnagraficaOperatoriDataTable(); + base.Tables.Add(this.tableAnagraficaOperatori); + this.tableKanban2ins = new Kanban2insDataTable(); + base.Tables.Add(this.tableKanban2ins); + this.tableAnagraficaOperatori2ins = new AnagraficaOperatori2insDataTable(); + base.Tables.Add(this.tableAnagraficaOperatori2ins); + this.tableDatiMacchine = new DatiMacchineDataTable(); + base.Tables.Add(this.tableDatiMacchine); + this.tableMicroStatoMacchina = new MicroStatoMacchinaDataTable(); + base.Tables.Add(this.tableMicroStatoMacchina); + this.tableLinkMenuJQM = new LinkMenuJQMDataTable(); + base.Tables.Add(this.tableLinkMenuJQM); + this.tableRemoteRebootLog = new RemoteRebootLogDataTable(); + base.Tables.Add(this.tableRemoteRebootLog); + this.tableParetoDurate = new ParetoDurateDataTable(); + base.Tables.Add(this.tableParetoDurate); + this.relationFK_Macchine2FamiglieMacchine_FamiglieMacchine = new global::System.Data.DataRelation("FK_Macchine2FamiglieMacchine_FamiglieMacchine", new global::System.Data.DataColumn[] { + this.tableFamiglieMacchine.IdxFamigliaColumn}, new global::System.Data.DataColumn[] { + this.tableMacchine2FamiglieMacchine.IdxFamigliaColumn}, false); + this.Relations.Add(this.relationFK_Macchine2FamiglieMacchine_FamiglieMacchine); + this.relationFK_Macchine2FamiglieMacchine_Macchine = new global::System.Data.DataRelation("FK_Macchine2FamiglieMacchine_Macchine", new global::System.Data.DataColumn[] { + this.tableMacchine.IdxMacchinaColumn}, new global::System.Data.DataColumn[] { + this.tableMacchine2FamiglieMacchine.IdxMacchinaColumn}, false); + this.Relations.Add(this.relationFK_Macchine2FamiglieMacchine_Macchine); + this.relationFK_TransizioneStati_FamiglieMacchine = new global::System.Data.DataRelation("FK_TransizioneStati_FamiglieMacchine", new global::System.Data.DataColumn[] { + this.tableFamiglieMacchine.IdxFamigliaColumn}, new global::System.Data.DataColumn[] { + this.tableTransizioneStati.IdxFamigliaColumn}, false); + this.Relations.Add(this.relationFK_TransizioneStati_FamiglieMacchine); + this.relationFK_StatoMacchine_Macchine = new global::System.Data.DataRelation("FK_StatoMacchine_Macchine", new global::System.Data.DataColumn[] { + this.tableMacchine.IdxMacchinaColumn}, new global::System.Data.DataColumn[] { + this.tableStatoMacchine.IdxMacchinaColumn}, false); + this.Relations.Add(this.relationFK_StatoMacchine_Macchine); + this.relationFK_TransizioneStati_AnagraficaStati = new global::System.Data.DataRelation("FK_TransizioneStati_AnagraficaStati", new global::System.Data.DataColumn[] { + this.tableAnagraficaStati.IdxStatoColumn}, new global::System.Data.DataColumn[] { + this.tableTransizioneStati.IdxStatoColumn}, false); + this.Relations.Add(this.relationFK_TransizioneStati_AnagraficaStati); + this.relationFK_StatoMacchine_AnagraficaStati = new global::System.Data.DataRelation("FK_StatoMacchine_AnagraficaStati", new global::System.Data.DataColumn[] { + this.tableAnagraficaStati.IdxStatoColumn}, new global::System.Data.DataColumn[] { + this.tableStatoMacchine.IdxStatoColumn}, false); + this.Relations.Add(this.relationFK_StatoMacchine_AnagraficaStati); + this.relationFK_StatoMacchine_Kanban = new global::System.Data.DataRelation("FK_StatoMacchine_Kanban", new global::System.Data.DataColumn[] { + this.tableKanban.MatricolaKanbanColumn}, new global::System.Data.DataColumn[] { + this.tableStatoMacchine.MatricolaKanbanColumn}, false); + this.Relations.Add(this.relationFK_StatoMacchine_Kanban); + this.relationFK_EventList_Kanban = new global::System.Data.DataRelation("FK_EventList_Kanban", new global::System.Data.DataColumn[] { + this.tableKanban.MatricolaKanbanColumn}, new global::System.Data.DataColumn[] { + this.tableEventList.MatricolaKanbanColumn}, false); + this.Relations.Add(this.relationFK_EventList_Kanban); + this.relationFK_EventList_Macchine = new global::System.Data.DataRelation("FK_EventList_Macchine", new global::System.Data.DataColumn[] { + this.tableMacchine.IdxMacchinaColumn}, new global::System.Data.DataColumn[] { + this.tableEventList.IdxMacchinaColumn}, false); + this.Relations.Add(this.relationFK_EventList_Macchine); + this.relationFK_TransizioneStati_AnagraficaEventi = new global::System.Data.DataRelation("FK_TransizioneStati_AnagraficaEventi", new global::System.Data.DataColumn[] { + this.tableAnagraficaEventi.IdxTipoColumn}, new global::System.Data.DataColumn[] { + this.tableTransizioneStati.IdxTipoColumn}, false); + this.Relations.Add(this.relationFK_TransizioneStati_AnagraficaEventi); + this.relationFK_EventList_AnagraficaEventi = new global::System.Data.DataRelation("FK_EventList_AnagraficaEventi", new global::System.Data.DataColumn[] { + this.tableAnagraficaEventi.IdxTipoColumn}, new global::System.Data.DataColumn[] { + this.tableEventList.IdxTipoColumn}, false); + this.Relations.Add(this.relationFK_EventList_AnagraficaEventi); + this.relationFK_DiarioDiBordo_AnagraficaStati = new global::System.Data.DataRelation("FK_DiarioDiBordo_AnagraficaStati", new global::System.Data.DataColumn[] { + this.tableAnagraficaStati.IdxStatoColumn}, new global::System.Data.DataColumn[] { + this.tableDiarioDiBordo.IdxStatoColumn}, false); + this.Relations.Add(this.relationFK_DiarioDiBordo_AnagraficaStati); + this.relationFK_DiarioDiBordo_Kanban = new global::System.Data.DataRelation("FK_DiarioDiBordo_Kanban", new global::System.Data.DataColumn[] { + this.tableKanban.MatricolaKanbanColumn}, new global::System.Data.DataColumn[] { + this.tableDiarioDiBordo.MatricolaKanbanColumn}, false); + this.Relations.Add(this.relationFK_DiarioDiBordo_Kanban); + this.relationFK_DiarioDiBordo_Macchine = new global::System.Data.DataRelation("FK_DiarioDiBordo_Macchine", new global::System.Data.DataColumn[] { + this.tableMacchine.IdxMacchinaColumn}, new global::System.Data.DataColumn[] { + this.tableDiarioDiBordo.IdxMacchinaColumn}, false); + this.Relations.Add(this.relationFK_DiarioDiBordo_Macchine); + this.relationFK_TransizioneEventi_AnagraficaEventi1 = new global::System.Data.DataRelation("FK_TransizioneEventi_AnagraficaEventi1", new global::System.Data.DataColumn[] { + this.tableAnagraficaEventi.IdxTipoColumn}, new global::System.Data.DataColumn[] { + this.tableTransizioneEventi.IdxTipoEventoColumn}, false); + this.Relations.Add(this.relationFK_TransizioneEventi_AnagraficaEventi1); + this.relationFK_Macchine2FamigliaIngressi_Macchine = new global::System.Data.DataRelation("FK_Macchine2FamigliaIngressi_Macchine", new global::System.Data.DataColumn[] { + this.tableMacchine.IdxMacchinaColumn}, new global::System.Data.DataColumn[] { + this.tableMacchine2FamigliaIngressi.IdxMacchinaColumn}, false); + this.Relations.Add(this.relationFK_Macchine2FamigliaIngressi_Macchine); + this.relationFK_Macchine2FamigliaIngressi_FamigliaTipoIngressi = new global::System.Data.DataRelation("FK_Macchine2FamigliaIngressi_FamigliaTipoIngressi", new global::System.Data.DataColumn[] { + this.tableFamigliaTipoIngressi.IdxFamigliaIngressoColumn}, new global::System.Data.DataColumn[] { + this.tableMacchine2FamigliaIngressi.IdxFamigliaIngressoColumn}, false); + this.Relations.Add(this.relationFK_Macchine2FamigliaIngressi_FamigliaTipoIngressi); + this.relationFK_TransizioneIngressi_AnagraficaEventi = new global::System.Data.DataRelation("FK_TransizioneIngressi_AnagraficaEventi", new global::System.Data.DataColumn[] { + this.tableAnagraficaEventi.IdxTipoColumn}, new global::System.Data.DataColumn[] { + this.tableTransizioneIngressi.IdxTipoEventoColumn}, false); + this.Relations.Add(this.relationFK_TransizioneIngressi_AnagraficaEventi); + this.relationFK_TransizioneIngressi_FamigliaTipoIngressi = new global::System.Data.DataRelation("FK_TransizioneIngressi_FamigliaTipoIngressi", new global::System.Data.DataColumn[] { + this.tableFamigliaTipoIngressi.IdxFamigliaIngressoColumn}, new global::System.Data.DataColumn[] { + this.tableTransizioneIngressi.IdxFamigliaIngressoColumn}, false); + this.Relations.Add(this.relationFK_TransizioneIngressi_FamigliaTipoIngressi); + this.relationFK_DiarioDiBordo_AnagraficaOperatori = new global::System.Data.DataRelation("FK_DiarioDiBordo_AnagraficaOperatori", new global::System.Data.DataColumn[] { + this.tableAnagraficaOperatori.MatrOprColumn}, new global::System.Data.DataColumn[] { + this.tableDiarioDiBordo.MatrOprColumn}, false); + this.Relations.Add(this.relationFK_DiarioDiBordo_AnagraficaOperatori); + this.relationFK_EventList_AnagraficaOperatori = new global::System.Data.DataRelation("FK_EventList_AnagraficaOperatori", new global::System.Data.DataColumn[] { + this.tableAnagraficaOperatori.MatrOprColumn}, new global::System.Data.DataColumn[] { + this.tableEventList.MatrOprColumn}, false); + this.Relations.Add(this.relationFK_EventList_AnagraficaOperatori); + this.relationFK_StatoMacchine_AnagraficaOperatori = new global::System.Data.DataRelation("FK_StatoMacchine_AnagraficaOperatori", new global::System.Data.DataColumn[] { + this.tableAnagraficaOperatori.MatrOprColumn}, new global::System.Data.DataColumn[] { + this.tableStatoMacchine.MatrOprColumn}, false); + this.Relations.Add(this.relationFK_StatoMacchine_AnagraficaOperatori); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializeMacchine2FamiglieMacchine() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializeFamiglieMacchine() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializeMacchine() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializeTransizioneStati() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializeStatoMacchine() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializeAnagraficaStati() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializeKanban() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializeEventList() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializeAnagraficaEventi() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializeDiarioDiBordo() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializeTransizioneEventi() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializeKeepAlive() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializeMacchine2FamigliaIngressi() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializeFamigliaTipoIngressi() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializeTransizioneIngressi() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializeAnagraficaOperatori() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializeKanban2ins() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializeAnagraficaOperatori2ins() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializeDatiMacchine() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializeMicroStatoMacchina() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializeLinkMenuJQM() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializeRemoteRebootLog() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializeParetoDurate() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) { + if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) { + this.InitVars(); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + DS_applicazione ds = new DS_applicazione(); + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny(); + any.Namespace = ds.Namespace; + sequence.Items.Add(any); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void Macchine2FamiglieMacchineRowChangeEventHandler(object sender, Macchine2FamiglieMacchineRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void FamiglieMacchineRowChangeEventHandler(object sender, FamiglieMacchineRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void MacchineRowChangeEventHandler(object sender, MacchineRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void TransizioneStatiRowChangeEventHandler(object sender, TransizioneStatiRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void StatoMacchineRowChangeEventHandler(object sender, StatoMacchineRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void AnagraficaStatiRowChangeEventHandler(object sender, AnagraficaStatiRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void KanbanRowChangeEventHandler(object sender, KanbanRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void EventListRowChangeEventHandler(object sender, EventListRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void AnagraficaEventiRowChangeEventHandler(object sender, AnagraficaEventiRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void DiarioDiBordoRowChangeEventHandler(object sender, DiarioDiBordoRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void TransizioneEventiRowChangeEventHandler(object sender, TransizioneEventiRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void KeepAliveRowChangeEventHandler(object sender, KeepAliveRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void Macchine2FamigliaIngressiRowChangeEventHandler(object sender, Macchine2FamigliaIngressiRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void FamigliaTipoIngressiRowChangeEventHandler(object sender, FamigliaTipoIngressiRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void TransizioneIngressiRowChangeEventHandler(object sender, TransizioneIngressiRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void AnagraficaOperatoriRowChangeEventHandler(object sender, AnagraficaOperatoriRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void Kanban2insRowChangeEventHandler(object sender, Kanban2insRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void AnagraficaOperatori2insRowChangeEventHandler(object sender, AnagraficaOperatori2insRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void DatiMacchineRowChangeEventHandler(object sender, DatiMacchineRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void MicroStatoMacchinaRowChangeEventHandler(object sender, MicroStatoMacchinaRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void LinkMenuJQMRowChangeEventHandler(object sender, LinkMenuJQMRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void RemoteRebootLogRowChangeEventHandler(object sender, RemoteRebootLogRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void ParetoDurateRowChangeEventHandler(object sender, ParetoDurateRowChangeEvent e); + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class Macchine2FamiglieMacchineDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnIdxMacchina; + + private global::System.Data.DataColumn columnIdxFamiglia; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public Macchine2FamiglieMacchineDataTable() { + this.TableName = "Macchine2FamiglieMacchine"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal Macchine2FamiglieMacchineDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected Macchine2FamiglieMacchineDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn IdxMacchinaColumn { + get { + return this.columnIdxMacchina; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn IdxFamigliaColumn { + get { + return this.columnIdxFamiglia; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public Macchine2FamiglieMacchineRow this[int index] { + get { + return ((Macchine2FamiglieMacchineRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event Macchine2FamiglieMacchineRowChangeEventHandler Macchine2FamiglieMacchineRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event Macchine2FamiglieMacchineRowChangeEventHandler Macchine2FamiglieMacchineRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event Macchine2FamiglieMacchineRowChangeEventHandler Macchine2FamiglieMacchineRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event Macchine2FamiglieMacchineRowChangeEventHandler Macchine2FamiglieMacchineRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddMacchine2FamiglieMacchineRow(Macchine2FamiglieMacchineRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public Macchine2FamiglieMacchineRow AddMacchine2FamiglieMacchineRow(MacchineRow parentMacchineRowByFK_Macchine2FamiglieMacchine_Macchine, FamiglieMacchineRow parentFamiglieMacchineRowByFK_Macchine2FamiglieMacchine_FamiglieMacchine) { + Macchine2FamiglieMacchineRow rowMacchine2FamiglieMacchineRow = ((Macchine2FamiglieMacchineRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + null, + null}; + if ((parentMacchineRowByFK_Macchine2FamiglieMacchine_Macchine != null)) { + columnValuesArray[0] = parentMacchineRowByFK_Macchine2FamiglieMacchine_Macchine[0]; + } + if ((parentFamiglieMacchineRowByFK_Macchine2FamiglieMacchine_FamiglieMacchine != null)) { + columnValuesArray[1] = parentFamiglieMacchineRowByFK_Macchine2FamiglieMacchine_FamiglieMacchine[0]; + } + rowMacchine2FamiglieMacchineRow.ItemArray = columnValuesArray; + this.Rows.Add(rowMacchine2FamiglieMacchineRow); + return rowMacchine2FamiglieMacchineRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public Macchine2FamiglieMacchineRow FindByIdxMacchinaIdxFamiglia(string IdxMacchina, int IdxFamiglia) { + return ((Macchine2FamiglieMacchineRow)(this.Rows.Find(new object[] { + IdxMacchina, + IdxFamiglia}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + Macchine2FamiglieMacchineDataTable cln = ((Macchine2FamiglieMacchineDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new Macchine2FamiglieMacchineDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnIdxMacchina = base.Columns["IdxMacchina"]; + this.columnIdxFamiglia = base.Columns["IdxFamiglia"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnIdxMacchina = new global::System.Data.DataColumn("IdxMacchina", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxMacchina); + this.columnIdxFamiglia = new global::System.Data.DataColumn("IdxFamiglia", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxFamiglia); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnIdxMacchina, + this.columnIdxFamiglia}, true)); + this.columnIdxMacchina.AllowDBNull = false; + this.columnIdxMacchina.MaxLength = 50; + this.columnIdxFamiglia.AllowDBNull = false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public Macchine2FamiglieMacchineRow NewMacchine2FamiglieMacchineRow() { + return ((Macchine2FamiglieMacchineRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new Macchine2FamiglieMacchineRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(Macchine2FamiglieMacchineRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.Macchine2FamiglieMacchineRowChanged != null)) { + this.Macchine2FamiglieMacchineRowChanged(this, new Macchine2FamiglieMacchineRowChangeEvent(((Macchine2FamiglieMacchineRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.Macchine2FamiglieMacchineRowChanging != null)) { + this.Macchine2FamiglieMacchineRowChanging(this, new Macchine2FamiglieMacchineRowChangeEvent(((Macchine2FamiglieMacchineRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.Macchine2FamiglieMacchineRowDeleted != null)) { + this.Macchine2FamiglieMacchineRowDeleted(this, new Macchine2FamiglieMacchineRowChangeEvent(((Macchine2FamiglieMacchineRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.Macchine2FamiglieMacchineRowDeleting != null)) { + this.Macchine2FamiglieMacchineRowDeleting(this, new Macchine2FamiglieMacchineRowChangeEvent(((Macchine2FamiglieMacchineRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveMacchine2FamiglieMacchineRow(Macchine2FamiglieMacchineRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_applicazione ds = new DS_applicazione(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "Macchine2FamiglieMacchineDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class FamiglieMacchineDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnIdxFamiglia; + + private global::System.Data.DataColumn columnDescrizione; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public FamiglieMacchineDataTable() { + this.TableName = "FamiglieMacchine"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal FamiglieMacchineDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected FamiglieMacchineDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn IdxFamigliaColumn { + get { + return this.columnIdxFamiglia; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn DescrizioneColumn { + get { + return this.columnDescrizione; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public FamiglieMacchineRow this[int index] { + get { + return ((FamiglieMacchineRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event FamiglieMacchineRowChangeEventHandler FamiglieMacchineRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event FamiglieMacchineRowChangeEventHandler FamiglieMacchineRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event FamiglieMacchineRowChangeEventHandler FamiglieMacchineRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event FamiglieMacchineRowChangeEventHandler FamiglieMacchineRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddFamiglieMacchineRow(FamiglieMacchineRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public FamiglieMacchineRow AddFamiglieMacchineRow(string Descrizione) { + FamiglieMacchineRow rowFamiglieMacchineRow = ((FamiglieMacchineRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + null, + Descrizione}; + rowFamiglieMacchineRow.ItemArray = columnValuesArray; + this.Rows.Add(rowFamiglieMacchineRow); + return rowFamiglieMacchineRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public FamiglieMacchineRow FindByIdxFamiglia(int IdxFamiglia) { + return ((FamiglieMacchineRow)(this.Rows.Find(new object[] { + IdxFamiglia}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + FamiglieMacchineDataTable cln = ((FamiglieMacchineDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new FamiglieMacchineDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnIdxFamiglia = base.Columns["IdxFamiglia"]; + this.columnDescrizione = base.Columns["Descrizione"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnIdxFamiglia = new global::System.Data.DataColumn("IdxFamiglia", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxFamiglia); + this.columnDescrizione = new global::System.Data.DataColumn("Descrizione", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDescrizione); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnIdxFamiglia}, true)); + this.columnIdxFamiglia.AutoIncrement = true; + this.columnIdxFamiglia.AllowDBNull = false; + this.columnIdxFamiglia.ReadOnly = true; + this.columnIdxFamiglia.Unique = true; + this.columnDescrizione.AllowDBNull = false; + this.columnDescrizione.MaxLength = 50; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public FamiglieMacchineRow NewFamiglieMacchineRow() { + return ((FamiglieMacchineRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new FamiglieMacchineRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(FamiglieMacchineRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.FamiglieMacchineRowChanged != null)) { + this.FamiglieMacchineRowChanged(this, new FamiglieMacchineRowChangeEvent(((FamiglieMacchineRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.FamiglieMacchineRowChanging != null)) { + this.FamiglieMacchineRowChanging(this, new FamiglieMacchineRowChangeEvent(((FamiglieMacchineRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.FamiglieMacchineRowDeleted != null)) { + this.FamiglieMacchineRowDeleted(this, new FamiglieMacchineRowChangeEvent(((FamiglieMacchineRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.FamiglieMacchineRowDeleting != null)) { + this.FamiglieMacchineRowDeleting(this, new FamiglieMacchineRowChangeEvent(((FamiglieMacchineRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveFamiglieMacchineRow(FamiglieMacchineRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_applicazione ds = new DS_applicazione(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "FamiglieMacchineDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class MacchineDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnIdxMacchina; + + private global::System.Data.DataColumn columnCodMacchina; + + private global::System.Data.DataColumn columnNome; + + private global::System.Data.DataColumn columnDescrizione; + + private global::System.Data.DataColumn columnNote; + + private global::System.Data.DataColumn columnurl; + + private global::System.Data.DataColumn columnlocazione; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public MacchineDataTable() { + this.TableName = "Macchine"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal MacchineDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected MacchineDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn IdxMacchinaColumn { + get { + return this.columnIdxMacchina; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn CodMacchinaColumn { + get { + return this.columnCodMacchina; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn NomeColumn { + get { + return this.columnNome; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn DescrizioneColumn { + get { + return this.columnDescrizione; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn NoteColumn { + get { + return this.columnNote; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn urlColumn { + get { + return this.columnurl; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn locazioneColumn { + get { + return this.columnlocazione; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public MacchineRow this[int index] { + get { + return ((MacchineRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event MacchineRowChangeEventHandler MacchineRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event MacchineRowChangeEventHandler MacchineRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event MacchineRowChangeEventHandler MacchineRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event MacchineRowChangeEventHandler MacchineRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddMacchineRow(MacchineRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public MacchineRow AddMacchineRow(string IdxMacchina, string CodMacchina, string Nome, string Descrizione, string Note, string url, string locazione) { + MacchineRow rowMacchineRow = ((MacchineRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + IdxMacchina, + CodMacchina, + Nome, + Descrizione, + Note, + url, + locazione}; + rowMacchineRow.ItemArray = columnValuesArray; + this.Rows.Add(rowMacchineRow); + return rowMacchineRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public MacchineRow FindByIdxMacchina(string IdxMacchina) { + return ((MacchineRow)(this.Rows.Find(new object[] { + IdxMacchina}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + MacchineDataTable cln = ((MacchineDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new MacchineDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnIdxMacchina = base.Columns["IdxMacchina"]; + this.columnCodMacchina = base.Columns["CodMacchina"]; + this.columnNome = base.Columns["Nome"]; + this.columnDescrizione = base.Columns["Descrizione"]; + this.columnNote = base.Columns["Note"]; + this.columnurl = base.Columns["url"]; + this.columnlocazione = base.Columns["locazione"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnIdxMacchina = new global::System.Data.DataColumn("IdxMacchina", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxMacchina); + this.columnCodMacchina = new global::System.Data.DataColumn("CodMacchina", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodMacchina); + this.columnNome = new global::System.Data.DataColumn("Nome", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNome); + this.columnDescrizione = new global::System.Data.DataColumn("Descrizione", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDescrizione); + this.columnNote = new global::System.Data.DataColumn("Note", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNote); + this.columnurl = new global::System.Data.DataColumn("url", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnurl); + this.columnlocazione = new global::System.Data.DataColumn("locazione", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnlocazione); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnIdxMacchina}, true)); + this.columnIdxMacchina.AllowDBNull = false; + this.columnIdxMacchina.Unique = true; + this.columnIdxMacchina.MaxLength = 50; + this.columnCodMacchina.MaxLength = 50; + this.columnNome.MaxLength = 50; + this.columnDescrizione.MaxLength = 50; + this.columnNote.MaxLength = 50; + this.columnurl.MaxLength = 250; + this.columnlocazione.MaxLength = 2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public MacchineRow NewMacchineRow() { + return ((MacchineRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new MacchineRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(MacchineRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.MacchineRowChanged != null)) { + this.MacchineRowChanged(this, new MacchineRowChangeEvent(((MacchineRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.MacchineRowChanging != null)) { + this.MacchineRowChanging(this, new MacchineRowChangeEvent(((MacchineRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.MacchineRowDeleted != null)) { + this.MacchineRowDeleted(this, new MacchineRowChangeEvent(((MacchineRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.MacchineRowDeleting != null)) { + this.MacchineRowDeleting(this, new MacchineRowChangeEvent(((MacchineRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveMacchineRow(MacchineRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_applicazione ds = new DS_applicazione(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "MacchineDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class TransizioneStatiDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnIdxFamiglia; + + private global::System.Data.DataColumn columnIdxStato; + + private global::System.Data.DataColumn columnIdxTipo; + + private global::System.Data.DataColumn columnnext_IdxStato; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public TransizioneStatiDataTable() { + this.TableName = "TransizioneStati"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal TransizioneStatiDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected TransizioneStatiDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn IdxFamigliaColumn { + get { + return this.columnIdxFamiglia; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn IdxStatoColumn { + get { + return this.columnIdxStato; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn IdxTipoColumn { + get { + return this.columnIdxTipo; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn next_IdxStatoColumn { + get { + return this.columnnext_IdxStato; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public TransizioneStatiRow this[int index] { + get { + return ((TransizioneStatiRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event TransizioneStatiRowChangeEventHandler TransizioneStatiRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event TransizioneStatiRowChangeEventHandler TransizioneStatiRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event TransizioneStatiRowChangeEventHandler TransizioneStatiRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event TransizioneStatiRowChangeEventHandler TransizioneStatiRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddTransizioneStatiRow(TransizioneStatiRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public TransizioneStatiRow AddTransizioneStatiRow(FamiglieMacchineRow parentFamiglieMacchineRowByFK_TransizioneStati_FamiglieMacchine, AnagraficaStatiRow parentAnagraficaStatiRowByFK_TransizioneStati_AnagraficaStati, AnagraficaEventiRow parentAnagraficaEventiRowByFK_TransizioneStati_AnagraficaEventi, int next_IdxStato) { + TransizioneStatiRow rowTransizioneStatiRow = ((TransizioneStatiRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + null, + null, + null, + next_IdxStato}; + if ((parentFamiglieMacchineRowByFK_TransizioneStati_FamiglieMacchine != null)) { + columnValuesArray[0] = parentFamiglieMacchineRowByFK_TransizioneStati_FamiglieMacchine[0]; + } + if ((parentAnagraficaStatiRowByFK_TransizioneStati_AnagraficaStati != null)) { + columnValuesArray[1] = parentAnagraficaStatiRowByFK_TransizioneStati_AnagraficaStati[0]; + } + if ((parentAnagraficaEventiRowByFK_TransizioneStati_AnagraficaEventi != null)) { + columnValuesArray[2] = parentAnagraficaEventiRowByFK_TransizioneStati_AnagraficaEventi[0]; + } + rowTransizioneStatiRow.ItemArray = columnValuesArray; + this.Rows.Add(rowTransizioneStatiRow); + return rowTransizioneStatiRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public TransizioneStatiRow FindByIdxFamigliaIdxStatoIdxTipo(int IdxFamiglia, int IdxStato, int IdxTipo) { + return ((TransizioneStatiRow)(this.Rows.Find(new object[] { + IdxFamiglia, + IdxStato, + IdxTipo}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + TransizioneStatiDataTable cln = ((TransizioneStatiDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new TransizioneStatiDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnIdxFamiglia = base.Columns["IdxFamiglia"]; + this.columnIdxStato = base.Columns["IdxStato"]; + this.columnIdxTipo = base.Columns["IdxTipo"]; + this.columnnext_IdxStato = base.Columns["next_IdxStato"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnIdxFamiglia = new global::System.Data.DataColumn("IdxFamiglia", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxFamiglia); + this.columnIdxStato = new global::System.Data.DataColumn("IdxStato", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxStato); + this.columnIdxTipo = new global::System.Data.DataColumn("IdxTipo", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxTipo); + this.columnnext_IdxStato = new global::System.Data.DataColumn("next_IdxStato", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnnext_IdxStato); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnIdxFamiglia, + this.columnIdxStato, + this.columnIdxTipo}, true)); + this.columnIdxFamiglia.AllowDBNull = false; + this.columnIdxStato.AllowDBNull = false; + this.columnIdxTipo.AllowDBNull = false; + this.columnnext_IdxStato.AllowDBNull = false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public TransizioneStatiRow NewTransizioneStatiRow() { + return ((TransizioneStatiRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new TransizioneStatiRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(TransizioneStatiRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.TransizioneStatiRowChanged != null)) { + this.TransizioneStatiRowChanged(this, new TransizioneStatiRowChangeEvent(((TransizioneStatiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.TransizioneStatiRowChanging != null)) { + this.TransizioneStatiRowChanging(this, new TransizioneStatiRowChangeEvent(((TransizioneStatiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.TransizioneStatiRowDeleted != null)) { + this.TransizioneStatiRowDeleted(this, new TransizioneStatiRowChangeEvent(((TransizioneStatiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.TransizioneStatiRowDeleting != null)) { + this.TransizioneStatiRowDeleting(this, new TransizioneStatiRowChangeEvent(((TransizioneStatiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveTransizioneStatiRow(TransizioneStatiRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_applicazione ds = new DS_applicazione(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "TransizioneStatiDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class StatoMacchineDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnIdxMacchina; + + private global::System.Data.DataColumn columnIdxStato; + + private global::System.Data.DataColumn columnInizioStato; + + private global::System.Data.DataColumn columnValue; + + private global::System.Data.DataColumn columnMatricolaKanban; + + private global::System.Data.DataColumn columnKanbanCode; + + private global::System.Data.DataColumn columnTempoCicloBase; + + private global::System.Data.DataColumn columnPzPalletProd; + + private global::System.Data.DataColumn columnMatrOpr; + + private global::System.Data.DataColumn columnpallet; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public StatoMacchineDataTable() { + this.TableName = "StatoMacchine"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal StatoMacchineDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected StatoMacchineDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn IdxMacchinaColumn { + get { + return this.columnIdxMacchina; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn IdxStatoColumn { + get { + return this.columnIdxStato; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn InizioStatoColumn { + get { + return this.columnInizioStato; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn ValueColumn { + get { + return this.columnValue; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn MatricolaKanbanColumn { + get { + return this.columnMatricolaKanban; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn KanbanCodeColumn { + get { + return this.columnKanbanCode; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TempoCicloBaseColumn { + get { + return this.columnTempoCicloBase; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn PzPalletProdColumn { + get { + return this.columnPzPalletProd; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn MatrOprColumn { + get { + return this.columnMatrOpr; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn palletColumn { + get { + return this.columnpallet; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public StatoMacchineRow this[int index] { + get { + return ((StatoMacchineRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event StatoMacchineRowChangeEventHandler StatoMacchineRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event StatoMacchineRowChangeEventHandler StatoMacchineRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event StatoMacchineRowChangeEventHandler StatoMacchineRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event StatoMacchineRowChangeEventHandler StatoMacchineRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddStatoMacchineRow(StatoMacchineRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public StatoMacchineRow AddStatoMacchineRow(MacchineRow parentMacchineRowByFK_StatoMacchine_Macchine, AnagraficaStatiRow parentAnagraficaStatiRowByFK_StatoMacchine_AnagraficaStati, System.DateTime InizioStato, string Value, KanbanRow parentKanbanRowByFK_StatoMacchine_Kanban, string KanbanCode, double TempoCicloBase, int PzPalletProd, AnagraficaOperatoriRow parentAnagraficaOperatoriRowByFK_StatoMacchine_AnagraficaOperatori, string pallet) { + StatoMacchineRow rowStatoMacchineRow = ((StatoMacchineRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + null, + null, + InizioStato, + Value, + null, + KanbanCode, + TempoCicloBase, + PzPalletProd, + null, + pallet}; + if ((parentMacchineRowByFK_StatoMacchine_Macchine != null)) { + columnValuesArray[0] = parentMacchineRowByFK_StatoMacchine_Macchine[0]; + } + if ((parentAnagraficaStatiRowByFK_StatoMacchine_AnagraficaStati != null)) { + columnValuesArray[1] = parentAnagraficaStatiRowByFK_StatoMacchine_AnagraficaStati[0]; + } + if ((parentKanbanRowByFK_StatoMacchine_Kanban != null)) { + columnValuesArray[4] = parentKanbanRowByFK_StatoMacchine_Kanban[0]; + } + if ((parentAnagraficaOperatoriRowByFK_StatoMacchine_AnagraficaOperatori != null)) { + columnValuesArray[8] = parentAnagraficaOperatoriRowByFK_StatoMacchine_AnagraficaOperatori[0]; + } + rowStatoMacchineRow.ItemArray = columnValuesArray; + this.Rows.Add(rowStatoMacchineRow); + return rowStatoMacchineRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public StatoMacchineRow FindByIdxMacchina(string IdxMacchina) { + return ((StatoMacchineRow)(this.Rows.Find(new object[] { + IdxMacchina}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + StatoMacchineDataTable cln = ((StatoMacchineDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new StatoMacchineDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnIdxMacchina = base.Columns["IdxMacchina"]; + this.columnIdxStato = base.Columns["IdxStato"]; + this.columnInizioStato = base.Columns["InizioStato"]; + this.columnValue = base.Columns["Value"]; + this.columnMatricolaKanban = base.Columns["MatricolaKanban"]; + this.columnKanbanCode = base.Columns["KanbanCode"]; + this.columnTempoCicloBase = base.Columns["TempoCicloBase"]; + this.columnPzPalletProd = base.Columns["PzPalletProd"]; + this.columnMatrOpr = base.Columns["MatrOpr"]; + this.columnpallet = base.Columns["pallet"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnIdxMacchina = new global::System.Data.DataColumn("IdxMacchina", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxMacchina); + this.columnIdxStato = new global::System.Data.DataColumn("IdxStato", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxStato); + this.columnInizioStato = new global::System.Data.DataColumn("InizioStato", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnInizioStato); + this.columnValue = new global::System.Data.DataColumn("Value", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnValue); + this.columnMatricolaKanban = new global::System.Data.DataColumn("MatricolaKanban", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnMatricolaKanban); + this.columnKanbanCode = new global::System.Data.DataColumn("KanbanCode", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnKanbanCode); + this.columnTempoCicloBase = new global::System.Data.DataColumn("TempoCicloBase", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTempoCicloBase); + this.columnPzPalletProd = new global::System.Data.DataColumn("PzPalletProd", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnPzPalletProd); + this.columnMatrOpr = new global::System.Data.DataColumn("MatrOpr", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnMatrOpr); + this.columnpallet = new global::System.Data.DataColumn("pallet", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnpallet); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnIdxMacchina}, true)); + this.columnIdxMacchina.AllowDBNull = false; + this.columnIdxMacchina.Unique = true; + this.columnIdxMacchina.MaxLength = 50; + this.columnIdxStato.AllowDBNull = false; + this.columnValue.MaxLength = 50; + this.columnMatricolaKanban.MaxLength = 50; + this.columnKanbanCode.MaxLength = 50; + this.columnpallet.MaxLength = 20; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public StatoMacchineRow NewStatoMacchineRow() { + return ((StatoMacchineRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new StatoMacchineRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(StatoMacchineRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.StatoMacchineRowChanged != null)) { + this.StatoMacchineRowChanged(this, new StatoMacchineRowChangeEvent(((StatoMacchineRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.StatoMacchineRowChanging != null)) { + this.StatoMacchineRowChanging(this, new StatoMacchineRowChangeEvent(((StatoMacchineRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.StatoMacchineRowDeleted != null)) { + this.StatoMacchineRowDeleted(this, new StatoMacchineRowChangeEvent(((StatoMacchineRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.StatoMacchineRowDeleting != null)) { + this.StatoMacchineRowDeleting(this, new StatoMacchineRowChangeEvent(((StatoMacchineRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveStatoMacchineRow(StatoMacchineRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_applicazione ds = new DS_applicazione(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "StatoMacchineDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class AnagraficaStatiDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnIdxStato; + + private global::System.Data.DataColumn columnDescrizione; + + private global::System.Data.DataColumn columnSemaforo; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagraficaStatiDataTable() { + this.TableName = "AnagraficaStati"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal AnagraficaStatiDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected AnagraficaStatiDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn IdxStatoColumn { + get { + return this.columnIdxStato; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn DescrizioneColumn { + get { + return this.columnDescrizione; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn SemaforoColumn { + get { + return this.columnSemaforo; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagraficaStatiRow this[int index] { + get { + return ((AnagraficaStatiRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event AnagraficaStatiRowChangeEventHandler AnagraficaStatiRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event AnagraficaStatiRowChangeEventHandler AnagraficaStatiRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event AnagraficaStatiRowChangeEventHandler AnagraficaStatiRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event AnagraficaStatiRowChangeEventHandler AnagraficaStatiRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddAnagraficaStatiRow(AnagraficaStatiRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagraficaStatiRow AddAnagraficaStatiRow(int IdxStato, string Descrizione, string Semaforo) { + AnagraficaStatiRow rowAnagraficaStatiRow = ((AnagraficaStatiRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + IdxStato, + Descrizione, + Semaforo}; + rowAnagraficaStatiRow.ItemArray = columnValuesArray; + this.Rows.Add(rowAnagraficaStatiRow); + return rowAnagraficaStatiRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagraficaStatiRow FindByIdxStato(int IdxStato) { + return ((AnagraficaStatiRow)(this.Rows.Find(new object[] { + IdxStato}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + AnagraficaStatiDataTable cln = ((AnagraficaStatiDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new AnagraficaStatiDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnIdxStato = base.Columns["IdxStato"]; + this.columnDescrizione = base.Columns["Descrizione"]; + this.columnSemaforo = base.Columns["Semaforo"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnIdxStato = new global::System.Data.DataColumn("IdxStato", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxStato); + this.columnDescrizione = new global::System.Data.DataColumn("Descrizione", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDescrizione); + this.columnSemaforo = new global::System.Data.DataColumn("Semaforo", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnSemaforo); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnIdxStato}, true)); + this.columnIdxStato.AllowDBNull = false; + this.columnIdxStato.Unique = true; + this.columnDescrizione.MaxLength = 50; + this.columnSemaforo.MaxLength = 50; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagraficaStatiRow NewAnagraficaStatiRow() { + return ((AnagraficaStatiRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new AnagraficaStatiRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(AnagraficaStatiRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.AnagraficaStatiRowChanged != null)) { + this.AnagraficaStatiRowChanged(this, new AnagraficaStatiRowChangeEvent(((AnagraficaStatiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.AnagraficaStatiRowChanging != null)) { + this.AnagraficaStatiRowChanging(this, new AnagraficaStatiRowChangeEvent(((AnagraficaStatiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.AnagraficaStatiRowDeleted != null)) { + this.AnagraficaStatiRowDeleted(this, new AnagraficaStatiRowChangeEvent(((AnagraficaStatiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.AnagraficaStatiRowDeleting != null)) { + this.AnagraficaStatiRowDeleting(this, new AnagraficaStatiRowChangeEvent(((AnagraficaStatiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveAnagraficaStatiRow(AnagraficaStatiRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_applicazione ds = new DS_applicazione(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "AnagraficaStatiDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class KanbanDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnMatricolaKanban; + + private global::System.Data.DataColumn columnKanbanCode; + + private global::System.Data.DataColumn columnTempoCicloBase; + + private global::System.Data.DataColumn columnPzPallet; + + private global::System.Data.DataColumn columnCodArticolo; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public KanbanDataTable() { + this.TableName = "Kanban"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal KanbanDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected KanbanDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn MatricolaKanbanColumn { + get { + return this.columnMatricolaKanban; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn KanbanCodeColumn { + get { + return this.columnKanbanCode; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TempoCicloBaseColumn { + get { + return this.columnTempoCicloBase; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn PzPalletColumn { + get { + return this.columnPzPallet; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn CodArticoloColumn { + get { + return this.columnCodArticolo; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public KanbanRow this[int index] { + get { + return ((KanbanRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event KanbanRowChangeEventHandler KanbanRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event KanbanRowChangeEventHandler KanbanRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event KanbanRowChangeEventHandler KanbanRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event KanbanRowChangeEventHandler KanbanRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddKanbanRow(KanbanRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public KanbanRow AddKanbanRow(string MatricolaKanban, string KanbanCode, double TempoCicloBase, int PzPallet, string CodArticolo) { + KanbanRow rowKanbanRow = ((KanbanRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + MatricolaKanban, + KanbanCode, + TempoCicloBase, + PzPallet, + CodArticolo}; + rowKanbanRow.ItemArray = columnValuesArray; + this.Rows.Add(rowKanbanRow); + return rowKanbanRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public KanbanRow FindByMatricolaKanban(string MatricolaKanban) { + return ((KanbanRow)(this.Rows.Find(new object[] { + MatricolaKanban}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + KanbanDataTable cln = ((KanbanDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new KanbanDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnMatricolaKanban = base.Columns["MatricolaKanban"]; + this.columnKanbanCode = base.Columns["KanbanCode"]; + this.columnTempoCicloBase = base.Columns["TempoCicloBase"]; + this.columnPzPallet = base.Columns["PzPallet"]; + this.columnCodArticolo = base.Columns["CodArticolo"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnMatricolaKanban = new global::System.Data.DataColumn("MatricolaKanban", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnMatricolaKanban); + this.columnKanbanCode = new global::System.Data.DataColumn("KanbanCode", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnKanbanCode); + this.columnTempoCicloBase = new global::System.Data.DataColumn("TempoCicloBase", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTempoCicloBase); + this.columnPzPallet = new global::System.Data.DataColumn("PzPallet", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnPzPallet); + this.columnCodArticolo = new global::System.Data.DataColumn("CodArticolo", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodArticolo); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnMatricolaKanban}, true)); + this.columnMatricolaKanban.AllowDBNull = false; + this.columnMatricolaKanban.Unique = true; + this.columnMatricolaKanban.MaxLength = 50; + this.columnKanbanCode.MaxLength = 50; + this.columnCodArticolo.MaxLength = 50; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public KanbanRow NewKanbanRow() { + return ((KanbanRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new KanbanRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(KanbanRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.KanbanRowChanged != null)) { + this.KanbanRowChanged(this, new KanbanRowChangeEvent(((KanbanRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.KanbanRowChanging != null)) { + this.KanbanRowChanging(this, new KanbanRowChangeEvent(((KanbanRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.KanbanRowDeleted != null)) { + this.KanbanRowDeleted(this, new KanbanRowChangeEvent(((KanbanRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.KanbanRowDeleting != null)) { + this.KanbanRowDeleting(this, new KanbanRowChangeEvent(((KanbanRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveKanbanRow(KanbanRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_applicazione ds = new DS_applicazione(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "KanbanDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class EventListDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnIdxMacchina; + + private global::System.Data.DataColumn columnInizioStato; + + private global::System.Data.DataColumn columnIdxTipo; + + private global::System.Data.DataColumn columnMatricolaKanban; + + private global::System.Data.DataColumn columnValue; + + private global::System.Data.DataColumn columnMatrOpr; + + private global::System.Data.DataColumn columnpallet; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public EventListDataTable() { + this.TableName = "EventList"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal EventListDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected EventListDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn IdxMacchinaColumn { + get { + return this.columnIdxMacchina; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn InizioStatoColumn { + get { + return this.columnInizioStato; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn IdxTipoColumn { + get { + return this.columnIdxTipo; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn MatricolaKanbanColumn { + get { + return this.columnMatricolaKanban; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn ValueColumn { + get { + return this.columnValue; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn MatrOprColumn { + get { + return this.columnMatrOpr; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn palletColumn { + get { + return this.columnpallet; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public EventListRow this[int index] { + get { + return ((EventListRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event EventListRowChangeEventHandler EventListRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event EventListRowChangeEventHandler EventListRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event EventListRowChangeEventHandler EventListRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event EventListRowChangeEventHandler EventListRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddEventListRow(EventListRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public EventListRow AddEventListRow(MacchineRow parentMacchineRowByFK_EventList_Macchine, System.DateTime InizioStato, AnagraficaEventiRow parentAnagraficaEventiRowByFK_EventList_AnagraficaEventi, KanbanRow parentKanbanRowByFK_EventList_Kanban, string Value, AnagraficaOperatoriRow parentAnagraficaOperatoriRowByFK_EventList_AnagraficaOperatori, string pallet) { + EventListRow rowEventListRow = ((EventListRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + null, + InizioStato, + null, + null, + Value, + null, + pallet}; + if ((parentMacchineRowByFK_EventList_Macchine != null)) { + columnValuesArray[0] = parentMacchineRowByFK_EventList_Macchine[0]; + } + if ((parentAnagraficaEventiRowByFK_EventList_AnagraficaEventi != null)) { + columnValuesArray[2] = parentAnagraficaEventiRowByFK_EventList_AnagraficaEventi[0]; + } + if ((parentKanbanRowByFK_EventList_Kanban != null)) { + columnValuesArray[3] = parentKanbanRowByFK_EventList_Kanban[0]; + } + if ((parentAnagraficaOperatoriRowByFK_EventList_AnagraficaOperatori != null)) { + columnValuesArray[5] = parentAnagraficaOperatoriRowByFK_EventList_AnagraficaOperatori[0]; + } + rowEventListRow.ItemArray = columnValuesArray; + this.Rows.Add(rowEventListRow); + return rowEventListRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public EventListRow FindByIdxMacchinaInizioStatoIdxTipo(string IdxMacchina, System.DateTime InizioStato, int IdxTipo) { + return ((EventListRow)(this.Rows.Find(new object[] { + IdxMacchina, + InizioStato, + IdxTipo}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + EventListDataTable cln = ((EventListDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new EventListDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnIdxMacchina = base.Columns["IdxMacchina"]; + this.columnInizioStato = base.Columns["InizioStato"]; + this.columnIdxTipo = base.Columns["IdxTipo"]; + this.columnMatricolaKanban = base.Columns["MatricolaKanban"]; + this.columnValue = base.Columns["Value"]; + this.columnMatrOpr = base.Columns["MatrOpr"]; + this.columnpallet = base.Columns["pallet"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnIdxMacchina = new global::System.Data.DataColumn("IdxMacchina", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxMacchina); + this.columnInizioStato = new global::System.Data.DataColumn("InizioStato", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnInizioStato); + this.columnIdxTipo = new global::System.Data.DataColumn("IdxTipo", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxTipo); + this.columnMatricolaKanban = new global::System.Data.DataColumn("MatricolaKanban", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnMatricolaKanban); + this.columnValue = new global::System.Data.DataColumn("Value", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnValue); + this.columnMatrOpr = new global::System.Data.DataColumn("MatrOpr", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnMatrOpr); + this.columnpallet = new global::System.Data.DataColumn("pallet", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnpallet); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnIdxMacchina, + this.columnInizioStato, + this.columnIdxTipo}, true)); + this.columnIdxMacchina.AllowDBNull = false; + this.columnIdxMacchina.MaxLength = 50; + this.columnInizioStato.AllowDBNull = false; + this.columnIdxTipo.AllowDBNull = false; + this.columnMatricolaKanban.MaxLength = 50; + this.columnValue.MaxLength = 250; + this.columnpallet.MaxLength = 20; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public EventListRow NewEventListRow() { + return ((EventListRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new EventListRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(EventListRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.EventListRowChanged != null)) { + this.EventListRowChanged(this, new EventListRowChangeEvent(((EventListRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.EventListRowChanging != null)) { + this.EventListRowChanging(this, new EventListRowChangeEvent(((EventListRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.EventListRowDeleted != null)) { + this.EventListRowDeleted(this, new EventListRowChangeEvent(((EventListRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.EventListRowDeleting != null)) { + this.EventListRowDeleting(this, new EventListRowChangeEvent(((EventListRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveEventListRow(EventListRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_applicazione ds = new DS_applicazione(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "EventListDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class AnagraficaEventiDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnIdxTipo; + + private global::System.Data.DataColumn columnNome; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagraficaEventiDataTable() { + this.TableName = "AnagraficaEventi"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal AnagraficaEventiDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected AnagraficaEventiDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn IdxTipoColumn { + get { + return this.columnIdxTipo; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn NomeColumn { + get { + return this.columnNome; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagraficaEventiRow this[int index] { + get { + return ((AnagraficaEventiRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event AnagraficaEventiRowChangeEventHandler AnagraficaEventiRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event AnagraficaEventiRowChangeEventHandler AnagraficaEventiRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event AnagraficaEventiRowChangeEventHandler AnagraficaEventiRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event AnagraficaEventiRowChangeEventHandler AnagraficaEventiRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddAnagraficaEventiRow(AnagraficaEventiRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagraficaEventiRow AddAnagraficaEventiRow(int IdxTipo, string Nome) { + AnagraficaEventiRow rowAnagraficaEventiRow = ((AnagraficaEventiRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + IdxTipo, + Nome}; + rowAnagraficaEventiRow.ItemArray = columnValuesArray; + this.Rows.Add(rowAnagraficaEventiRow); + return rowAnagraficaEventiRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagraficaEventiRow FindByIdxTipo(int IdxTipo) { + return ((AnagraficaEventiRow)(this.Rows.Find(new object[] { + IdxTipo}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + AnagraficaEventiDataTable cln = ((AnagraficaEventiDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new AnagraficaEventiDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnIdxTipo = base.Columns["IdxTipo"]; + this.columnNome = base.Columns["Nome"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnIdxTipo = new global::System.Data.DataColumn("IdxTipo", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxTipo); + this.columnNome = new global::System.Data.DataColumn("Nome", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNome); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnIdxTipo}, true)); + this.columnIdxTipo.AllowDBNull = false; + this.columnIdxTipo.Unique = true; + this.columnNome.MaxLength = 50; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagraficaEventiRow NewAnagraficaEventiRow() { + return ((AnagraficaEventiRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new AnagraficaEventiRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(AnagraficaEventiRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.AnagraficaEventiRowChanged != null)) { + this.AnagraficaEventiRowChanged(this, new AnagraficaEventiRowChangeEvent(((AnagraficaEventiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.AnagraficaEventiRowChanging != null)) { + this.AnagraficaEventiRowChanging(this, new AnagraficaEventiRowChangeEvent(((AnagraficaEventiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.AnagraficaEventiRowDeleted != null)) { + this.AnagraficaEventiRowDeleted(this, new AnagraficaEventiRowChangeEvent(((AnagraficaEventiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.AnagraficaEventiRowDeleting != null)) { + this.AnagraficaEventiRowDeleting(this, new AnagraficaEventiRowChangeEvent(((AnagraficaEventiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveAnagraficaEventiRow(AnagraficaEventiRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_applicazione ds = new DS_applicazione(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "AnagraficaEventiDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class DiarioDiBordoDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnIdxMacchina; + + private global::System.Data.DataColumn columnInizioStato; + + private global::System.Data.DataColumn columnFineStato; + + private global::System.Data.DataColumn columnIdxStato; + + private global::System.Data.DataColumn columnDurataMinuti; + + private global::System.Data.DataColumn columnValue; + + private global::System.Data.DataColumn columnMatricolaKanban; + + private global::System.Data.DataColumn columnKanbanCode; + + private global::System.Data.DataColumn columnTempoCicloBase; + + private global::System.Data.DataColumn columnPzPalletProd; + + private global::System.Data.DataColumn columnMatrOpr; + + private global::System.Data.DataColumn columnpallet; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DiarioDiBordoDataTable() { + this.TableName = "DiarioDiBordo"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal DiarioDiBordoDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected DiarioDiBordoDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn IdxMacchinaColumn { + get { + return this.columnIdxMacchina; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn InizioStatoColumn { + get { + return this.columnInizioStato; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn FineStatoColumn { + get { + return this.columnFineStato; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn IdxStatoColumn { + get { + return this.columnIdxStato; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn DurataMinutiColumn { + get { + return this.columnDurataMinuti; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn ValueColumn { + get { + return this.columnValue; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn MatricolaKanbanColumn { + get { + return this.columnMatricolaKanban; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn KanbanCodeColumn { + get { + return this.columnKanbanCode; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TempoCicloBaseColumn { + get { + return this.columnTempoCicloBase; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn PzPalletProdColumn { + get { + return this.columnPzPalletProd; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn MatrOprColumn { + get { + return this.columnMatrOpr; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn palletColumn { + get { + return this.columnpallet; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DiarioDiBordoRow this[int index] { + get { + return ((DiarioDiBordoRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event DiarioDiBordoRowChangeEventHandler DiarioDiBordoRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event DiarioDiBordoRowChangeEventHandler DiarioDiBordoRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event DiarioDiBordoRowChangeEventHandler DiarioDiBordoRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event DiarioDiBordoRowChangeEventHandler DiarioDiBordoRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddDiarioDiBordoRow(DiarioDiBordoRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DiarioDiBordoRow AddDiarioDiBordoRow(MacchineRow parentMacchineRowByFK_DiarioDiBordo_Macchine, System.DateTime InizioStato, System.DateTime FineStato, AnagraficaStatiRow parentAnagraficaStatiRowByFK_DiarioDiBordo_AnagraficaStati, double DurataMinuti, string Value, KanbanRow parentKanbanRowByFK_DiarioDiBordo_Kanban, string KanbanCode, double TempoCicloBase, int PzPalletProd, AnagraficaOperatoriRow parentAnagraficaOperatoriRowByFK_DiarioDiBordo_AnagraficaOperatori, string pallet) { + DiarioDiBordoRow rowDiarioDiBordoRow = ((DiarioDiBordoRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + null, + InizioStato, + FineStato, + null, + DurataMinuti, + Value, + null, + KanbanCode, + TempoCicloBase, + PzPalletProd, + null, + pallet}; + if ((parentMacchineRowByFK_DiarioDiBordo_Macchine != null)) { + columnValuesArray[0] = parentMacchineRowByFK_DiarioDiBordo_Macchine[0]; + } + if ((parentAnagraficaStatiRowByFK_DiarioDiBordo_AnagraficaStati != null)) { + columnValuesArray[3] = parentAnagraficaStatiRowByFK_DiarioDiBordo_AnagraficaStati[0]; + } + if ((parentKanbanRowByFK_DiarioDiBordo_Kanban != null)) { + columnValuesArray[6] = parentKanbanRowByFK_DiarioDiBordo_Kanban[0]; + } + if ((parentAnagraficaOperatoriRowByFK_DiarioDiBordo_AnagraficaOperatori != null)) { + columnValuesArray[10] = parentAnagraficaOperatoriRowByFK_DiarioDiBordo_AnagraficaOperatori[0]; + } + rowDiarioDiBordoRow.ItemArray = columnValuesArray; + this.Rows.Add(rowDiarioDiBordoRow); + return rowDiarioDiBordoRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DiarioDiBordoRow FindByIdxMacchinaInizioStato(string IdxMacchina, System.DateTime InizioStato) { + return ((DiarioDiBordoRow)(this.Rows.Find(new object[] { + IdxMacchina, + InizioStato}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + DiarioDiBordoDataTable cln = ((DiarioDiBordoDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new DiarioDiBordoDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnIdxMacchina = base.Columns["IdxMacchina"]; + this.columnInizioStato = base.Columns["InizioStato"]; + this.columnFineStato = base.Columns["FineStato"]; + this.columnIdxStato = base.Columns["IdxStato"]; + this.columnDurataMinuti = base.Columns["DurataMinuti"]; + this.columnValue = base.Columns["Value"]; + this.columnMatricolaKanban = base.Columns["MatricolaKanban"]; + this.columnKanbanCode = base.Columns["KanbanCode"]; + this.columnTempoCicloBase = base.Columns["TempoCicloBase"]; + this.columnPzPalletProd = base.Columns["PzPalletProd"]; + this.columnMatrOpr = base.Columns["MatrOpr"]; + this.columnpallet = base.Columns["pallet"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnIdxMacchina = new global::System.Data.DataColumn("IdxMacchina", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxMacchina); + this.columnInizioStato = new global::System.Data.DataColumn("InizioStato", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnInizioStato); + this.columnFineStato = new global::System.Data.DataColumn("FineStato", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnFineStato); + this.columnIdxStato = new global::System.Data.DataColumn("IdxStato", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxStato); + this.columnDurataMinuti = new global::System.Data.DataColumn("DurataMinuti", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDurataMinuti); + this.columnValue = new global::System.Data.DataColumn("Value", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnValue); + this.columnMatricolaKanban = new global::System.Data.DataColumn("MatricolaKanban", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnMatricolaKanban); + this.columnKanbanCode = new global::System.Data.DataColumn("KanbanCode", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnKanbanCode); + this.columnTempoCicloBase = new global::System.Data.DataColumn("TempoCicloBase", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTempoCicloBase); + this.columnPzPalletProd = new global::System.Data.DataColumn("PzPalletProd", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnPzPalletProd); + this.columnMatrOpr = new global::System.Data.DataColumn("MatrOpr", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnMatrOpr); + this.columnpallet = new global::System.Data.DataColumn("pallet", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnpallet); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnIdxMacchina, + this.columnInizioStato}, true)); + this.columnIdxMacchina.AllowDBNull = false; + this.columnIdxMacchina.MaxLength = 50; + this.columnInizioStato.AllowDBNull = false; + this.columnIdxStato.AllowDBNull = false; + this.columnValue.MaxLength = 50; + this.columnMatricolaKanban.MaxLength = 50; + this.columnKanbanCode.MaxLength = 50; + this.columnpallet.MaxLength = 20; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DiarioDiBordoRow NewDiarioDiBordoRow() { + return ((DiarioDiBordoRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new DiarioDiBordoRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(DiarioDiBordoRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.DiarioDiBordoRowChanged != null)) { + this.DiarioDiBordoRowChanged(this, new DiarioDiBordoRowChangeEvent(((DiarioDiBordoRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.DiarioDiBordoRowChanging != null)) { + this.DiarioDiBordoRowChanging(this, new DiarioDiBordoRowChangeEvent(((DiarioDiBordoRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.DiarioDiBordoRowDeleted != null)) { + this.DiarioDiBordoRowDeleted(this, new DiarioDiBordoRowChangeEvent(((DiarioDiBordoRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.DiarioDiBordoRowDeleting != null)) { + this.DiarioDiBordoRowDeleting(this, new DiarioDiBordoRowChangeEvent(((DiarioDiBordoRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveDiarioDiBordoRow(DiarioDiBordoRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_applicazione ds = new DS_applicazione(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "DiarioDiBordoDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class TransizioneEventiDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columncodInviato; + + private global::System.Data.DataColumn columnprec_codInviato; + + private global::System.Data.DataColumn columnIdxTipoEvento; + + private global::System.Data.DataColumn columntext2show; + + private global::System.Data.DataColumn columndescrComando; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public TransizioneEventiDataTable() { + this.TableName = "TransizioneEventi"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal TransizioneEventiDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected TransizioneEventiDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn codInviatoColumn { + get { + return this.columncodInviato; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn prec_codInviatoColumn { + get { + return this.columnprec_codInviato; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn IdxTipoEventoColumn { + get { + return this.columnIdxTipoEvento; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn text2showColumn { + get { + return this.columntext2show; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn descrComandoColumn { + get { + return this.columndescrComando; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public TransizioneEventiRow this[int index] { + get { + return ((TransizioneEventiRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event TransizioneEventiRowChangeEventHandler TransizioneEventiRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event TransizioneEventiRowChangeEventHandler TransizioneEventiRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event TransizioneEventiRowChangeEventHandler TransizioneEventiRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event TransizioneEventiRowChangeEventHandler TransizioneEventiRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddTransizioneEventiRow(TransizioneEventiRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public TransizioneEventiRow AddTransizioneEventiRow(string codInviato, string prec_codInviato, AnagraficaEventiRow parentAnagraficaEventiRowByFK_TransizioneEventi_AnagraficaEventi1, string text2show, string descrComando) { + TransizioneEventiRow rowTransizioneEventiRow = ((TransizioneEventiRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + codInviato, + prec_codInviato, + null, + text2show, + descrComando}; + if ((parentAnagraficaEventiRowByFK_TransizioneEventi_AnagraficaEventi1 != null)) { + columnValuesArray[2] = parentAnagraficaEventiRowByFK_TransizioneEventi_AnagraficaEventi1[0]; + } + rowTransizioneEventiRow.ItemArray = columnValuesArray; + this.Rows.Add(rowTransizioneEventiRow); + return rowTransizioneEventiRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public TransizioneEventiRow FindBycodInviatoprec_codInviato(string codInviato, string prec_codInviato) { + return ((TransizioneEventiRow)(this.Rows.Find(new object[] { + codInviato, + prec_codInviato}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + TransizioneEventiDataTable cln = ((TransizioneEventiDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new TransizioneEventiDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columncodInviato = base.Columns["codInviato"]; + this.columnprec_codInviato = base.Columns["prec_codInviato"]; + this.columnIdxTipoEvento = base.Columns["IdxTipoEvento"]; + this.columntext2show = base.Columns["text2show"]; + this.columndescrComando = base.Columns["descrComando"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columncodInviato = new global::System.Data.DataColumn("codInviato", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columncodInviato); + this.columnprec_codInviato = new global::System.Data.DataColumn("prec_codInviato", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnprec_codInviato); + this.columnIdxTipoEvento = new global::System.Data.DataColumn("IdxTipoEvento", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxTipoEvento); + this.columntext2show = new global::System.Data.DataColumn("text2show", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columntext2show); + this.columndescrComando = new global::System.Data.DataColumn("descrComando", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columndescrComando); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columncodInviato, + this.columnprec_codInviato}, true)); + this.columncodInviato.AllowDBNull = false; + this.columncodInviato.MaxLength = 50; + this.columnprec_codInviato.AllowDBNull = false; + this.columnprec_codInviato.MaxLength = 50; + this.columntext2show.MaxLength = 500; + this.columndescrComando.MaxLength = 250; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public TransizioneEventiRow NewTransizioneEventiRow() { + return ((TransizioneEventiRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new TransizioneEventiRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(TransizioneEventiRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.TransizioneEventiRowChanged != null)) { + this.TransizioneEventiRowChanged(this, new TransizioneEventiRowChangeEvent(((TransizioneEventiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.TransizioneEventiRowChanging != null)) { + this.TransizioneEventiRowChanging(this, new TransizioneEventiRowChangeEvent(((TransizioneEventiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.TransizioneEventiRowDeleted != null)) { + this.TransizioneEventiRowDeleted(this, new TransizioneEventiRowChangeEvent(((TransizioneEventiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.TransizioneEventiRowDeleting != null)) { + this.TransizioneEventiRowDeleting(this, new TransizioneEventiRowChangeEvent(((TransizioneEventiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveTransizioneEventiRow(TransizioneEventiRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_applicazione ds = new DS_applicazione(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "TransizioneEventiDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class KeepAliveDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnIdxMacchina; + + private global::System.Data.DataColumn columnDataOraServer; + + private global::System.Data.DataColumn columnDataOraMacchina; + + private global::System.Data.DataColumn columnDataOraStart; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public KeepAliveDataTable() { + this.TableName = "KeepAlive"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal KeepAliveDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected KeepAliveDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn IdxMacchinaColumn { + get { + return this.columnIdxMacchina; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn DataOraServerColumn { + get { + return this.columnDataOraServer; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn DataOraMacchinaColumn { + get { + return this.columnDataOraMacchina; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn DataOraStartColumn { + get { + return this.columnDataOraStart; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public KeepAliveRow this[int index] { + get { + return ((KeepAliveRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event KeepAliveRowChangeEventHandler KeepAliveRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event KeepAliveRowChangeEventHandler KeepAliveRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event KeepAliveRowChangeEventHandler KeepAliveRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event KeepAliveRowChangeEventHandler KeepAliveRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddKeepAliveRow(KeepAliveRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public KeepAliveRow AddKeepAliveRow(string IdxMacchina, System.DateTime DataOraServer, System.DateTime DataOraMacchina, System.DateTime DataOraStart) { + KeepAliveRow rowKeepAliveRow = ((KeepAliveRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + IdxMacchina, + DataOraServer, + DataOraMacchina, + DataOraStart}; + rowKeepAliveRow.ItemArray = columnValuesArray; + this.Rows.Add(rowKeepAliveRow); + return rowKeepAliveRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public KeepAliveRow FindByIdxMacchina(string IdxMacchina) { + return ((KeepAliveRow)(this.Rows.Find(new object[] { + IdxMacchina}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + KeepAliveDataTable cln = ((KeepAliveDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new KeepAliveDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnIdxMacchina = base.Columns["IdxMacchina"]; + this.columnDataOraServer = base.Columns["DataOraServer"]; + this.columnDataOraMacchina = base.Columns["DataOraMacchina"]; + this.columnDataOraStart = base.Columns["DataOraStart"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnIdxMacchina = new global::System.Data.DataColumn("IdxMacchina", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxMacchina); + this.columnDataOraServer = new global::System.Data.DataColumn("DataOraServer", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDataOraServer); + this.columnDataOraMacchina = new global::System.Data.DataColumn("DataOraMacchina", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDataOraMacchina); + this.columnDataOraStart = new global::System.Data.DataColumn("DataOraStart", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDataOraStart); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnIdxMacchina}, true)); + this.columnIdxMacchina.AllowDBNull = false; + this.columnIdxMacchina.Unique = true; + this.columnIdxMacchina.MaxLength = 50; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public KeepAliveRow NewKeepAliveRow() { + return ((KeepAliveRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new KeepAliveRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(KeepAliveRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.KeepAliveRowChanged != null)) { + this.KeepAliveRowChanged(this, new KeepAliveRowChangeEvent(((KeepAliveRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.KeepAliveRowChanging != null)) { + this.KeepAliveRowChanging(this, new KeepAliveRowChangeEvent(((KeepAliveRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.KeepAliveRowDeleted != null)) { + this.KeepAliveRowDeleted(this, new KeepAliveRowChangeEvent(((KeepAliveRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.KeepAliveRowDeleting != null)) { + this.KeepAliveRowDeleting(this, new KeepAliveRowChangeEvent(((KeepAliveRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveKeepAliveRow(KeepAliveRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_applicazione ds = new DS_applicazione(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "KeepAliveDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class Macchine2FamigliaIngressiDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnIdxFamigliaIngresso; + + private global::System.Data.DataColumn columnIdxMacchina; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public Macchine2FamigliaIngressiDataTable() { + this.TableName = "Macchine2FamigliaIngressi"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal Macchine2FamigliaIngressiDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected Macchine2FamigliaIngressiDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn IdxFamigliaIngressoColumn { + get { + return this.columnIdxFamigliaIngresso; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn IdxMacchinaColumn { + get { + return this.columnIdxMacchina; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public Macchine2FamigliaIngressiRow this[int index] { + get { + return ((Macchine2FamigliaIngressiRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event Macchine2FamigliaIngressiRowChangeEventHandler Macchine2FamigliaIngressiRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event Macchine2FamigliaIngressiRowChangeEventHandler Macchine2FamigliaIngressiRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event Macchine2FamigliaIngressiRowChangeEventHandler Macchine2FamigliaIngressiRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event Macchine2FamigliaIngressiRowChangeEventHandler Macchine2FamigliaIngressiRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddMacchine2FamigliaIngressiRow(Macchine2FamigliaIngressiRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public Macchine2FamigliaIngressiRow AddMacchine2FamigliaIngressiRow(FamigliaTipoIngressiRow parentFamigliaTipoIngressiRowByFK_Macchine2FamigliaIngressi_FamigliaTipoIngressi, MacchineRow parentMacchineRowByFK_Macchine2FamigliaIngressi_Macchine) { + Macchine2FamigliaIngressiRow rowMacchine2FamigliaIngressiRow = ((Macchine2FamigliaIngressiRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + null, + null}; + if ((parentFamigliaTipoIngressiRowByFK_Macchine2FamigliaIngressi_FamigliaTipoIngressi != null)) { + columnValuesArray[0] = parentFamigliaTipoIngressiRowByFK_Macchine2FamigliaIngressi_FamigliaTipoIngressi[0]; + } + if ((parentMacchineRowByFK_Macchine2FamigliaIngressi_Macchine != null)) { + columnValuesArray[1] = parentMacchineRowByFK_Macchine2FamigliaIngressi_Macchine[0]; + } + rowMacchine2FamigliaIngressiRow.ItemArray = columnValuesArray; + this.Rows.Add(rowMacchine2FamigliaIngressiRow); + return rowMacchine2FamigliaIngressiRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public Macchine2FamigliaIngressiRow FindByIdxFamigliaIngressoIdxMacchina(int IdxFamigliaIngresso, string IdxMacchina) { + return ((Macchine2FamigliaIngressiRow)(this.Rows.Find(new object[] { + IdxFamigliaIngresso, + IdxMacchina}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + Macchine2FamigliaIngressiDataTable cln = ((Macchine2FamigliaIngressiDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new Macchine2FamigliaIngressiDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnIdxFamigliaIngresso = base.Columns["IdxFamigliaIngresso"]; + this.columnIdxMacchina = base.Columns["IdxMacchina"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnIdxFamigliaIngresso = new global::System.Data.DataColumn("IdxFamigliaIngresso", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxFamigliaIngresso); + this.columnIdxMacchina = new global::System.Data.DataColumn("IdxMacchina", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxMacchina); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnIdxFamigliaIngresso, + this.columnIdxMacchina}, true)); + this.columnIdxFamigliaIngresso.AllowDBNull = false; + this.columnIdxMacchina.AllowDBNull = false; + this.columnIdxMacchina.MaxLength = 50; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public Macchine2FamigliaIngressiRow NewMacchine2FamigliaIngressiRow() { + return ((Macchine2FamigliaIngressiRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new Macchine2FamigliaIngressiRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(Macchine2FamigliaIngressiRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.Macchine2FamigliaIngressiRowChanged != null)) { + this.Macchine2FamigliaIngressiRowChanged(this, new Macchine2FamigliaIngressiRowChangeEvent(((Macchine2FamigliaIngressiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.Macchine2FamigliaIngressiRowChanging != null)) { + this.Macchine2FamigliaIngressiRowChanging(this, new Macchine2FamigliaIngressiRowChangeEvent(((Macchine2FamigliaIngressiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.Macchine2FamigliaIngressiRowDeleted != null)) { + this.Macchine2FamigliaIngressiRowDeleted(this, new Macchine2FamigliaIngressiRowChangeEvent(((Macchine2FamigliaIngressiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.Macchine2FamigliaIngressiRowDeleting != null)) { + this.Macchine2FamigliaIngressiRowDeleting(this, new Macchine2FamigliaIngressiRowChangeEvent(((Macchine2FamigliaIngressiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveMacchine2FamigliaIngressiRow(Macchine2FamigliaIngressiRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_applicazione ds = new DS_applicazione(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "Macchine2FamigliaIngressiDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class FamigliaTipoIngressiDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnIdxFamigliaIngresso; + + private global::System.Data.DataColumn columnDescrizioneIngresso; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public FamigliaTipoIngressiDataTable() { + this.TableName = "FamigliaTipoIngressi"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal FamigliaTipoIngressiDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected FamigliaTipoIngressiDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn IdxFamigliaIngressoColumn { + get { + return this.columnIdxFamigliaIngresso; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn DescrizioneIngressoColumn { + get { + return this.columnDescrizioneIngresso; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public FamigliaTipoIngressiRow this[int index] { + get { + return ((FamigliaTipoIngressiRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event FamigliaTipoIngressiRowChangeEventHandler FamigliaTipoIngressiRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event FamigliaTipoIngressiRowChangeEventHandler FamigliaTipoIngressiRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event FamigliaTipoIngressiRowChangeEventHandler FamigliaTipoIngressiRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event FamigliaTipoIngressiRowChangeEventHandler FamigliaTipoIngressiRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddFamigliaTipoIngressiRow(FamigliaTipoIngressiRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public FamigliaTipoIngressiRow AddFamigliaTipoIngressiRow(int IdxFamigliaIngresso, string DescrizioneIngresso) { + FamigliaTipoIngressiRow rowFamigliaTipoIngressiRow = ((FamigliaTipoIngressiRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + IdxFamigliaIngresso, + DescrizioneIngresso}; + rowFamigliaTipoIngressiRow.ItemArray = columnValuesArray; + this.Rows.Add(rowFamigliaTipoIngressiRow); + return rowFamigliaTipoIngressiRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public FamigliaTipoIngressiRow FindByIdxFamigliaIngresso(int IdxFamigliaIngresso) { + return ((FamigliaTipoIngressiRow)(this.Rows.Find(new object[] { + IdxFamigliaIngresso}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + FamigliaTipoIngressiDataTable cln = ((FamigliaTipoIngressiDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new FamigliaTipoIngressiDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnIdxFamigliaIngresso = base.Columns["IdxFamigliaIngresso"]; + this.columnDescrizioneIngresso = base.Columns["DescrizioneIngresso"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnIdxFamigliaIngresso = new global::System.Data.DataColumn("IdxFamigliaIngresso", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxFamigliaIngresso); + this.columnDescrizioneIngresso = new global::System.Data.DataColumn("DescrizioneIngresso", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDescrizioneIngresso); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnIdxFamigliaIngresso}, true)); + this.columnIdxFamigliaIngresso.AllowDBNull = false; + this.columnIdxFamigliaIngresso.Unique = true; + this.columnDescrizioneIngresso.MaxLength = 50; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public FamigliaTipoIngressiRow NewFamigliaTipoIngressiRow() { + return ((FamigliaTipoIngressiRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new FamigliaTipoIngressiRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(FamigliaTipoIngressiRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.FamigliaTipoIngressiRowChanged != null)) { + this.FamigliaTipoIngressiRowChanged(this, new FamigliaTipoIngressiRowChangeEvent(((FamigliaTipoIngressiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.FamigliaTipoIngressiRowChanging != null)) { + this.FamigliaTipoIngressiRowChanging(this, new FamigliaTipoIngressiRowChangeEvent(((FamigliaTipoIngressiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.FamigliaTipoIngressiRowDeleted != null)) { + this.FamigliaTipoIngressiRowDeleted(this, new FamigliaTipoIngressiRowChangeEvent(((FamigliaTipoIngressiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.FamigliaTipoIngressiRowDeleting != null)) { + this.FamigliaTipoIngressiRowDeleting(this, new FamigliaTipoIngressiRowChangeEvent(((FamigliaTipoIngressiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveFamigliaTipoIngressiRow(FamigliaTipoIngressiRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_applicazione ds = new DS_applicazione(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "FamigliaTipoIngressiDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class TransizioneIngressiDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnIdxFamigliaIngresso; + + private global::System.Data.DataColumn columnIdxMicroStato; + + private global::System.Data.DataColumn columnValoreIngresso; + + private global::System.Data.DataColumn columnIdxTipoEvento; + + private global::System.Data.DataColumn columnnext_IdxMicroStato; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public TransizioneIngressiDataTable() { + this.TableName = "TransizioneIngressi"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal TransizioneIngressiDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected TransizioneIngressiDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn IdxFamigliaIngressoColumn { + get { + return this.columnIdxFamigliaIngresso; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn IdxMicroStatoColumn { + get { + return this.columnIdxMicroStato; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn ValoreIngressoColumn { + get { + return this.columnValoreIngresso; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn IdxTipoEventoColumn { + get { + return this.columnIdxTipoEvento; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn next_IdxMicroStatoColumn { + get { + return this.columnnext_IdxMicroStato; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public TransizioneIngressiRow this[int index] { + get { + return ((TransizioneIngressiRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event TransizioneIngressiRowChangeEventHandler TransizioneIngressiRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event TransizioneIngressiRowChangeEventHandler TransizioneIngressiRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event TransizioneIngressiRowChangeEventHandler TransizioneIngressiRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event TransizioneIngressiRowChangeEventHandler TransizioneIngressiRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddTransizioneIngressiRow(TransizioneIngressiRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public TransizioneIngressiRow AddTransizioneIngressiRow(FamigliaTipoIngressiRow parentFamigliaTipoIngressiRowByFK_TransizioneIngressi_FamigliaTipoIngressi, int IdxMicroStato, int ValoreIngresso, AnagraficaEventiRow parentAnagraficaEventiRowByFK_TransizioneIngressi_AnagraficaEventi, int next_IdxMicroStato) { + TransizioneIngressiRow rowTransizioneIngressiRow = ((TransizioneIngressiRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + null, + IdxMicroStato, + ValoreIngresso, + null, + next_IdxMicroStato}; + if ((parentFamigliaTipoIngressiRowByFK_TransizioneIngressi_FamigliaTipoIngressi != null)) { + columnValuesArray[0] = parentFamigliaTipoIngressiRowByFK_TransizioneIngressi_FamigliaTipoIngressi[0]; + } + if ((parentAnagraficaEventiRowByFK_TransizioneIngressi_AnagraficaEventi != null)) { + columnValuesArray[3] = parentAnagraficaEventiRowByFK_TransizioneIngressi_AnagraficaEventi[0]; + } + rowTransizioneIngressiRow.ItemArray = columnValuesArray; + this.Rows.Add(rowTransizioneIngressiRow); + return rowTransizioneIngressiRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public TransizioneIngressiRow FindByIdxFamigliaIngressoIdxMicroStatoValoreIngresso(int IdxFamigliaIngresso, int IdxMicroStato, int ValoreIngresso) { + return ((TransizioneIngressiRow)(this.Rows.Find(new object[] { + IdxFamigliaIngresso, + IdxMicroStato, + ValoreIngresso}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + TransizioneIngressiDataTable cln = ((TransizioneIngressiDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new TransizioneIngressiDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnIdxFamigliaIngresso = base.Columns["IdxFamigliaIngresso"]; + this.columnIdxMicroStato = base.Columns["IdxMicroStato"]; + this.columnValoreIngresso = base.Columns["ValoreIngresso"]; + this.columnIdxTipoEvento = base.Columns["IdxTipoEvento"]; + this.columnnext_IdxMicroStato = base.Columns["next_IdxMicroStato"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnIdxFamigliaIngresso = new global::System.Data.DataColumn("IdxFamigliaIngresso", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxFamigliaIngresso); + this.columnIdxMicroStato = new global::System.Data.DataColumn("IdxMicroStato", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxMicroStato); + this.columnValoreIngresso = new global::System.Data.DataColumn("ValoreIngresso", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnValoreIngresso); + this.columnIdxTipoEvento = new global::System.Data.DataColumn("IdxTipoEvento", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxTipoEvento); + this.columnnext_IdxMicroStato = new global::System.Data.DataColumn("next_IdxMicroStato", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnnext_IdxMicroStato); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnIdxFamigliaIngresso, + this.columnIdxMicroStato, + this.columnValoreIngresso}, true)); + this.columnIdxFamigliaIngresso.AllowDBNull = false; + this.columnIdxMicroStato.AllowDBNull = false; + this.columnValoreIngresso.AllowDBNull = false; + this.columnnext_IdxMicroStato.AllowDBNull = false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public TransizioneIngressiRow NewTransizioneIngressiRow() { + return ((TransizioneIngressiRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new TransizioneIngressiRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(TransizioneIngressiRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.TransizioneIngressiRowChanged != null)) { + this.TransizioneIngressiRowChanged(this, new TransizioneIngressiRowChangeEvent(((TransizioneIngressiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.TransizioneIngressiRowChanging != null)) { + this.TransizioneIngressiRowChanging(this, new TransizioneIngressiRowChangeEvent(((TransizioneIngressiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.TransizioneIngressiRowDeleted != null)) { + this.TransizioneIngressiRowDeleted(this, new TransizioneIngressiRowChangeEvent(((TransizioneIngressiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.TransizioneIngressiRowDeleting != null)) { + this.TransizioneIngressiRowDeleting(this, new TransizioneIngressiRowChangeEvent(((TransizioneIngressiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveTransizioneIngressiRow(TransizioneIngressiRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_applicazione ds = new DS_applicazione(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "TransizioneIngressiDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class AnagraficaOperatoriDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnMatrOpr; + + private global::System.Data.DataColumn columnCognome; + + private global::System.Data.DataColumn columnNome; + + private global::System.Data.DataColumn columnisAdmin; + + private global::System.Data.DataColumn columnauthKey; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagraficaOperatoriDataTable() { + this.TableName = "AnagraficaOperatori"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal AnagraficaOperatoriDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected AnagraficaOperatoriDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn MatrOprColumn { + get { + return this.columnMatrOpr; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn CognomeColumn { + get { + return this.columnCognome; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn NomeColumn { + get { + return this.columnNome; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn isAdminColumn { + get { + return this.columnisAdmin; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn authKeyColumn { + get { + return this.columnauthKey; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagraficaOperatoriRow this[int index] { + get { + return ((AnagraficaOperatoriRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event AnagraficaOperatoriRowChangeEventHandler AnagraficaOperatoriRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event AnagraficaOperatoriRowChangeEventHandler AnagraficaOperatoriRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event AnagraficaOperatoriRowChangeEventHandler AnagraficaOperatoriRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event AnagraficaOperatoriRowChangeEventHandler AnagraficaOperatoriRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddAnagraficaOperatoriRow(AnagraficaOperatoriRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagraficaOperatoriRow AddAnagraficaOperatoriRow(int MatrOpr, string Cognome, string Nome, bool isAdmin, string authKey) { + AnagraficaOperatoriRow rowAnagraficaOperatoriRow = ((AnagraficaOperatoriRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + MatrOpr, + Cognome, + Nome, + isAdmin, + authKey}; + rowAnagraficaOperatoriRow.ItemArray = columnValuesArray; + this.Rows.Add(rowAnagraficaOperatoriRow); + return rowAnagraficaOperatoriRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagraficaOperatoriRow FindByMatrOpr(int MatrOpr) { + return ((AnagraficaOperatoriRow)(this.Rows.Find(new object[] { + MatrOpr}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + AnagraficaOperatoriDataTable cln = ((AnagraficaOperatoriDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new AnagraficaOperatoriDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnMatrOpr = base.Columns["MatrOpr"]; + this.columnCognome = base.Columns["Cognome"]; + this.columnNome = base.Columns["Nome"]; + this.columnisAdmin = base.Columns["isAdmin"]; + this.columnauthKey = base.Columns["authKey"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnMatrOpr = new global::System.Data.DataColumn("MatrOpr", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnMatrOpr); + this.columnCognome = new global::System.Data.DataColumn("Cognome", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCognome); + this.columnNome = new global::System.Data.DataColumn("Nome", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNome); + this.columnisAdmin = new global::System.Data.DataColumn("isAdmin", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnisAdmin); + this.columnauthKey = new global::System.Data.DataColumn("authKey", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnauthKey); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnMatrOpr}, true)); + this.columnMatrOpr.AllowDBNull = false; + this.columnMatrOpr.Unique = true; + this.columnCognome.MaxLength = 50; + this.columnNome.MaxLength = 50; + this.columnauthKey.MaxLength = 50; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagraficaOperatoriRow NewAnagraficaOperatoriRow() { + return ((AnagraficaOperatoriRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new AnagraficaOperatoriRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(AnagraficaOperatoriRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.AnagraficaOperatoriRowChanged != null)) { + this.AnagraficaOperatoriRowChanged(this, new AnagraficaOperatoriRowChangeEvent(((AnagraficaOperatoriRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.AnagraficaOperatoriRowChanging != null)) { + this.AnagraficaOperatoriRowChanging(this, new AnagraficaOperatoriRowChangeEvent(((AnagraficaOperatoriRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.AnagraficaOperatoriRowDeleted != null)) { + this.AnagraficaOperatoriRowDeleted(this, new AnagraficaOperatoriRowChangeEvent(((AnagraficaOperatoriRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.AnagraficaOperatoriRowDeleting != null)) { + this.AnagraficaOperatoriRowDeleting(this, new AnagraficaOperatoriRowChangeEvent(((AnagraficaOperatoriRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveAnagraficaOperatoriRow(AnagraficaOperatoriRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_applicazione ds = new DS_applicazione(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "AnagraficaOperatoriDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class Kanban2insDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnMatricolaKanban; + + private global::System.Data.DataColumn columnKanbanCode; + + private global::System.Data.DataColumn columnTempoCicloBase; + + private global::System.Data.DataColumn columnPzPallet; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public Kanban2insDataTable() { + this.TableName = "Kanban2ins"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal Kanban2insDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected Kanban2insDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn MatricolaKanbanColumn { + get { + return this.columnMatricolaKanban; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn KanbanCodeColumn { + get { + return this.columnKanbanCode; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TempoCicloBaseColumn { + get { + return this.columnTempoCicloBase; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn PzPalletColumn { + get { + return this.columnPzPallet; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public Kanban2insRow this[int index] { + get { + return ((Kanban2insRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event Kanban2insRowChangeEventHandler Kanban2insRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event Kanban2insRowChangeEventHandler Kanban2insRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event Kanban2insRowChangeEventHandler Kanban2insRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event Kanban2insRowChangeEventHandler Kanban2insRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddKanban2insRow(Kanban2insRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public Kanban2insRow AddKanban2insRow(string MatricolaKanban, string KanbanCode, double TempoCicloBase, int PzPallet) { + Kanban2insRow rowKanban2insRow = ((Kanban2insRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + MatricolaKanban, + KanbanCode, + TempoCicloBase, + PzPallet}; + rowKanban2insRow.ItemArray = columnValuesArray; + this.Rows.Add(rowKanban2insRow); + return rowKanban2insRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public Kanban2insRow FindByMatricolaKanban(string MatricolaKanban) { + return ((Kanban2insRow)(this.Rows.Find(new object[] { + MatricolaKanban}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + Kanban2insDataTable cln = ((Kanban2insDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new Kanban2insDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnMatricolaKanban = base.Columns["MatricolaKanban"]; + this.columnKanbanCode = base.Columns["KanbanCode"]; + this.columnTempoCicloBase = base.Columns["TempoCicloBase"]; + this.columnPzPallet = base.Columns["PzPallet"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnMatricolaKanban = new global::System.Data.DataColumn("MatricolaKanban", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnMatricolaKanban); + this.columnKanbanCode = new global::System.Data.DataColumn("KanbanCode", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnKanbanCode); + this.columnTempoCicloBase = new global::System.Data.DataColumn("TempoCicloBase", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTempoCicloBase); + this.columnPzPallet = new global::System.Data.DataColumn("PzPallet", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnPzPallet); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnMatricolaKanban}, true)); + this.columnMatricolaKanban.AllowDBNull = false; + this.columnMatricolaKanban.Unique = true; + this.columnMatricolaKanban.MaxLength = 50; + this.columnKanbanCode.MaxLength = 50; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public Kanban2insRow NewKanban2insRow() { + return ((Kanban2insRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new Kanban2insRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(Kanban2insRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.Kanban2insRowChanged != null)) { + this.Kanban2insRowChanged(this, new Kanban2insRowChangeEvent(((Kanban2insRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.Kanban2insRowChanging != null)) { + this.Kanban2insRowChanging(this, new Kanban2insRowChangeEvent(((Kanban2insRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.Kanban2insRowDeleted != null)) { + this.Kanban2insRowDeleted(this, new Kanban2insRowChangeEvent(((Kanban2insRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.Kanban2insRowDeleting != null)) { + this.Kanban2insRowDeleting(this, new Kanban2insRowChangeEvent(((Kanban2insRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveKanban2insRow(Kanban2insRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_applicazione ds = new DS_applicazione(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "Kanban2insDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class AnagraficaOperatori2insDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnMatrOpr; + + private global::System.Data.DataColumn columnCognome; + + private global::System.Data.DataColumn columnNome; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagraficaOperatori2insDataTable() { + this.TableName = "AnagraficaOperatori2ins"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal AnagraficaOperatori2insDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected AnagraficaOperatori2insDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn MatrOprColumn { + get { + return this.columnMatrOpr; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn CognomeColumn { + get { + return this.columnCognome; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn NomeColumn { + get { + return this.columnNome; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagraficaOperatori2insRow this[int index] { + get { + return ((AnagraficaOperatori2insRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event AnagraficaOperatori2insRowChangeEventHandler AnagraficaOperatori2insRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event AnagraficaOperatori2insRowChangeEventHandler AnagraficaOperatori2insRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event AnagraficaOperatori2insRowChangeEventHandler AnagraficaOperatori2insRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event AnagraficaOperatori2insRowChangeEventHandler AnagraficaOperatori2insRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddAnagraficaOperatori2insRow(AnagraficaOperatori2insRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagraficaOperatori2insRow AddAnagraficaOperatori2insRow(int MatrOpr, string Cognome, string Nome) { + AnagraficaOperatori2insRow rowAnagraficaOperatori2insRow = ((AnagraficaOperatori2insRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + MatrOpr, + Cognome, + Nome}; + rowAnagraficaOperatori2insRow.ItemArray = columnValuesArray; + this.Rows.Add(rowAnagraficaOperatori2insRow); + return rowAnagraficaOperatori2insRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagraficaOperatori2insRow FindByMatrOpr(int MatrOpr) { + return ((AnagraficaOperatori2insRow)(this.Rows.Find(new object[] { + MatrOpr}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + AnagraficaOperatori2insDataTable cln = ((AnagraficaOperatori2insDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new AnagraficaOperatori2insDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnMatrOpr = base.Columns["MatrOpr"]; + this.columnCognome = base.Columns["Cognome"]; + this.columnNome = base.Columns["Nome"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnMatrOpr = new global::System.Data.DataColumn("MatrOpr", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnMatrOpr); + this.columnCognome = new global::System.Data.DataColumn("Cognome", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCognome); + this.columnNome = new global::System.Data.DataColumn("Nome", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNome); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnMatrOpr}, true)); + this.columnMatrOpr.AllowDBNull = false; + this.columnMatrOpr.Unique = true; + this.columnCognome.MaxLength = 50; + this.columnNome.MaxLength = 50; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagraficaOperatori2insRow NewAnagraficaOperatori2insRow() { + return ((AnagraficaOperatori2insRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new AnagraficaOperatori2insRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(AnagraficaOperatori2insRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.AnagraficaOperatori2insRowChanged != null)) { + this.AnagraficaOperatori2insRowChanged(this, new AnagraficaOperatori2insRowChangeEvent(((AnagraficaOperatori2insRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.AnagraficaOperatori2insRowChanging != null)) { + this.AnagraficaOperatori2insRowChanging(this, new AnagraficaOperatori2insRowChangeEvent(((AnagraficaOperatori2insRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.AnagraficaOperatori2insRowDeleted != null)) { + this.AnagraficaOperatori2insRowDeleted(this, new AnagraficaOperatori2insRowChangeEvent(((AnagraficaOperatori2insRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.AnagraficaOperatori2insRowDeleting != null)) { + this.AnagraficaOperatori2insRowDeleting(this, new AnagraficaOperatori2insRowChangeEvent(((AnagraficaOperatori2insRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveAnagraficaOperatori2insRow(AnagraficaOperatori2insRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_applicazione ds = new DS_applicazione(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "AnagraficaOperatori2insDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class DatiMacchineDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnidxMacchina; + + private global::System.Data.DataColumn columnpalletChange; + + private global::System.Data.DataColumn columnkanban_A; + + private global::System.Data.DataColumn columnkanban_B; + + private global::System.Data.DataColumn columnserialPort; + + private global::System.Data.DataColumn columnrefreshPeriod; + + private global::System.Data.DataColumn columnsimulazione; + + private global::System.Data.DataColumn columnsimplePallet; + + private global::System.Data.DataColumn columninsEnabled; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DatiMacchineDataTable() { + this.TableName = "DatiMacchine"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal DatiMacchineDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected DatiMacchineDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn idxMacchinaColumn { + get { + return this.columnidxMacchina; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn palletChangeColumn { + get { + return this.columnpalletChange; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn kanban_AColumn { + get { + return this.columnkanban_A; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn kanban_BColumn { + get { + return this.columnkanban_B; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn serialPortColumn { + get { + return this.columnserialPort; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn refreshPeriodColumn { + get { + return this.columnrefreshPeriod; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn simulazioneColumn { + get { + return this.columnsimulazione; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn simplePalletColumn { + get { + return this.columnsimplePallet; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn insEnabledColumn { + get { + return this.columninsEnabled; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DatiMacchineRow this[int index] { + get { + return ((DatiMacchineRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event DatiMacchineRowChangeEventHandler DatiMacchineRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event DatiMacchineRowChangeEventHandler DatiMacchineRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event DatiMacchineRowChangeEventHandler DatiMacchineRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event DatiMacchineRowChangeEventHandler DatiMacchineRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddDatiMacchineRow(DatiMacchineRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DatiMacchineRow AddDatiMacchineRow(int idxMacchina, bool palletChange, string kanban_A, string kanban_B, string serialPort, int refreshPeriod, bool simulazione, bool simplePallet, bool insEnabled) { + DatiMacchineRow rowDatiMacchineRow = ((DatiMacchineRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + idxMacchina, + palletChange, + kanban_A, + kanban_B, + serialPort, + refreshPeriod, + simulazione, + simplePallet, + insEnabled}; + rowDatiMacchineRow.ItemArray = columnValuesArray; + this.Rows.Add(rowDatiMacchineRow); + return rowDatiMacchineRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DatiMacchineRow FindByidxMacchina(int idxMacchina) { + return ((DatiMacchineRow)(this.Rows.Find(new object[] { + idxMacchina}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + DatiMacchineDataTable cln = ((DatiMacchineDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new DatiMacchineDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnidxMacchina = base.Columns["idxMacchina"]; + this.columnpalletChange = base.Columns["palletChange"]; + this.columnkanban_A = base.Columns["kanban_A"]; + this.columnkanban_B = base.Columns["kanban_B"]; + this.columnserialPort = base.Columns["serialPort"]; + this.columnrefreshPeriod = base.Columns["refreshPeriod"]; + this.columnsimulazione = base.Columns["simulazione"]; + this.columnsimplePallet = base.Columns["simplePallet"]; + this.columninsEnabled = base.Columns["insEnabled"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnidxMacchina = new global::System.Data.DataColumn("idxMacchina", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnidxMacchina); + this.columnpalletChange = new global::System.Data.DataColumn("palletChange", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnpalletChange); + this.columnkanban_A = new global::System.Data.DataColumn("kanban_A", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnkanban_A); + this.columnkanban_B = new global::System.Data.DataColumn("kanban_B", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnkanban_B); + this.columnserialPort = new global::System.Data.DataColumn("serialPort", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnserialPort); + this.columnrefreshPeriod = new global::System.Data.DataColumn("refreshPeriod", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnrefreshPeriod); + this.columnsimulazione = new global::System.Data.DataColumn("simulazione", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnsimulazione); + this.columnsimplePallet = new global::System.Data.DataColumn("simplePallet", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnsimplePallet); + this.columninsEnabled = new global::System.Data.DataColumn("insEnabled", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columninsEnabled); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnidxMacchina}, true)); + this.columnidxMacchina.AllowDBNull = false; + this.columnidxMacchina.Unique = true; + this.columnkanban_A.MaxLength = 50; + this.columnkanban_B.MaxLength = 50; + this.columnserialPort.MaxLength = 50; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DatiMacchineRow NewDatiMacchineRow() { + return ((DatiMacchineRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new DatiMacchineRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(DatiMacchineRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.DatiMacchineRowChanged != null)) { + this.DatiMacchineRowChanged(this, new DatiMacchineRowChangeEvent(((DatiMacchineRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.DatiMacchineRowChanging != null)) { + this.DatiMacchineRowChanging(this, new DatiMacchineRowChangeEvent(((DatiMacchineRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.DatiMacchineRowDeleted != null)) { + this.DatiMacchineRowDeleted(this, new DatiMacchineRowChangeEvent(((DatiMacchineRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.DatiMacchineRowDeleting != null)) { + this.DatiMacchineRowDeleting(this, new DatiMacchineRowChangeEvent(((DatiMacchineRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveDatiMacchineRow(DatiMacchineRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_applicazione ds = new DS_applicazione(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "DatiMacchineDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class MicroStatoMacchinaDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnIdxMacchina; + + private global::System.Data.DataColumn columnIdxMicroStato; + + private global::System.Data.DataColumn columnInizioStato; + + private global::System.Data.DataColumn columnValue; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public MicroStatoMacchinaDataTable() { + this.TableName = "MicroStatoMacchina"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal MicroStatoMacchinaDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected MicroStatoMacchinaDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn IdxMacchinaColumn { + get { + return this.columnIdxMacchina; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn IdxMicroStatoColumn { + get { + return this.columnIdxMicroStato; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn InizioStatoColumn { + get { + return this.columnInizioStato; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn ValueColumn { + get { + return this.columnValue; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public MicroStatoMacchinaRow this[int index] { + get { + return ((MicroStatoMacchinaRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event MicroStatoMacchinaRowChangeEventHandler MicroStatoMacchinaRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event MicroStatoMacchinaRowChangeEventHandler MicroStatoMacchinaRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event MicroStatoMacchinaRowChangeEventHandler MicroStatoMacchinaRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event MicroStatoMacchinaRowChangeEventHandler MicroStatoMacchinaRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddMicroStatoMacchinaRow(MicroStatoMacchinaRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public MicroStatoMacchinaRow AddMicroStatoMacchinaRow(string IdxMacchina, int IdxMicroStato, System.DateTime InizioStato, string Value) { + MicroStatoMacchinaRow rowMicroStatoMacchinaRow = ((MicroStatoMacchinaRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + IdxMacchina, + IdxMicroStato, + InizioStato, + Value}; + rowMicroStatoMacchinaRow.ItemArray = columnValuesArray; + this.Rows.Add(rowMicroStatoMacchinaRow); + return rowMicroStatoMacchinaRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public MicroStatoMacchinaRow FindByIdxMacchina(string IdxMacchina) { + return ((MicroStatoMacchinaRow)(this.Rows.Find(new object[] { + IdxMacchina}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + MicroStatoMacchinaDataTable cln = ((MicroStatoMacchinaDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new MicroStatoMacchinaDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnIdxMacchina = base.Columns["IdxMacchina"]; + this.columnIdxMicroStato = base.Columns["IdxMicroStato"]; + this.columnInizioStato = base.Columns["InizioStato"]; + this.columnValue = base.Columns["Value"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnIdxMacchina = new global::System.Data.DataColumn("IdxMacchina", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxMacchina); + this.columnIdxMicroStato = new global::System.Data.DataColumn("IdxMicroStato", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxMicroStato); + this.columnInizioStato = new global::System.Data.DataColumn("InizioStato", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnInizioStato); + this.columnValue = new global::System.Data.DataColumn("Value", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnValue); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnIdxMacchina}, true)); + this.columnIdxMacchina.AllowDBNull = false; + this.columnIdxMacchina.Unique = true; + this.columnIdxMacchina.MaxLength = 50; + this.columnIdxMicroStato.AllowDBNull = false; + this.columnValue.MaxLength = 50; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public MicroStatoMacchinaRow NewMicroStatoMacchinaRow() { + return ((MicroStatoMacchinaRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new MicroStatoMacchinaRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(MicroStatoMacchinaRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.MicroStatoMacchinaRowChanged != null)) { + this.MicroStatoMacchinaRowChanged(this, new MicroStatoMacchinaRowChangeEvent(((MicroStatoMacchinaRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.MicroStatoMacchinaRowChanging != null)) { + this.MicroStatoMacchinaRowChanging(this, new MicroStatoMacchinaRowChangeEvent(((MicroStatoMacchinaRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.MicroStatoMacchinaRowDeleted != null)) { + this.MicroStatoMacchinaRowDeleted(this, new MicroStatoMacchinaRowChangeEvent(((MicroStatoMacchinaRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.MicroStatoMacchinaRowDeleting != null)) { + this.MicroStatoMacchinaRowDeleting(this, new MicroStatoMacchinaRowChangeEvent(((MicroStatoMacchinaRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveMicroStatoMacchinaRow(MicroStatoMacchinaRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_applicazione ds = new DS_applicazione(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "MicroStatoMacchinaDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class LinkMenuJQMDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnidxLink; + + private global::System.Data.DataColumn columnTipoLink; + + private global::System.Data.DataColumn columnordine; + + private global::System.Data.DataColumn columnTesto; + + private global::System.Data.DataColumn columnNavigateUrl; + + private global::System.Data.DataColumn columnicona; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public LinkMenuJQMDataTable() { + this.TableName = "LinkMenuJQM"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal LinkMenuJQMDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected LinkMenuJQMDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn idxLinkColumn { + get { + return this.columnidxLink; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TipoLinkColumn { + get { + return this.columnTipoLink; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn ordineColumn { + get { + return this.columnordine; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn TestoColumn { + get { + return this.columnTesto; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn NavigateUrlColumn { + get { + return this.columnNavigateUrl; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn iconaColumn { + get { + return this.columnicona; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public LinkMenuJQMRow this[int index] { + get { + return ((LinkMenuJQMRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event LinkMenuJQMRowChangeEventHandler LinkMenuJQMRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event LinkMenuJQMRowChangeEventHandler LinkMenuJQMRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event LinkMenuJQMRowChangeEventHandler LinkMenuJQMRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event LinkMenuJQMRowChangeEventHandler LinkMenuJQMRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddLinkMenuJQMRow(LinkMenuJQMRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public LinkMenuJQMRow AddLinkMenuJQMRow(string TipoLink, int ordine, string Testo, string NavigateUrl, string icona) { + LinkMenuJQMRow rowLinkMenuJQMRow = ((LinkMenuJQMRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + null, + TipoLink, + ordine, + Testo, + NavigateUrl, + icona}; + rowLinkMenuJQMRow.ItemArray = columnValuesArray; + this.Rows.Add(rowLinkMenuJQMRow); + return rowLinkMenuJQMRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public LinkMenuJQMRow FindByidxLink(int idxLink) { + return ((LinkMenuJQMRow)(this.Rows.Find(new object[] { + idxLink}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + LinkMenuJQMDataTable cln = ((LinkMenuJQMDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new LinkMenuJQMDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnidxLink = base.Columns["idxLink"]; + this.columnTipoLink = base.Columns["TipoLink"]; + this.columnordine = base.Columns["ordine"]; + this.columnTesto = base.Columns["Testo"]; + this.columnNavigateUrl = base.Columns["NavigateUrl"]; + this.columnicona = base.Columns["icona"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnidxLink = new global::System.Data.DataColumn("idxLink", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnidxLink); + this.columnTipoLink = new global::System.Data.DataColumn("TipoLink", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTipoLink); + this.columnordine = new global::System.Data.DataColumn("ordine", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnordine); + this.columnTesto = new global::System.Data.DataColumn("Testo", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTesto); + this.columnNavigateUrl = new global::System.Data.DataColumn("NavigateUrl", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNavigateUrl); + this.columnicona = new global::System.Data.DataColumn("icona", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnicona); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnidxLink}, true)); + this.columnidxLink.AutoIncrement = true; + this.columnidxLink.AutoIncrementSeed = -1; + this.columnidxLink.AutoIncrementStep = -1; + this.columnidxLink.AllowDBNull = false; + this.columnidxLink.ReadOnly = true; + this.columnidxLink.Unique = true; + this.columnTipoLink.MaxLength = 50; + this.columnTesto.MaxLength = 50; + this.columnNavigateUrl.MaxLength = 50; + this.columnicona.MaxLength = 50; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public LinkMenuJQMRow NewLinkMenuJQMRow() { + return ((LinkMenuJQMRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new LinkMenuJQMRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(LinkMenuJQMRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.LinkMenuJQMRowChanged != null)) { + this.LinkMenuJQMRowChanged(this, new LinkMenuJQMRowChangeEvent(((LinkMenuJQMRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.LinkMenuJQMRowChanging != null)) { + this.LinkMenuJQMRowChanging(this, new LinkMenuJQMRowChangeEvent(((LinkMenuJQMRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.LinkMenuJQMRowDeleted != null)) { + this.LinkMenuJQMRowDeleted(this, new LinkMenuJQMRowChangeEvent(((LinkMenuJQMRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.LinkMenuJQMRowDeleting != null)) { + this.LinkMenuJQMRowDeleting(this, new LinkMenuJQMRowChangeEvent(((LinkMenuJQMRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveLinkMenuJQMRow(LinkMenuJQMRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_applicazione ds = new DS_applicazione(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "LinkMenuJQMDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class RemoteRebootLogDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnidxReboot; + + private global::System.Data.DataColumn columnIdxMacchina; + + private global::System.Data.DataColumn columnIPv4; + + private global::System.Data.DataColumn columnAgent; + + private global::System.Data.DataColumn columnDataOraBoot; + + private global::System.Data.DataColumn columnmacAddr; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public RemoteRebootLogDataTable() { + this.TableName = "RemoteRebootLog"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal RemoteRebootLogDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected RemoteRebootLogDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn idxRebootColumn { + get { + return this.columnidxReboot; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn IdxMacchinaColumn { + get { + return this.columnIdxMacchina; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn IPv4Column { + get { + return this.columnIPv4; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn AgentColumn { + get { + return this.columnAgent; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn DataOraBootColumn { + get { + return this.columnDataOraBoot; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn macAddrColumn { + get { + return this.columnmacAddr; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public RemoteRebootLogRow this[int index] { + get { + return ((RemoteRebootLogRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event RemoteRebootLogRowChangeEventHandler RemoteRebootLogRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event RemoteRebootLogRowChangeEventHandler RemoteRebootLogRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event RemoteRebootLogRowChangeEventHandler RemoteRebootLogRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event RemoteRebootLogRowChangeEventHandler RemoteRebootLogRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddRemoteRebootLogRow(RemoteRebootLogRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public RemoteRebootLogRow AddRemoteRebootLogRow(string IdxMacchina, string IPv4, string Agent, System.DateTime DataOraBoot, string macAddr) { + RemoteRebootLogRow rowRemoteRebootLogRow = ((RemoteRebootLogRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + null, + IdxMacchina, + IPv4, + Agent, + DataOraBoot, + macAddr}; + rowRemoteRebootLogRow.ItemArray = columnValuesArray; + this.Rows.Add(rowRemoteRebootLogRow); + return rowRemoteRebootLogRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public RemoteRebootLogRow FindByidxReboot(int idxReboot) { + return ((RemoteRebootLogRow)(this.Rows.Find(new object[] { + idxReboot}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + RemoteRebootLogDataTable cln = ((RemoteRebootLogDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new RemoteRebootLogDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnidxReboot = base.Columns["idxReboot"]; + this.columnIdxMacchina = base.Columns["IdxMacchina"]; + this.columnIPv4 = base.Columns["IPv4"]; + this.columnAgent = base.Columns["Agent"]; + this.columnDataOraBoot = base.Columns["DataOraBoot"]; + this.columnmacAddr = base.Columns["macAddr"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnidxReboot = new global::System.Data.DataColumn("idxReboot", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnidxReboot); + this.columnIdxMacchina = new global::System.Data.DataColumn("IdxMacchina", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxMacchina); + this.columnIPv4 = new global::System.Data.DataColumn("IPv4", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIPv4); + this.columnAgent = new global::System.Data.DataColumn("Agent", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnAgent); + this.columnDataOraBoot = new global::System.Data.DataColumn("DataOraBoot", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDataOraBoot); + this.columnmacAddr = new global::System.Data.DataColumn("macAddr", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnmacAddr); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnidxReboot}, true)); + this.columnidxReboot.AutoIncrement = true; + this.columnidxReboot.AutoIncrementSeed = -1; + this.columnidxReboot.AutoIncrementStep = -1; + this.columnidxReboot.AllowDBNull = false; + this.columnidxReboot.ReadOnly = true; + this.columnidxReboot.Unique = true; + this.columnIdxMacchina.AllowDBNull = false; + this.columnIdxMacchina.MaxLength = 50; + this.columnIPv4.MaxLength = 50; + this.columnAgent.MaxLength = 250; + this.columnmacAddr.AllowDBNull = false; + this.columnmacAddr.MaxLength = 50; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public RemoteRebootLogRow NewRemoteRebootLogRow() { + return ((RemoteRebootLogRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new RemoteRebootLogRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(RemoteRebootLogRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.RemoteRebootLogRowChanged != null)) { + this.RemoteRebootLogRowChanged(this, new RemoteRebootLogRowChangeEvent(((RemoteRebootLogRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.RemoteRebootLogRowChanging != null)) { + this.RemoteRebootLogRowChanging(this, new RemoteRebootLogRowChangeEvent(((RemoteRebootLogRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.RemoteRebootLogRowDeleted != null)) { + this.RemoteRebootLogRowDeleted(this, new RemoteRebootLogRowChangeEvent(((RemoteRebootLogRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.RemoteRebootLogRowDeleting != null)) { + this.RemoteRebootLogRowDeleting(this, new RemoteRebootLogRowChangeEvent(((RemoteRebootLogRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveRemoteRebootLogRow(RemoteRebootLogRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_applicazione ds = new DS_applicazione(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "RemoteRebootLogDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class ParetoDurateDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnIdxMacchina; + + private global::System.Data.DataColumn columnInizioStato; + + private global::System.Data.DataColumn columnFineStato; + + private global::System.Data.DataColumn columnIdxStato; + + private global::System.Data.DataColumn columnDurataMinuti; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public ParetoDurateDataTable() { + this.TableName = "ParetoDurate"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal ParetoDurateDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected ParetoDurateDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn IdxMacchinaColumn { + get { + return this.columnIdxMacchina; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn InizioStatoColumn { + get { + return this.columnInizioStato; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn FineStatoColumn { + get { + return this.columnFineStato; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn IdxStatoColumn { + get { + return this.columnIdxStato; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn DurataMinutiColumn { + get { + return this.columnDurataMinuti; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public ParetoDurateRow this[int index] { + get { + return ((ParetoDurateRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event ParetoDurateRowChangeEventHandler ParetoDurateRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event ParetoDurateRowChangeEventHandler ParetoDurateRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event ParetoDurateRowChangeEventHandler ParetoDurateRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event ParetoDurateRowChangeEventHandler ParetoDurateRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddParetoDurateRow(ParetoDurateRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public ParetoDurateRow AddParetoDurateRow(string IdxMacchina, System.DateTime InizioStato, System.DateTime FineStato, int IdxStato, int DurataMinuti) { + ParetoDurateRow rowParetoDurateRow = ((ParetoDurateRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + IdxMacchina, + InizioStato, + FineStato, + IdxStato, + DurataMinuti}; + rowParetoDurateRow.ItemArray = columnValuesArray; + this.Rows.Add(rowParetoDurateRow); + return rowParetoDurateRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + ParetoDurateDataTable cln = ((ParetoDurateDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new ParetoDurateDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnIdxMacchina = base.Columns["IdxMacchina"]; + this.columnInizioStato = base.Columns["InizioStato"]; + this.columnFineStato = base.Columns["FineStato"]; + this.columnIdxStato = base.Columns["IdxStato"]; + this.columnDurataMinuti = base.Columns["DurataMinuti"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnIdxMacchina = new global::System.Data.DataColumn("IdxMacchina", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxMacchina); + this.columnInizioStato = new global::System.Data.DataColumn("InizioStato", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnInizioStato); + this.columnFineStato = new global::System.Data.DataColumn("FineStato", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnFineStato); + this.columnIdxStato = new global::System.Data.DataColumn("IdxStato", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxStato); + this.columnDurataMinuti = new global::System.Data.DataColumn("DurataMinuti", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDurataMinuti); + this.Constraints.Add(new global::System.Data.UniqueConstraint("ParetoDurateKey1", new global::System.Data.DataColumn[] { + this.columnIdxMacchina, + this.columnInizioStato, + this.columnFineStato, + this.columnIdxStato}, false)); + this.columnIdxMacchina.ReadOnly = true; + this.columnIdxMacchina.MaxLength = 250; + this.columnInizioStato.ReadOnly = true; + this.columnFineStato.ReadOnly = true; + this.columnIdxStato.AllowDBNull = false; + this.columnDurataMinuti.ReadOnly = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public ParetoDurateRow NewParetoDurateRow() { + return ((ParetoDurateRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new ParetoDurateRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(ParetoDurateRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.ParetoDurateRowChanged != null)) { + this.ParetoDurateRowChanged(this, new ParetoDurateRowChangeEvent(((ParetoDurateRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.ParetoDurateRowChanging != null)) { + this.ParetoDurateRowChanging(this, new ParetoDurateRowChangeEvent(((ParetoDurateRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.ParetoDurateRowDeleted != null)) { + this.ParetoDurateRowDeleted(this, new ParetoDurateRowChangeEvent(((ParetoDurateRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.ParetoDurateRowDeleting != null)) { + this.ParetoDurateRowDeleting(this, new ParetoDurateRowChangeEvent(((ParetoDurateRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveParetoDurateRow(ParetoDurateRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_applicazione ds = new DS_applicazione(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "ParetoDurateDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class Macchine2FamiglieMacchineRow : global::System.Data.DataRow { + + private Macchine2FamiglieMacchineDataTable tableMacchine2FamiglieMacchine; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal Macchine2FamiglieMacchineRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableMacchine2FamiglieMacchine = ((Macchine2FamiglieMacchineDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string IdxMacchina { + get { + return ((string)(this[this.tableMacchine2FamiglieMacchine.IdxMacchinaColumn])); + } + set { + this[this.tableMacchine2FamiglieMacchine.IdxMacchinaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int IdxFamiglia { + get { + return ((int)(this[this.tableMacchine2FamiglieMacchine.IdxFamigliaColumn])); + } + set { + this[this.tableMacchine2FamiglieMacchine.IdxFamigliaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public FamiglieMacchineRow FamiglieMacchineRow { + get { + return ((FamiglieMacchineRow)(this.GetParentRow(this.Table.ParentRelations["FK_Macchine2FamiglieMacchine_FamiglieMacchine"]))); + } + set { + this.SetParentRow(value, this.Table.ParentRelations["FK_Macchine2FamiglieMacchine_FamiglieMacchine"]); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public MacchineRow MacchineRow { + get { + return ((MacchineRow)(this.GetParentRow(this.Table.ParentRelations["FK_Macchine2FamiglieMacchine_Macchine"]))); + } + set { + this.SetParentRow(value, this.Table.ParentRelations["FK_Macchine2FamiglieMacchine_Macchine"]); + } + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class FamiglieMacchineRow : global::System.Data.DataRow { + + private FamiglieMacchineDataTable tableFamiglieMacchine; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal FamiglieMacchineRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableFamiglieMacchine = ((FamiglieMacchineDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int IdxFamiglia { + get { + return ((int)(this[this.tableFamiglieMacchine.IdxFamigliaColumn])); + } + set { + this[this.tableFamiglieMacchine.IdxFamigliaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Descrizione { + get { + return ((string)(this[this.tableFamiglieMacchine.DescrizioneColumn])); + } + set { + this[this.tableFamiglieMacchine.DescrizioneColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public Macchine2FamiglieMacchineRow[] GetMacchine2FamiglieMacchineRows() { + if ((this.Table.ChildRelations["FK_Macchine2FamiglieMacchine_FamiglieMacchine"] == null)) { + return new Macchine2FamiglieMacchineRow[0]; + } + else { + return ((Macchine2FamiglieMacchineRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Macchine2FamiglieMacchine_FamiglieMacchine"]))); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public TransizioneStatiRow[] GetTransizioneStatiRows() { + if ((this.Table.ChildRelations["FK_TransizioneStati_FamiglieMacchine"] == null)) { + return new TransizioneStatiRow[0]; + } + else { + return ((TransizioneStatiRow[])(base.GetChildRows(this.Table.ChildRelations["FK_TransizioneStati_FamiglieMacchine"]))); + } + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class MacchineRow : global::System.Data.DataRow { + + private MacchineDataTable tableMacchine; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal MacchineRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableMacchine = ((MacchineDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string IdxMacchina { + get { + return ((string)(this[this.tableMacchine.IdxMacchinaColumn])); + } + set { + this[this.tableMacchine.IdxMacchinaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string CodMacchina { + get { + try { + return ((string)(this[this.tableMacchine.CodMacchinaColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'CodMacchina\' in table \'Macchine\' is DBNull.", e); + } + } + set { + this[this.tableMacchine.CodMacchinaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Nome { + get { + try { + return ((string)(this[this.tableMacchine.NomeColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Nome\' in table \'Macchine\' is DBNull.", e); + } + } + set { + this[this.tableMacchine.NomeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Descrizione { + get { + try { + return ((string)(this[this.tableMacchine.DescrizioneColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Descrizione\' in table \'Macchine\' is DBNull.", e); + } + } + set { + this[this.tableMacchine.DescrizioneColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Note { + get { + try { + return ((string)(this[this.tableMacchine.NoteColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Note\' in table \'Macchine\' is DBNull.", e); + } + } + set { + this[this.tableMacchine.NoteColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string url { + get { + try { + return ((string)(this[this.tableMacchine.urlColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'url\' in table \'Macchine\' is DBNull.", e); + } + } + set { + this[this.tableMacchine.urlColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string locazione { + get { + try { + return ((string)(this[this.tableMacchine.locazioneColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'locazione\' in table \'Macchine\' is DBNull.", e); + } + } + set { + this[this.tableMacchine.locazioneColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsCodMacchinaNull() { + return this.IsNull(this.tableMacchine.CodMacchinaColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetCodMacchinaNull() { + this[this.tableMacchine.CodMacchinaColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsNomeNull() { + return this.IsNull(this.tableMacchine.NomeColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetNomeNull() { + this[this.tableMacchine.NomeColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsDescrizioneNull() { + return this.IsNull(this.tableMacchine.DescrizioneColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetDescrizioneNull() { + this[this.tableMacchine.DescrizioneColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsNoteNull() { + return this.IsNull(this.tableMacchine.NoteColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetNoteNull() { + this[this.tableMacchine.NoteColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsurlNull() { + return this.IsNull(this.tableMacchine.urlColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SeturlNull() { + this[this.tableMacchine.urlColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IslocazioneNull() { + return this.IsNull(this.tableMacchine.locazioneColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetlocazioneNull() { + this[this.tableMacchine.locazioneColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public Macchine2FamiglieMacchineRow[] GetMacchine2FamiglieMacchineRows() { + if ((this.Table.ChildRelations["FK_Macchine2FamiglieMacchine_Macchine"] == null)) { + return new Macchine2FamiglieMacchineRow[0]; + } + else { + return ((Macchine2FamiglieMacchineRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Macchine2FamiglieMacchine_Macchine"]))); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public StatoMacchineRow[] GetStatoMacchineRows() { + if ((this.Table.ChildRelations["FK_StatoMacchine_Macchine"] == null)) { + return new StatoMacchineRow[0]; + } + else { + return ((StatoMacchineRow[])(base.GetChildRows(this.Table.ChildRelations["FK_StatoMacchine_Macchine"]))); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public EventListRow[] GetEventListRows() { + if ((this.Table.ChildRelations["FK_EventList_Macchine"] == null)) { + return new EventListRow[0]; + } + else { + return ((EventListRow[])(base.GetChildRows(this.Table.ChildRelations["FK_EventList_Macchine"]))); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DiarioDiBordoRow[] GetDiarioDiBordoRows() { + if ((this.Table.ChildRelations["FK_DiarioDiBordo_Macchine"] == null)) { + return new DiarioDiBordoRow[0]; + } + else { + return ((DiarioDiBordoRow[])(base.GetChildRows(this.Table.ChildRelations["FK_DiarioDiBordo_Macchine"]))); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public Macchine2FamigliaIngressiRow[] GetMacchine2FamigliaIngressiRows() { + if ((this.Table.ChildRelations["FK_Macchine2FamigliaIngressi_Macchine"] == null)) { + return new Macchine2FamigliaIngressiRow[0]; + } + else { + return ((Macchine2FamigliaIngressiRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Macchine2FamigliaIngressi_Macchine"]))); + } + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class TransizioneStatiRow : global::System.Data.DataRow { + + private TransizioneStatiDataTable tableTransizioneStati; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal TransizioneStatiRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableTransizioneStati = ((TransizioneStatiDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int IdxFamiglia { + get { + return ((int)(this[this.tableTransizioneStati.IdxFamigliaColumn])); + } + set { + this[this.tableTransizioneStati.IdxFamigliaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int IdxStato { + get { + return ((int)(this[this.tableTransizioneStati.IdxStatoColumn])); + } + set { + this[this.tableTransizioneStati.IdxStatoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int IdxTipo { + get { + return ((int)(this[this.tableTransizioneStati.IdxTipoColumn])); + } + set { + this[this.tableTransizioneStati.IdxTipoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int next_IdxStato { + get { + return ((int)(this[this.tableTransizioneStati.next_IdxStatoColumn])); + } + set { + this[this.tableTransizioneStati.next_IdxStatoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public FamiglieMacchineRow FamiglieMacchineRow { + get { + return ((FamiglieMacchineRow)(this.GetParentRow(this.Table.ParentRelations["FK_TransizioneStati_FamiglieMacchine"]))); + } + set { + this.SetParentRow(value, this.Table.ParentRelations["FK_TransizioneStati_FamiglieMacchine"]); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagraficaStatiRow AnagraficaStatiRow { + get { + return ((AnagraficaStatiRow)(this.GetParentRow(this.Table.ParentRelations["FK_TransizioneStati_AnagraficaStati"]))); + } + set { + this.SetParentRow(value, this.Table.ParentRelations["FK_TransizioneStati_AnagraficaStati"]); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagraficaEventiRow AnagraficaEventiRow { + get { + return ((AnagraficaEventiRow)(this.GetParentRow(this.Table.ParentRelations["FK_TransizioneStati_AnagraficaEventi"]))); + } + set { + this.SetParentRow(value, this.Table.ParentRelations["FK_TransizioneStati_AnagraficaEventi"]); + } + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class StatoMacchineRow : global::System.Data.DataRow { + + private StatoMacchineDataTable tableStatoMacchine; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal StatoMacchineRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableStatoMacchine = ((StatoMacchineDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string IdxMacchina { + get { + return ((string)(this[this.tableStatoMacchine.IdxMacchinaColumn])); + } + set { + this[this.tableStatoMacchine.IdxMacchinaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int IdxStato { + get { + return ((int)(this[this.tableStatoMacchine.IdxStatoColumn])); + } + set { + this[this.tableStatoMacchine.IdxStatoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime InizioStato { + get { + try { + return ((global::System.DateTime)(this[this.tableStatoMacchine.InizioStatoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'InizioStato\' in table \'StatoMacchine\' is DBNull.", e); + } + } + set { + this[this.tableStatoMacchine.InizioStatoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Value { + get { + try { + return ((string)(this[this.tableStatoMacchine.ValueColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Value\' in table \'StatoMacchine\' is DBNull.", e); + } + } + set { + this[this.tableStatoMacchine.ValueColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string MatricolaKanban { + get { + try { + return ((string)(this[this.tableStatoMacchine.MatricolaKanbanColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'MatricolaKanban\' in table \'StatoMacchine\' is DBNull.", e); + } + } + set { + this[this.tableStatoMacchine.MatricolaKanbanColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string KanbanCode { + get { + try { + return ((string)(this[this.tableStatoMacchine.KanbanCodeColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'KanbanCode\' in table \'StatoMacchine\' is DBNull.", e); + } + } + set { + this[this.tableStatoMacchine.KanbanCodeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public double TempoCicloBase { + get { + try { + return ((double)(this[this.tableStatoMacchine.TempoCicloBaseColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'TempoCicloBase\' in table \'StatoMacchine\' is DBNull.", e); + } + } + set { + this[this.tableStatoMacchine.TempoCicloBaseColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int PzPalletProd { + get { + try { + return ((int)(this[this.tableStatoMacchine.PzPalletProdColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'PzPalletProd\' in table \'StatoMacchine\' is DBNull.", e); + } + } + set { + this[this.tableStatoMacchine.PzPalletProdColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int MatrOpr { + get { + try { + return ((int)(this[this.tableStatoMacchine.MatrOprColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'MatrOpr\' in table \'StatoMacchine\' is DBNull.", e); + } + } + set { + this[this.tableStatoMacchine.MatrOprColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string pallet { + get { + try { + return ((string)(this[this.tableStatoMacchine.palletColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'pallet\' in table \'StatoMacchine\' is DBNull.", e); + } + } + set { + this[this.tableStatoMacchine.palletColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public MacchineRow MacchineRow { + get { + return ((MacchineRow)(this.GetParentRow(this.Table.ParentRelations["FK_StatoMacchine_Macchine"]))); + } + set { + this.SetParentRow(value, this.Table.ParentRelations["FK_StatoMacchine_Macchine"]); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagraficaStatiRow AnagraficaStatiRow { + get { + return ((AnagraficaStatiRow)(this.GetParentRow(this.Table.ParentRelations["FK_StatoMacchine_AnagraficaStati"]))); + } + set { + this.SetParentRow(value, this.Table.ParentRelations["FK_StatoMacchine_AnagraficaStati"]); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public KanbanRow KanbanRow { + get { + return ((KanbanRow)(this.GetParentRow(this.Table.ParentRelations["FK_StatoMacchine_Kanban"]))); + } + set { + this.SetParentRow(value, this.Table.ParentRelations["FK_StatoMacchine_Kanban"]); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagraficaOperatoriRow AnagraficaOperatoriRow { + get { + return ((AnagraficaOperatoriRow)(this.GetParentRow(this.Table.ParentRelations["FK_StatoMacchine_AnagraficaOperatori"]))); + } + set { + this.SetParentRow(value, this.Table.ParentRelations["FK_StatoMacchine_AnagraficaOperatori"]); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsInizioStatoNull() { + return this.IsNull(this.tableStatoMacchine.InizioStatoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetInizioStatoNull() { + this[this.tableStatoMacchine.InizioStatoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsValueNull() { + return this.IsNull(this.tableStatoMacchine.ValueColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetValueNull() { + this[this.tableStatoMacchine.ValueColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsMatricolaKanbanNull() { + return this.IsNull(this.tableStatoMacchine.MatricolaKanbanColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetMatricolaKanbanNull() { + this[this.tableStatoMacchine.MatricolaKanbanColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsKanbanCodeNull() { + return this.IsNull(this.tableStatoMacchine.KanbanCodeColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetKanbanCodeNull() { + this[this.tableStatoMacchine.KanbanCodeColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsTempoCicloBaseNull() { + return this.IsNull(this.tableStatoMacchine.TempoCicloBaseColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetTempoCicloBaseNull() { + this[this.tableStatoMacchine.TempoCicloBaseColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsPzPalletProdNull() { + return this.IsNull(this.tableStatoMacchine.PzPalletProdColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetPzPalletProdNull() { + this[this.tableStatoMacchine.PzPalletProdColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsMatrOprNull() { + return this.IsNull(this.tableStatoMacchine.MatrOprColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetMatrOprNull() { + this[this.tableStatoMacchine.MatrOprColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IspalletNull() { + return this.IsNull(this.tableStatoMacchine.palletColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetpalletNull() { + this[this.tableStatoMacchine.palletColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class AnagraficaStatiRow : global::System.Data.DataRow { + + private AnagraficaStatiDataTable tableAnagraficaStati; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal AnagraficaStatiRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableAnagraficaStati = ((AnagraficaStatiDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int IdxStato { + get { + return ((int)(this[this.tableAnagraficaStati.IdxStatoColumn])); + } + set { + this[this.tableAnagraficaStati.IdxStatoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Descrizione { + get { + try { + return ((string)(this[this.tableAnagraficaStati.DescrizioneColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Descrizione\' in table \'AnagraficaStati\' is DBNull.", e); + } + } + set { + this[this.tableAnagraficaStati.DescrizioneColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Semaforo { + get { + try { + return ((string)(this[this.tableAnagraficaStati.SemaforoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Semaforo\' in table \'AnagraficaStati\' is DBNull.", e); + } + } + set { + this[this.tableAnagraficaStati.SemaforoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsDescrizioneNull() { + return this.IsNull(this.tableAnagraficaStati.DescrizioneColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetDescrizioneNull() { + this[this.tableAnagraficaStati.DescrizioneColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsSemaforoNull() { + return this.IsNull(this.tableAnagraficaStati.SemaforoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetSemaforoNull() { + this[this.tableAnagraficaStati.SemaforoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public TransizioneStatiRow[] GetTransizioneStatiRows() { + if ((this.Table.ChildRelations["FK_TransizioneStati_AnagraficaStati"] == null)) { + return new TransizioneStatiRow[0]; + } + else { + return ((TransizioneStatiRow[])(base.GetChildRows(this.Table.ChildRelations["FK_TransizioneStati_AnagraficaStati"]))); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public StatoMacchineRow[] GetStatoMacchineRows() { + if ((this.Table.ChildRelations["FK_StatoMacchine_AnagraficaStati"] == null)) { + return new StatoMacchineRow[0]; + } + else { + return ((StatoMacchineRow[])(base.GetChildRows(this.Table.ChildRelations["FK_StatoMacchine_AnagraficaStati"]))); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DiarioDiBordoRow[] GetDiarioDiBordoRows() { + if ((this.Table.ChildRelations["FK_DiarioDiBordo_AnagraficaStati"] == null)) { + return new DiarioDiBordoRow[0]; + } + else { + return ((DiarioDiBordoRow[])(base.GetChildRows(this.Table.ChildRelations["FK_DiarioDiBordo_AnagraficaStati"]))); + } + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class KanbanRow : global::System.Data.DataRow { + + private KanbanDataTable tableKanban; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal KanbanRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableKanban = ((KanbanDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string MatricolaKanban { + get { + return ((string)(this[this.tableKanban.MatricolaKanbanColumn])); + } + set { + this[this.tableKanban.MatricolaKanbanColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string KanbanCode { + get { + try { + return ((string)(this[this.tableKanban.KanbanCodeColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'KanbanCode\' in table \'Kanban\' is DBNull.", e); + } + } + set { + this[this.tableKanban.KanbanCodeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public double TempoCicloBase { + get { + try { + return ((double)(this[this.tableKanban.TempoCicloBaseColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'TempoCicloBase\' in table \'Kanban\' is DBNull.", e); + } + } + set { + this[this.tableKanban.TempoCicloBaseColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int PzPallet { + get { + try { + return ((int)(this[this.tableKanban.PzPalletColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'PzPallet\' in table \'Kanban\' is DBNull.", e); + } + } + set { + this[this.tableKanban.PzPalletColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string CodArticolo { + get { + try { + return ((string)(this[this.tableKanban.CodArticoloColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'CodArticolo\' in table \'Kanban\' is DBNull.", e); + } + } + set { + this[this.tableKanban.CodArticoloColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsKanbanCodeNull() { + return this.IsNull(this.tableKanban.KanbanCodeColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetKanbanCodeNull() { + this[this.tableKanban.KanbanCodeColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsTempoCicloBaseNull() { + return this.IsNull(this.tableKanban.TempoCicloBaseColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetTempoCicloBaseNull() { + this[this.tableKanban.TempoCicloBaseColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsPzPalletNull() { + return this.IsNull(this.tableKanban.PzPalletColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetPzPalletNull() { + this[this.tableKanban.PzPalletColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsCodArticoloNull() { + return this.IsNull(this.tableKanban.CodArticoloColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetCodArticoloNull() { + this[this.tableKanban.CodArticoloColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public StatoMacchineRow[] GetStatoMacchineRows() { + if ((this.Table.ChildRelations["FK_StatoMacchine_Kanban"] == null)) { + return new StatoMacchineRow[0]; + } + else { + return ((StatoMacchineRow[])(base.GetChildRows(this.Table.ChildRelations["FK_StatoMacchine_Kanban"]))); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public EventListRow[] GetEventListRows() { + if ((this.Table.ChildRelations["FK_EventList_Kanban"] == null)) { + return new EventListRow[0]; + } + else { + return ((EventListRow[])(base.GetChildRows(this.Table.ChildRelations["FK_EventList_Kanban"]))); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DiarioDiBordoRow[] GetDiarioDiBordoRows() { + if ((this.Table.ChildRelations["FK_DiarioDiBordo_Kanban"] == null)) { + return new DiarioDiBordoRow[0]; + } + else { + return ((DiarioDiBordoRow[])(base.GetChildRows(this.Table.ChildRelations["FK_DiarioDiBordo_Kanban"]))); + } + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class EventListRow : global::System.Data.DataRow { + + private EventListDataTable tableEventList; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal EventListRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableEventList = ((EventListDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string IdxMacchina { + get { + return ((string)(this[this.tableEventList.IdxMacchinaColumn])); + } + set { + this[this.tableEventList.IdxMacchinaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime InizioStato { + get { + return ((global::System.DateTime)(this[this.tableEventList.InizioStatoColumn])); + } + set { + this[this.tableEventList.InizioStatoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int IdxTipo { + get { + return ((int)(this[this.tableEventList.IdxTipoColumn])); + } + set { + this[this.tableEventList.IdxTipoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string MatricolaKanban { + get { + try { + return ((string)(this[this.tableEventList.MatricolaKanbanColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'MatricolaKanban\' in table \'EventList\' is DBNull.", e); + } + } + set { + this[this.tableEventList.MatricolaKanbanColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Value { + get { + try { + return ((string)(this[this.tableEventList.ValueColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Value\' in table \'EventList\' is DBNull.", e); + } + } + set { + this[this.tableEventList.ValueColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int MatrOpr { + get { + try { + return ((int)(this[this.tableEventList.MatrOprColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'MatrOpr\' in table \'EventList\' is DBNull.", e); + } + } + set { + this[this.tableEventList.MatrOprColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string pallet { + get { + try { + return ((string)(this[this.tableEventList.palletColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'pallet\' in table \'EventList\' is DBNull.", e); + } + } + set { + this[this.tableEventList.palletColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public KanbanRow KanbanRow { + get { + return ((KanbanRow)(this.GetParentRow(this.Table.ParentRelations["FK_EventList_Kanban"]))); + } + set { + this.SetParentRow(value, this.Table.ParentRelations["FK_EventList_Kanban"]); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public MacchineRow MacchineRow { + get { + return ((MacchineRow)(this.GetParentRow(this.Table.ParentRelations["FK_EventList_Macchine"]))); + } + set { + this.SetParentRow(value, this.Table.ParentRelations["FK_EventList_Macchine"]); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagraficaEventiRow AnagraficaEventiRow { + get { + return ((AnagraficaEventiRow)(this.GetParentRow(this.Table.ParentRelations["FK_EventList_AnagraficaEventi"]))); + } + set { + this.SetParentRow(value, this.Table.ParentRelations["FK_EventList_AnagraficaEventi"]); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagraficaOperatoriRow AnagraficaOperatoriRow { + get { + return ((AnagraficaOperatoriRow)(this.GetParentRow(this.Table.ParentRelations["FK_EventList_AnagraficaOperatori"]))); + } + set { + this.SetParentRow(value, this.Table.ParentRelations["FK_EventList_AnagraficaOperatori"]); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsMatricolaKanbanNull() { + return this.IsNull(this.tableEventList.MatricolaKanbanColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetMatricolaKanbanNull() { + this[this.tableEventList.MatricolaKanbanColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsValueNull() { + return this.IsNull(this.tableEventList.ValueColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetValueNull() { + this[this.tableEventList.ValueColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsMatrOprNull() { + return this.IsNull(this.tableEventList.MatrOprColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetMatrOprNull() { + this[this.tableEventList.MatrOprColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IspalletNull() { + return this.IsNull(this.tableEventList.palletColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetpalletNull() { + this[this.tableEventList.palletColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class AnagraficaEventiRow : global::System.Data.DataRow { + + private AnagraficaEventiDataTable tableAnagraficaEventi; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal AnagraficaEventiRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableAnagraficaEventi = ((AnagraficaEventiDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int IdxTipo { + get { + return ((int)(this[this.tableAnagraficaEventi.IdxTipoColumn])); + } + set { + this[this.tableAnagraficaEventi.IdxTipoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Nome { + get { + try { + return ((string)(this[this.tableAnagraficaEventi.NomeColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Nome\' in table \'AnagraficaEventi\' is DBNull.", e); + } + } + set { + this[this.tableAnagraficaEventi.NomeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsNomeNull() { + return this.IsNull(this.tableAnagraficaEventi.NomeColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetNomeNull() { + this[this.tableAnagraficaEventi.NomeColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public TransizioneStatiRow[] GetTransizioneStatiRows() { + if ((this.Table.ChildRelations["FK_TransizioneStati_AnagraficaEventi"] == null)) { + return new TransizioneStatiRow[0]; + } + else { + return ((TransizioneStatiRow[])(base.GetChildRows(this.Table.ChildRelations["FK_TransizioneStati_AnagraficaEventi"]))); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public EventListRow[] GetEventListRows() { + if ((this.Table.ChildRelations["FK_EventList_AnagraficaEventi"] == null)) { + return new EventListRow[0]; + } + else { + return ((EventListRow[])(base.GetChildRows(this.Table.ChildRelations["FK_EventList_AnagraficaEventi"]))); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public TransizioneEventiRow[] GetTransizioneEventiRows() { + if ((this.Table.ChildRelations["FK_TransizioneEventi_AnagraficaEventi1"] == null)) { + return new TransizioneEventiRow[0]; + } + else { + return ((TransizioneEventiRow[])(base.GetChildRows(this.Table.ChildRelations["FK_TransizioneEventi_AnagraficaEventi1"]))); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public TransizioneIngressiRow[] GetTransizioneIngressiRows() { + if ((this.Table.ChildRelations["FK_TransizioneIngressi_AnagraficaEventi"] == null)) { + return new TransizioneIngressiRow[0]; + } + else { + return ((TransizioneIngressiRow[])(base.GetChildRows(this.Table.ChildRelations["FK_TransizioneIngressi_AnagraficaEventi"]))); + } + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class DiarioDiBordoRow : global::System.Data.DataRow { + + private DiarioDiBordoDataTable tableDiarioDiBordo; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal DiarioDiBordoRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableDiarioDiBordo = ((DiarioDiBordoDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string IdxMacchina { + get { + return ((string)(this[this.tableDiarioDiBordo.IdxMacchinaColumn])); + } + set { + this[this.tableDiarioDiBordo.IdxMacchinaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime InizioStato { + get { + return ((global::System.DateTime)(this[this.tableDiarioDiBordo.InizioStatoColumn])); + } + set { + this[this.tableDiarioDiBordo.InizioStatoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime FineStato { + get { + try { + return ((global::System.DateTime)(this[this.tableDiarioDiBordo.FineStatoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'FineStato\' in table \'DiarioDiBordo\' is DBNull.", e); + } + } + set { + this[this.tableDiarioDiBordo.FineStatoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int IdxStato { + get { + return ((int)(this[this.tableDiarioDiBordo.IdxStatoColumn])); + } + set { + this[this.tableDiarioDiBordo.IdxStatoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public double DurataMinuti { + get { + try { + return ((double)(this[this.tableDiarioDiBordo.DurataMinutiColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'DurataMinuti\' in table \'DiarioDiBordo\' is DBNull.", e); + } + } + set { + this[this.tableDiarioDiBordo.DurataMinutiColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Value { + get { + try { + return ((string)(this[this.tableDiarioDiBordo.ValueColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Value\' in table \'DiarioDiBordo\' is DBNull.", e); + } + } + set { + this[this.tableDiarioDiBordo.ValueColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string MatricolaKanban { + get { + try { + return ((string)(this[this.tableDiarioDiBordo.MatricolaKanbanColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'MatricolaKanban\' in table \'DiarioDiBordo\' is DBNull.", e); + } + } + set { + this[this.tableDiarioDiBordo.MatricolaKanbanColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string KanbanCode { + get { + try { + return ((string)(this[this.tableDiarioDiBordo.KanbanCodeColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'KanbanCode\' in table \'DiarioDiBordo\' is DBNull.", e); + } + } + set { + this[this.tableDiarioDiBordo.KanbanCodeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public double TempoCicloBase { + get { + try { + return ((double)(this[this.tableDiarioDiBordo.TempoCicloBaseColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'TempoCicloBase\' in table \'DiarioDiBordo\' is DBNull.", e); + } + } + set { + this[this.tableDiarioDiBordo.TempoCicloBaseColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int PzPalletProd { + get { + try { + return ((int)(this[this.tableDiarioDiBordo.PzPalletProdColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'PzPalletProd\' in table \'DiarioDiBordo\' is DBNull.", e); + } + } + set { + this[this.tableDiarioDiBordo.PzPalletProdColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int MatrOpr { + get { + try { + return ((int)(this[this.tableDiarioDiBordo.MatrOprColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'MatrOpr\' in table \'DiarioDiBordo\' is DBNull.", e); + } + } + set { + this[this.tableDiarioDiBordo.MatrOprColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string pallet { + get { + try { + return ((string)(this[this.tableDiarioDiBordo.palletColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'pallet\' in table \'DiarioDiBordo\' is DBNull.", e); + } + } + set { + this[this.tableDiarioDiBordo.palletColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagraficaStatiRow AnagraficaStatiRow { + get { + return ((AnagraficaStatiRow)(this.GetParentRow(this.Table.ParentRelations["FK_DiarioDiBordo_AnagraficaStati"]))); + } + set { + this.SetParentRow(value, this.Table.ParentRelations["FK_DiarioDiBordo_AnagraficaStati"]); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public KanbanRow KanbanRow { + get { + return ((KanbanRow)(this.GetParentRow(this.Table.ParentRelations["FK_DiarioDiBordo_Kanban"]))); + } + set { + this.SetParentRow(value, this.Table.ParentRelations["FK_DiarioDiBordo_Kanban"]); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public MacchineRow MacchineRow { + get { + return ((MacchineRow)(this.GetParentRow(this.Table.ParentRelations["FK_DiarioDiBordo_Macchine"]))); + } + set { + this.SetParentRow(value, this.Table.ParentRelations["FK_DiarioDiBordo_Macchine"]); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagraficaOperatoriRow AnagraficaOperatoriRow { + get { + return ((AnagraficaOperatoriRow)(this.GetParentRow(this.Table.ParentRelations["FK_DiarioDiBordo_AnagraficaOperatori"]))); + } + set { + this.SetParentRow(value, this.Table.ParentRelations["FK_DiarioDiBordo_AnagraficaOperatori"]); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsFineStatoNull() { + return this.IsNull(this.tableDiarioDiBordo.FineStatoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetFineStatoNull() { + this[this.tableDiarioDiBordo.FineStatoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsDurataMinutiNull() { + return this.IsNull(this.tableDiarioDiBordo.DurataMinutiColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetDurataMinutiNull() { + this[this.tableDiarioDiBordo.DurataMinutiColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsValueNull() { + return this.IsNull(this.tableDiarioDiBordo.ValueColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetValueNull() { + this[this.tableDiarioDiBordo.ValueColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsMatricolaKanbanNull() { + return this.IsNull(this.tableDiarioDiBordo.MatricolaKanbanColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetMatricolaKanbanNull() { + this[this.tableDiarioDiBordo.MatricolaKanbanColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsKanbanCodeNull() { + return this.IsNull(this.tableDiarioDiBordo.KanbanCodeColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetKanbanCodeNull() { + this[this.tableDiarioDiBordo.KanbanCodeColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsTempoCicloBaseNull() { + return this.IsNull(this.tableDiarioDiBordo.TempoCicloBaseColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetTempoCicloBaseNull() { + this[this.tableDiarioDiBordo.TempoCicloBaseColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsPzPalletProdNull() { + return this.IsNull(this.tableDiarioDiBordo.PzPalletProdColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetPzPalletProdNull() { + this[this.tableDiarioDiBordo.PzPalletProdColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsMatrOprNull() { + return this.IsNull(this.tableDiarioDiBordo.MatrOprColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetMatrOprNull() { + this[this.tableDiarioDiBordo.MatrOprColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IspalletNull() { + return this.IsNull(this.tableDiarioDiBordo.palletColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetpalletNull() { + this[this.tableDiarioDiBordo.palletColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class TransizioneEventiRow : global::System.Data.DataRow { + + private TransizioneEventiDataTable tableTransizioneEventi; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal TransizioneEventiRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableTransizioneEventi = ((TransizioneEventiDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string codInviato { + get { + return ((string)(this[this.tableTransizioneEventi.codInviatoColumn])); + } + set { + this[this.tableTransizioneEventi.codInviatoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string prec_codInviato { + get { + return ((string)(this[this.tableTransizioneEventi.prec_codInviatoColumn])); + } + set { + this[this.tableTransizioneEventi.prec_codInviatoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int IdxTipoEvento { + get { + try { + return ((int)(this[this.tableTransizioneEventi.IdxTipoEventoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'IdxTipoEvento\' in table \'TransizioneEventi\' is DBNull.", e); + } + } + set { + this[this.tableTransizioneEventi.IdxTipoEventoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string text2show { + get { + try { + return ((string)(this[this.tableTransizioneEventi.text2showColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'text2show\' in table \'TransizioneEventi\' is DBNull.", e); + } + } + set { + this[this.tableTransizioneEventi.text2showColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string descrComando { + get { + try { + return ((string)(this[this.tableTransizioneEventi.descrComandoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'descrComando\' in table \'TransizioneEventi\' is DBNull.", e); + } + } + set { + this[this.tableTransizioneEventi.descrComandoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagraficaEventiRow AnagraficaEventiRow { + get { + return ((AnagraficaEventiRow)(this.GetParentRow(this.Table.ParentRelations["FK_TransizioneEventi_AnagraficaEventi1"]))); + } + set { + this.SetParentRow(value, this.Table.ParentRelations["FK_TransizioneEventi_AnagraficaEventi1"]); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsIdxTipoEventoNull() { + return this.IsNull(this.tableTransizioneEventi.IdxTipoEventoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetIdxTipoEventoNull() { + this[this.tableTransizioneEventi.IdxTipoEventoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool Istext2showNull() { + return this.IsNull(this.tableTransizioneEventi.text2showColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void Settext2showNull() { + this[this.tableTransizioneEventi.text2showColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsdescrComandoNull() { + return this.IsNull(this.tableTransizioneEventi.descrComandoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetdescrComandoNull() { + this[this.tableTransizioneEventi.descrComandoColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class KeepAliveRow : global::System.Data.DataRow { + + private KeepAliveDataTable tableKeepAlive; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal KeepAliveRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableKeepAlive = ((KeepAliveDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string IdxMacchina { + get { + return ((string)(this[this.tableKeepAlive.IdxMacchinaColumn])); + } + set { + this[this.tableKeepAlive.IdxMacchinaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime DataOraServer { + get { + try { + return ((global::System.DateTime)(this[this.tableKeepAlive.DataOraServerColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'DataOraServer\' in table \'KeepAlive\' is DBNull.", e); + } + } + set { + this[this.tableKeepAlive.DataOraServerColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime DataOraMacchina { + get { + try { + return ((global::System.DateTime)(this[this.tableKeepAlive.DataOraMacchinaColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'DataOraMacchina\' in table \'KeepAlive\' is DBNull.", e); + } + } + set { + this[this.tableKeepAlive.DataOraMacchinaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime DataOraStart { + get { + try { + return ((global::System.DateTime)(this[this.tableKeepAlive.DataOraStartColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'DataOraStart\' in table \'KeepAlive\' is DBNull.", e); + } + } + set { + this[this.tableKeepAlive.DataOraStartColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsDataOraServerNull() { + return this.IsNull(this.tableKeepAlive.DataOraServerColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetDataOraServerNull() { + this[this.tableKeepAlive.DataOraServerColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsDataOraMacchinaNull() { + return this.IsNull(this.tableKeepAlive.DataOraMacchinaColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetDataOraMacchinaNull() { + this[this.tableKeepAlive.DataOraMacchinaColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsDataOraStartNull() { + return this.IsNull(this.tableKeepAlive.DataOraStartColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetDataOraStartNull() { + this[this.tableKeepAlive.DataOraStartColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class Macchine2FamigliaIngressiRow : global::System.Data.DataRow { + + private Macchine2FamigliaIngressiDataTable tableMacchine2FamigliaIngressi; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal Macchine2FamigliaIngressiRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableMacchine2FamigliaIngressi = ((Macchine2FamigliaIngressiDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int IdxFamigliaIngresso { + get { + return ((int)(this[this.tableMacchine2FamigliaIngressi.IdxFamigliaIngressoColumn])); + } + set { + this[this.tableMacchine2FamigliaIngressi.IdxFamigliaIngressoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string IdxMacchina { + get { + return ((string)(this[this.tableMacchine2FamigliaIngressi.IdxMacchinaColumn])); + } + set { + this[this.tableMacchine2FamigliaIngressi.IdxMacchinaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public MacchineRow MacchineRow { + get { + return ((MacchineRow)(this.GetParentRow(this.Table.ParentRelations["FK_Macchine2FamigliaIngressi_Macchine"]))); + } + set { + this.SetParentRow(value, this.Table.ParentRelations["FK_Macchine2FamigliaIngressi_Macchine"]); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public FamigliaTipoIngressiRow FamigliaTipoIngressiRow { + get { + return ((FamigliaTipoIngressiRow)(this.GetParentRow(this.Table.ParentRelations["FK_Macchine2FamigliaIngressi_FamigliaTipoIngressi"]))); + } + set { + this.SetParentRow(value, this.Table.ParentRelations["FK_Macchine2FamigliaIngressi_FamigliaTipoIngressi"]); + } + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class FamigliaTipoIngressiRow : global::System.Data.DataRow { + + private FamigliaTipoIngressiDataTable tableFamigliaTipoIngressi; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal FamigliaTipoIngressiRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableFamigliaTipoIngressi = ((FamigliaTipoIngressiDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int IdxFamigliaIngresso { + get { + return ((int)(this[this.tableFamigliaTipoIngressi.IdxFamigliaIngressoColumn])); + } + set { + this[this.tableFamigliaTipoIngressi.IdxFamigliaIngressoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string DescrizioneIngresso { + get { + try { + return ((string)(this[this.tableFamigliaTipoIngressi.DescrizioneIngressoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'DescrizioneIngresso\' in table \'FamigliaTipoIngressi\' is DBN" + + "ull.", e); + } + } + set { + this[this.tableFamigliaTipoIngressi.DescrizioneIngressoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsDescrizioneIngressoNull() { + return this.IsNull(this.tableFamigliaTipoIngressi.DescrizioneIngressoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetDescrizioneIngressoNull() { + this[this.tableFamigliaTipoIngressi.DescrizioneIngressoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public Macchine2FamigliaIngressiRow[] GetMacchine2FamigliaIngressiRows() { + if ((this.Table.ChildRelations["FK_Macchine2FamigliaIngressi_FamigliaTipoIngressi"] == null)) { + return new Macchine2FamigliaIngressiRow[0]; + } + else { + return ((Macchine2FamigliaIngressiRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Macchine2FamigliaIngressi_FamigliaTipoIngressi"]))); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public TransizioneIngressiRow[] GetTransizioneIngressiRows() { + if ((this.Table.ChildRelations["FK_TransizioneIngressi_FamigliaTipoIngressi"] == null)) { + return new TransizioneIngressiRow[0]; + } + else { + return ((TransizioneIngressiRow[])(base.GetChildRows(this.Table.ChildRelations["FK_TransizioneIngressi_FamigliaTipoIngressi"]))); + } + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class TransizioneIngressiRow : global::System.Data.DataRow { + + private TransizioneIngressiDataTable tableTransizioneIngressi; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal TransizioneIngressiRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableTransizioneIngressi = ((TransizioneIngressiDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int IdxFamigliaIngresso { + get { + return ((int)(this[this.tableTransizioneIngressi.IdxFamigliaIngressoColumn])); + } + set { + this[this.tableTransizioneIngressi.IdxFamigliaIngressoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int IdxMicroStato { + get { + return ((int)(this[this.tableTransizioneIngressi.IdxMicroStatoColumn])); + } + set { + this[this.tableTransizioneIngressi.IdxMicroStatoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int ValoreIngresso { + get { + return ((int)(this[this.tableTransizioneIngressi.ValoreIngressoColumn])); + } + set { + this[this.tableTransizioneIngressi.ValoreIngressoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int IdxTipoEvento { + get { + try { + return ((int)(this[this.tableTransizioneIngressi.IdxTipoEventoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'IdxTipoEvento\' in table \'TransizioneIngressi\' is DBNull.", e); + } + } + set { + this[this.tableTransizioneIngressi.IdxTipoEventoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int next_IdxMicroStato { + get { + return ((int)(this[this.tableTransizioneIngressi.next_IdxMicroStatoColumn])); + } + set { + this[this.tableTransizioneIngressi.next_IdxMicroStatoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagraficaEventiRow AnagraficaEventiRow { + get { + return ((AnagraficaEventiRow)(this.GetParentRow(this.Table.ParentRelations["FK_TransizioneIngressi_AnagraficaEventi"]))); + } + set { + this.SetParentRow(value, this.Table.ParentRelations["FK_TransizioneIngressi_AnagraficaEventi"]); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public FamigliaTipoIngressiRow FamigliaTipoIngressiRow { + get { + return ((FamigliaTipoIngressiRow)(this.GetParentRow(this.Table.ParentRelations["FK_TransizioneIngressi_FamigliaTipoIngressi"]))); + } + set { + this.SetParentRow(value, this.Table.ParentRelations["FK_TransizioneIngressi_FamigliaTipoIngressi"]); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsIdxTipoEventoNull() { + return this.IsNull(this.tableTransizioneIngressi.IdxTipoEventoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetIdxTipoEventoNull() { + this[this.tableTransizioneIngressi.IdxTipoEventoColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class AnagraficaOperatoriRow : global::System.Data.DataRow { + + private AnagraficaOperatoriDataTable tableAnagraficaOperatori; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal AnagraficaOperatoriRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableAnagraficaOperatori = ((AnagraficaOperatoriDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int MatrOpr { + get { + return ((int)(this[this.tableAnagraficaOperatori.MatrOprColumn])); + } + set { + this[this.tableAnagraficaOperatori.MatrOprColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Cognome { + get { + try { + return ((string)(this[this.tableAnagraficaOperatori.CognomeColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Cognome\' in table \'AnagraficaOperatori\' is DBNull.", e); + } + } + set { + this[this.tableAnagraficaOperatori.CognomeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Nome { + get { + try { + return ((string)(this[this.tableAnagraficaOperatori.NomeColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Nome\' in table \'AnagraficaOperatori\' is DBNull.", e); + } + } + set { + this[this.tableAnagraficaOperatori.NomeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool isAdmin { + get { + try { + return ((bool)(this[this.tableAnagraficaOperatori.isAdminColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'isAdmin\' in table \'AnagraficaOperatori\' is DBNull.", e); + } + } + set { + this[this.tableAnagraficaOperatori.isAdminColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string authKey { + get { + try { + return ((string)(this[this.tableAnagraficaOperatori.authKeyColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'authKey\' in table \'AnagraficaOperatori\' is DBNull.", e); + } + } + set { + this[this.tableAnagraficaOperatori.authKeyColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsCognomeNull() { + return this.IsNull(this.tableAnagraficaOperatori.CognomeColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetCognomeNull() { + this[this.tableAnagraficaOperatori.CognomeColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsNomeNull() { + return this.IsNull(this.tableAnagraficaOperatori.NomeColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetNomeNull() { + this[this.tableAnagraficaOperatori.NomeColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsisAdminNull() { + return this.IsNull(this.tableAnagraficaOperatori.isAdminColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetisAdminNull() { + this[this.tableAnagraficaOperatori.isAdminColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsauthKeyNull() { + return this.IsNull(this.tableAnagraficaOperatori.authKeyColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetauthKeyNull() { + this[this.tableAnagraficaOperatori.authKeyColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DiarioDiBordoRow[] GetDiarioDiBordoRows() { + if ((this.Table.ChildRelations["FK_DiarioDiBordo_AnagraficaOperatori"] == null)) { + return new DiarioDiBordoRow[0]; + } + else { + return ((DiarioDiBordoRow[])(base.GetChildRows(this.Table.ChildRelations["FK_DiarioDiBordo_AnagraficaOperatori"]))); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public EventListRow[] GetEventListRows() { + if ((this.Table.ChildRelations["FK_EventList_AnagraficaOperatori"] == null)) { + return new EventListRow[0]; + } + else { + return ((EventListRow[])(base.GetChildRows(this.Table.ChildRelations["FK_EventList_AnagraficaOperatori"]))); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public StatoMacchineRow[] GetStatoMacchineRows() { + if ((this.Table.ChildRelations["FK_StatoMacchine_AnagraficaOperatori"] == null)) { + return new StatoMacchineRow[0]; + } + else { + return ((StatoMacchineRow[])(base.GetChildRows(this.Table.ChildRelations["FK_StatoMacchine_AnagraficaOperatori"]))); + } + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class Kanban2insRow : global::System.Data.DataRow { + + private Kanban2insDataTable tableKanban2ins; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal Kanban2insRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableKanban2ins = ((Kanban2insDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string MatricolaKanban { + get { + return ((string)(this[this.tableKanban2ins.MatricolaKanbanColumn])); + } + set { + this[this.tableKanban2ins.MatricolaKanbanColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string KanbanCode { + get { + try { + return ((string)(this[this.tableKanban2ins.KanbanCodeColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'KanbanCode\' in table \'Kanban2ins\' is DBNull.", e); + } + } + set { + this[this.tableKanban2ins.KanbanCodeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public double TempoCicloBase { + get { + try { + return ((double)(this[this.tableKanban2ins.TempoCicloBaseColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'TempoCicloBase\' in table \'Kanban2ins\' is DBNull.", e); + } + } + set { + this[this.tableKanban2ins.TempoCicloBaseColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int PzPallet { + get { + try { + return ((int)(this[this.tableKanban2ins.PzPalletColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'PzPallet\' in table \'Kanban2ins\' is DBNull.", e); + } + } + set { + this[this.tableKanban2ins.PzPalletColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsKanbanCodeNull() { + return this.IsNull(this.tableKanban2ins.KanbanCodeColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetKanbanCodeNull() { + this[this.tableKanban2ins.KanbanCodeColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsTempoCicloBaseNull() { + return this.IsNull(this.tableKanban2ins.TempoCicloBaseColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetTempoCicloBaseNull() { + this[this.tableKanban2ins.TempoCicloBaseColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsPzPalletNull() { + return this.IsNull(this.tableKanban2ins.PzPalletColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetPzPalletNull() { + this[this.tableKanban2ins.PzPalletColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class AnagraficaOperatori2insRow : global::System.Data.DataRow { + + private AnagraficaOperatori2insDataTable tableAnagraficaOperatori2ins; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal AnagraficaOperatori2insRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableAnagraficaOperatori2ins = ((AnagraficaOperatori2insDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int MatrOpr { + get { + return ((int)(this[this.tableAnagraficaOperatori2ins.MatrOprColumn])); + } + set { + this[this.tableAnagraficaOperatori2ins.MatrOprColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Cognome { + get { + try { + return ((string)(this[this.tableAnagraficaOperatori2ins.CognomeColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Cognome\' in table \'AnagraficaOperatori2ins\' is DBNull.", e); + } + } + set { + this[this.tableAnagraficaOperatori2ins.CognomeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Nome { + get { + try { + return ((string)(this[this.tableAnagraficaOperatori2ins.NomeColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Nome\' in table \'AnagraficaOperatori2ins\' is DBNull.", e); + } + } + set { + this[this.tableAnagraficaOperatori2ins.NomeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsCognomeNull() { + return this.IsNull(this.tableAnagraficaOperatori2ins.CognomeColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetCognomeNull() { + this[this.tableAnagraficaOperatori2ins.CognomeColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsNomeNull() { + return this.IsNull(this.tableAnagraficaOperatori2ins.NomeColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetNomeNull() { + this[this.tableAnagraficaOperatori2ins.NomeColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class DatiMacchineRow : global::System.Data.DataRow { + + private DatiMacchineDataTable tableDatiMacchine; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal DatiMacchineRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableDatiMacchine = ((DatiMacchineDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int idxMacchina { + get { + return ((int)(this[this.tableDatiMacchine.idxMacchinaColumn])); + } + set { + this[this.tableDatiMacchine.idxMacchinaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool palletChange { + get { + try { + return ((bool)(this[this.tableDatiMacchine.palletChangeColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'palletChange\' in table \'DatiMacchine\' is DBNull.", e); + } + } + set { + this[this.tableDatiMacchine.palletChangeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string kanban_A { + get { + try { + return ((string)(this[this.tableDatiMacchine.kanban_AColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'kanban_A\' in table \'DatiMacchine\' is DBNull.", e); + } + } + set { + this[this.tableDatiMacchine.kanban_AColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string kanban_B { + get { + try { + return ((string)(this[this.tableDatiMacchine.kanban_BColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'kanban_B\' in table \'DatiMacchine\' is DBNull.", e); + } + } + set { + this[this.tableDatiMacchine.kanban_BColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string serialPort { + get { + try { + return ((string)(this[this.tableDatiMacchine.serialPortColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'serialPort\' in table \'DatiMacchine\' is DBNull.", e); + } + } + set { + this[this.tableDatiMacchine.serialPortColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int refreshPeriod { + get { + try { + return ((int)(this[this.tableDatiMacchine.refreshPeriodColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'refreshPeriod\' in table \'DatiMacchine\' is DBNull.", e); + } + } + set { + this[this.tableDatiMacchine.refreshPeriodColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool simulazione { + get { + try { + return ((bool)(this[this.tableDatiMacchine.simulazioneColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'simulazione\' in table \'DatiMacchine\' is DBNull.", e); + } + } + set { + this[this.tableDatiMacchine.simulazioneColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool simplePallet { + get { + try { + return ((bool)(this[this.tableDatiMacchine.simplePalletColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'simplePallet\' in table \'DatiMacchine\' is DBNull.", e); + } + } + set { + this[this.tableDatiMacchine.simplePalletColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool insEnabled { + get { + try { + return ((bool)(this[this.tableDatiMacchine.insEnabledColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'insEnabled\' in table \'DatiMacchine\' is DBNull.", e); + } + } + set { + this[this.tableDatiMacchine.insEnabledColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IspalletChangeNull() { + return this.IsNull(this.tableDatiMacchine.palletChangeColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetpalletChangeNull() { + this[this.tableDatiMacchine.palletChangeColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool Iskanban_ANull() { + return this.IsNull(this.tableDatiMacchine.kanban_AColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void Setkanban_ANull() { + this[this.tableDatiMacchine.kanban_AColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool Iskanban_BNull() { + return this.IsNull(this.tableDatiMacchine.kanban_BColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void Setkanban_BNull() { + this[this.tableDatiMacchine.kanban_BColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsserialPortNull() { + return this.IsNull(this.tableDatiMacchine.serialPortColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetserialPortNull() { + this[this.tableDatiMacchine.serialPortColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsrefreshPeriodNull() { + return this.IsNull(this.tableDatiMacchine.refreshPeriodColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetrefreshPeriodNull() { + this[this.tableDatiMacchine.refreshPeriodColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IssimulazioneNull() { + return this.IsNull(this.tableDatiMacchine.simulazioneColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetsimulazioneNull() { + this[this.tableDatiMacchine.simulazioneColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IssimplePalletNull() { + return this.IsNull(this.tableDatiMacchine.simplePalletColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetsimplePalletNull() { + this[this.tableDatiMacchine.simplePalletColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsinsEnabledNull() { + return this.IsNull(this.tableDatiMacchine.insEnabledColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetinsEnabledNull() { + this[this.tableDatiMacchine.insEnabledColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class MicroStatoMacchinaRow : global::System.Data.DataRow { + + private MicroStatoMacchinaDataTable tableMicroStatoMacchina; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal MicroStatoMacchinaRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableMicroStatoMacchina = ((MicroStatoMacchinaDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string IdxMacchina { + get { + return ((string)(this[this.tableMicroStatoMacchina.IdxMacchinaColumn])); + } + set { + this[this.tableMicroStatoMacchina.IdxMacchinaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int IdxMicroStato { + get { + return ((int)(this[this.tableMicroStatoMacchina.IdxMicroStatoColumn])); + } + set { + this[this.tableMicroStatoMacchina.IdxMicroStatoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime InizioStato { + get { + try { + return ((global::System.DateTime)(this[this.tableMicroStatoMacchina.InizioStatoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'InizioStato\' in table \'MicroStatoMacchina\' is DBNull.", e); + } + } + set { + this[this.tableMicroStatoMacchina.InizioStatoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Value { + get { + try { + return ((string)(this[this.tableMicroStatoMacchina.ValueColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Value\' in table \'MicroStatoMacchina\' is DBNull.", e); + } + } + set { + this[this.tableMicroStatoMacchina.ValueColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsInizioStatoNull() { + return this.IsNull(this.tableMicroStatoMacchina.InizioStatoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetInizioStatoNull() { + this[this.tableMicroStatoMacchina.InizioStatoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsValueNull() { + return this.IsNull(this.tableMicroStatoMacchina.ValueColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetValueNull() { + this[this.tableMicroStatoMacchina.ValueColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class LinkMenuJQMRow : global::System.Data.DataRow { + + private LinkMenuJQMDataTable tableLinkMenuJQM; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal LinkMenuJQMRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableLinkMenuJQM = ((LinkMenuJQMDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int idxLink { + get { + return ((int)(this[this.tableLinkMenuJQM.idxLinkColumn])); + } + set { + this[this.tableLinkMenuJQM.idxLinkColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string TipoLink { + get { + try { + return ((string)(this[this.tableLinkMenuJQM.TipoLinkColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'TipoLink\' in table \'LinkMenuJQM\' is DBNull.", e); + } + } + set { + this[this.tableLinkMenuJQM.TipoLinkColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int ordine { + get { + try { + return ((int)(this[this.tableLinkMenuJQM.ordineColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'ordine\' in table \'LinkMenuJQM\' is DBNull.", e); + } + } + set { + this[this.tableLinkMenuJQM.ordineColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Testo { + get { + try { + return ((string)(this[this.tableLinkMenuJQM.TestoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Testo\' in table \'LinkMenuJQM\' is DBNull.", e); + } + } + set { + this[this.tableLinkMenuJQM.TestoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string NavigateUrl { + get { + try { + return ((string)(this[this.tableLinkMenuJQM.NavigateUrlColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'NavigateUrl\' in table \'LinkMenuJQM\' is DBNull.", e); + } + } + set { + this[this.tableLinkMenuJQM.NavigateUrlColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string icona { + get { + try { + return ((string)(this[this.tableLinkMenuJQM.iconaColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'icona\' in table \'LinkMenuJQM\' is DBNull.", e); + } + } + set { + this[this.tableLinkMenuJQM.iconaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsTipoLinkNull() { + return this.IsNull(this.tableLinkMenuJQM.TipoLinkColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetTipoLinkNull() { + this[this.tableLinkMenuJQM.TipoLinkColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsordineNull() { + return this.IsNull(this.tableLinkMenuJQM.ordineColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetordineNull() { + this[this.tableLinkMenuJQM.ordineColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsTestoNull() { + return this.IsNull(this.tableLinkMenuJQM.TestoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetTestoNull() { + this[this.tableLinkMenuJQM.TestoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsNavigateUrlNull() { + return this.IsNull(this.tableLinkMenuJQM.NavigateUrlColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetNavigateUrlNull() { + this[this.tableLinkMenuJQM.NavigateUrlColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsiconaNull() { + return this.IsNull(this.tableLinkMenuJQM.iconaColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SeticonaNull() { + this[this.tableLinkMenuJQM.iconaColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class RemoteRebootLogRow : global::System.Data.DataRow { + + private RemoteRebootLogDataTable tableRemoteRebootLog; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal RemoteRebootLogRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableRemoteRebootLog = ((RemoteRebootLogDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int idxReboot { + get { + return ((int)(this[this.tableRemoteRebootLog.idxRebootColumn])); + } + set { + this[this.tableRemoteRebootLog.idxRebootColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string IdxMacchina { + get { + return ((string)(this[this.tableRemoteRebootLog.IdxMacchinaColumn])); + } + set { + this[this.tableRemoteRebootLog.IdxMacchinaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string IPv4 { + get { + try { + return ((string)(this[this.tableRemoteRebootLog.IPv4Column])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'IPv4\' in table \'RemoteRebootLog\' is DBNull.", e); + } + } + set { + this[this.tableRemoteRebootLog.IPv4Column] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Agent { + get { + try { + return ((string)(this[this.tableRemoteRebootLog.AgentColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Agent\' in table \'RemoteRebootLog\' is DBNull.", e); + } + } + set { + this[this.tableRemoteRebootLog.AgentColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime DataOraBoot { + get { + try { + return ((global::System.DateTime)(this[this.tableRemoteRebootLog.DataOraBootColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'DataOraBoot\' in table \'RemoteRebootLog\' is DBNull.", e); + } + } + set { + this[this.tableRemoteRebootLog.DataOraBootColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string macAddr { + get { + return ((string)(this[this.tableRemoteRebootLog.macAddrColumn])); + } + set { + this[this.tableRemoteRebootLog.macAddrColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsIPv4Null() { + return this.IsNull(this.tableRemoteRebootLog.IPv4Column); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetIPv4Null() { + this[this.tableRemoteRebootLog.IPv4Column] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsAgentNull() { + return this.IsNull(this.tableRemoteRebootLog.AgentColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetAgentNull() { + this[this.tableRemoteRebootLog.AgentColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsDataOraBootNull() { + return this.IsNull(this.tableRemoteRebootLog.DataOraBootColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetDataOraBootNull() { + this[this.tableRemoteRebootLog.DataOraBootColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class ParetoDurateRow : global::System.Data.DataRow { + + private ParetoDurateDataTable tableParetoDurate; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal ParetoDurateRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableParetoDurate = ((ParetoDurateDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string IdxMacchina { + get { + try { + return ((string)(this[this.tableParetoDurate.IdxMacchinaColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'IdxMacchina\' in table \'ParetoDurate\' is DBNull.", e); + } + } + set { + this[this.tableParetoDurate.IdxMacchinaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime InizioStato { + get { + try { + return ((global::System.DateTime)(this[this.tableParetoDurate.InizioStatoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'InizioStato\' in table \'ParetoDurate\' is DBNull.", e); + } + } + set { + this[this.tableParetoDurate.InizioStatoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public System.DateTime FineStato { + get { + try { + return ((global::System.DateTime)(this[this.tableParetoDurate.FineStatoColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'FineStato\' in table \'ParetoDurate\' is DBNull.", e); + } + } + set { + this[this.tableParetoDurate.FineStatoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int IdxStato { + get { + return ((int)(this[this.tableParetoDurate.IdxStatoColumn])); + } + set { + this[this.tableParetoDurate.IdxStatoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int DurataMinuti { + get { + try { + return ((int)(this[this.tableParetoDurate.DurataMinutiColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'DurataMinuti\' in table \'ParetoDurate\' is DBNull.", e); + } + } + set { + this[this.tableParetoDurate.DurataMinutiColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsIdxMacchinaNull() { + return this.IsNull(this.tableParetoDurate.IdxMacchinaColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetIdxMacchinaNull() { + this[this.tableParetoDurate.IdxMacchinaColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsInizioStatoNull() { + return this.IsNull(this.tableParetoDurate.InizioStatoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetInizioStatoNull() { + this[this.tableParetoDurate.InizioStatoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsFineStatoNull() { + return this.IsNull(this.tableParetoDurate.FineStatoColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetFineStatoNull() { + this[this.tableParetoDurate.FineStatoColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsDurataMinutiNull() { + return this.IsNull(this.tableParetoDurate.DurataMinutiColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetDurataMinutiNull() { + this[this.tableParetoDurate.DurataMinutiColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class Macchine2FamiglieMacchineRowChangeEvent : global::System.EventArgs { + + private Macchine2FamiglieMacchineRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public Macchine2FamiglieMacchineRowChangeEvent(Macchine2FamiglieMacchineRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public Macchine2FamiglieMacchineRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class FamiglieMacchineRowChangeEvent : global::System.EventArgs { + + private FamiglieMacchineRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public FamiglieMacchineRowChangeEvent(FamiglieMacchineRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public FamiglieMacchineRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class MacchineRowChangeEvent : global::System.EventArgs { + + private MacchineRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public MacchineRowChangeEvent(MacchineRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public MacchineRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class TransizioneStatiRowChangeEvent : global::System.EventArgs { + + private TransizioneStatiRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public TransizioneStatiRowChangeEvent(TransizioneStatiRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public TransizioneStatiRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class StatoMacchineRowChangeEvent : global::System.EventArgs { + + private StatoMacchineRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public StatoMacchineRowChangeEvent(StatoMacchineRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public StatoMacchineRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class AnagraficaStatiRowChangeEvent : global::System.EventArgs { + + private AnagraficaStatiRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagraficaStatiRowChangeEvent(AnagraficaStatiRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagraficaStatiRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class KanbanRowChangeEvent : global::System.EventArgs { + + private KanbanRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public KanbanRowChangeEvent(KanbanRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public KanbanRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class EventListRowChangeEvent : global::System.EventArgs { + + private EventListRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public EventListRowChangeEvent(EventListRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public EventListRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class AnagraficaEventiRowChangeEvent : global::System.EventArgs { + + private AnagraficaEventiRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagraficaEventiRowChangeEvent(AnagraficaEventiRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagraficaEventiRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class DiarioDiBordoRowChangeEvent : global::System.EventArgs { + + private DiarioDiBordoRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DiarioDiBordoRowChangeEvent(DiarioDiBordoRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DiarioDiBordoRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class TransizioneEventiRowChangeEvent : global::System.EventArgs { + + private TransizioneEventiRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public TransizioneEventiRowChangeEvent(TransizioneEventiRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public TransizioneEventiRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class KeepAliveRowChangeEvent : global::System.EventArgs { + + private KeepAliveRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public KeepAliveRowChangeEvent(KeepAliveRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public KeepAliveRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class Macchine2FamigliaIngressiRowChangeEvent : global::System.EventArgs { + + private Macchine2FamigliaIngressiRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public Macchine2FamigliaIngressiRowChangeEvent(Macchine2FamigliaIngressiRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public Macchine2FamigliaIngressiRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class FamigliaTipoIngressiRowChangeEvent : global::System.EventArgs { + + private FamigliaTipoIngressiRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public FamigliaTipoIngressiRowChangeEvent(FamigliaTipoIngressiRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public FamigliaTipoIngressiRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class TransizioneIngressiRowChangeEvent : global::System.EventArgs { + + private TransizioneIngressiRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public TransizioneIngressiRowChangeEvent(TransizioneIngressiRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public TransizioneIngressiRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class AnagraficaOperatoriRowChangeEvent : global::System.EventArgs { + + private AnagraficaOperatoriRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagraficaOperatoriRowChangeEvent(AnagraficaOperatoriRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagraficaOperatoriRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class Kanban2insRowChangeEvent : global::System.EventArgs { + + private Kanban2insRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public Kanban2insRowChangeEvent(Kanban2insRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public Kanban2insRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class AnagraficaOperatori2insRowChangeEvent : global::System.EventArgs { + + private AnagraficaOperatori2insRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagraficaOperatori2insRowChangeEvent(AnagraficaOperatori2insRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagraficaOperatori2insRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class DatiMacchineRowChangeEvent : global::System.EventArgs { + + private DatiMacchineRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DatiMacchineRowChangeEvent(DatiMacchineRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DatiMacchineRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class MicroStatoMacchinaRowChangeEvent : global::System.EventArgs { + + private MicroStatoMacchinaRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public MicroStatoMacchinaRowChangeEvent(MicroStatoMacchinaRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public MicroStatoMacchinaRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class LinkMenuJQMRowChangeEvent : global::System.EventArgs { + + private LinkMenuJQMRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public LinkMenuJQMRowChangeEvent(LinkMenuJQMRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public LinkMenuJQMRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class RemoteRebootLogRowChangeEvent : global::System.EventArgs { + + private RemoteRebootLogRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public RemoteRebootLogRowChangeEvent(RemoteRebootLogRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public RemoteRebootLogRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class ParetoDurateRowChangeEvent : global::System.EventArgs { + + private ParetoDurateRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public ParetoDurateRowChangeEvent(ParetoDurateRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public ParetoDurateRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + } +} +namespace MapoDb.DS_applicazioneTableAdapters { + + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class Macchine2FamiglieMacchineTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public Macchine2FamiglieMacchineTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "Macchine2FamiglieMacchine"; + tableMapping.ColumnMappings.Add("IdxMacchina", "IdxMacchina"); + tableMapping.ColumnMappings.Add("IdxFamiglia", "IdxFamiglia"); + this._adapter.TableMappings.Add(tableMapping); + this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.DeleteCommand.Connection = this.Connection; + this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Macchine2FamiglieMacchine] WHERE (([IdxMacchina] = @Original_I" + + "dxMacchina) AND ([IdxFamiglia] = @Original_IdxFamiglia))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxFamiglia", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxFamiglia", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.InsertCommand.Connection = this.Connection; + this._adapter.InsertCommand.CommandText = @" + INSERT INTO [dbo].[Macchine2FamiglieMacchine] ([IdxMacchina], [IdxFamiglia]) VALUES (@IdxMacchina, @IdxFamiglia); + SELECT IdxMacchina, IdxFamiglia FROM Macchine2FamiglieMacchine WHERE (IdxFamiglia = @IdxFamiglia) AND (IdxMacchina = @IdxMacchina) + "; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxFamiglia", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxFamiglia", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.UpdateCommand.Connection = this.Connection; + this._adapter.UpdateCommand.CommandText = @" + UPDATE [dbo].[Macchine2FamiglieMacchine] SET [IdxMacchina] = @IdxMacchina, [IdxFamiglia] = @IdxFamiglia WHERE (([IdxMacchina] = @Original_IdxMacchina) AND ([IdxFamiglia] = @Original_IdxFamiglia)); + SELECT IdxMacchina, IdxFamiglia FROM Macchine2FamiglieMacchine WHERE (IdxFamiglia = @IdxFamiglia) AND (IdxMacchina = @IdxMacchina) + "; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxFamiglia", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxFamiglia", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxFamiglia", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxFamiglia", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT IdxMacchina, IdxFamiglia FROM dbo.Macchine2FamiglieMacchine"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_applicazione.Macchine2FamiglieMacchineDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_applicazione.Macchine2FamiglieMacchineDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_applicazione.Macchine2FamiglieMacchineDataTable dataTable = new DS_applicazione.Macchine2FamiglieMacchineDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_applicazione.Macchine2FamiglieMacchineDataTable dataTable) { + return this.Adapter.Update(dataTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_applicazione dataSet) { + return this.Adapter.Update(dataSet, "Macchine2FamiglieMacchine"); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow dataRow) { + return this.Adapter.Update(new global::System.Data.DataRow[] { + dataRow}); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow[] dataRows) { + return this.Adapter.Update(dataRows); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] + public virtual int Delete(string Original_IdxMacchina, int Original_IdxFamiglia) { + if ((Original_IdxMacchina == null)) { + throw new global::System.ArgumentNullException("Original_IdxMacchina"); + } + else { + this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_IdxMacchina)); + } + this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_IdxFamiglia)); + global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; + if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.DeleteCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.DeleteCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] + public virtual int Insert(string IdxMacchina, int IdxFamiglia) { + if ((IdxMacchina == null)) { + throw new global::System.ArgumentNullException("IdxMacchina"); + } + else { + this.Adapter.InsertCommand.Parameters[0].Value = ((string)(IdxMacchina)); + } + this.Adapter.InsertCommand.Parameters[1].Value = ((int)(IdxFamiglia)); + global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; + if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.InsertCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.InsertCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(string IdxMacchina, int IdxFamiglia, string Original_IdxMacchina, int Original_IdxFamiglia) { + if ((IdxMacchina == null)) { + throw new global::System.ArgumentNullException("IdxMacchina"); + } + else { + this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(IdxMacchina)); + } + this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(IdxFamiglia)); + if ((Original_IdxMacchina == null)) { + throw new global::System.ArgumentNullException("Original_IdxMacchina"); + } + else { + this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Original_IdxMacchina)); + } + this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_IdxFamiglia)); + global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; + if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.UpdateCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.UpdateCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(string Original_IdxMacchina, int Original_IdxFamiglia) { + return this.Update(Original_IdxMacchina, Original_IdxFamiglia, Original_IdxMacchina, Original_IdxFamiglia); + } + } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class FamiglieMacchineTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public FamiglieMacchineTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "FamiglieMacchine"; + tableMapping.ColumnMappings.Add("IdxFamiglia", "IdxFamiglia"); + tableMapping.ColumnMappings.Add("Descrizione", "Descrizione"); + this._adapter.TableMappings.Add(tableMapping); + this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.DeleteCommand.Connection = this.Connection; + this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[FamiglieMacchine] WHERE (([IdxFamiglia] = @Original_IdxFamigli" + + "a) AND ([Descrizione] = @Original_Descrizione))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxFamiglia", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxFamiglia", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Descrizione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Descrizione", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.InsertCommand.Connection = this.Connection; + this._adapter.InsertCommand.CommandText = "\r\n INSERT INTO [dbo].[FamiglieMacchine] ([Descrizione]) VALU" + + "ES (@Descrizione);\r\n SELECT IdxFamiglia, Descrizione FROM F" + + "amiglieMacchine WHERE (IdxFamiglia = SCOPE_IDENTITY())\r\n "; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Descrizione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Descrizione", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.UpdateCommand.Connection = this.Connection; + this._adapter.UpdateCommand.CommandText = @" + UPDATE [dbo].[FamiglieMacchine] SET [Descrizione] = @Descrizione WHERE (([IdxFamiglia] = @Original_IdxFamiglia) AND ([Descrizione] = @Original_Descrizione)); + SELECT IdxFamiglia, Descrizione FROM FamiglieMacchine WHERE (IdxFamiglia = @IdxFamiglia) + "; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Descrizione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Descrizione", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxFamiglia", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxFamiglia", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Descrizione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Descrizione", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxFamiglia", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IdxFamiglia", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT IdxFamiglia, Descrizione FROM dbo.FamiglieMacchine"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_applicazione.FamiglieMacchineDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_applicazione.FamiglieMacchineDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_applicazione.FamiglieMacchineDataTable dataTable = new DS_applicazione.FamiglieMacchineDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_applicazione.FamiglieMacchineDataTable dataTable) { + return this.Adapter.Update(dataTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_applicazione dataSet) { + return this.Adapter.Update(dataSet, "FamiglieMacchine"); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow dataRow) { + return this.Adapter.Update(new global::System.Data.DataRow[] { + dataRow}); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow[] dataRows) { + return this.Adapter.Update(dataRows); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] + public virtual int Delete(int Original_IdxFamiglia, string Original_Descrizione) { + this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdxFamiglia)); + if ((Original_Descrizione == null)) { + throw new global::System.ArgumentNullException("Original_Descrizione"); + } + else { + this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Descrizione)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; + if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.DeleteCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.DeleteCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] + public virtual int Insert(string Descrizione) { + if ((Descrizione == null)) { + throw new global::System.ArgumentNullException("Descrizione"); + } + else { + this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Descrizione)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; + if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.InsertCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.InsertCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(string Descrizione, int Original_IdxFamiglia, string Original_Descrizione, int IdxFamiglia) { + if ((Descrizione == null)) { + throw new global::System.ArgumentNullException("Descrizione"); + } + else { + this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Descrizione)); + } + this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_IdxFamiglia)); + if ((Original_Descrizione == null)) { + throw new global::System.ArgumentNullException("Original_Descrizione"); + } + else { + this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Original_Descrizione)); + } + this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(IdxFamiglia)); + global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; + if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.UpdateCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.UpdateCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(string Descrizione, int Original_IdxFamiglia, string Original_Descrizione) { + return this.Update(Descrizione, Original_IdxFamiglia, Original_Descrizione, Original_IdxFamiglia); + } + } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class MacchineTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public MacchineTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "Macchine"; + tableMapping.ColumnMappings.Add("IdxMacchina", "IdxMacchina"); + tableMapping.ColumnMappings.Add("CodMacchina", "CodMacchina"); + tableMapping.ColumnMappings.Add("Nome", "Nome"); + tableMapping.ColumnMappings.Add("Descrizione", "Descrizione"); + tableMapping.ColumnMappings.Add("Note", "Note"); + tableMapping.ColumnMappings.Add("url", "url"); + tableMapping.ColumnMappings.Add("locazione", "locazione"); + this._adapter.TableMappings.Add(tableMapping); + this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.DeleteCommand.Connection = this.Connection; + this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Macchine] WHERE (([IdxMacchina] = @Original_IdxMacchina) AND ((@IsNull_CodMacchina = 1 AND [CodMacchina] IS NULL) OR ([CodMacchina] = @Original_CodMacchina)) AND ((@IsNull_Nome = 1 AND [Nome] IS NULL) OR ([Nome] = @Original_Nome)) AND ((@IsNull_Descrizione = 1 AND [Descrizione] IS NULL) OR ([Descrizione] = @Original_Descrizione)) AND ((@IsNull_Note = 1 AND [Note] IS NULL) OR ([Note] = @Original_Note)) AND ((@IsNull_url = 1 AND [url] IS NULL) OR ([url] = @Original_url)) AND ((@IsNull_locazione = 1 AND [locazione] IS NULL) OR ([locazione] = @Original_locazione)))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodMacchina", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMacchina", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMacchina", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Nome", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nome", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Nome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nome", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Descrizione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Descrizione", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Descrizione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Descrizione", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Note", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Note", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Note", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Note", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_url", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "url", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_url", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "url", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_locazione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "locazione", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_locazione", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "locazione", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.InsertCommand.Connection = this.Connection; + this._adapter.InsertCommand.CommandText = @" + INSERT INTO [dbo].[Macchine] ([IdxMacchina], [CodMacchina], [Nome], [Descrizione], [Note], [url], [locazione]) VALUES (@IdxMacchina, @CodMacchina, @Nome, @Descrizione, @Note, @url, @locazione); + SELECT IdxMacchina, CodMacchina, Nome, Descrizione, Note, url, locazione FROM Macchine WHERE (IdxMacchina = @IdxMacchina) + "; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Nome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nome", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Descrizione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Descrizione", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Note", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@url", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "url", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@locazione", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "locazione", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.UpdateCommand.Connection = this.Connection; + this._adapter.UpdateCommand.CommandText = @" + UPDATE [dbo].[Macchine] SET [IdxMacchina] = @IdxMacchina, [CodMacchina] = @CodMacchina, [Nome] = @Nome, [Descrizione] = @Descrizione, [Note] = @Note, [url] = @url, [locazione] = @locazione WHERE (([IdxMacchina] = @Original_IdxMacchina) AND ((@IsNull_CodMacchina = 1 AND [CodMacchina] IS NULL) OR ([CodMacchina] = @Original_CodMacchina)) AND ((@IsNull_Nome = 1 AND [Nome] IS NULL) OR ([Nome] = @Original_Nome)) AND ((@IsNull_Descrizione = 1 AND [Descrizione] IS NULL) OR ([Descrizione] = @Original_Descrizione)) AND ((@IsNull_Note = 1 AND [Note] IS NULL) OR ([Note] = @Original_Note)) AND ((@IsNull_url = 1 AND [url] IS NULL) OR ([url] = @Original_url)) AND ((@IsNull_locazione = 1 AND [locazione] IS NULL) OR ([locazione] = @Original_locazione))); + SELECT IdxMacchina, CodMacchina, Nome, Descrizione, Note, url, locazione FROM Macchine WHERE (IdxMacchina = @IdxMacchina) + "; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Nome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nome", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Descrizione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Descrizione", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Note", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@url", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "url", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@locazione", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "locazione", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodMacchina", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMacchina", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMacchina", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Nome", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nome", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Nome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nome", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Descrizione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Descrizione", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Descrizione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Descrizione", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Note", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Note", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Note", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Note", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_url", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "url", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_url", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "url", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_locazione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "locazione", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_locazione", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "locazione", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT IdxMacchina, CodMacchina, Nome, Descrizione, Note, url, locazione FROM dbo" + + ".Macchine"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "\r\n SELECT *\r\n FROM dbo.Macchine\r\n " + + " where IdxMacchina=@Idx\r\n "; + this._commandCollection[1].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Idx", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_applicazione.MacchineDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_applicazione.MacchineDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_applicazione.MacchineDataTable dataTable = new DS_applicazione.MacchineDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_applicazione.MacchineDataTable GetByIdx(string Idx) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((Idx == null)) { + throw new global::System.ArgumentNullException("Idx"); + } + else { + this.Adapter.SelectCommand.Parameters[0].Value = ((string)(Idx)); + } + DS_applicazione.MacchineDataTable dataTable = new DS_applicazione.MacchineDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_applicazione.MacchineDataTable dataTable) { + return this.Adapter.Update(dataTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_applicazione dataSet) { + return this.Adapter.Update(dataSet, "Macchine"); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow dataRow) { + return this.Adapter.Update(new global::System.Data.DataRow[] { + dataRow}); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow[] dataRows) { + return this.Adapter.Update(dataRows); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] + public virtual int Delete(string Original_IdxMacchina, string Original_CodMacchina, string Original_Nome, string Original_Descrizione, string Original_Note, string Original_url, string Original_locazione) { + if ((Original_IdxMacchina == null)) { + throw new global::System.ArgumentNullException("Original_IdxMacchina"); + } + else { + this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_IdxMacchina)); + } + if ((Original_CodMacchina == null)) { + this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_CodMacchina)); + } + if ((Original_Nome == null)) { + this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Nome)); + } + if ((Original_Descrizione == null)) { + this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Descrizione)); + } + if ((Original_Note == null)) { + this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_Note)); + } + if ((Original_url == null)) { + this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_url)); + } + if ((Original_locazione == null)) { + this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(Original_locazione)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; + if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.DeleteCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.DeleteCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] + public virtual int Insert(string IdxMacchina, string CodMacchina, string Nome, string Descrizione, string Note, string url, string locazione) { + if ((IdxMacchina == null)) { + throw new global::System.ArgumentNullException("IdxMacchina"); + } + else { + this.Adapter.InsertCommand.Parameters[0].Value = ((string)(IdxMacchina)); + } + if ((CodMacchina == null)) { + this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[1].Value = ((string)(CodMacchina)); + } + if ((Nome == null)) { + this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Nome)); + } + if ((Descrizione == null)) { + this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Descrizione)); + } + if ((Note == null)) { + this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Note)); + } + if ((url == null)) { + this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[5].Value = ((string)(url)); + } + if ((locazione == null)) { + this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[6].Value = ((string)(locazione)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; + if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.InsertCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.InsertCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(string IdxMacchina, string CodMacchina, string Nome, string Descrizione, string Note, string url, string locazione, string Original_IdxMacchina, string Original_CodMacchina, string Original_Nome, string Original_Descrizione, string Original_Note, string Original_url, string Original_locazione) { + if ((IdxMacchina == null)) { + throw new global::System.ArgumentNullException("IdxMacchina"); + } + else { + this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(IdxMacchina)); + } + if ((CodMacchina == null)) { + this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(CodMacchina)); + } + if ((Nome == null)) { + this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Nome)); + } + if ((Descrizione == null)) { + this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Descrizione)); + } + if ((Note == null)) { + this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Note)); + } + if ((url == null)) { + this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(url)); + } + if ((locazione == null)) { + this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(locazione)); + } + if ((Original_IdxMacchina == null)) { + throw new global::System.ArgumentNullException("Original_IdxMacchina"); + } + else { + this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_IdxMacchina)); + } + if ((Original_CodMacchina == null)) { + this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_CodMacchina)); + } + if ((Original_Nome == null)) { + this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_Nome)); + } + if ((Original_Descrizione == null)) { + this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_Descrizione)); + } + if ((Original_Note == null)) { + this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_Note)); + } + if ((Original_url == null)) { + this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Original_url)); + } + if ((Original_locazione == null)) { + this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_locazione)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; + if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.UpdateCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.UpdateCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(string CodMacchina, string Nome, string Descrizione, string Note, string url, string locazione, string Original_IdxMacchina, string Original_CodMacchina, string Original_Nome, string Original_Descrizione, string Original_Note, string Original_url, string Original_locazione) { + return this.Update(Original_IdxMacchina, CodMacchina, Nome, Descrizione, Note, url, locazione, Original_IdxMacchina, Original_CodMacchina, Original_Nome, Original_Descrizione, Original_Note, Original_url, Original_locazione); + } + } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class TransizioneStatiTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public TransizioneStatiTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "TransizioneStati"; + tableMapping.ColumnMappings.Add("IdxFamiglia", "IdxFamiglia"); + tableMapping.ColumnMappings.Add("IdxStato", "IdxStato"); + tableMapping.ColumnMappings.Add("IdxTipo", "IdxTipo"); + tableMapping.ColumnMappings.Add("next_IdxStato", "next_IdxStato"); + this._adapter.TableMappings.Add(tableMapping); + this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.DeleteCommand.Connection = this.Connection; + this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[TransizioneStati] WHERE (([IdxFamiglia] = @Original_IdxFamigli" + + "a) AND ([IdxStato] = @Original_IdxStato) AND ([IdxTipo] = @Original_IdxTipo) AND" + + " ([next_IdxStato] = @Original_next_IdxStato))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxFamiglia", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxFamiglia", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxTipo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxTipo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_next_IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "next_IdxStato", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.InsertCommand.Connection = this.Connection; + this._adapter.InsertCommand.CommandText = @" + INSERT INTO [dbo].[TransizioneStati] ([IdxFamiglia], [IdxStato], [IdxTipo], [next_IdxStato]) VALUES (@IdxFamiglia, @IdxStato, @IdxTipo, @next_IdxStato); + SELECT IdxFamiglia, IdxStato, IdxTipo, next_IdxStato FROM TransizioneStati WHERE (IdxFamiglia = @IdxFamiglia) AND (IdxStato = @IdxStato) AND (IdxTipo = @IdxTipo) + "; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxFamiglia", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxFamiglia", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxTipo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxTipo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@next_IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "next_IdxStato", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.UpdateCommand.Connection = this.Connection; + this._adapter.UpdateCommand.CommandText = @" + UPDATE [dbo].[TransizioneStati] SET [IdxFamiglia] = @IdxFamiglia, [IdxStato] = @IdxStato, [IdxTipo] = @IdxTipo, [next_IdxStato] = @next_IdxStato WHERE (([IdxFamiglia] = @Original_IdxFamiglia) AND ([IdxStato] = @Original_IdxStato) AND ([IdxTipo] = @Original_IdxTipo) AND ([next_IdxStato] = @Original_next_IdxStato)); + SELECT IdxFamiglia, IdxStato, IdxTipo, next_IdxStato FROM TransizioneStati WHERE (IdxFamiglia = @IdxFamiglia) AND (IdxStato = @IdxStato) AND (IdxTipo = @IdxTipo) + "; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxFamiglia", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxFamiglia", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxTipo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxTipo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@next_IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "next_IdxStato", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxFamiglia", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxFamiglia", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxTipo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxTipo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_next_IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "next_IdxStato", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[3]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT IdxFamiglia, IdxStato, IdxTipo, next_IdxStato FROM dbo.TransizioneStati"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "dbo.stp_TS_getByIdxMacchIdxTipoEv"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxTipo", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[2].Connection = this.Connection; + this._commandCollection[2].CommandText = "dbo.stp_TS_getUserForcedTrans"; + this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxTipo", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_applicazione.TransizioneStatiDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_applicazione.TransizioneStatiDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_applicazione.TransizioneStatiDataTable dataTable = new DS_applicazione.TransizioneStatiDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_applicazione.TransizioneStatiDataTable GetHwTransitions(string IdxMacchina, global::System.Nullable IdxTipo) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((IdxMacchina == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(IdxMacchina)); + } + if ((IdxTipo.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((int)(IdxTipo.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + DS_applicazione.TransizioneStatiDataTable dataTable = new DS_applicazione.TransizioneStatiDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_applicazione.TransizioneStatiDataTable GetUserForcedTransitions(string IdxMacchina, global::System.Nullable IdxTipo) { + this.Adapter.SelectCommand = this.CommandCollection[2]; + if ((IdxMacchina == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(IdxMacchina)); + } + if ((IdxTipo.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((int)(IdxTipo.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + DS_applicazione.TransizioneStatiDataTable dataTable = new DS_applicazione.TransizioneStatiDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_applicazione.TransizioneStatiDataTable dataTable) { + return this.Adapter.Update(dataTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_applicazione dataSet) { + return this.Adapter.Update(dataSet, "TransizioneStati"); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow dataRow) { + return this.Adapter.Update(new global::System.Data.DataRow[] { + dataRow}); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow[] dataRows) { + return this.Adapter.Update(dataRows); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] + public virtual int Delete(int Original_IdxFamiglia, int Original_IdxStato, int Original_IdxTipo, int Original_next_IdxStato) { + this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdxFamiglia)); + this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_IdxStato)); + this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_IdxTipo)); + this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_next_IdxStato)); + global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; + if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.DeleteCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.DeleteCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] + public virtual int Insert(int IdxFamiglia, int IdxStato, int IdxTipo, int next_IdxStato) { + this.Adapter.InsertCommand.Parameters[0].Value = ((int)(IdxFamiglia)); + this.Adapter.InsertCommand.Parameters[1].Value = ((int)(IdxStato)); + this.Adapter.InsertCommand.Parameters[2].Value = ((int)(IdxTipo)); + this.Adapter.InsertCommand.Parameters[3].Value = ((int)(next_IdxStato)); + global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; + if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.InsertCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.InsertCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(int IdxFamiglia, int IdxStato, int IdxTipo, int next_IdxStato, int Original_IdxFamiglia, int Original_IdxStato, int Original_IdxTipo, int Original_next_IdxStato) { + this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(IdxFamiglia)); + this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(IdxStato)); + this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(IdxTipo)); + this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(next_IdxStato)); + this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_IdxFamiglia)); + this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_IdxStato)); + this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_IdxTipo)); + this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_next_IdxStato)); + global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; + if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.UpdateCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.UpdateCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(int next_IdxStato, int Original_IdxFamiglia, int Original_IdxStato, int Original_IdxTipo, int Original_next_IdxStato) { + return this.Update(Original_IdxFamiglia, Original_IdxStato, Original_IdxTipo, next_IdxStato, Original_IdxFamiglia, Original_IdxStato, Original_IdxTipo, Original_next_IdxStato); + } + } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class StatoMacchineTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public StatoMacchineTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "StatoMacchine"; + tableMapping.ColumnMappings.Add("IdxMacchina", "IdxMacchina"); + tableMapping.ColumnMappings.Add("IdxStato", "IdxStato"); + tableMapping.ColumnMappings.Add("InizioStato", "InizioStato"); + tableMapping.ColumnMappings.Add("Value", "Value"); + tableMapping.ColumnMappings.Add("MatricolaKanban", "MatricolaKanban"); + tableMapping.ColumnMappings.Add("KanbanCode", "KanbanCode"); + tableMapping.ColumnMappings.Add("TempoCicloBase", "TempoCicloBase"); + tableMapping.ColumnMappings.Add("PzPalletProd", "PzPalletProd"); + tableMapping.ColumnMappings.Add("MatrOpr", "MatrOpr"); + tableMapping.ColumnMappings.Add("pallet", "pallet"); + this._adapter.TableMappings.Add(tableMapping); + this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.DeleteCommand.Connection = this.Connection; + this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[StatoMacchine] WHERE (([IdxMacchina] = @Original_IdxMacchina) AND ([IdxStato] = @Original_IdxStato) AND ((@IsNull_InizioStato = 1 AND [InizioStato] IS NULL) OR ([InizioStato] = @Original_InizioStato)) AND ((@IsNull_Value = 1 AND [Value] IS NULL) OR ([Value] = @Original_Value)) AND ((@IsNull_MatricolaKanban = 1 AND [MatricolaKanban] IS NULL) OR ([MatricolaKanban] = @Original_MatricolaKanban)) AND ((@IsNull_KanbanCode = 1 AND [KanbanCode] IS NULL) OR ([KanbanCode] = @Original_KanbanCode)) AND ((@IsNull_TempoCicloBase = 1 AND [TempoCicloBase] IS NULL) OR ([TempoCicloBase] = @Original_TempoCicloBase)) AND ((@IsNull_PzPalletProd = 1 AND [PzPalletProd] IS NULL) OR ([PzPalletProd] = @Original_PzPalletProd)) AND ((@IsNull_MatrOpr = 1 AND [MatrOpr] IS NULL) OR ([MatrOpr] = @Original_MatrOpr)) AND ((@IsNull_pallet = 1 AND [pallet] IS NULL) OR ([pallet] = @Original_pallet)))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_InizioStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioStato", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_InizioStato", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioStato", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Value", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Value", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Value", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Value", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_MatricolaKanban", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatricolaKanban", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MatricolaKanban", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatricolaKanban", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_KanbanCode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KanbanCode", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_KanbanCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KanbanCode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TempoCicloBase", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TempoCicloBase", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TempoCicloBase", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TempoCicloBase", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PzPalletProd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PzPalletProd", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PzPalletProd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PzPalletProd", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_MatrOpr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrOpr", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MatrOpr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrOpr", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pallet", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pallet", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pallet", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pallet", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.InsertCommand.Connection = this.Connection; + this._adapter.InsertCommand.CommandText = @" + INSERT INTO [dbo].[StatoMacchine] ([IdxMacchina], [IdxStato], [InizioStato], [Value], [MatricolaKanban], [KanbanCode], [TempoCicloBase], [PzPalletProd], [MatrOpr], [pallet]) VALUES (@IdxMacchina, @IdxStato, @InizioStato, @Value, @MatricolaKanban, @KanbanCode, @TempoCicloBase, @PzPalletProd, @MatrOpr, @pallet); + SELECT IdxMacchina, IdxStato, InizioStato, Value, MatricolaKanban, KanbanCode, TempoCicloBase, PzPalletProd, MatrOpr, pallet FROM StatoMacchine WHERE (IdxMacchina = @IdxMacchina) + "; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@InizioStato", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioStato", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Value", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Value", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatricolaKanban", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatricolaKanban", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@KanbanCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KanbanCode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TempoCicloBase", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TempoCicloBase", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PzPalletProd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PzPalletProd", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrOpr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrOpr", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pallet", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pallet", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.UpdateCommand.Connection = this.Connection; + this._adapter.UpdateCommand.CommandText = @" + UPDATE [dbo].[StatoMacchine] SET [IdxMacchina] = @IdxMacchina, [IdxStato] = @IdxStato, [InizioStato] = @InizioStato, [Value] = @Value, [MatricolaKanban] = @MatricolaKanban, [KanbanCode] = @KanbanCode, [TempoCicloBase] = @TempoCicloBase, [PzPalletProd] = @PzPalletProd, [MatrOpr] = @MatrOpr, [pallet] = @pallet WHERE (([IdxMacchina] = @Original_IdxMacchina) AND ([IdxStato] = @Original_IdxStato) AND ((@IsNull_InizioStato = 1 AND [InizioStato] IS NULL) OR ([InizioStato] = @Original_InizioStato)) AND ((@IsNull_Value = 1 AND [Value] IS NULL) OR ([Value] = @Original_Value)) AND ((@IsNull_MatricolaKanban = 1 AND [MatricolaKanban] IS NULL) OR ([MatricolaKanban] = @Original_MatricolaKanban)) AND ((@IsNull_KanbanCode = 1 AND [KanbanCode] IS NULL) OR ([KanbanCode] = @Original_KanbanCode)) AND ((@IsNull_TempoCicloBase = 1 AND [TempoCicloBase] IS NULL) OR ([TempoCicloBase] = @Original_TempoCicloBase)) AND ((@IsNull_PzPalletProd = 1 AND [PzPalletProd] IS NULL) OR ([PzPalletProd] = @Original_PzPalletProd)) AND ((@IsNull_MatrOpr = 1 AND [MatrOpr] IS NULL) OR ([MatrOpr] = @Original_MatrOpr)) AND ((@IsNull_pallet = 1 AND [pallet] IS NULL) OR ([pallet] = @Original_pallet))); + SELECT IdxMacchina, IdxStato, InizioStato, Value, MatricolaKanban, KanbanCode, TempoCicloBase, PzPalletProd, MatrOpr, pallet FROM StatoMacchine WHERE (IdxMacchina = @IdxMacchina) + "; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@InizioStato", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioStato", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Value", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Value", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatricolaKanban", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatricolaKanban", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@KanbanCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KanbanCode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TempoCicloBase", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TempoCicloBase", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PzPalletProd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PzPalletProd", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrOpr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrOpr", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pallet", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pallet", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_InizioStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioStato", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_InizioStato", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioStato", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Value", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Value", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Value", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Value", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_MatricolaKanban", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatricolaKanban", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MatricolaKanban", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatricolaKanban", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_KanbanCode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KanbanCode", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_KanbanCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KanbanCode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TempoCicloBase", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TempoCicloBase", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TempoCicloBase", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TempoCicloBase", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PzPalletProd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PzPalletProd", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PzPalletProd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PzPalletProd", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_MatrOpr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrOpr", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MatrOpr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrOpr", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pallet", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pallet", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pallet", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pallet", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[4]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT * FROM dbo.StatoMacchine"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "SELECT IdxMacchina, IdxStato, InizioStato, KanbanCode, MatrOpr, MatricolaKanban, " + + "PzPalletProd, TempoCicloBase, Value, pallet FROM StatoMacchine WHERE (IdxMacchin" + + "a = @IdxMacchina)"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[2].Connection = this.Connection; + this._commandCollection[2].CommandText = "dbo.stp_STM_setInsEnabled"; + this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@insEnabled", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[3].Connection = this.Connection; + this._commandCollection[3].CommandText = "dbo.stp_STM_updateOper"; + this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@matrOpr", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_applicazione.StatoMacchineDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_applicazione.StatoMacchineDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_applicazione.StatoMacchineDataTable dataTable = new DS_applicazione.StatoMacchineDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_applicazione.StatoMacchineDataTable GetDataByIdxMacchina(string IdxMacchina) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((IdxMacchina == null)) { + throw new global::System.ArgumentNullException("IdxMacchina"); + } + else { + this.Adapter.SelectCommand.Parameters[0].Value = ((string)(IdxMacchina)); + } + DS_applicazione.StatoMacchineDataTable dataTable = new DS_applicazione.StatoMacchineDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_applicazione.StatoMacchineDataTable dataTable) { + return this.Adapter.Update(dataTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_applicazione dataSet) { + return this.Adapter.Update(dataSet, "StatoMacchine"); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow dataRow) { + return this.Adapter.Update(new global::System.Data.DataRow[] { + dataRow}); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow[] dataRows) { + return this.Adapter.Update(dataRows); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] + public virtual int Delete(string Original_IdxMacchina, int Original_IdxStato, global::System.Nullable Original_InizioStato, string Original_Value, string Original_MatricolaKanban, string Original_KanbanCode, global::System.Nullable Original_TempoCicloBase, global::System.Nullable Original_PzPalletProd, global::System.Nullable Original_MatrOpr, string Original_pallet) { + if ((Original_IdxMacchina == null)) { + throw new global::System.ArgumentNullException("Original_IdxMacchina"); + } + else { + this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_IdxMacchina)); + } + this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_IdxStato)); + if ((Original_InizioStato.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[3].Value = ((System.DateTime)(Original_InizioStato.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value; + } + if ((Original_Value == null)) { + this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_Value)); + } + if ((Original_MatricolaKanban == null)) { + this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[7].Value = ((string)(Original_MatricolaKanban)); + } + if ((Original_KanbanCode == null)) { + this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[9].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[9].Value = ((string)(Original_KanbanCode)); + } + if ((Original_TempoCicloBase.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[10].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[11].Value = ((double)(Original_TempoCicloBase.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[10].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[11].Value = global::System.DBNull.Value; + } + if ((Original_PzPalletProd.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[12].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[13].Value = ((int)(Original_PzPalletProd.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[12].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[13].Value = global::System.DBNull.Value; + } + if ((Original_MatrOpr.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[14].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[15].Value = ((int)(Original_MatrOpr.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[14].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[15].Value = global::System.DBNull.Value; + } + if ((Original_pallet == null)) { + this.Adapter.DeleteCommand.Parameters[16].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[17].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[16].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[17].Value = ((string)(Original_pallet)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; + if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.DeleteCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.DeleteCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] + public virtual int Insert(string IdxMacchina, int IdxStato, global::System.Nullable InizioStato, string Value, string MatricolaKanban, string KanbanCode, global::System.Nullable TempoCicloBase, global::System.Nullable PzPalletProd, global::System.Nullable MatrOpr, string pallet) { + if ((IdxMacchina == null)) { + throw new global::System.ArgumentNullException("IdxMacchina"); + } + else { + this.Adapter.InsertCommand.Parameters[0].Value = ((string)(IdxMacchina)); + } + this.Adapter.InsertCommand.Parameters[1].Value = ((int)(IdxStato)); + if ((InizioStato.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[2].Value = ((System.DateTime)(InizioStato.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((Value == null)) { + this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Value)); + } + if ((MatricolaKanban == null)) { + this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[4].Value = ((string)(MatricolaKanban)); + } + if ((KanbanCode == null)) { + this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[5].Value = ((string)(KanbanCode)); + } + if ((TempoCicloBase.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[6].Value = ((double)(TempoCicloBase.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value; + } + if ((PzPalletProd.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[7].Value = ((int)(PzPalletProd.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value; + } + if ((MatrOpr.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[8].Value = ((int)(MatrOpr.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value; + } + if ((pallet == null)) { + this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[9].Value = ((string)(pallet)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; + if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.InsertCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.InsertCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update( + string IdxMacchina, + int IdxStato, + global::System.Nullable InizioStato, + string Value, + string MatricolaKanban, + string KanbanCode, + global::System.Nullable TempoCicloBase, + global::System.Nullable PzPalletProd, + global::System.Nullable MatrOpr, + string pallet, + string Original_IdxMacchina, + int Original_IdxStato, + global::System.Nullable Original_InizioStato, + string Original_Value, + string Original_MatricolaKanban, + string Original_KanbanCode, + global::System.Nullable Original_TempoCicloBase, + global::System.Nullable Original_PzPalletProd, + global::System.Nullable Original_MatrOpr, + string Original_pallet) { + if ((IdxMacchina == null)) { + throw new global::System.ArgumentNullException("IdxMacchina"); + } + else { + this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(IdxMacchina)); + } + this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(IdxStato)); + if ((InizioStato.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[2].Value = ((System.DateTime)(InizioStato.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((Value == null)) { + this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Value)); + } + if ((MatricolaKanban == null)) { + this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(MatricolaKanban)); + } + if ((KanbanCode == null)) { + this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(KanbanCode)); + } + if ((TempoCicloBase.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[6].Value = ((double)(TempoCicloBase.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value; + } + if ((PzPalletProd.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(PzPalletProd.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value; + } + if ((MatrOpr.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(MatrOpr.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value; + } + if ((pallet == null)) { + this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(pallet)); + } + if ((Original_IdxMacchina == null)) { + throw new global::System.ArgumentNullException("Original_IdxMacchina"); + } + else { + this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_IdxMacchina)); + } + this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(Original_IdxStato)); + if ((Original_InizioStato.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[13].Value = ((System.DateTime)(Original_InizioStato.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value; + } + if ((Original_Value == null)) { + this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_Value)); + } + if ((Original_MatricolaKanban == null)) { + this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Original_MatricolaKanban)); + } + if ((Original_KanbanCode == null)) { + this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_KanbanCode)); + } + if ((Original_TempoCicloBase.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[21].Value = ((double)(Original_TempoCicloBase.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value; + } + if ((Original_PzPalletProd.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[23].Value = ((int)(Original_PzPalletProd.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value; + } + if ((Original_MatrOpr.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[25].Value = ((int)(Original_MatrOpr.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[25].Value = global::System.DBNull.Value; + } + if ((Original_pallet == null)) { + this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[27].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[27].Value = ((string)(Original_pallet)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; + if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.UpdateCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.UpdateCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update( + int IdxStato, + global::System.Nullable InizioStato, + string Value, + string MatricolaKanban, + string KanbanCode, + global::System.Nullable TempoCicloBase, + global::System.Nullable PzPalletProd, + global::System.Nullable MatrOpr, + string pallet, + string Original_IdxMacchina, + int Original_IdxStato, + global::System.Nullable Original_InizioStato, + string Original_Value, + string Original_MatricolaKanban, + string Original_KanbanCode, + global::System.Nullable Original_TempoCicloBase, + global::System.Nullable Original_PzPalletProd, + global::System.Nullable Original_MatrOpr, + string Original_pallet) { + return this.Update(Original_IdxMacchina, IdxStato, InizioStato, Value, MatricolaKanban, KanbanCode, TempoCicloBase, PzPalletProd, MatrOpr, pallet, Original_IdxMacchina, Original_IdxStato, Original_InizioStato, Original_Value, Original_MatricolaKanban, Original_KanbanCode, Original_TempoCicloBase, Original_PzPalletProd, Original_MatrOpr, Original_pallet); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int setInsEnabled(string idxMacchina, global::System.Nullable insEnabled) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[2]; + if ((idxMacchina == null)) { + command.Parameters[1].Value = global::System.DBNull.Value; + } + else { + command.Parameters[1].Value = ((string)(idxMacchina)); + } + if ((insEnabled.HasValue == true)) { + command.Parameters[2].Value = ((bool)(insEnabled.Value)); + } + else { + command.Parameters[2].Value = global::System.DBNull.Value; + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int updateOper(string idxMacchina, global::System.Nullable matrOpr) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3]; + if ((idxMacchina == null)) { + command.Parameters[1].Value = global::System.DBNull.Value; + } + else { + command.Parameters[1].Value = ((string)(idxMacchina)); + } + if ((matrOpr.HasValue == true)) { + command.Parameters[2].Value = ((int)(matrOpr.Value)); + } + else { + command.Parameters[2].Value = global::System.DBNull.Value; + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class AnagraficaStatiTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagraficaStatiTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "AnagraficaStati"; + tableMapping.ColumnMappings.Add("IdxStato", "IdxStato"); + tableMapping.ColumnMappings.Add("Descrizione", "Descrizione"); + tableMapping.ColumnMappings.Add("Semaforo", "Semaforo"); + this._adapter.TableMappings.Add(tableMapping); + this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.DeleteCommand.Connection = this.Connection; + this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[AnagraficaStati] WHERE (([IdxStato] = @Original_IdxStato) AND ((@IsNull_Descrizione = 1 AND [Descrizione] IS NULL) OR ([Descrizione] = @Original_Descrizione)) AND ((@IsNull_Semaforo = 1 AND [Semaforo] IS NULL) OR ([Semaforo] = @Original_Semaforo)))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Descrizione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Descrizione", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Descrizione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Descrizione", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Semaforo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Semaforo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Semaforo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Semaforo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.InsertCommand.Connection = this.Connection; + this._adapter.InsertCommand.CommandText = @" + INSERT INTO [dbo].[AnagraficaStati] ([IdxStato], [Descrizione], [Semaforo]) VALUES (@IdxStato, @Descrizione, @Semaforo); + SELECT IdxStato, Descrizione, Semaforo FROM AnagraficaStati WHERE (IdxStato = @IdxStato) + "; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Descrizione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Descrizione", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Semaforo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Semaforo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.UpdateCommand.Connection = this.Connection; + this._adapter.UpdateCommand.CommandText = @" + UPDATE [dbo].[AnagraficaStati] SET [IdxStato] = @IdxStato, [Descrizione] = @Descrizione, [Semaforo] = @Semaforo WHERE (([IdxStato] = @Original_IdxStato) AND ((@IsNull_Descrizione = 1 AND [Descrizione] IS NULL) OR ([Descrizione] = @Original_Descrizione)) AND ((@IsNull_Semaforo = 1 AND [Semaforo] IS NULL) OR ([Semaforo] = @Original_Semaforo))); + SELECT IdxStato, Descrizione, Semaforo FROM AnagraficaStati WHERE (IdxStato = @IdxStato) + "; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Descrizione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Descrizione", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Semaforo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Semaforo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Descrizione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Descrizione", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Descrizione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Descrizione", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Semaforo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Semaforo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Semaforo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Semaforo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT IdxStato, Descrizione, Semaforo FROM dbo.AnagraficaStati"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "\r\n SELECT *\r\n FROM dbo.AnagraficaStati\r" + + "\n WHERE IdxStato=@Idx\r\n "; + this._commandCollection[1].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Idx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_applicazione.AnagraficaStatiDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_applicazione.AnagraficaStatiDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_applicazione.AnagraficaStatiDataTable dataTable = new DS_applicazione.AnagraficaStatiDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_applicazione.AnagraficaStatiDataTable GetByIdx(int Idx) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + this.Adapter.SelectCommand.Parameters[0].Value = ((int)(Idx)); + DS_applicazione.AnagraficaStatiDataTable dataTable = new DS_applicazione.AnagraficaStatiDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_applicazione.AnagraficaStatiDataTable dataTable) { + return this.Adapter.Update(dataTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_applicazione dataSet) { + return this.Adapter.Update(dataSet, "AnagraficaStati"); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow dataRow) { + return this.Adapter.Update(new global::System.Data.DataRow[] { + dataRow}); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow[] dataRows) { + return this.Adapter.Update(dataRows); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] + public virtual int Delete(int Original_IdxStato, string Original_Descrizione, string Original_Semaforo) { + this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdxStato)); + if ((Original_Descrizione == null)) { + this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Descrizione)); + } + if ((Original_Semaforo == null)) { + this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Semaforo)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; + if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.DeleteCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.DeleteCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] + public virtual int Insert(int IdxStato, string Descrizione, string Semaforo) { + this.Adapter.InsertCommand.Parameters[0].Value = ((int)(IdxStato)); + if ((Descrizione == null)) { + this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Descrizione)); + } + if ((Semaforo == null)) { + this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Semaforo)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; + if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.InsertCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.InsertCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(int IdxStato, string Descrizione, string Semaforo, int Original_IdxStato, string Original_Descrizione, string Original_Semaforo) { + this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(IdxStato)); + if ((Descrizione == null)) { + this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Descrizione)); + } + if ((Semaforo == null)) { + this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Semaforo)); + } + this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_IdxStato)); + if ((Original_Descrizione == null)) { + this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_Descrizione)); + } + if ((Original_Semaforo == null)) { + this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Semaforo)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; + if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.UpdateCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.UpdateCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(string Descrizione, string Semaforo, int Original_IdxStato, string Original_Descrizione, string Original_Semaforo) { + return this.Update(Original_IdxStato, Descrizione, Semaforo, Original_IdxStato, Original_Descrizione, Original_Semaforo); + } + } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class KanbanTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public KanbanTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "Kanban"; + tableMapping.ColumnMappings.Add("MatricolaKanban", "MatricolaKanban"); + tableMapping.ColumnMappings.Add("KanbanCode", "KanbanCode"); + tableMapping.ColumnMappings.Add("TempoCicloBase", "TempoCicloBase"); + tableMapping.ColumnMappings.Add("PzPallet", "PzPallet"); + tableMapping.ColumnMappings.Add("CodArticolo", "CodArticolo"); + this._adapter.TableMappings.Add(tableMapping); + this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.DeleteCommand.Connection = this.Connection; + this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Kanban] WHERE (([MatricolaKanban] = @Original_MatricolaKanban) AND ((@IsNull_KanbanCode = 1 AND [KanbanCode] IS NULL) OR ([KanbanCode] = @Original_KanbanCode)) AND ((@IsNull_TempoCicloBase = 1 AND [TempoCicloBase] IS NULL) OR ([TempoCicloBase] = @Original_TempoCicloBase)) AND ((@IsNull_PzPallet = 1 AND [PzPallet] IS NULL) OR ([PzPallet] = @Original_PzPallet)) AND ((@IsNull_CodArticolo = 1 AND [CodArticolo] IS NULL) OR ([CodArticolo] = @Original_CodArticolo)))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MatricolaKanban", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatricolaKanban", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_KanbanCode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KanbanCode", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_KanbanCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KanbanCode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TempoCicloBase", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TempoCicloBase", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TempoCicloBase", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TempoCicloBase", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PzPallet", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PzPallet", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PzPallet", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PzPallet", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodArticolo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.InsertCommand.Connection = this.Connection; + this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Kanban] ([MatricolaKanban], [KanbanCode], [TempoCicloBase], [PzPallet], [CodArticolo]) VALUES (@MatricolaKanban, @KanbanCode, @TempoCicloBase, @PzPallet, @CodArticolo); +SELECT MatricolaKanban, KanbanCode, TempoCicloBase, PzPallet, CodArticolo FROM Kanban WHERE (MatricolaKanban = @MatricolaKanban)"; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatricolaKanban", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatricolaKanban", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@KanbanCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KanbanCode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TempoCicloBase", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TempoCicloBase", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PzPallet", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PzPallet", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.UpdateCommand.Connection = this.Connection; + this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Kanban] SET [MatricolaKanban] = @MatricolaKanban, [KanbanCode] = @KanbanCode, [TempoCicloBase] = @TempoCicloBase, [PzPallet] = @PzPallet, [CodArticolo] = @CodArticolo WHERE (([MatricolaKanban] = @Original_MatricolaKanban) AND ((@IsNull_KanbanCode = 1 AND [KanbanCode] IS NULL) OR ([KanbanCode] = @Original_KanbanCode)) AND ((@IsNull_TempoCicloBase = 1 AND [TempoCicloBase] IS NULL) OR ([TempoCicloBase] = @Original_TempoCicloBase)) AND ((@IsNull_PzPallet = 1 AND [PzPallet] IS NULL) OR ([PzPallet] = @Original_PzPallet)) AND ((@IsNull_CodArticolo = 1 AND [CodArticolo] IS NULL) OR ([CodArticolo] = @Original_CodArticolo))); +SELECT MatricolaKanban, KanbanCode, TempoCicloBase, PzPallet, CodArticolo FROM Kanban WHERE (MatricolaKanban = @MatricolaKanban)"; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatricolaKanban", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatricolaKanban", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@KanbanCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KanbanCode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TempoCicloBase", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TempoCicloBase", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PzPallet", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PzPallet", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MatricolaKanban", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatricolaKanban", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_KanbanCode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KanbanCode", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_KanbanCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KanbanCode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TempoCicloBase", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TempoCicloBase", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TempoCicloBase", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TempoCicloBase", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PzPallet", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PzPallet", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PzPallet", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PzPallet", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodArticolo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[4]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT *\r\n FROM dbo.Kanban"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "SELECT *\r\n FROM dbo.Kanban\r\nwhere CodArticolo = @CodArticolo "; + this._commandCollection[1].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[2].Connection = this.Connection; + this._commandCollection[2].CommandText = "SELECT MatricolaKanban, KanbanCode, TempoCicloBase, PzPallet, CodArticolo\r" + + "\nFROM Kanban\r\nWHERE (MatricolaKanban = @codice)"; + this._commandCollection[2].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@codice", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "MatricolaKanban", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[3].Connection = this.Connection; + this._commandCollection[3].CommandText = "INSERT INTO Kanban\r\n (MatricolaKanban, KanbanCode, TempoC" + + "icloBase, PzPallet, CodArticolo)\r\nVALUES (@nuovoCodice,@nuovoCodice, 1, 1" + + ",@nuovoCodice)"; + this._commandCollection[3].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@nuovoCodice", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_applicazione.KanbanDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_applicazione.KanbanDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_applicazione.KanbanDataTable dataTable = new DS_applicazione.KanbanDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_applicazione.KanbanDataTable getByCodArt(string CodArticolo) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((CodArticolo == null)) { + this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[0].Value = ((string)(CodArticolo)); + } + DS_applicazione.KanbanDataTable dataTable = new DS_applicazione.KanbanDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_applicazione.KanbanDataTable GetDataByKanbanMatrCode(string codice) { + this.Adapter.SelectCommand = this.CommandCollection[2]; + if ((codice == null)) { + throw new global::System.ArgumentNullException("codice"); + } + else { + this.Adapter.SelectCommand.Parameters[0].Value = ((string)(codice)); + } + DS_applicazione.KanbanDataTable dataTable = new DS_applicazione.KanbanDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_applicazione.KanbanDataTable dataTable) { + return this.Adapter.Update(dataTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_applicazione dataSet) { + return this.Adapter.Update(dataSet, "Kanban"); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow dataRow) { + return this.Adapter.Update(new global::System.Data.DataRow[] { + dataRow}); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow[] dataRows) { + return this.Adapter.Update(dataRows); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] + public virtual int Delete(string Original_MatricolaKanban, string Original_KanbanCode, global::System.Nullable Original_TempoCicloBase, global::System.Nullable Original_PzPallet, string Original_CodArticolo) { + if ((Original_MatricolaKanban == null)) { + throw new global::System.ArgumentNullException("Original_MatricolaKanban"); + } + else { + this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_MatricolaKanban)); + } + if ((Original_KanbanCode == null)) { + this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_KanbanCode)); + } + if ((Original_TempoCicloBase.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[4].Value = ((double)(Original_TempoCicloBase.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value; + } + if ((Original_PzPallet.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_PzPallet.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value; + } + if ((Original_CodArticolo == null)) { + this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_CodArticolo)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; + if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.DeleteCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.DeleteCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] + public virtual int Insert(string MatricolaKanban, string KanbanCode, global::System.Nullable TempoCicloBase, global::System.Nullable PzPallet, string CodArticolo) { + if ((MatricolaKanban == null)) { + throw new global::System.ArgumentNullException("MatricolaKanban"); + } + else { + this.Adapter.InsertCommand.Parameters[0].Value = ((string)(MatricolaKanban)); + } + if ((KanbanCode == null)) { + this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[1].Value = ((string)(KanbanCode)); + } + if ((TempoCicloBase.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[2].Value = ((double)(TempoCicloBase.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((PzPallet.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[3].Value = ((int)(PzPallet.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value; + } + if ((CodArticolo == null)) { + this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[4].Value = ((string)(CodArticolo)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; + if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.InsertCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.InsertCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(string MatricolaKanban, string KanbanCode, global::System.Nullable TempoCicloBase, global::System.Nullable PzPallet, string CodArticolo, string Original_MatricolaKanban, string Original_KanbanCode, global::System.Nullable Original_TempoCicloBase, global::System.Nullable Original_PzPallet, string Original_CodArticolo) { + if ((MatricolaKanban == null)) { + throw new global::System.ArgumentNullException("MatricolaKanban"); + } + else { + this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(MatricolaKanban)); + } + if ((KanbanCode == null)) { + this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(KanbanCode)); + } + if ((TempoCicloBase.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[2].Value = ((double)(TempoCicloBase.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((PzPallet.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(PzPallet.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value; + } + if ((CodArticolo == null)) { + this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(CodArticolo)); + } + if ((Original_MatricolaKanban == null)) { + throw new global::System.ArgumentNullException("Original_MatricolaKanban"); + } + else { + this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_MatricolaKanban)); + } + if ((Original_KanbanCode == null)) { + this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_KanbanCode)); + } + if ((Original_TempoCicloBase.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[9].Value = ((double)(Original_TempoCicloBase.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value; + } + if ((Original_PzPallet.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(Original_PzPallet.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value; + } + if ((Original_CodArticolo == null)) { + this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_CodArticolo)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; + if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.UpdateCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.UpdateCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(string KanbanCode, global::System.Nullable TempoCicloBase, global::System.Nullable PzPallet, string CodArticolo, string Original_MatricolaKanban, string Original_KanbanCode, global::System.Nullable Original_TempoCicloBase, global::System.Nullable Original_PzPallet, string Original_CodArticolo) { + return this.Update(Original_MatricolaKanban, KanbanCode, TempoCicloBase, PzPallet, CodArticolo, Original_MatricolaKanban, Original_KanbanCode, Original_TempoCicloBase, Original_PzPallet, Original_CodArticolo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, false)] + public virtual int InsertUndefinedKanban(string nuovoCodice) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3]; + if ((nuovoCodice == null)) { + command.Parameters[0].Value = global::System.DBNull.Value; + } + else { + command.Parameters[0].Value = ((string)(nuovoCodice)); + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class EventListTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public EventListTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "EventList"; + tableMapping.ColumnMappings.Add("IdxMacchina", "IdxMacchina"); + tableMapping.ColumnMappings.Add("InizioStato", "InizioStato"); + tableMapping.ColumnMappings.Add("IdxTipo", "IdxTipo"); + tableMapping.ColumnMappings.Add("MatricolaKanban", "MatricolaKanban"); + tableMapping.ColumnMappings.Add("Value", "Value"); + tableMapping.ColumnMappings.Add("MatrOpr", "MatrOpr"); + tableMapping.ColumnMappings.Add("pallet", "pallet"); + this._adapter.TableMappings.Add(tableMapping); + this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.DeleteCommand.Connection = this.Connection; + this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[EventList] WHERE (([IdxMacchina] = @Original_IdxMacchina) AND ([InizioStato] = @Original_InizioStato) AND ([IdxTipo] = @Original_IdxTipo) AND ((@IsNull_MatricolaKanban = 1 AND [MatricolaKanban] IS NULL) OR ([MatricolaKanban] = @Original_MatricolaKanban)) AND ((@IsNull_Value = 1 AND [Value] IS NULL) OR ([Value] = @Original_Value)) AND ((@IsNull_MatrOpr = 1 AND [MatrOpr] IS NULL) OR ([MatrOpr] = @Original_MatrOpr)) AND ((@IsNull_pallet = 1 AND [pallet] IS NULL) OR ([pallet] = @Original_pallet)))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_InizioStato", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioStato", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxTipo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxTipo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_MatricolaKanban", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatricolaKanban", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MatricolaKanban", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatricolaKanban", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Value", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Value", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Value", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Value", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_MatrOpr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrOpr", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MatrOpr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrOpr", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pallet", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pallet", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pallet", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pallet", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.InsertCommand.Connection = this.Connection; + this._adapter.InsertCommand.CommandText = @" + INSERT INTO [dbo].[EventList] ([IdxMacchina], [InizioStato], [IdxTipo], [MatricolaKanban], [Value], [MatrOpr], [pallet]) VALUES (@IdxMacchina, @InizioStato, @IdxTipo, @MatricolaKanban, @Value, @MatrOpr, @pallet); + SELECT IdxMacchina, InizioStato, IdxTipo, MatricolaKanban, Value, MatrOpr, pallet FROM EventList WHERE (IdxMacchina = @IdxMacchina) AND (IdxTipo = @IdxTipo) AND (InizioStato = @InizioStato) + "; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@InizioStato", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioStato", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxTipo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxTipo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatricolaKanban", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatricolaKanban", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Value", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Value", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrOpr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrOpr", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pallet", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pallet", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.UpdateCommand.Connection = this.Connection; + this._adapter.UpdateCommand.CommandText = @" + UPDATE [dbo].[EventList] SET [IdxMacchina] = @IdxMacchina, [InizioStato] = @InizioStato, [IdxTipo] = @IdxTipo, [MatricolaKanban] = @MatricolaKanban, [Value] = @Value, [MatrOpr] = @MatrOpr, [pallet] = @pallet WHERE (([IdxMacchina] = @Original_IdxMacchina) AND ([InizioStato] = @Original_InizioStato) AND ([IdxTipo] = @Original_IdxTipo) AND ((@IsNull_MatricolaKanban = 1 AND [MatricolaKanban] IS NULL) OR ([MatricolaKanban] = @Original_MatricolaKanban)) AND ((@IsNull_Value = 1 AND [Value] IS NULL) OR ([Value] = @Original_Value)) AND ((@IsNull_MatrOpr = 1 AND [MatrOpr] IS NULL) OR ([MatrOpr] = @Original_MatrOpr)) AND ((@IsNull_pallet = 1 AND [pallet] IS NULL) OR ([pallet] = @Original_pallet))); + SELECT IdxMacchina, InizioStato, IdxTipo, MatricolaKanban, Value, MatrOpr, pallet FROM EventList WHERE (IdxMacchina = @IdxMacchina) AND (IdxTipo = @IdxTipo) AND (InizioStato = @InizioStato) + "; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@InizioStato", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioStato", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxTipo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxTipo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatricolaKanban", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatricolaKanban", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Value", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Value", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrOpr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrOpr", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pallet", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pallet", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_InizioStato", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioStato", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxTipo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxTipo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_MatricolaKanban", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatricolaKanban", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MatricolaKanban", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatricolaKanban", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Value", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Value", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Value", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Value", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_MatrOpr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrOpr", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MatrOpr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrOpr", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pallet", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pallet", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pallet", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pallet", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[12]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT * FROM dbo.EventList"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "dbo.stp_EL_contaTipo"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxTipo", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[2].Connection = this.Connection; + this._commandCollection[2].CommandText = "dbo.stp_EL_contaTutti"; + this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[3].Connection = this.Connection; + this._commandCollection[3].CommandText = "dbo.stp_EL_deleteAll"; + this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[4].Connection = this.Connection; + this._commandCollection[4].CommandText = "dbo.stp_EL_deleteQuery"; + this._commandCollection[4].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_InizioStato", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[5] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[5].Connection = this.Connection; + this._commandCollection[5].CommandText = "dbo.stp_EL_getAllMacchinePeriodo"; + this._commandCollection[5].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Inizio", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Fine", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[6] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[6].Connection = this.Connection; + this._commandCollection[6].CommandText = "dbo.stp_EL_getByMacchinaPeriodo"; + this._commandCollection[6].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataInizio", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataFine", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[7] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[7].Connection = this.Connection; + this._commandCollection[7].CommandText = "dbo.stp_EL_getByMacchina"; + this._commandCollection[7].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[8] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[8].Connection = this.Connection; + this._commandCollection[8].CommandText = "dbo.stp_EL_getDataFilled"; + this._commandCollection[8].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[9] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[9].Connection = this.Connection; + this._commandCollection[9].CommandText = "dbo.stp_EL_getDataFiltered"; + this._commandCollection[9].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Inizio", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Fine", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[10] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[10].Connection = this.Connection; + this._commandCollection[10].CommandText = "dbo.stp_EL_InsEvento"; + this._commandCollection[10].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxTipo", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatricolaKanban", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Value", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrOpr", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pallet", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[11] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[11].Connection = this.Connection; + this._commandCollection[11].CommandText = "dbo.stp_EL_updateTipo"; + this._commandCollection[11].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[11].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[11].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxTipo", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[11].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[11].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_InizioStato", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_applicazione.EventListDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_applicazione.EventListDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_applicazione.EventListDataTable dataTable = new DS_applicazione.EventListDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_applicazione.EventListDataTable GetAllMacchinePeriodo(global::System.Nullable Inizio, global::System.Nullable Fine) { + this.Adapter.SelectCommand = this.CommandCollection[5]; + if ((Inizio.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[1].Value = ((System.DateTime)(Inizio.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + if ((Fine.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(Fine.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + DS_applicazione.EventListDataTable dataTable = new DS_applicazione.EventListDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_applicazione.EventListDataTable GetByMacchinaPeriodo(string IdxMacchina, global::System.Nullable dataInizio, global::System.Nullable dataFine) { + this.Adapter.SelectCommand = this.CommandCollection[6]; + if ((IdxMacchina == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(IdxMacchina)); + } + if ((dataInizio.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(dataInizio.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((dataFine.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[3].Value = ((System.DateTime)(dataFine.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; + } + DS_applicazione.EventListDataTable dataTable = new DS_applicazione.EventListDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_applicazione.EventListDataTable GetDataByIdxMacchina(string IdxMacchina) { + this.Adapter.SelectCommand = this.CommandCollection[7]; + if ((IdxMacchina == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(IdxMacchina)); + } + DS_applicazione.EventListDataTable dataTable = new DS_applicazione.EventListDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_applicazione.EventListDataTable GetDataFilled() { + this.Adapter.SelectCommand = this.CommandCollection[8]; + DS_applicazione.EventListDataTable dataTable = new DS_applicazione.EventListDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_applicazione.EventListDataTable GetDataFiltered(string IdxMacchina, global::System.Nullable Inizio, global::System.Nullable Fine) { + this.Adapter.SelectCommand = this.CommandCollection[9]; + if ((IdxMacchina == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(IdxMacchina)); + } + if ((Inizio.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(Inizio.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((Fine.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[3].Value = ((System.DateTime)(Fine.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; + } + DS_applicazione.EventListDataTable dataTable = new DS_applicazione.EventListDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_applicazione.EventListDataTable dataTable) { + return this.Adapter.Update(dataTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_applicazione dataSet) { + return this.Adapter.Update(dataSet, "EventList"); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow dataRow) { + return this.Adapter.Update(new global::System.Data.DataRow[] { + dataRow}); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow[] dataRows) { + return this.Adapter.Update(dataRows); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] + public virtual int Delete(string Original_IdxMacchina, System.DateTime Original_InizioStato, int Original_IdxTipo, string Original_MatricolaKanban, string Original_Value, global::System.Nullable Original_MatrOpr, string Original_pallet) { + if ((Original_IdxMacchina == null)) { + throw new global::System.ArgumentNullException("Original_IdxMacchina"); + } + else { + this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_IdxMacchina)); + } + this.Adapter.DeleteCommand.Parameters[1].Value = ((System.DateTime)(Original_InizioStato)); + this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_IdxTipo)); + if ((Original_MatricolaKanban == null)) { + this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_MatricolaKanban)); + } + if ((Original_Value == null)) { + this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Value)); + } + if ((Original_MatrOpr.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[8].Value = ((int)(Original_MatrOpr.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value; + } + if ((Original_pallet == null)) { + this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_pallet)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; + if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.DeleteCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.DeleteCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] + public virtual int Insert(string IdxMacchina, System.DateTime InizioStato, int IdxTipo, string MatricolaKanban, string Value, global::System.Nullable MatrOpr, string pallet) { + if ((IdxMacchina == null)) { + throw new global::System.ArgumentNullException("IdxMacchina"); + } + else { + this.Adapter.InsertCommand.Parameters[0].Value = ((string)(IdxMacchina)); + } + this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(InizioStato)); + this.Adapter.InsertCommand.Parameters[2].Value = ((int)(IdxTipo)); + if ((MatricolaKanban == null)) { + this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[3].Value = ((string)(MatricolaKanban)); + } + if ((Value == null)) { + this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Value)); + } + if ((MatrOpr.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[5].Value = ((int)(MatrOpr.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value; + } + if ((pallet == null)) { + this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[6].Value = ((string)(pallet)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; + if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.InsertCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.InsertCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(string IdxMacchina, System.DateTime InizioStato, int IdxTipo, string MatricolaKanban, string Value, global::System.Nullable MatrOpr, string pallet, string Original_IdxMacchina, System.DateTime Original_InizioStato, int Original_IdxTipo, string Original_MatricolaKanban, string Original_Value, global::System.Nullable Original_MatrOpr, string Original_pallet) { + if ((IdxMacchina == null)) { + throw new global::System.ArgumentNullException("IdxMacchina"); + } + else { + this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(IdxMacchina)); + } + this.Adapter.UpdateCommand.Parameters[1].Value = ((System.DateTime)(InizioStato)); + this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(IdxTipo)); + if ((MatricolaKanban == null)) { + this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(MatricolaKanban)); + } + if ((Value == null)) { + this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Value)); + } + if ((MatrOpr.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(MatrOpr.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value; + } + if ((pallet == null)) { + this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(pallet)); + } + if ((Original_IdxMacchina == null)) { + throw new global::System.ArgumentNullException("Original_IdxMacchina"); + } + else { + this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_IdxMacchina)); + } + this.Adapter.UpdateCommand.Parameters[8].Value = ((System.DateTime)(Original_InizioStato)); + this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_IdxTipo)); + if ((Original_MatricolaKanban == null)) { + this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_MatricolaKanban)); + } + if ((Original_Value == null)) { + this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_Value)); + } + if ((Original_MatrOpr.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[15].Value = ((int)(Original_MatrOpr.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value; + } + if ((Original_pallet == null)) { + this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Original_pallet)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; + if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.UpdateCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.UpdateCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(string MatricolaKanban, string Value, global::System.Nullable MatrOpr, string pallet, string Original_IdxMacchina, System.DateTime Original_InizioStato, int Original_IdxTipo, string Original_MatricolaKanban, string Original_Value, global::System.Nullable Original_MatrOpr, string Original_pallet) { + return this.Update(Original_IdxMacchina, Original_InizioStato, Original_IdxTipo, MatricolaKanban, Value, MatrOpr, pallet, Original_IdxMacchina, Original_InizioStato, Original_IdxTipo, Original_MatricolaKanban, Original_Value, Original_MatrOpr, Original_pallet); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual object ContaTipo(global::System.Nullable IdxTipo) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1]; + if ((IdxTipo.HasValue == true)) { + command.Parameters[1].Value = ((int)(IdxTipo.Value)); + } + else { + command.Parameters[1].Value = global::System.DBNull.Value; + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + object returnValue; + try { + returnValue = command.ExecuteScalar(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + if (((returnValue == null) + || (returnValue.GetType() == typeof(global::System.DBNull)))) { + return null; + } + else { + return ((object)(returnValue)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual object ContaTutti() { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[2]; + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + object returnValue; + try { + returnValue = command.ExecuteScalar(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + if (((returnValue == null) + || (returnValue.GetType() == typeof(global::System.DBNull)))) { + return null; + } + else { + return ((object)(returnValue)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, false)] + public virtual int DeleteAll() { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3]; + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int DeleteQuery(string Original_IdxMacchina, global::System.Nullable Original_InizioStato) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[4]; + if ((Original_IdxMacchina == null)) { + command.Parameters[1].Value = global::System.DBNull.Value; + } + else { + command.Parameters[1].Value = ((string)(Original_IdxMacchina)); + } + if ((Original_InizioStato.HasValue == true)) { + command.Parameters[2].Value = ((System.DateTime)(Original_InizioStato.Value)); + } + else { + command.Parameters[2].Value = global::System.DBNull.Value; + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int InsEvento(string IdxMacchina, global::System.Nullable IdxTipo, string MatricolaKanban, string Value, global::System.Nullable MatrOpr, string pallet) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[10]; + if ((IdxMacchina == null)) { + command.Parameters[1].Value = global::System.DBNull.Value; + } + else { + command.Parameters[1].Value = ((string)(IdxMacchina)); + } + if ((IdxTipo.HasValue == true)) { + command.Parameters[2].Value = ((int)(IdxTipo.Value)); + } + else { + command.Parameters[2].Value = global::System.DBNull.Value; + } + if ((MatricolaKanban == null)) { + command.Parameters[3].Value = global::System.DBNull.Value; + } + else { + command.Parameters[3].Value = ((string)(MatricolaKanban)); + } + if ((Value == null)) { + command.Parameters[4].Value = global::System.DBNull.Value; + } + else { + command.Parameters[4].Value = ((string)(Value)); + } + if ((MatrOpr.HasValue == true)) { + command.Parameters[5].Value = ((int)(MatrOpr.Value)); + } + else { + command.Parameters[5].Value = global::System.DBNull.Value; + } + if ((pallet == null)) { + command.Parameters[6].Value = global::System.DBNull.Value; + } + else { + command.Parameters[6].Value = ((string)(pallet)); + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int UpdateTipo(global::System.Nullable IdxTipo, string Original_IdxMacchina, global::System.Nullable Original_InizioStato) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[11]; + if ((IdxTipo.HasValue == true)) { + command.Parameters[1].Value = ((int)(IdxTipo.Value)); + } + else { + command.Parameters[1].Value = global::System.DBNull.Value; + } + if ((Original_IdxMacchina == null)) { + command.Parameters[2].Value = global::System.DBNull.Value; + } + else { + command.Parameters[2].Value = ((string)(Original_IdxMacchina)); + } + if ((Original_InizioStato.HasValue == true)) { + command.Parameters[3].Value = ((System.DateTime)(Original_InizioStato.Value)); + } + else { + command.Parameters[3].Value = global::System.DBNull.Value; + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class AnagraficaEventiTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagraficaEventiTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "AnagraficaEventi"; + tableMapping.ColumnMappings.Add("IdxTipo", "IdxTipo"); + tableMapping.ColumnMappings.Add("Nome", "Nome"); + this._adapter.TableMappings.Add(tableMapping); + this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.DeleteCommand.Connection = this.Connection; + this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[AnagraficaEventi] WHERE (([IdxTipo] = @Original_IdxTipo) AND (" + + "(@IsNull_Nome = 1 AND [Nome] IS NULL) OR ([Nome] = @Original_Nome)))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxTipo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxTipo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Nome", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nome", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Nome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nome", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.InsertCommand.Connection = this.Connection; + this._adapter.InsertCommand.CommandText = "\r\n INSERT INTO [dbo].[AnagraficaEventi] ([IdxTipo], [Nome]) " + + "VALUES (@IdxTipo, @Nome);\r\n SELECT IdxTipo, Nome FROM Anagr" + + "aficaEventi WHERE (IdxTipo = @IdxTipo)\r\n "; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxTipo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxTipo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Nome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nome", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.UpdateCommand.Connection = this.Connection; + this._adapter.UpdateCommand.CommandText = @" + UPDATE [dbo].[AnagraficaEventi] SET [IdxTipo] = @IdxTipo, [Nome] = @Nome WHERE (([IdxTipo] = @Original_IdxTipo) AND ((@IsNull_Nome = 1 AND [Nome] IS NULL) OR ([Nome] = @Original_Nome))); + SELECT IdxTipo, Nome FROM AnagraficaEventi WHERE (IdxTipo = @IdxTipo) + "; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxTipo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxTipo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Nome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nome", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxTipo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxTipo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Nome", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nome", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Nome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nome", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT IdxTipo, Nome FROM dbo.AnagraficaEventi"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "\r\n SELECT IdxTipo, Nome FROM dbo.AnagraficaEventi\r\n " + + " where IdxTipo=@IdxTipo\r\n "; + this._commandCollection[1].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxTipo", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IdxTipo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_applicazione.AnagraficaEventiDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_applicazione.AnagraficaEventiDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_applicazione.AnagraficaEventiDataTable dataTable = new DS_applicazione.AnagraficaEventiDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_applicazione.AnagraficaEventiDataTable GetByIdx(int IdxTipo) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + this.Adapter.SelectCommand.Parameters[0].Value = ((int)(IdxTipo)); + DS_applicazione.AnagraficaEventiDataTable dataTable = new DS_applicazione.AnagraficaEventiDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_applicazione.AnagraficaEventiDataTable dataTable) { + return this.Adapter.Update(dataTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_applicazione dataSet) { + return this.Adapter.Update(dataSet, "AnagraficaEventi"); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow dataRow) { + return this.Adapter.Update(new global::System.Data.DataRow[] { + dataRow}); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow[] dataRows) { + return this.Adapter.Update(dataRows); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] + public virtual int Delete(int Original_IdxTipo, string Original_Nome) { + this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdxTipo)); + if ((Original_Nome == null)) { + this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Nome)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; + if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.DeleteCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.DeleteCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] + public virtual int Insert(int IdxTipo, string Nome) { + this.Adapter.InsertCommand.Parameters[0].Value = ((int)(IdxTipo)); + if ((Nome == null)) { + this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Nome)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; + if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.InsertCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.InsertCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(int IdxTipo, string Nome, int Original_IdxTipo, string Original_Nome) { + this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(IdxTipo)); + if ((Nome == null)) { + this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Nome)); + } + this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_IdxTipo)); + if ((Original_Nome == null)) { + this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Nome)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; + if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.UpdateCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.UpdateCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(string Nome, int Original_IdxTipo, string Original_Nome) { + return this.Update(Original_IdxTipo, Nome, Original_IdxTipo, Original_Nome); + } + } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class DiarioDiBordoTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DiarioDiBordoTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "DiarioDiBordo"; + tableMapping.ColumnMappings.Add("IdxMacchina", "IdxMacchina"); + tableMapping.ColumnMappings.Add("InizioStato", "InizioStato"); + tableMapping.ColumnMappings.Add("FineStato", "FineStato"); + tableMapping.ColumnMappings.Add("IdxStato", "IdxStato"); + tableMapping.ColumnMappings.Add("DurataMinuti", "DurataMinuti"); + tableMapping.ColumnMappings.Add("Value", "Value"); + tableMapping.ColumnMappings.Add("MatricolaKanban", "MatricolaKanban"); + tableMapping.ColumnMappings.Add("KanbanCode", "KanbanCode"); + tableMapping.ColumnMappings.Add("TempoCicloBase", "TempoCicloBase"); + tableMapping.ColumnMappings.Add("PzPalletProd", "PzPalletProd"); + tableMapping.ColumnMappings.Add("MatrOpr", "MatrOpr"); + tableMapping.ColumnMappings.Add("pallet", "pallet"); + this._adapter.TableMappings.Add(tableMapping); + this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.DeleteCommand.Connection = this.Connection; + this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[DiarioDiBordo] WHERE (([IdxMacchina] = @Original_IdxMacchina) AND ([InizioStato] = @Original_InizioStato) AND ((@IsNull_FineStato = 1 AND [FineStato] IS NULL) OR ([FineStato] = @Original_FineStato)) AND ([IdxStato] = @Original_IdxStato) AND ((@IsNull_DurataMinuti = 1 AND [DurataMinuti] IS NULL) OR ([DurataMinuti] = @Original_DurataMinuti)) AND ((@IsNull_Value = 1 AND [Value] IS NULL) OR ([Value] = @Original_Value)) AND ((@IsNull_MatricolaKanban = 1 AND [MatricolaKanban] IS NULL) OR ([MatricolaKanban] = @Original_MatricolaKanban)) AND ((@IsNull_KanbanCode = 1 AND [KanbanCode] IS NULL) OR ([KanbanCode] = @Original_KanbanCode)) AND ((@IsNull_TempoCicloBase = 1 AND [TempoCicloBase] IS NULL) OR ([TempoCicloBase] = @Original_TempoCicloBase)) AND ((@IsNull_PzPalletProd = 1 AND [PzPalletProd] IS NULL) OR ([PzPalletProd] = @Original_PzPalletProd)) AND ((@IsNull_MatrOpr = 1 AND [MatrOpr] IS NULL) OR ([MatrOpr] = @Original_MatrOpr)) AND ((@IsNull_pallet = 1 AND [pallet] IS NULL) OR ([pallet] = @Original_pallet)))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_InizioStato", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioStato", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_FineStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FineStato", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FineStato", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FineStato", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DurataMinuti", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DurataMinuti", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DurataMinuti", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DurataMinuti", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Value", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Value", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Value", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Value", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_MatricolaKanban", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatricolaKanban", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MatricolaKanban", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatricolaKanban", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_KanbanCode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KanbanCode", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_KanbanCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KanbanCode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TempoCicloBase", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TempoCicloBase", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TempoCicloBase", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TempoCicloBase", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PzPalletProd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PzPalletProd", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PzPalletProd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PzPalletProd", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_MatrOpr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrOpr", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MatrOpr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrOpr", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pallet", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pallet", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pallet", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pallet", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.InsertCommand.Connection = this.Connection; + this._adapter.InsertCommand.CommandText = @" + INSERT INTO [dbo].[DiarioDiBordo] ([IdxMacchina], [InizioStato], [FineStato], [IdxStato], [DurataMinuti], [Value], [MatricolaKanban], [KanbanCode], [TempoCicloBase], [PzPalletProd], [MatrOpr], [pallet]) VALUES (@IdxMacchina, @InizioStato, @FineStato, @IdxStato, @DurataMinuti, @Value, @MatricolaKanban, @KanbanCode, @TempoCicloBase, @PzPalletProd, @MatrOpr, @pallet); + SELECT IdxMacchina, InizioStato, FineStato, IdxStato, DurataMinuti, Value, MatricolaKanban, KanbanCode, TempoCicloBase, PzPalletProd, MatrOpr, pallet FROM DiarioDiBordo WHERE (IdxMacchina = @IdxMacchina) AND (InizioStato = @InizioStato) + "; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@InizioStato", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioStato", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FineStato", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FineStato", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DurataMinuti", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DurataMinuti", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Value", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Value", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatricolaKanban", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatricolaKanban", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@KanbanCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KanbanCode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TempoCicloBase", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TempoCicloBase", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PzPalletProd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PzPalletProd", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrOpr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrOpr", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pallet", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pallet", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.UpdateCommand.Connection = this.Connection; + this._adapter.UpdateCommand.CommandText = "\r\n UPDATE [dbo].[DiarioDiBordo] SET [IdxMacchina] = @IdxMacc" + + "hina, [InizioStato] = @InizioStato, [FineStato] = @FineStato, [IdxStato] = @IdxS" + + "tato, [DurataMinuti] = @DurataMinuti, [Value] = @Value, [MatricolaKanban] = @Mat" + + "ricolaKanban, [KanbanCode] = @KanbanCode, [TempoCicloBase] = @TempoCicloBase, [P" + + "zPalletProd] = @PzPalletProd, [MatrOpr] = @MatrOpr, [pallet] = @pallet WHERE (([" + + "IdxMacchina] = @Original_IdxMacchina) AND ([InizioStato] = @Original_InizioStato" + + ") AND ((@IsNull_FineStato = 1 AND [FineStato] IS NULL) OR ([FineStato] = @Origin" + + "al_FineStato)) AND ([IdxStato] = @Original_IdxStato) AND ((@IsNull_DurataMinuti " + + "= 1 AND [DurataMinuti] IS NULL) OR ([DurataMinuti] = @Original_DurataMinuti)) AN" + + "D ((@IsNull_Value = 1 AND [Value] IS NULL) OR ([Value] = @Original_Value)) AND (" + + "(@IsNull_MatricolaKanban = 1 AND [MatricolaKanban] IS NULL) OR ([MatricolaKanban" + + "] = @Original_MatricolaKanban)) AND ((@IsNull_KanbanCode = 1 AND [KanbanCode] IS" + + " NULL) OR ([KanbanCode] = @Original_KanbanCode)) AND ((@IsNull_TempoCicloBase = " + + "1 AND [TempoCicloBase] IS NULL) OR ([TempoCicloBase] = @Original_TempoCicloBase)" + + ") AND ((@IsNull_PzPalletProd = 1 AND [PzPalletProd] IS NULL) OR ([PzPalletProd] " + + "= @Original_PzPalletProd)) AND ((@IsNull_MatrOpr = 1 AND [MatrOpr] IS NULL) OR (" + + "[MatrOpr] = @Original_MatrOpr)) AND ((@IsNull_pallet = 1 AND [pallet] IS NULL) O" + + "R ([pallet] = @Original_pallet)));\r\n SELECT IdxMacchina, In" + + "izioStato, FineStato, IdxStato, DurataMinuti, Value, MatricolaKanban, KanbanCode" + + ", TempoCicloBase, PzPalletProd, MatrOpr, pallet FROM DiarioDiBordo WHERE (IdxMac" + + "china = @IdxMacchina) AND (InizioStato = @InizioStato)\r\n "; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@InizioStato", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioStato", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FineStato", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FineStato", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DurataMinuti", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DurataMinuti", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Value", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Value", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatricolaKanban", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatricolaKanban", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@KanbanCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KanbanCode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TempoCicloBase", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TempoCicloBase", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PzPalletProd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PzPalletProd", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrOpr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrOpr", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pallet", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pallet", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_InizioStato", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioStato", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_FineStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FineStato", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FineStato", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FineStato", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxStato", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DurataMinuti", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DurataMinuti", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DurataMinuti", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DurataMinuti", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Value", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Value", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Value", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Value", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_MatricolaKanban", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatricolaKanban", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MatricolaKanban", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatricolaKanban", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_KanbanCode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KanbanCode", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_KanbanCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KanbanCode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TempoCicloBase", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TempoCicloBase", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TempoCicloBase", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TempoCicloBase", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PzPalletProd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PzPalletProd", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PzPalletProd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PzPalletProd", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_MatrOpr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrOpr", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MatrOpr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrOpr", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pallet", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pallet", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pallet", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pallet", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[21]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT * FROM dbo.DiarioDiBordo"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "dbo.stp_DDB_contaStato"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxStato", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[2].Connection = this.Connection; + this._commandCollection[2].CommandText = "dbo.stp_DDB_contaTutti"; + this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[3].Connection = this.Connection; + this._commandCollection[3].CommandText = "DELETE FROM [dbo].[DiarioDiBordo]"; + this._commandCollection[3].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[4].Connection = this.Connection; + this._commandCollection[4].CommandText = "dbo.stp_DDB_deleteMacchinaPeriodo"; + this._commandCollection[4].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_InizioStato", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FineStato", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[5] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[5].Connection = this.Connection; + this._commandCollection[5].CommandText = "dbo.stp_DDB_deleteMacchinaInizio"; + this._commandCollection[5].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_InizioStato", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[6] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[6].Connection = this.Connection; + this._commandCollection[6].CommandText = "dbo.stp_DDB_getByPeriodo"; + this._commandCollection[6].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@durataMin", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Inizio", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Fine", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[7] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[7].Connection = this.Connection; + this._commandCollection[7].CommandText = "dbo.stp_DDB_getByMacchinaPeriodo"; + this._commandCollection[7].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataInizio", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataFine", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[8] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[8].Connection = this.Connection; + this._commandCollection[8].CommandText = "dbo.stp_DDB_getByMacchina"; + this._commandCollection[8].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[9] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[9].Connection = this.Connection; + this._commandCollection[9].CommandText = "dbo.stp_DDB_getDataFilled"; + this._commandCollection[9].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[10] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[10].Connection = this.Connection; + this._commandCollection[10].CommandText = "dbo.stp_DDB_getDataFiltered"; + this._commandCollection[10].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Inizio", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Fine", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@durataMin", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[11] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[11].Connection = this.Connection; + this._commandCollection[11].CommandText = "dbo.stp_DDB_getFermiFilt"; + this._commandCollection[11].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[11].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[11].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[11].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gg", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[11].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@durataMin", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[12] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[12].Connection = this.Connection; + this._commandCollection[12].CommandText = "dbo.stp_DDB_getNextByMacchinaFrom"; + this._commandCollection[12].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataRif", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[13] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[13].Connection = this.Connection; + this._commandCollection[13].CommandText = "dbo.stp_DDB_getParetoDurate"; + this._commandCollection[13].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[13].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[14] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[14].Connection = this.Connection; + this._commandCollection[14].CommandText = "dbo.stp_DDB_getSequenza"; + this._commandCollection[14].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[14].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[14].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[14].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Inizio", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[14].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Fine", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[15] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[15].Connection = this.Connection; + this._commandCollection[15].CommandText = "dbo.stp_DDB_getShortChanging"; + this._commandCollection[15].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[15].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[15].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[15].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@durataMax", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[15].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxStato", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[16] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[16].Connection = this.Connection; + this._commandCollection[16].CommandText = "dbo.stp_DDB_getTortaKanban"; + this._commandCollection[16].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[16].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[16].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[16].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@minDurata", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[16].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@fine", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[16].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@inizio", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[17] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[17].Connection = this.Connection; + this._commandCollection[17].CommandText = "dbo.stp_DDB_InsStato"; + this._commandCollection[17].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[17].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[17].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[17].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxStato", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[17].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatricolaKanban", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[17].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Value", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[17].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrOpr", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[17].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pallet", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[18] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[18].Connection = this.Connection; + this._commandCollection[18].CommandText = "dbo.stp_DDB_InsStatoBatch"; + this._commandCollection[18].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[18].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[18].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[18].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@InizioStato", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[18].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxStato", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[18].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatricolaKanban", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[18].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Value", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[18].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrOpr", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[18].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pallet", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[19] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[19].Connection = this.Connection; + this._commandCollection[19].CommandText = "dbo.stp_DDB_updateFineDurata"; + this._commandCollection[19].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[19].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[19].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FineStato", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[19].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DurataMinuti", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[19].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[19].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_InizioStato", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[20] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[20].Connection = this.Connection; + this._commandCollection[20].CommandText = "dbo.stp_DDB_updateStato"; + this._commandCollection[20].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[20].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[20].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxStato", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[20].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[20].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_InizioStato", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_applicazione.DiarioDiBordoDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_applicazione.DiarioDiBordoDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_applicazione.DiarioDiBordoDataTable dataTable = new DS_applicazione.DiarioDiBordoDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_applicazione.DiarioDiBordoDataTable GetAllMacchinePeriodo(global::System.Nullable durataMin, global::System.Nullable Inizio, global::System.Nullable Fine) { + this.Adapter.SelectCommand = this.CommandCollection[6]; + if ((durataMin.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[1].Value = ((double)(durataMin.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + if ((Inizio.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(Inizio.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((Fine.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[3].Value = ((System.DateTime)(Fine.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; + } + DS_applicazione.DiarioDiBordoDataTable dataTable = new DS_applicazione.DiarioDiBordoDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_applicazione.DiarioDiBordoDataTable GetByMacchinaPeriodo(string IdxMacchina, global::System.Nullable dataInizio, global::System.Nullable dataFine) { + this.Adapter.SelectCommand = this.CommandCollection[7]; + if ((IdxMacchina == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(IdxMacchina)); + } + if ((dataInizio.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(dataInizio.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((dataFine.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[3].Value = ((System.DateTime)(dataFine.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; + } + DS_applicazione.DiarioDiBordoDataTable dataTable = new DS_applicazione.DiarioDiBordoDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_applicazione.DiarioDiBordoDataTable GetDataByIdxMacchina(string IdxMacchina) { + this.Adapter.SelectCommand = this.CommandCollection[8]; + if ((IdxMacchina == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(IdxMacchina)); + } + DS_applicazione.DiarioDiBordoDataTable dataTable = new DS_applicazione.DiarioDiBordoDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_applicazione.DiarioDiBordoDataTable GetDataFilled() { + this.Adapter.SelectCommand = this.CommandCollection[9]; + DS_applicazione.DiarioDiBordoDataTable dataTable = new DS_applicazione.DiarioDiBordoDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_applicazione.DiarioDiBordoDataTable GetDataFiltered(string IdxMacchina, global::System.Nullable Inizio, global::System.Nullable Fine, global::System.Nullable durataMin) { + this.Adapter.SelectCommand = this.CommandCollection[10]; + if ((IdxMacchina == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(IdxMacchina)); + } + if ((Inizio.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(Inizio.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((Fine.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[3].Value = ((System.DateTime)(Fine.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; + } + if ((durataMin.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[4].Value = ((double)(durataMin.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[4].Value = global::System.DBNull.Value; + } + DS_applicazione.DiarioDiBordoDataTable dataTable = new DS_applicazione.DiarioDiBordoDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_applicazione.DiarioDiBordoDataTable getFermiFilt(string IdxMacchina, global::System.Nullable gg, global::System.Nullable durataMin) { + this.Adapter.SelectCommand = this.CommandCollection[11]; + if ((IdxMacchina == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(IdxMacchina)); + } + if ((gg.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((int)(gg.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((durataMin.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[3].Value = ((double)(durataMin.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; + } + DS_applicazione.DiarioDiBordoDataTable dataTable = new DS_applicazione.DiarioDiBordoDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_applicazione.DiarioDiBordoDataTable getNextByMacchInizioStato(string IdxMacchina, global::System.Nullable dataRif) { + this.Adapter.SelectCommand = this.CommandCollection[12]; + if ((IdxMacchina == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(IdxMacchina)); + } + if ((dataRif.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(dataRif.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + DS_applicazione.DiarioDiBordoDataTable dataTable = new DS_applicazione.DiarioDiBordoDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_applicazione.DiarioDiBordoDataTable GetParetoDurate() { + this.Adapter.SelectCommand = this.CommandCollection[13]; + DS_applicazione.DiarioDiBordoDataTable dataTable = new DS_applicazione.DiarioDiBordoDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_applicazione.DiarioDiBordoDataTable GetSequenza(string IdxMacchina, global::System.Nullable Inizio, global::System.Nullable Fine) { + this.Adapter.SelectCommand = this.CommandCollection[14]; + if ((IdxMacchina == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(IdxMacchina)); + } + if ((Inizio.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(Inizio.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((Fine.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[3].Value = ((System.DateTime)(Fine.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; + } + DS_applicazione.DiarioDiBordoDataTable dataTable = new DS_applicazione.DiarioDiBordoDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_applicazione.DiarioDiBordoDataTable GetShortChanging(string IdxMacchina, global::System.Nullable durataMax, global::System.Nullable IdxStato) { + this.Adapter.SelectCommand = this.CommandCollection[15]; + if ((IdxMacchina == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(IdxMacchina)); + } + if ((durataMax.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((double)(durataMax.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((IdxStato.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[3].Value = ((int)(IdxStato.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; + } + DS_applicazione.DiarioDiBordoDataTable dataTable = new DS_applicazione.DiarioDiBordoDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_applicazione.DiarioDiBordoDataTable GetTortaKanban(string IdxMacchina, global::System.Nullable minDurata, global::System.Nullable fine, global::System.Nullable inizio) { + this.Adapter.SelectCommand = this.CommandCollection[16]; + if ((IdxMacchina == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(IdxMacchina)); + } + if ((minDurata.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((double)(minDurata.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((fine.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[3].Value = ((System.DateTime)(fine.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; + } + if ((inizio.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[4].Value = ((System.DateTime)(inizio.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[4].Value = global::System.DBNull.Value; + } + DS_applicazione.DiarioDiBordoDataTable dataTable = new DS_applicazione.DiarioDiBordoDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_applicazione.DiarioDiBordoDataTable dataTable) { + return this.Adapter.Update(dataTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_applicazione dataSet) { + return this.Adapter.Update(dataSet, "DiarioDiBordo"); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow dataRow) { + return this.Adapter.Update(new global::System.Data.DataRow[] { + dataRow}); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow[] dataRows) { + return this.Adapter.Update(dataRows); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] + public virtual int Delete(string Original_IdxMacchina, System.DateTime Original_InizioStato, global::System.Nullable Original_FineStato, int Original_IdxStato, global::System.Nullable Original_DurataMinuti, string Original_Value, string Original_MatricolaKanban, string Original_KanbanCode, global::System.Nullable Original_TempoCicloBase, global::System.Nullable Original_PzPalletProd, global::System.Nullable Original_MatrOpr, string Original_pallet) { + if ((Original_IdxMacchina == null)) { + throw new global::System.ArgumentNullException("Original_IdxMacchina"); + } + else { + this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_IdxMacchina)); + } + this.Adapter.DeleteCommand.Parameters[1].Value = ((System.DateTime)(Original_InizioStato)); + if ((Original_FineStato.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[3].Value = ((System.DateTime)(Original_FineStato.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value; + } + this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_IdxStato)); + if ((Original_DurataMinuti.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[6].Value = ((double)(Original_DurataMinuti.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value; + } + if ((Original_Value == null)) { + this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_Value)); + } + if ((Original_MatricolaKanban == null)) { + this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_MatricolaKanban)); + } + if ((Original_KanbanCode == null)) { + this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(Original_KanbanCode)); + } + if ((Original_TempoCicloBase.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[14].Value = ((double)(Original_TempoCicloBase.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value; + } + if ((Original_PzPalletProd.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[16].Value = ((int)(Original_PzPalletProd.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[16].Value = global::System.DBNull.Value; + } + if ((Original_MatrOpr.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[18].Value = ((int)(Original_MatrOpr.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[18].Value = global::System.DBNull.Value; + } + if ((Original_pallet == null)) { + this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[20].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[20].Value = ((string)(Original_pallet)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; + if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.DeleteCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.DeleteCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] + public virtual int Insert(string IdxMacchina, System.DateTime InizioStato, global::System.Nullable FineStato, int IdxStato, global::System.Nullable DurataMinuti, string Value, string MatricolaKanban, string KanbanCode, global::System.Nullable TempoCicloBase, global::System.Nullable PzPalletProd, global::System.Nullable MatrOpr, string pallet) { + if ((IdxMacchina == null)) { + throw new global::System.ArgumentNullException("IdxMacchina"); + } + else { + this.Adapter.InsertCommand.Parameters[0].Value = ((string)(IdxMacchina)); + } + this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(InizioStato)); + if ((FineStato.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[2].Value = ((System.DateTime)(FineStato.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value; + } + this.Adapter.InsertCommand.Parameters[3].Value = ((int)(IdxStato)); + if ((DurataMinuti.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[4].Value = ((double)(DurataMinuti.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value; + } + if ((Value == null)) { + this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Value)); + } + if ((MatricolaKanban == null)) { + this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[6].Value = ((string)(MatricolaKanban)); + } + if ((KanbanCode == null)) { + this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[7].Value = ((string)(KanbanCode)); + } + if ((TempoCicloBase.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[8].Value = ((double)(TempoCicloBase.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value; + } + if ((PzPalletProd.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[9].Value = ((int)(PzPalletProd.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value; + } + if ((MatrOpr.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[10].Value = ((int)(MatrOpr.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value; + } + if ((pallet == null)) { + this.Adapter.InsertCommand.Parameters[11].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[11].Value = ((string)(pallet)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; + if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.InsertCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.InsertCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update( + string IdxMacchina, + System.DateTime InizioStato, + global::System.Nullable FineStato, + int IdxStato, + global::System.Nullable DurataMinuti, + string Value, + string MatricolaKanban, + string KanbanCode, + global::System.Nullable TempoCicloBase, + global::System.Nullable PzPalletProd, + global::System.Nullable MatrOpr, + string pallet, + string Original_IdxMacchina, + System.DateTime Original_InizioStato, + global::System.Nullable Original_FineStato, + int Original_IdxStato, + global::System.Nullable Original_DurataMinuti, + string Original_Value, + string Original_MatricolaKanban, + string Original_KanbanCode, + global::System.Nullable Original_TempoCicloBase, + global::System.Nullable Original_PzPalletProd, + global::System.Nullable Original_MatrOpr, + string Original_pallet) { + if ((IdxMacchina == null)) { + throw new global::System.ArgumentNullException("IdxMacchina"); + } + else { + this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(IdxMacchina)); + } + this.Adapter.UpdateCommand.Parameters[1].Value = ((System.DateTime)(InizioStato)); + if ((FineStato.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[2].Value = ((System.DateTime)(FineStato.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value; + } + this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(IdxStato)); + if ((DurataMinuti.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[4].Value = ((double)(DurataMinuti.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value; + } + if ((Value == null)) { + this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Value)); + } + if ((MatricolaKanban == null)) { + this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(MatricolaKanban)); + } + if ((KanbanCode == null)) { + this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(KanbanCode)); + } + if ((TempoCicloBase.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[8].Value = ((double)(TempoCicloBase.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value; + } + if ((PzPalletProd.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(PzPalletProd.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value; + } + if ((MatrOpr.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(MatrOpr.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value; + } + if ((pallet == null)) { + this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(pallet)); + } + if ((Original_IdxMacchina == null)) { + throw new global::System.ArgumentNullException("Original_IdxMacchina"); + } + else { + this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_IdxMacchina)); + } + this.Adapter.UpdateCommand.Parameters[13].Value = ((System.DateTime)(Original_InizioStato)); + if ((Original_FineStato.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[15].Value = ((System.DateTime)(Original_FineStato.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value; + } + this.Adapter.UpdateCommand.Parameters[16].Value = ((int)(Original_IdxStato)); + if ((Original_DurataMinuti.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[18].Value = ((double)(Original_DurataMinuti.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value; + } + if ((Original_Value == null)) { + this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[20].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[20].Value = ((string)(Original_Value)); + } + if ((Original_MatricolaKanban == null)) { + this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[22].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[22].Value = ((string)(Original_MatricolaKanban)); + } + if ((Original_KanbanCode == null)) { + this.Adapter.UpdateCommand.Parameters[23].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[24].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[23].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[24].Value = ((string)(Original_KanbanCode)); + } + if ((Original_TempoCicloBase.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[25].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[26].Value = ((double)(Original_TempoCicloBase.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[25].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[26].Value = global::System.DBNull.Value; + } + if ((Original_PzPalletProd.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[27].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[28].Value = ((int)(Original_PzPalletProd.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[27].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[28].Value = global::System.DBNull.Value; + } + if ((Original_MatrOpr.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[29].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[30].Value = ((int)(Original_MatrOpr.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[29].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[30].Value = global::System.DBNull.Value; + } + if ((Original_pallet == null)) { + this.Adapter.UpdateCommand.Parameters[31].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[32].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[31].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[32].Value = ((string)(Original_pallet)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; + if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.UpdateCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.UpdateCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update( + global::System.Nullable FineStato, + int IdxStato, + global::System.Nullable DurataMinuti, + string Value, + string MatricolaKanban, + string KanbanCode, + global::System.Nullable TempoCicloBase, + global::System.Nullable PzPalletProd, + global::System.Nullable MatrOpr, + string pallet, + string Original_IdxMacchina, + System.DateTime Original_InizioStato, + global::System.Nullable Original_FineStato, + int Original_IdxStato, + global::System.Nullable Original_DurataMinuti, + string Original_Value, + string Original_MatricolaKanban, + string Original_KanbanCode, + global::System.Nullable Original_TempoCicloBase, + global::System.Nullable Original_PzPalletProd, + global::System.Nullable Original_MatrOpr, + string Original_pallet) { + return this.Update(Original_IdxMacchina, Original_InizioStato, FineStato, IdxStato, DurataMinuti, Value, MatricolaKanban, KanbanCode, TempoCicloBase, PzPalletProd, MatrOpr, pallet, Original_IdxMacchina, Original_InizioStato, Original_FineStato, Original_IdxStato, Original_DurataMinuti, Original_Value, Original_MatricolaKanban, Original_KanbanCode, Original_TempoCicloBase, Original_PzPalletProd, Original_MatrOpr, Original_pallet); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual object ContaStato(global::System.Nullable IdxStato) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1]; + if ((IdxStato.HasValue == true)) { + command.Parameters[1].Value = ((int)(IdxStato.Value)); + } + else { + command.Parameters[1].Value = global::System.DBNull.Value; + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + object returnValue; + try { + returnValue = command.ExecuteScalar(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + if (((returnValue == null) + || (returnValue.GetType() == typeof(global::System.DBNull)))) { + return null; + } + else { + return ((object)(returnValue)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual object ContaTutti() { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[2]; + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + object returnValue; + try { + returnValue = command.ExecuteScalar(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + if (((returnValue == null) + || (returnValue.GetType() == typeof(global::System.DBNull)))) { + return null; + } + else { + return ((object)(returnValue)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, false)] + public virtual int DeleteAll() { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3]; + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, false)] + public virtual int DeleteByMacchinaPeriodo(string Original_IdxMacchina, global::System.Nullable Original_InizioStato, global::System.Nullable Original_FineStato) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[4]; + if ((Original_IdxMacchina == null)) { + command.Parameters[1].Value = global::System.DBNull.Value; + } + else { + command.Parameters[1].Value = ((string)(Original_IdxMacchina)); + } + if ((Original_InizioStato.HasValue == true)) { + command.Parameters[2].Value = ((System.DateTime)(Original_InizioStato.Value)); + } + else { + command.Parameters[2].Value = global::System.DBNull.Value; + } + if ((Original_FineStato.HasValue == true)) { + command.Parameters[3].Value = ((System.DateTime)(Original_FineStato.Value)); + } + else { + command.Parameters[3].Value = global::System.DBNull.Value; + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, false)] + public virtual int DeleteQuery(string Original_IdxMacchina, global::System.Nullable Original_InizioStato) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[5]; + if ((Original_IdxMacchina == null)) { + command.Parameters[1].Value = global::System.DBNull.Value; + } + else { + command.Parameters[1].Value = ((string)(Original_IdxMacchina)); + } + if ((Original_InizioStato.HasValue == true)) { + command.Parameters[2].Value = ((System.DateTime)(Original_InizioStato.Value)); + } + else { + command.Parameters[2].Value = global::System.DBNull.Value; + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int InsStato(string IdxMacchina, global::System.Nullable IdxStato, string MatricolaKanban, string Value, global::System.Nullable MatrOpr, string pallet) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[17]; + if ((IdxMacchina == null)) { + command.Parameters[1].Value = global::System.DBNull.Value; + } + else { + command.Parameters[1].Value = ((string)(IdxMacchina)); + } + if ((IdxStato.HasValue == true)) { + command.Parameters[2].Value = ((int)(IdxStato.Value)); + } + else { + command.Parameters[2].Value = global::System.DBNull.Value; + } + if ((MatricolaKanban == null)) { + command.Parameters[3].Value = global::System.DBNull.Value; + } + else { + command.Parameters[3].Value = ((string)(MatricolaKanban)); + } + if ((Value == null)) { + command.Parameters[4].Value = global::System.DBNull.Value; + } + else { + command.Parameters[4].Value = ((string)(Value)); + } + if ((MatrOpr.HasValue == true)) { + command.Parameters[5].Value = ((int)(MatrOpr.Value)); + } + else { + command.Parameters[5].Value = global::System.DBNull.Value; + } + if ((pallet == null)) { + command.Parameters[6].Value = global::System.DBNull.Value; + } + else { + command.Parameters[6].Value = ((string)(pallet)); + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int InsStatoBatch(string IdxMacchina, global::System.Nullable InizioStato, global::System.Nullable IdxStato, string MatricolaKanban, string Value, global::System.Nullable MatrOpr, string pallet) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[18]; + if ((IdxMacchina == null)) { + command.Parameters[1].Value = global::System.DBNull.Value; + } + else { + command.Parameters[1].Value = ((string)(IdxMacchina)); + } + if ((InizioStato.HasValue == true)) { + command.Parameters[2].Value = ((System.DateTime)(InizioStato.Value)); + } + else { + command.Parameters[2].Value = global::System.DBNull.Value; + } + if ((IdxStato.HasValue == true)) { + command.Parameters[3].Value = ((int)(IdxStato.Value)); + } + else { + command.Parameters[3].Value = global::System.DBNull.Value; + } + if ((MatricolaKanban == null)) { + command.Parameters[4].Value = global::System.DBNull.Value; + } + else { + command.Parameters[4].Value = ((string)(MatricolaKanban)); + } + if ((Value == null)) { + command.Parameters[5].Value = global::System.DBNull.Value; + } + else { + command.Parameters[5].Value = ((string)(Value)); + } + if ((MatrOpr.HasValue == true)) { + command.Parameters[6].Value = ((int)(MatrOpr.Value)); + } + else { + command.Parameters[6].Value = global::System.DBNull.Value; + } + if ((pallet == null)) { + command.Parameters[7].Value = global::System.DBNull.Value; + } + else { + command.Parameters[7].Value = ((string)(pallet)); + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int UpdateFineDurata(global::System.Nullable FineStato, global::System.Nullable DurataMinuti, string Original_IdxMacchina, global::System.Nullable Original_InizioStato) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[19]; + if ((FineStato.HasValue == true)) { + command.Parameters[1].Value = ((System.DateTime)(FineStato.Value)); + } + else { + command.Parameters[1].Value = global::System.DBNull.Value; + } + if ((DurataMinuti.HasValue == true)) { + command.Parameters[2].Value = ((double)(DurataMinuti.Value)); + } + else { + command.Parameters[2].Value = global::System.DBNull.Value; + } + if ((Original_IdxMacchina == null)) { + command.Parameters[3].Value = global::System.DBNull.Value; + } + else { + command.Parameters[3].Value = ((string)(Original_IdxMacchina)); + } + if ((Original_InizioStato.HasValue == true)) { + command.Parameters[4].Value = ((System.DateTime)(Original_InizioStato.Value)); + } + else { + command.Parameters[4].Value = global::System.DBNull.Value; + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int UpdateStato(global::System.Nullable IdxStato, string Original_IdxMacchina, global::System.Nullable Original_InizioStato) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[20]; + if ((IdxStato.HasValue == true)) { + command.Parameters[1].Value = ((int)(IdxStato.Value)); + } + else { + command.Parameters[1].Value = global::System.DBNull.Value; + } + if ((Original_IdxMacchina == null)) { + command.Parameters[2].Value = global::System.DBNull.Value; + } + else { + command.Parameters[2].Value = ((string)(Original_IdxMacchina)); + } + if ((Original_InizioStato.HasValue == true)) { + command.Parameters[3].Value = ((System.DateTime)(Original_InizioStato.Value)); + } + else { + command.Parameters[3].Value = global::System.DBNull.Value; + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class TransizioneEventiTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public TransizioneEventiTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "TransizioneEventi"; + tableMapping.ColumnMappings.Add("codInviato", "codInviato"); + tableMapping.ColumnMappings.Add("prec_codInviato", "prec_codInviato"); + tableMapping.ColumnMappings.Add("IdxTipoEvento", "IdxTipoEvento"); + tableMapping.ColumnMappings.Add("text2show", "text2show"); + tableMapping.ColumnMappings.Add("descrComando", "descrComando"); + this._adapter.TableMappings.Add(tableMapping); + this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.DeleteCommand.Connection = this.Connection; + this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[TransizioneEventi] WHERE (([codInviato] = @Original_codInviato) AND ([prec_codInviato] = @Original_prec_codInviato) AND ((@IsNull_IdxTipoEvento = 1 AND [IdxTipoEvento] IS NULL) OR ([IdxTipoEvento] = @Original_IdxTipoEvento)) AND ((@IsNull_text2show = 1 AND [text2show] IS NULL) OR ([text2show] = @Original_text2show)) AND ((@IsNull_descrComando = 1 AND [descrComando] IS NULL) OR ([descrComando] = @Original_descrComando)))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_codInviato", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "codInviato", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_prec_codInviato", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "prec_codInviato", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IdxTipoEvento", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxTipoEvento", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxTipoEvento", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxTipoEvento", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_text2show", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "text2show", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_text2show", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "text2show", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_descrComando", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "descrComando", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_descrComando", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "descrComando", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.InsertCommand.Connection = this.Connection; + this._adapter.InsertCommand.CommandText = @" + INSERT INTO [dbo].[TransizioneEventi] ([codInviato], [prec_codInviato], [IdxTipoEvento], [text2show], [descrComando]) VALUES (@codInviato, @prec_codInviato, @IdxTipoEvento, @text2show, @descrComando); + SELECT codInviato, prec_codInviato, IdxTipoEvento, text2show, descrComando FROM TransizioneEventi WHERE (codInviato = @codInviato) AND (prec_codInviato = @prec_codInviato) + "; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@codInviato", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "codInviato", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@prec_codInviato", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "prec_codInviato", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxTipoEvento", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxTipoEvento", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@text2show", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "text2show", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@descrComando", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "descrComando", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.UpdateCommand.Connection = this.Connection; + this._adapter.UpdateCommand.CommandText = @" + UPDATE [dbo].[TransizioneEventi] SET [codInviato] = @codInviato, [prec_codInviato] = @prec_codInviato, [IdxTipoEvento] = @IdxTipoEvento, [text2show] = @text2show, [descrComando] = @descrComando WHERE (([codInviato] = @Original_codInviato) AND ([prec_codInviato] = @Original_prec_codInviato) AND ((@IsNull_IdxTipoEvento = 1 AND [IdxTipoEvento] IS NULL) OR ([IdxTipoEvento] = @Original_IdxTipoEvento)) AND ((@IsNull_text2show = 1 AND [text2show] IS NULL) OR ([text2show] = @Original_text2show)) AND ((@IsNull_descrComando = 1 AND [descrComando] IS NULL) OR ([descrComando] = @Original_descrComando))); + SELECT codInviato, prec_codInviato, IdxTipoEvento, text2show, descrComando FROM TransizioneEventi WHERE (codInviato = @codInviato) AND (prec_codInviato = @prec_codInviato) + "; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@codInviato", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "codInviato", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@prec_codInviato", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "prec_codInviato", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxTipoEvento", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxTipoEvento", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@text2show", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "text2show", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@descrComando", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "descrComando", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_codInviato", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "codInviato", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_prec_codInviato", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "prec_codInviato", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IdxTipoEvento", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxTipoEvento", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxTipoEvento", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxTipoEvento", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_text2show", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "text2show", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_text2show", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "text2show", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_descrComando", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "descrComando", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_descrComando", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "descrComando", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[3]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT codInviato, prec_codInviato, IdxTipoEvento, text2show, descrComando FROM d" + + "bo.TransizioneEventi"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "\r\n SELECT codInviato, prec_codInviato, IdxTipoEvento, te" + + "xt2show, descrComando\r\n FROM TransizioneEventi\r\n " + + " WHERE (descrComando = @descrComando)\r\n " + + " "; + this._commandCollection[1].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@descrComando", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, "descrComando", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[2].Connection = this.Connection; + this._commandCollection[2].CommandText = "\r\n SELECT *\r\n FROM dbo.TransizioneEvent" + + "i\r\n WHERE codInviato=@codInviato\r\n "; + this._commandCollection[2].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@codInviato", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "codInviato", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_applicazione.TransizioneEventiDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_applicazione.TransizioneEventiDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_applicazione.TransizioneEventiDataTable dataTable = new DS_applicazione.TransizioneEventiDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_applicazione.TransizioneEventiDataTable getByDescrComando(string descrComando) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((descrComando == null)) { + this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[0].Value = ((string)(descrComando)); + } + DS_applicazione.TransizioneEventiDataTable dataTable = new DS_applicazione.TransizioneEventiDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_applicazione.TransizioneEventiDataTable GetDataByCodInviato(string codInviato) { + this.Adapter.SelectCommand = this.CommandCollection[2]; + if ((codInviato == null)) { + throw new global::System.ArgumentNullException("codInviato"); + } + else { + this.Adapter.SelectCommand.Parameters[0].Value = ((string)(codInviato)); + } + DS_applicazione.TransizioneEventiDataTable dataTable = new DS_applicazione.TransizioneEventiDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_applicazione.TransizioneEventiDataTable dataTable) { + return this.Adapter.Update(dataTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_applicazione dataSet) { + return this.Adapter.Update(dataSet, "TransizioneEventi"); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow dataRow) { + return this.Adapter.Update(new global::System.Data.DataRow[] { + dataRow}); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow[] dataRows) { + return this.Adapter.Update(dataRows); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] + public virtual int Delete(string Original_codInviato, string Original_prec_codInviato, global::System.Nullable Original_IdxTipoEvento, string Original_text2show, string Original_descrComando) { + if ((Original_codInviato == null)) { + throw new global::System.ArgumentNullException("Original_codInviato"); + } + else { + this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_codInviato)); + } + if ((Original_prec_codInviato == null)) { + throw new global::System.ArgumentNullException("Original_prec_codInviato"); + } + else { + this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_prec_codInviato)); + } + if ((Original_IdxTipoEvento.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_IdxTipoEvento.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value; + } + if ((Original_text2show == null)) { + this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_text2show)); + } + if ((Original_descrComando == null)) { + this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[7].Value = ((string)(Original_descrComando)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; + if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.DeleteCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.DeleteCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] + public virtual int Insert(string codInviato, string prec_codInviato, global::System.Nullable IdxTipoEvento, string text2show, string descrComando) { + if ((codInviato == null)) { + throw new global::System.ArgumentNullException("codInviato"); + } + else { + this.Adapter.InsertCommand.Parameters[0].Value = ((string)(codInviato)); + } + if ((prec_codInviato == null)) { + throw new global::System.ArgumentNullException("prec_codInviato"); + } + else { + this.Adapter.InsertCommand.Parameters[1].Value = ((string)(prec_codInviato)); + } + if ((IdxTipoEvento.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[2].Value = ((int)(IdxTipoEvento.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((text2show == null)) { + this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[3].Value = ((string)(text2show)); + } + if ((descrComando == null)) { + this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[4].Value = ((string)(descrComando)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; + if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.InsertCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.InsertCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(string codInviato, string prec_codInviato, global::System.Nullable IdxTipoEvento, string text2show, string descrComando, string Original_codInviato, string Original_prec_codInviato, global::System.Nullable Original_IdxTipoEvento, string Original_text2show, string Original_descrComando) { + if ((codInviato == null)) { + throw new global::System.ArgumentNullException("codInviato"); + } + else { + this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(codInviato)); + } + if ((prec_codInviato == null)) { + throw new global::System.ArgumentNullException("prec_codInviato"); + } + else { + this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(prec_codInviato)); + } + if ((IdxTipoEvento.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(IdxTipoEvento.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((text2show == null)) { + this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(text2show)); + } + if ((descrComando == null)) { + this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(descrComando)); + } + if ((Original_codInviato == null)) { + throw new global::System.ArgumentNullException("Original_codInviato"); + } + else { + this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_codInviato)); + } + if ((Original_prec_codInviato == null)) { + throw new global::System.ArgumentNullException("Original_prec_codInviato"); + } + else { + this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_prec_codInviato)); + } + if ((Original_IdxTipoEvento.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(Original_IdxTipoEvento.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value; + } + if ((Original_text2show == null)) { + this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_text2show)); + } + if ((Original_descrComando == null)) { + this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_descrComando)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; + if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.UpdateCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.UpdateCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(global::System.Nullable IdxTipoEvento, string text2show, string descrComando, string Original_codInviato, string Original_prec_codInviato, global::System.Nullable Original_IdxTipoEvento, string Original_text2show, string Original_descrComando) { + return this.Update(Original_codInviato, Original_prec_codInviato, IdxTipoEvento, text2show, descrComando, Original_codInviato, Original_prec_codInviato, Original_IdxTipoEvento, Original_text2show, Original_descrComando); + } + } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class KeepAliveTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public KeepAliveTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "KeepAlive"; + tableMapping.ColumnMappings.Add("IdxMacchina", "IdxMacchina"); + tableMapping.ColumnMappings.Add("DataOraServer", "DataOraServer"); + tableMapping.ColumnMappings.Add("DataOraMacchina", "DataOraMacchina"); + tableMapping.ColumnMappings.Add("DataOraStart", "DataOraStart"); + this._adapter.TableMappings.Add(tableMapping); + this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.DeleteCommand.Connection = this.Connection; + this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[KeepAlive] WHERE (([IdxMacchina] = @Original_IdxMacchina) AND ((@IsNull_DataOraServer = 1 AND [DataOraServer] IS NULL) OR ([DataOraServer] = @Original_DataOraServer)) AND ((@IsNull_DataOraMacchina = 1 AND [DataOraMacchina] IS NULL) OR ([DataOraMacchina] = @Original_DataOraMacchina)) AND ((@IsNull_DataOraStart = 1 AND [DataOraStart] IS NULL) OR ([DataOraStart] = @Original_DataOraStart)))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DataOraServer", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraServer", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataOraServer", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraServer", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DataOraMacchina", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraMacchina", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataOraMacchina", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraMacchina", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DataOraStart", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraStart", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataOraStart", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraStart", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.InsertCommand.Connection = this.Connection; + this._adapter.InsertCommand.CommandText = @" + INSERT INTO [dbo].[KeepAlive] ([IdxMacchina], [DataOraServer], [DataOraMacchina], [DataOraStart]) VALUES (@IdxMacchina, @DataOraServer, @DataOraMacchina, @DataOraStart); + SELECT IdxMacchina, DataOraServer, DataOraMacchina, DataOraStart FROM KeepAlive WHERE (IdxMacchina = @IdxMacchina) + "; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataOraServer", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraServer", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataOraMacchina", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataOraStart", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraStart", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.UpdateCommand.Connection = this.Connection; + this._adapter.UpdateCommand.CommandText = @" + UPDATE [dbo].[KeepAlive] SET [IdxMacchina] = @IdxMacchina, [DataOraServer] = @DataOraServer, [DataOraMacchina] = @DataOraMacchina, [DataOraStart] = @DataOraStart WHERE (([IdxMacchina] = @Original_IdxMacchina) AND ((@IsNull_DataOraServer = 1 AND [DataOraServer] IS NULL) OR ([DataOraServer] = @Original_DataOraServer)) AND ((@IsNull_DataOraMacchina = 1 AND [DataOraMacchina] IS NULL) OR ([DataOraMacchina] = @Original_DataOraMacchina)) AND ((@IsNull_DataOraStart = 1 AND [DataOraStart] IS NULL) OR ([DataOraStart] = @Original_DataOraStart))); + SELECT IdxMacchina, DataOraServer, DataOraMacchina, DataOraStart FROM KeepAlive WHERE (IdxMacchina = @IdxMacchina) + "; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataOraServer", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraServer", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataOraMacchina", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataOraStart", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraStart", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DataOraServer", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraServer", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataOraServer", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraServer", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DataOraMacchina", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraMacchina", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataOraMacchina", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraMacchina", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DataOraStart", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraStart", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataOraStart", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraStart", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[4]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT IdxMacchina, DataOraServer, DataOraMacchina, DataOraStart FROM dbo.KeepAli" + + "ve"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "dbo.stp_KA_getByIdxMacchina"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[2].Connection = this.Connection; + this._commandCollection[2].CommandText = @" + UPDATE [dbo].[KeepAlive] + SET [DataOraServer] = @DataOraServer, [DataOraMacchina] = @DataOraMacchina, [DataOraStart] = @DataOraStart + WHERE ([IdxMacchina] = @Original_IdxMacchina) + "; + this._commandCollection[2].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataOraServer", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraServer", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataOraMacchina", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataOraStart", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraStart", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[3].Connection = this.Connection; + this._commandCollection[3].CommandText = "\r\n UPDATE [dbo].[KeepAlive]\r\n SET [Data" + + "OraServer] = @DataOraServer, [DataOraMacchina] = @DataOraMacchina\r\n " + + " WHERE ([IdxMacchina] = @Original_IdxMacchina)\r\n "; + this._commandCollection[3].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataOraServer", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraServer", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataOraMacchina", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_applicazione.KeepAliveDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_applicazione.KeepAliveDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_applicazione.KeepAliveDataTable dataTable = new DS_applicazione.KeepAliveDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_applicazione.KeepAliveDataTable getByIdxMacchina(string idxMacchina) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((idxMacchina == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(idxMacchina)); + } + DS_applicazione.KeepAliveDataTable dataTable = new DS_applicazione.KeepAliveDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_applicazione.KeepAliveDataTable dataTable) { + return this.Adapter.Update(dataTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_applicazione dataSet) { + return this.Adapter.Update(dataSet, "KeepAlive"); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow dataRow) { + return this.Adapter.Update(new global::System.Data.DataRow[] { + dataRow}); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow[] dataRows) { + return this.Adapter.Update(dataRows); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] + public virtual int Delete(string Original_IdxMacchina, global::System.Nullable Original_DataOraServer, global::System.Nullable Original_DataOraMacchina, global::System.Nullable Original_DataOraStart) { + if ((Original_IdxMacchina == null)) { + throw new global::System.ArgumentNullException("Original_IdxMacchina"); + } + else { + this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_IdxMacchina)); + } + if ((Original_DataOraServer.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[2].Value = ((System.DateTime)(Original_DataOraServer.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((Original_DataOraMacchina.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[4].Value = ((System.DateTime)(Original_DataOraMacchina.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value; + } + if ((Original_DataOraStart.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[6].Value = ((System.DateTime)(Original_DataOraStart.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value; + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; + if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.DeleteCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.DeleteCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] + public virtual int Insert(string IdxMacchina, global::System.Nullable DataOraServer, global::System.Nullable DataOraMacchina, global::System.Nullable DataOraStart) { + if ((IdxMacchina == null)) { + throw new global::System.ArgumentNullException("IdxMacchina"); + } + else { + this.Adapter.InsertCommand.Parameters[0].Value = ((string)(IdxMacchina)); + } + if ((DataOraServer.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(DataOraServer.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value; + } + if ((DataOraMacchina.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[2].Value = ((System.DateTime)(DataOraMacchina.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((DataOraStart.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[3].Value = ((System.DateTime)(DataOraStart.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value; + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; + if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.InsertCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.InsertCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(string IdxMacchina, global::System.Nullable DataOraServer, global::System.Nullable DataOraMacchina, global::System.Nullable DataOraStart, string Original_IdxMacchina, global::System.Nullable Original_DataOraServer, global::System.Nullable Original_DataOraMacchina, global::System.Nullable Original_DataOraStart) { + if ((IdxMacchina == null)) { + throw new global::System.ArgumentNullException("IdxMacchina"); + } + else { + this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(IdxMacchina)); + } + if ((DataOraServer.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[1].Value = ((System.DateTime)(DataOraServer.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value; + } + if ((DataOraMacchina.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[2].Value = ((System.DateTime)(DataOraMacchina.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((DataOraStart.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[3].Value = ((System.DateTime)(DataOraStart.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value; + } + if ((Original_IdxMacchina == null)) { + throw new global::System.ArgumentNullException("Original_IdxMacchina"); + } + else { + this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_IdxMacchina)); + } + if ((Original_DataOraServer.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[6].Value = ((System.DateTime)(Original_DataOraServer.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value; + } + if ((Original_DataOraMacchina.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[8].Value = ((System.DateTime)(Original_DataOraMacchina.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value; + } + if ((Original_DataOraStart.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[10].Value = ((System.DateTime)(Original_DataOraStart.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value; + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; + if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.UpdateCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.UpdateCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(global::System.Nullable DataOraServer, global::System.Nullable DataOraMacchina, global::System.Nullable DataOraStart, string Original_IdxMacchina, global::System.Nullable Original_DataOraServer, global::System.Nullable Original_DataOraMacchina, global::System.Nullable Original_DataOraStart) { + return this.Update(Original_IdxMacchina, DataOraServer, DataOraMacchina, DataOraStart, Original_IdxMacchina, Original_DataOraServer, Original_DataOraMacchina, Original_DataOraStart); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, false)] + public virtual int UpdateQuery(global::System.Nullable DataOraServer, global::System.Nullable DataOraMacchina, global::System.Nullable DataOraStart, string Original_IdxMacchina) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[2]; + if ((DataOraServer.HasValue == true)) { + command.Parameters[0].Value = ((System.DateTime)(DataOraServer.Value)); + } + else { + command.Parameters[0].Value = global::System.DBNull.Value; + } + if ((DataOraMacchina.HasValue == true)) { + command.Parameters[1].Value = ((System.DateTime)(DataOraMacchina.Value)); + } + else { + command.Parameters[1].Value = global::System.DBNull.Value; + } + if ((DataOraStart.HasValue == true)) { + command.Parameters[2].Value = ((System.DateTime)(DataOraStart.Value)); + } + else { + command.Parameters[2].Value = global::System.DBNull.Value; + } + if ((Original_IdxMacchina == null)) { + throw new global::System.ArgumentNullException("Original_IdxMacchina"); + } + else { + command.Parameters[3].Value = ((string)(Original_IdxMacchina)); + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, false)] + public virtual int UpdateQueryNoStartTime(global::System.Nullable DataOraServer, global::System.Nullable DataOraMacchina, string Original_IdxMacchina) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3]; + if ((DataOraServer.HasValue == true)) { + command.Parameters[0].Value = ((System.DateTime)(DataOraServer.Value)); + } + else { + command.Parameters[0].Value = global::System.DBNull.Value; + } + if ((DataOraMacchina.HasValue == true)) { + command.Parameters[1].Value = ((System.DateTime)(DataOraMacchina.Value)); + } + else { + command.Parameters[1].Value = global::System.DBNull.Value; + } + if ((Original_IdxMacchina == null)) { + throw new global::System.ArgumentNullException("Original_IdxMacchina"); + } + else { + command.Parameters[2].Value = ((string)(Original_IdxMacchina)); + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class Macchine2FamigliaIngressiTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public Macchine2FamigliaIngressiTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "Macchine2FamigliaIngressi"; + tableMapping.ColumnMappings.Add("IdxFamigliaIngresso", "IdxFamigliaIngresso"); + tableMapping.ColumnMappings.Add("IdxMacchina", "IdxMacchina"); + this._adapter.TableMappings.Add(tableMapping); + this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.DeleteCommand.Connection = this.Connection; + this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Macchine2FamigliaIngressi] WHERE (([IdxFamigliaIngresso] = @Or" + + "iginal_IdxFamigliaIngresso) AND ([IdxMacchina] = @Original_IdxMacchina))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxFamigliaIngresso", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxFamigliaIngresso", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.InsertCommand.Connection = this.Connection; + this._adapter.InsertCommand.CommandText = @" + INSERT INTO [dbo].[Macchine2FamigliaIngressi] ([IdxFamigliaIngresso], [IdxMacchina]) VALUES (@IdxFamigliaIngresso, @IdxMacchina); + SELECT IdxFamigliaIngresso, IdxMacchina FROM Macchine2FamigliaIngressi WHERE (IdxFamigliaIngresso = @IdxFamigliaIngresso) AND (IdxMacchina = @IdxMacchina) + "; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxFamigliaIngresso", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxFamigliaIngresso", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.UpdateCommand.Connection = this.Connection; + this._adapter.UpdateCommand.CommandText = @" + UPDATE [dbo].[Macchine2FamigliaIngressi] SET [IdxFamigliaIngresso] = @IdxFamigliaIngresso, [IdxMacchina] = @IdxMacchina WHERE (([IdxFamigliaIngresso] = @Original_IdxFamigliaIngresso) AND ([IdxMacchina] = @Original_IdxMacchina)); + SELECT IdxFamigliaIngresso, IdxMacchina FROM Macchine2FamigliaIngressi WHERE (IdxFamigliaIngresso = @IdxFamigliaIngresso) AND (IdxMacchina = @IdxMacchina) + "; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxFamigliaIngresso", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxFamigliaIngresso", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxFamigliaIngresso", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxFamigliaIngresso", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT IdxFamigliaIngresso, IdxMacchina FROM dbo.Macchine2FamigliaIngressi"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_applicazione.Macchine2FamigliaIngressiDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_applicazione.Macchine2FamigliaIngressiDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_applicazione.Macchine2FamigliaIngressiDataTable dataTable = new DS_applicazione.Macchine2FamigliaIngressiDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_applicazione.Macchine2FamigliaIngressiDataTable dataTable) { + return this.Adapter.Update(dataTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_applicazione dataSet) { + return this.Adapter.Update(dataSet, "Macchine2FamigliaIngressi"); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow dataRow) { + return this.Adapter.Update(new global::System.Data.DataRow[] { + dataRow}); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow[] dataRows) { + return this.Adapter.Update(dataRows); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] + public virtual int Delete(int Original_IdxFamigliaIngresso, string Original_IdxMacchina) { + this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdxFamigliaIngresso)); + if ((Original_IdxMacchina == null)) { + throw new global::System.ArgumentNullException("Original_IdxMacchina"); + } + else { + this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_IdxMacchina)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; + if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.DeleteCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.DeleteCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] + public virtual int Insert(int IdxFamigliaIngresso, string IdxMacchina) { + this.Adapter.InsertCommand.Parameters[0].Value = ((int)(IdxFamigliaIngresso)); + if ((IdxMacchina == null)) { + throw new global::System.ArgumentNullException("IdxMacchina"); + } + else { + this.Adapter.InsertCommand.Parameters[1].Value = ((string)(IdxMacchina)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; + if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.InsertCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.InsertCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(int IdxFamigliaIngresso, string IdxMacchina, int Original_IdxFamigliaIngresso, string Original_IdxMacchina) { + this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(IdxFamigliaIngresso)); + if ((IdxMacchina == null)) { + throw new global::System.ArgumentNullException("IdxMacchina"); + } + else { + this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(IdxMacchina)); + } + this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_IdxFamigliaIngresso)); + if ((Original_IdxMacchina == null)) { + throw new global::System.ArgumentNullException("Original_IdxMacchina"); + } + else { + this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_IdxMacchina)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; + if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.UpdateCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.UpdateCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(int Original_IdxFamigliaIngresso, string Original_IdxMacchina) { + return this.Update(Original_IdxFamigliaIngresso, Original_IdxMacchina, Original_IdxFamigliaIngresso, Original_IdxMacchina); + } + } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class FamigliaTipoIngressiTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public FamigliaTipoIngressiTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "FamigliaTipoIngressi"; + tableMapping.ColumnMappings.Add("IdxFamigliaIngresso", "IdxFamigliaIngresso"); + tableMapping.ColumnMappings.Add("DescrizioneIngresso", "DescrizioneIngresso"); + this._adapter.TableMappings.Add(tableMapping); + this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.DeleteCommand.Connection = this.Connection; + this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[FamigliaTipoIngressi] WHERE (([IdxFamigliaIngresso] = @Origina" + + "l_IdxFamigliaIngresso) AND ((@IsNull_DescrizioneIngresso = 1 AND [DescrizioneIng" + + "resso] IS NULL) OR ([DescrizioneIngresso] = @Original_DescrizioneIngresso)))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxFamigliaIngresso", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxFamigliaIngresso", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescrizioneIngresso", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrizioneIngresso", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescrizioneIngresso", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrizioneIngresso", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.InsertCommand.Connection = this.Connection; + this._adapter.InsertCommand.CommandText = @" + INSERT INTO [dbo].[FamigliaTipoIngressi] ([IdxFamigliaIngresso], [DescrizioneIngresso]) VALUES (@IdxFamigliaIngresso, @DescrizioneIngresso); + SELECT IdxFamigliaIngresso, DescrizioneIngresso FROM FamigliaTipoIngressi WHERE (IdxFamigliaIngresso = @IdxFamigliaIngresso) + "; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxFamigliaIngresso", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxFamigliaIngresso", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescrizioneIngresso", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrizioneIngresso", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.UpdateCommand.Connection = this.Connection; + this._adapter.UpdateCommand.CommandText = @" + UPDATE [dbo].[FamigliaTipoIngressi] SET [IdxFamigliaIngresso] = @IdxFamigliaIngresso, [DescrizioneIngresso] = @DescrizioneIngresso WHERE (([IdxFamigliaIngresso] = @Original_IdxFamigliaIngresso) AND ((@IsNull_DescrizioneIngresso = 1 AND [DescrizioneIngresso] IS NULL) OR ([DescrizioneIngresso] = @Original_DescrizioneIngresso))); + SELECT IdxFamigliaIngresso, DescrizioneIngresso FROM FamigliaTipoIngressi WHERE (IdxFamigliaIngresso = @IdxFamigliaIngresso) + "; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxFamigliaIngresso", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxFamigliaIngresso", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescrizioneIngresso", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrizioneIngresso", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxFamigliaIngresso", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxFamigliaIngresso", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescrizioneIngresso", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrizioneIngresso", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescrizioneIngresso", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescrizioneIngresso", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT IdxFamigliaIngresso, DescrizioneIngresso FROM dbo.FamigliaTipoIngressi"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_applicazione.FamigliaTipoIngressiDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_applicazione.FamigliaTipoIngressiDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_applicazione.FamigliaTipoIngressiDataTable dataTable = new DS_applicazione.FamigliaTipoIngressiDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_applicazione.FamigliaTipoIngressiDataTable dataTable) { + return this.Adapter.Update(dataTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_applicazione dataSet) { + return this.Adapter.Update(dataSet, "FamigliaTipoIngressi"); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow dataRow) { + return this.Adapter.Update(new global::System.Data.DataRow[] { + dataRow}); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow[] dataRows) { + return this.Adapter.Update(dataRows); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] + public virtual int Delete(int Original_IdxFamigliaIngresso, string Original_DescrizioneIngresso) { + this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdxFamigliaIngresso)); + if ((Original_DescrizioneIngresso == null)) { + this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_DescrizioneIngresso)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; + if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.DeleteCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.DeleteCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] + public virtual int Insert(int IdxFamigliaIngresso, string DescrizioneIngresso) { + this.Adapter.InsertCommand.Parameters[0].Value = ((int)(IdxFamigliaIngresso)); + if ((DescrizioneIngresso == null)) { + this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[1].Value = ((string)(DescrizioneIngresso)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; + if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.InsertCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.InsertCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(int IdxFamigliaIngresso, string DescrizioneIngresso, int Original_IdxFamigliaIngresso, string Original_DescrizioneIngresso) { + this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(IdxFamigliaIngresso)); + if ((DescrizioneIngresso == null)) { + this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(DescrizioneIngresso)); + } + this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_IdxFamigliaIngresso)); + if ((Original_DescrizioneIngresso == null)) { + this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_DescrizioneIngresso)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; + if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.UpdateCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.UpdateCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(string DescrizioneIngresso, int Original_IdxFamigliaIngresso, string Original_DescrizioneIngresso) { + return this.Update(Original_IdxFamigliaIngresso, DescrizioneIngresso, Original_IdxFamigliaIngresso, Original_DescrizioneIngresso); + } + } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class TransizioneIngressiTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public TransizioneIngressiTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "TransizioneIngressi"; + tableMapping.ColumnMappings.Add("IdxFamigliaIngresso", "IdxFamigliaIngresso"); + tableMapping.ColumnMappings.Add("IdxMicroStato", "IdxMicroStato"); + tableMapping.ColumnMappings.Add("ValoreIngresso", "ValoreIngresso"); + tableMapping.ColumnMappings.Add("IdxTipoEvento", "IdxTipoEvento"); + tableMapping.ColumnMappings.Add("next_IdxMicroStato", "next_IdxMicroStato"); + this._adapter.TableMappings.Add(tableMapping); + this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.DeleteCommand.Connection = this.Connection; + this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[TransizioneIngressi] WHERE (([IdxFamigliaIngresso] = @Original_IdxFamigliaIngresso) AND ([IdxMicroStato] = @Original_IdxMicroStato) AND ([ValoreIngresso] = @Original_ValoreIngresso) AND ((@IsNull_IdxTipoEvento = 1 AND [IdxTipoEvento] IS NULL) OR ([IdxTipoEvento] = @Original_IdxTipoEvento)) AND ([next_IdxMicroStato] = @Original_next_IdxMicroStato))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxFamigliaIngresso", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxFamigliaIngresso", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMicroStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMicroStato", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ValoreIngresso", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ValoreIngresso", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IdxTipoEvento", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxTipoEvento", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxTipoEvento", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxTipoEvento", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_next_IdxMicroStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "next_IdxMicroStato", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.InsertCommand.Connection = this.Connection; + this._adapter.InsertCommand.CommandText = @" + INSERT INTO [dbo].[TransizioneIngressi] ([IdxFamigliaIngresso], [IdxMicroStato], [ValoreIngresso], [IdxTipoEvento], [next_IdxMicroStato]) VALUES (@IdxFamigliaIngresso, @IdxMicroStato, @ValoreIngresso, @IdxTipoEvento, @next_IdxMicroStato); + SELECT IdxFamigliaIngresso, IdxMicroStato, ValoreIngresso, IdxTipoEvento, next_IdxMicroStato FROM TransizioneIngressi WHERE (IdxFamigliaIngresso = @IdxFamigliaIngresso) AND (IdxMicroStato = @IdxMicroStato) AND (ValoreIngresso = @ValoreIngresso) + "; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxFamigliaIngresso", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxFamigliaIngresso", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMicroStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMicroStato", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ValoreIngresso", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ValoreIngresso", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxTipoEvento", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxTipoEvento", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@next_IdxMicroStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "next_IdxMicroStato", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.UpdateCommand.Connection = this.Connection; + this._adapter.UpdateCommand.CommandText = @" + UPDATE [dbo].[TransizioneIngressi] SET [IdxFamigliaIngresso] = @IdxFamigliaIngresso, [IdxMicroStato] = @IdxMicroStato, [ValoreIngresso] = @ValoreIngresso, [IdxTipoEvento] = @IdxTipoEvento, [next_IdxMicroStato] = @next_IdxMicroStato WHERE (([IdxFamigliaIngresso] = @Original_IdxFamigliaIngresso) AND ([IdxMicroStato] = @Original_IdxMicroStato) AND ([ValoreIngresso] = @Original_ValoreIngresso) AND ((@IsNull_IdxTipoEvento = 1 AND [IdxTipoEvento] IS NULL) OR ([IdxTipoEvento] = @Original_IdxTipoEvento)) AND ([next_IdxMicroStato] = @Original_next_IdxMicroStato)); + SELECT IdxFamigliaIngresso, IdxMicroStato, ValoreIngresso, IdxTipoEvento, next_IdxMicroStato FROM TransizioneIngressi WHERE (IdxFamigliaIngresso = @IdxFamigliaIngresso) AND (IdxMicroStato = @IdxMicroStato) AND (ValoreIngresso = @ValoreIngresso) + "; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxFamigliaIngresso", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxFamigliaIngresso", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMicroStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMicroStato", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ValoreIngresso", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ValoreIngresso", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxTipoEvento", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxTipoEvento", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@next_IdxMicroStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "next_IdxMicroStato", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxFamigliaIngresso", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxFamigliaIngresso", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMicroStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMicroStato", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ValoreIngresso", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ValoreIngresso", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IdxTipoEvento", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxTipoEvento", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxTipoEvento", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxTipoEvento", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_next_IdxMicroStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "next_IdxMicroStato", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[4]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT IdxFamigliaIngresso, IdxMicroStato, ValoreIngresso, IdxTipoEvento, next_Id" + + "xMicroStato FROM dbo.TransizioneIngressi"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "dbo.stp_TRI_getByIdxMacchinaValore"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ValoreIngresso", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[2].Connection = this.Connection; + this._commandCollection[2].CommandText = "dbo.stp_TRI_getByIdxMacchina"; + this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[3].Connection = this.Connection; + this._commandCollection[3].CommandText = @" + SELECT TransizioneIngressi.IdxFamigliaIngresso, TransizioneIngressi.IdxMicroStato, TransizioneIngressi.ValoreIngresso, TransizioneIngressi.IdxTipoEvento, + TransizioneIngressi.next_IdxMicroStato + FROM TransizioneIngressi INNER JOIN + Macchine2FamigliaIngressi ON TransizioneIngressi.IdxFamigliaIngresso = Macchine2FamigliaIngressi.IdxFamigliaIngresso + WHERE (Macchine2FamigliaIngressi.IdxMacchina = @IdxMacchina) AND (TransizioneIngressi.IdxMicroStato = @IdxMicroStato) AND + (TransizioneIngressi.ValoreIngresso = @ValoreIngresso) + "; + this._commandCollection[3].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMicroStato", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMicroStato", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ValoreIngresso", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ValoreIngresso", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_applicazione.TransizioneIngressiDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_applicazione.TransizioneIngressiDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_applicazione.TransizioneIngressiDataTable dataTable = new DS_applicazione.TransizioneIngressiDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_applicazione.TransizioneIngressiDataTable getByIdxMacchinaValore(string IdxMacchina, global::System.Nullable ValoreIngresso) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((IdxMacchina == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(IdxMacchina)); + } + if ((ValoreIngresso.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((int)(ValoreIngresso.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + DS_applicazione.TransizioneIngressiDataTable dataTable = new DS_applicazione.TransizioneIngressiDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_applicazione.TransizioneIngressiDataTable getMatriceByIdxMacchina(string IdxMacchina) { + this.Adapter.SelectCommand = this.CommandCollection[2]; + if ((IdxMacchina == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(IdxMacchina)); + } + DS_applicazione.TransizioneIngressiDataTable dataTable = new DS_applicazione.TransizioneIngressiDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_applicazione.TransizioneIngressiDataTable GetNextStatus(string IdxMacchina, int IdxMicroStato, int ValoreIngresso) { + this.Adapter.SelectCommand = this.CommandCollection[3]; + if ((IdxMacchina == null)) { + throw new global::System.ArgumentNullException("IdxMacchina"); + } + else { + this.Adapter.SelectCommand.Parameters[0].Value = ((string)(IdxMacchina)); + } + this.Adapter.SelectCommand.Parameters[1].Value = ((int)(IdxMicroStato)); + this.Adapter.SelectCommand.Parameters[2].Value = ((int)(ValoreIngresso)); + DS_applicazione.TransizioneIngressiDataTable dataTable = new DS_applicazione.TransizioneIngressiDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_applicazione.TransizioneIngressiDataTable dataTable) { + return this.Adapter.Update(dataTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_applicazione dataSet) { + return this.Adapter.Update(dataSet, "TransizioneIngressi"); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow dataRow) { + return this.Adapter.Update(new global::System.Data.DataRow[] { + dataRow}); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow[] dataRows) { + return this.Adapter.Update(dataRows); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] + public virtual int Delete(int Original_IdxFamigliaIngresso, int Original_IdxMicroStato, int Original_ValoreIngresso, global::System.Nullable Original_IdxTipoEvento, int Original_next_IdxMicroStato) { + this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdxFamigliaIngresso)); + this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_IdxMicroStato)); + this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_ValoreIngresso)); + if ((Original_IdxTipoEvento.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_IdxTipoEvento.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value; + } + this.Adapter.DeleteCommand.Parameters[5].Value = ((int)(Original_next_IdxMicroStato)); + global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; + if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.DeleteCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.DeleteCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] + public virtual int Insert(int IdxFamigliaIngresso, int IdxMicroStato, int ValoreIngresso, global::System.Nullable IdxTipoEvento, int next_IdxMicroStato) { + this.Adapter.InsertCommand.Parameters[0].Value = ((int)(IdxFamigliaIngresso)); + this.Adapter.InsertCommand.Parameters[1].Value = ((int)(IdxMicroStato)); + this.Adapter.InsertCommand.Parameters[2].Value = ((int)(ValoreIngresso)); + if ((IdxTipoEvento.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[3].Value = ((int)(IdxTipoEvento.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value; + } + this.Adapter.InsertCommand.Parameters[4].Value = ((int)(next_IdxMicroStato)); + global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; + if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.InsertCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.InsertCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(int IdxFamigliaIngresso, int IdxMicroStato, int ValoreIngresso, global::System.Nullable IdxTipoEvento, int next_IdxMicroStato, int Original_IdxFamigliaIngresso, int Original_IdxMicroStato, int Original_ValoreIngresso, global::System.Nullable Original_IdxTipoEvento, int Original_next_IdxMicroStato) { + this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(IdxFamigliaIngresso)); + this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(IdxMicroStato)); + this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(ValoreIngresso)); + if ((IdxTipoEvento.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(IdxTipoEvento.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value; + } + this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(next_IdxMicroStato)); + this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_IdxFamigliaIngresso)); + this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_IdxMicroStato)); + this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_ValoreIngresso)); + if ((Original_IdxTipoEvento.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_IdxTipoEvento.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value; + } + this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Original_next_IdxMicroStato)); + global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; + if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.UpdateCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.UpdateCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(global::System.Nullable IdxTipoEvento, int next_IdxMicroStato, int Original_IdxFamigliaIngresso, int Original_IdxMicroStato, int Original_ValoreIngresso, global::System.Nullable Original_IdxTipoEvento, int Original_next_IdxMicroStato) { + return this.Update(Original_IdxFamigliaIngresso, Original_IdxMicroStato, Original_ValoreIngresso, IdxTipoEvento, next_IdxMicroStato, Original_IdxFamigliaIngresso, Original_IdxMicroStato, Original_ValoreIngresso, Original_IdxTipoEvento, Original_next_IdxMicroStato); + } + } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class AnagraficaOperatoriTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagraficaOperatoriTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "AnagraficaOperatori"; + tableMapping.ColumnMappings.Add("MatrOpr", "MatrOpr"); + tableMapping.ColumnMappings.Add("Cognome", "Cognome"); + tableMapping.ColumnMappings.Add("Nome", "Nome"); + tableMapping.ColumnMappings.Add("isAdmin", "isAdmin"); + tableMapping.ColumnMappings.Add("authKey", "authKey"); + this._adapter.TableMappings.Add(tableMapping); + this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.DeleteCommand.Connection = this.Connection; + this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[AnagraficaOperatori] WHERE (([MatrOpr] = @Original_MatrOpr) AND ((@IsNull_Cognome = 1 AND [Cognome] IS NULL) OR ([Cognome] = @Original_Cognome)) AND ((@IsNull_Nome = 1 AND [Nome] IS NULL) OR ([Nome] = @Original_Nome)) AND ((@IsNull_isAdmin = 1 AND [isAdmin] IS NULL) OR ([isAdmin] = @Original_isAdmin)) AND ((@IsNull_authKey = 1 AND [authKey] IS NULL) OR ([authKey] = @Original_authKey)))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MatrOpr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrOpr", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Cognome", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cognome", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Cognome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cognome", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Nome", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nome", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Nome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nome", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_isAdmin", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "isAdmin", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_isAdmin", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "isAdmin", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_authKey", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "authKey", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_authKey", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "authKey", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.InsertCommand.Connection = this.Connection; + this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[AnagraficaOperatori] ([MatrOpr], [Cognome], [Nome], [isAdmin]," + + " [authKey]) VALUES (@MatrOpr, @Cognome, @Nome, @isAdmin, @authKey);\r\nSELECT Matr" + + "Opr, Cognome, Nome, isAdmin, authKey FROM AnagraficaOperatori WHERE (MatrOpr = @" + + "MatrOpr)"; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrOpr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrOpr", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Cognome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cognome", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Nome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nome", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@isAdmin", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "isAdmin", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@authKey", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "authKey", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.UpdateCommand.Connection = this.Connection; + this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[AnagraficaOperatori] SET [MatrOpr] = @MatrOpr, [Cognome] = @Cognome, [Nome] = @Nome, [isAdmin] = @isAdmin, [authKey] = @authKey WHERE (([MatrOpr] = @Original_MatrOpr) AND ((@IsNull_Cognome = 1 AND [Cognome] IS NULL) OR ([Cognome] = @Original_Cognome)) AND ((@IsNull_Nome = 1 AND [Nome] IS NULL) OR ([Nome] = @Original_Nome)) AND ((@IsNull_isAdmin = 1 AND [isAdmin] IS NULL) OR ([isAdmin] = @Original_isAdmin)) AND ((@IsNull_authKey = 1 AND [authKey] IS NULL) OR ([authKey] = @Original_authKey))); +SELECT MatrOpr, Cognome, Nome, isAdmin, authKey FROM AnagraficaOperatori WHERE (MatrOpr = @MatrOpr)"; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrOpr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrOpr", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Cognome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cognome", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Nome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nome", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@isAdmin", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "isAdmin", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@authKey", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "authKey", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MatrOpr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrOpr", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Cognome", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cognome", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Cognome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cognome", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Nome", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nome", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Nome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nome", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_isAdmin", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "isAdmin", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_isAdmin", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "isAdmin", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_authKey", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "authKey", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_authKey", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "authKey", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[3]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT * FROM dbo.AnagraficaOperatori"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "dbo.stp_AO_getByMatrAuthKey"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrOpr", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@authKey", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[2].Connection = this.Connection; + this._commandCollection[2].CommandText = "dbo.stp_AO_getByMatr"; + this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrOpr", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_applicazione.AnagraficaOperatoriDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_applicazione.AnagraficaOperatoriDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_applicazione.AnagraficaOperatoriDataTable dataTable = new DS_applicazione.AnagraficaOperatoriDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_applicazione.AnagraficaOperatoriDataTable getByMatrAuthKey(global::System.Nullable MatrOpr, string authKey) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((MatrOpr.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[1].Value = ((int)(MatrOpr.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + if ((authKey == null)) { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = ((string)(authKey)); + } + DS_applicazione.AnagraficaOperatoriDataTable dataTable = new DS_applicazione.AnagraficaOperatoriDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_applicazione.AnagraficaOperatoriDataTable getByMatrOpr(global::System.Nullable MatrOpr) { + this.Adapter.SelectCommand = this.CommandCollection[2]; + if ((MatrOpr.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[1].Value = ((int)(MatrOpr.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + DS_applicazione.AnagraficaOperatoriDataTable dataTable = new DS_applicazione.AnagraficaOperatoriDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_applicazione.AnagraficaOperatoriDataTable dataTable) { + return this.Adapter.Update(dataTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_applicazione dataSet) { + return this.Adapter.Update(dataSet, "AnagraficaOperatori"); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow dataRow) { + return this.Adapter.Update(new global::System.Data.DataRow[] { + dataRow}); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow[] dataRows) { + return this.Adapter.Update(dataRows); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] + public virtual int Delete(int Original_MatrOpr, string Original_Cognome, string Original_Nome, global::System.Nullable Original_isAdmin, string Original_authKey) { + this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_MatrOpr)); + if ((Original_Cognome == null)) { + this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Cognome)); + } + if ((Original_Nome == null)) { + this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Nome)); + } + if ((Original_isAdmin.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[6].Value = ((bool)(Original_isAdmin.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value; + } + if ((Original_authKey == null)) { + this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_authKey)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; + if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.DeleteCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.DeleteCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] + public virtual int Insert(int MatrOpr, string Cognome, string Nome, global::System.Nullable isAdmin, string authKey) { + this.Adapter.InsertCommand.Parameters[0].Value = ((int)(MatrOpr)); + if ((Cognome == null)) { + this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Cognome)); + } + if ((Nome == null)) { + this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Nome)); + } + if ((isAdmin.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[3].Value = ((bool)(isAdmin.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value; + } + if ((authKey == null)) { + this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[4].Value = ((string)(authKey)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; + if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.InsertCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.InsertCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(int MatrOpr, string Cognome, string Nome, global::System.Nullable isAdmin, string authKey, int Original_MatrOpr, string Original_Cognome, string Original_Nome, global::System.Nullable Original_isAdmin, string Original_authKey) { + this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(MatrOpr)); + if ((Cognome == null)) { + this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Cognome)); + } + if ((Nome == null)) { + this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Nome)); + } + if ((isAdmin.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[3].Value = ((bool)(isAdmin.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value; + } + if ((authKey == null)) { + this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(authKey)); + } + this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_MatrOpr)); + if ((Original_Cognome == null)) { + this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Cognome)); + } + if ((Original_Nome == null)) { + this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_Nome)); + } + if ((Original_isAdmin.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[11].Value = ((bool)(Original_isAdmin.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value; + } + if ((Original_authKey == null)) { + this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_authKey)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; + if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.UpdateCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.UpdateCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(string Cognome, string Nome, global::System.Nullable isAdmin, string authKey, int Original_MatrOpr, string Original_Cognome, string Original_Nome, global::System.Nullable Original_isAdmin, string Original_authKey) { + return this.Update(Original_MatrOpr, Cognome, Nome, isAdmin, authKey, Original_MatrOpr, Original_Cognome, Original_Nome, Original_isAdmin, Original_authKey); + } + } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class Kanban2insTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public Kanban2insTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "Kanban2ins"; + tableMapping.ColumnMappings.Add("MatricolaKanban", "MatricolaKanban"); + tableMapping.ColumnMappings.Add("KanbanCode", "KanbanCode"); + tableMapping.ColumnMappings.Add("TempoCicloBase", "TempoCicloBase"); + tableMapping.ColumnMappings.Add("PzPallet", "PzPallet"); + this._adapter.TableMappings.Add(tableMapping); + this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.DeleteCommand.Connection = this.Connection; + this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Kanban2ins] WHERE (([MatricolaKanban] = @Original_MatricolaKanban) AND ((@IsNull_KanbanCode = 1 AND [KanbanCode] IS NULL) OR ([KanbanCode] = @Original_KanbanCode)) AND ((@IsNull_TempoCicloBase = 1 AND [TempoCicloBase] IS NULL) OR ([TempoCicloBase] = @Original_TempoCicloBase)) AND ((@IsNull_PzPallet = 1 AND [PzPallet] IS NULL) OR ([PzPallet] = @Original_PzPallet)))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MatricolaKanban", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatricolaKanban", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_KanbanCode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KanbanCode", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_KanbanCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KanbanCode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TempoCicloBase", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TempoCicloBase", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TempoCicloBase", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TempoCicloBase", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PzPallet", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PzPallet", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PzPallet", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PzPallet", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.InsertCommand.Connection = this.Connection; + this._adapter.InsertCommand.CommandText = @" + INSERT INTO [dbo].[Kanban2ins] ([MatricolaKanban], [KanbanCode], [TempoCicloBase], [PzPallet]) VALUES (@MatricolaKanban, @KanbanCode, @TempoCicloBase, @PzPallet); + SELECT MatricolaKanban, KanbanCode, TempoCicloBase, PzPallet FROM Kanban2ins WHERE (MatricolaKanban = @MatricolaKanban) + "; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatricolaKanban", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatricolaKanban", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@KanbanCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KanbanCode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TempoCicloBase", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TempoCicloBase", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PzPallet", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PzPallet", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.UpdateCommand.Connection = this.Connection; + this._adapter.UpdateCommand.CommandText = @" + UPDATE [dbo].[Kanban2ins] SET [MatricolaKanban] = @MatricolaKanban, [KanbanCode] = @KanbanCode, [TempoCicloBase] = @TempoCicloBase, [PzPallet] = @PzPallet WHERE (([MatricolaKanban] = @Original_MatricolaKanban) AND ((@IsNull_KanbanCode = 1 AND [KanbanCode] IS NULL) OR ([KanbanCode] = @Original_KanbanCode)) AND ((@IsNull_TempoCicloBase = 1 AND [TempoCicloBase] IS NULL) OR ([TempoCicloBase] = @Original_TempoCicloBase)) AND ((@IsNull_PzPallet = 1 AND [PzPallet] IS NULL) OR ([PzPallet] = @Original_PzPallet))); + SELECT MatricolaKanban, KanbanCode, TempoCicloBase, PzPallet FROM Kanban2ins WHERE (MatricolaKanban = @MatricolaKanban) + "; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatricolaKanban", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatricolaKanban", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@KanbanCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KanbanCode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TempoCicloBase", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TempoCicloBase", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PzPallet", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PzPallet", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MatricolaKanban", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatricolaKanban", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_KanbanCode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KanbanCode", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_KanbanCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KanbanCode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TempoCicloBase", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TempoCicloBase", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TempoCicloBase", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TempoCicloBase", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PzPallet", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PzPallet", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PzPallet", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PzPallet", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[3]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT MatricolaKanban, KanbanCode, TempoCicloBase, PzPallet FROM dbo.Kanban2ins"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "dbo.stp_K2I_deleteAll"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[2].Connection = this.Connection; + this._commandCollection[2].CommandText = "dbo.stp_K2I_updateKanban"; + this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_applicazione.Kanban2insDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_applicazione.Kanban2insDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_applicazione.Kanban2insDataTable dataTable = new DS_applicazione.Kanban2insDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_applicazione.Kanban2insDataTable dataTable) { + return this.Adapter.Update(dataTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_applicazione dataSet) { + return this.Adapter.Update(dataSet, "Kanban2ins"); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow dataRow) { + return this.Adapter.Update(new global::System.Data.DataRow[] { + dataRow}); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow[] dataRows) { + return this.Adapter.Update(dataRows); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] + public virtual int Delete(string Original_MatricolaKanban, string Original_KanbanCode, global::System.Nullable Original_TempoCicloBase, global::System.Nullable Original_PzPallet) { + if ((Original_MatricolaKanban == null)) { + throw new global::System.ArgumentNullException("Original_MatricolaKanban"); + } + else { + this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_MatricolaKanban)); + } + if ((Original_KanbanCode == null)) { + this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_KanbanCode)); + } + if ((Original_TempoCicloBase.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[4].Value = ((double)(Original_TempoCicloBase.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value; + } + if ((Original_PzPallet.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_PzPallet.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value; + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; + if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.DeleteCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.DeleteCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] + public virtual int Insert(string MatricolaKanban, string KanbanCode, global::System.Nullable TempoCicloBase, global::System.Nullable PzPallet) { + if ((MatricolaKanban == null)) { + throw new global::System.ArgumentNullException("MatricolaKanban"); + } + else { + this.Adapter.InsertCommand.Parameters[0].Value = ((string)(MatricolaKanban)); + } + if ((KanbanCode == null)) { + this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[1].Value = ((string)(KanbanCode)); + } + if ((TempoCicloBase.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[2].Value = ((double)(TempoCicloBase.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((PzPallet.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[3].Value = ((int)(PzPallet.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value; + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; + if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.InsertCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.InsertCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(string MatricolaKanban, string KanbanCode, global::System.Nullable TempoCicloBase, global::System.Nullable PzPallet, string Original_MatricolaKanban, string Original_KanbanCode, global::System.Nullable Original_TempoCicloBase, global::System.Nullable Original_PzPallet) { + if ((MatricolaKanban == null)) { + throw new global::System.ArgumentNullException("MatricolaKanban"); + } + else { + this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(MatricolaKanban)); + } + if ((KanbanCode == null)) { + this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(KanbanCode)); + } + if ((TempoCicloBase.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[2].Value = ((double)(TempoCicloBase.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((PzPallet.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(PzPallet.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value; + } + if ((Original_MatricolaKanban == null)) { + throw new global::System.ArgumentNullException("Original_MatricolaKanban"); + } + else { + this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_MatricolaKanban)); + } + if ((Original_KanbanCode == null)) { + this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_KanbanCode)); + } + if ((Original_TempoCicloBase.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[8].Value = ((double)(Original_TempoCicloBase.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value; + } + if ((Original_PzPallet.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Original_PzPallet.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value; + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; + if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.UpdateCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.UpdateCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(string KanbanCode, global::System.Nullable TempoCicloBase, global::System.Nullable PzPallet, string Original_MatricolaKanban, string Original_KanbanCode, global::System.Nullable Original_TempoCicloBase, global::System.Nullable Original_PzPallet) { + return this.Update(Original_MatricolaKanban, KanbanCode, TempoCicloBase, PzPallet, Original_MatricolaKanban, Original_KanbanCode, Original_TempoCicloBase, Original_PzPallet); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int DeleteAll() { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1]; + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int UpdateKanban() { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[2]; + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class AnagraficaOperatori2insTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public AnagraficaOperatori2insTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "AnagraficaOperatori2ins"; + tableMapping.ColumnMappings.Add("MatrOpr", "MatrOpr"); + tableMapping.ColumnMappings.Add("Cognome", "Cognome"); + tableMapping.ColumnMappings.Add("Nome", "Nome"); + this._adapter.TableMappings.Add(tableMapping); + this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.DeleteCommand.Connection = this.Connection; + this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[AnagraficaOperatori2ins] WHERE (([MatrOpr] = @Original_MatrOpr" + + ") AND ((@IsNull_Cognome = 1 AND [Cognome] IS NULL) OR ([Cognome] = @Original_Cog" + + "nome)) AND ((@IsNull_Nome = 1 AND [Nome] IS NULL) OR ([Nome] = @Original_Nome)))" + + ""; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MatrOpr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrOpr", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Cognome", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cognome", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Cognome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cognome", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Nome", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nome", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Nome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nome", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.InsertCommand.Connection = this.Connection; + this._adapter.InsertCommand.CommandText = @" + INSERT INTO [dbo].[AnagraficaOperatori2ins] ([MatrOpr], [Cognome], [Nome]) VALUES (@MatrOpr, @Cognome, @Nome); + SELECT MatrOpr, Cognome, Nome FROM AnagraficaOperatori2ins WHERE (MatrOpr = @MatrOpr) + "; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrOpr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrOpr", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Cognome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cognome", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Nome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nome", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.UpdateCommand.Connection = this.Connection; + this._adapter.UpdateCommand.CommandText = @" + UPDATE [dbo].[AnagraficaOperatori2ins] SET [MatrOpr] = @MatrOpr, [Cognome] = @Cognome, [Nome] = @Nome WHERE (([MatrOpr] = @Original_MatrOpr) AND ((@IsNull_Cognome = 1 AND [Cognome] IS NULL) OR ([Cognome] = @Original_Cognome)) AND ((@IsNull_Nome = 1 AND [Nome] IS NULL) OR ([Nome] = @Original_Nome))); + SELECT MatrOpr, Cognome, Nome FROM AnagraficaOperatori2ins WHERE (MatrOpr = @MatrOpr) + "; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrOpr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrOpr", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Cognome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cognome", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Nome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nome", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MatrOpr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatrOpr", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Cognome", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cognome", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Cognome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cognome", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Nome", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nome", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Nome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nome", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[3]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT MatrOpr, Cognome, Nome FROM dbo.AnagraficaOperatori2ins"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "dbo.stp_AO2I_deleteAll"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[2].Connection = this.Connection; + this._commandCollection[2].CommandText = "dbo.stp_AO2I_updateOperatori"; + this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_applicazione.AnagraficaOperatori2insDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_applicazione.AnagraficaOperatori2insDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_applicazione.AnagraficaOperatori2insDataTable dataTable = new DS_applicazione.AnagraficaOperatori2insDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_applicazione.AnagraficaOperatori2insDataTable dataTable) { + return this.Adapter.Update(dataTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_applicazione dataSet) { + return this.Adapter.Update(dataSet, "AnagraficaOperatori2ins"); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow dataRow) { + return this.Adapter.Update(new global::System.Data.DataRow[] { + dataRow}); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow[] dataRows) { + return this.Adapter.Update(dataRows); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] + public virtual int Delete(int Original_MatrOpr, string Original_Cognome, string Original_Nome) { + this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_MatrOpr)); + if ((Original_Cognome == null)) { + this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Cognome)); + } + if ((Original_Nome == null)) { + this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Nome)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; + if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.DeleteCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.DeleteCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] + public virtual int Insert(int MatrOpr, string Cognome, string Nome) { + this.Adapter.InsertCommand.Parameters[0].Value = ((int)(MatrOpr)); + if ((Cognome == null)) { + this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Cognome)); + } + if ((Nome == null)) { + this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Nome)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; + if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.InsertCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.InsertCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(int MatrOpr, string Cognome, string Nome, int Original_MatrOpr, string Original_Cognome, string Original_Nome) { + this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(MatrOpr)); + if ((Cognome == null)) { + this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Cognome)); + } + if ((Nome == null)) { + this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Nome)); + } + this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_MatrOpr)); + if ((Original_Cognome == null)) { + this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_Cognome)); + } + if ((Original_Nome == null)) { + this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Nome)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; + if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.UpdateCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.UpdateCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(string Cognome, string Nome, int Original_MatrOpr, string Original_Cognome, string Original_Nome) { + return this.Update(Original_MatrOpr, Cognome, Nome, Original_MatrOpr, Original_Cognome, Original_Nome); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int DeleteAll() { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1]; + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int UpdateOperatori() { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[2]; + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class DatiMacchineTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DatiMacchineTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "DatiMacchine"; + tableMapping.ColumnMappings.Add("idxMacchina", "idxMacchina"); + tableMapping.ColumnMappings.Add("palletChange", "palletChange"); + tableMapping.ColumnMappings.Add("kanban_A", "kanban_A"); + tableMapping.ColumnMappings.Add("kanban_B", "kanban_B"); + tableMapping.ColumnMappings.Add("serialPort", "serialPort"); + tableMapping.ColumnMappings.Add("refreshPeriod", "refreshPeriod"); + tableMapping.ColumnMappings.Add("simulazione", "simulazione"); + tableMapping.ColumnMappings.Add("simplePallet", "simplePallet"); + tableMapping.ColumnMappings.Add("insEnabled", "insEnabled"); + this._adapter.TableMappings.Add(tableMapping); + this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.DeleteCommand.Connection = this.Connection; + this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[DatiMacchine] WHERE (([idxMacchina] = @Original_idxMacchina) AND ((@IsNull_palletChange = 1 AND [palletChange] IS NULL) OR ([palletChange] = @Original_palletChange)) AND ((@IsNull_kanban_A = 1 AND [kanban_A] IS NULL) OR ([kanban_A] = @Original_kanban_A)) AND ((@IsNull_kanban_B = 1 AND [kanban_B] IS NULL) OR ([kanban_B] = @Original_kanban_B)) AND ((@IsNull_serialPort = 1 AND [serialPort] IS NULL) OR ([serialPort] = @Original_serialPort)) AND ((@IsNull_refreshPeriod = 1 AND [refreshPeriod] IS NULL) OR ([refreshPeriod] = @Original_refreshPeriod)) AND ((@IsNull_simulazione = 1 AND [simulazione] IS NULL) OR ([simulazione] = @Original_simulazione)) AND ((@IsNull_simplePallet = 1 AND [simplePallet] IS NULL) OR ([simplePallet] = @Original_simplePallet)) AND ((@IsNull_insEnabled = 1 AND [insEnabled] IS NULL) OR ([insEnabled] = @Original_insEnabled)))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxMacchina", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxMacchina", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_palletChange", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "palletChange", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_palletChange", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "palletChange", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_kanban_A", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "kanban_A", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_kanban_A", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "kanban_A", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_kanban_B", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "kanban_B", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_kanban_B", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "kanban_B", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_serialPort", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "serialPort", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_serialPort", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "serialPort", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_refreshPeriod", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "refreshPeriod", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_refreshPeriod", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "refreshPeriod", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_simulazione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "simulazione", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_simulazione", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "simulazione", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_simplePallet", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "simplePallet", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_simplePallet", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "simplePallet", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_insEnabled", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "insEnabled", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_insEnabled", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "insEnabled", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.InsertCommand.Connection = this.Connection; + this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[DatiMacchine] ([idxMacchina], [palletChange], [kanban_A], [kanban_B], [serialPort], [refreshPeriod], [simulazione], [simplePallet], [insEnabled]) VALUES (@idxMacchina, @palletChange, @kanban_A, @kanban_B, @serialPort, @refreshPeriod, @simulazione, @simplePallet, @insEnabled)"; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxMacchina", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@palletChange", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "palletChange", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@kanban_A", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "kanban_A", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@kanban_B", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "kanban_B", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@serialPort", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "serialPort", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@refreshPeriod", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "refreshPeriod", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@simulazione", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "simulazione", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@simplePallet", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "simplePallet", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@insEnabled", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "insEnabled", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.UpdateCommand.Connection = this.Connection; + this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[DatiMacchine] SET [idxMacchina] = @idxMacchina, [palletChange] = @palletChange, [kanban_A] = @kanban_A, [kanban_B] = @kanban_B, [serialPort] = @serialPort, [refreshPeriod] = @refreshPeriod, [simulazione] = @simulazione, [simplePallet] = @simplePallet, [insEnabled] = @insEnabled WHERE (([idxMacchina] = @Original_idxMacchina) AND ((@IsNull_palletChange = 1 AND [palletChange] IS NULL) OR ([palletChange] = @Original_palletChange)) AND ((@IsNull_kanban_A = 1 AND [kanban_A] IS NULL) OR ([kanban_A] = @Original_kanban_A)) AND ((@IsNull_kanban_B = 1 AND [kanban_B] IS NULL) OR ([kanban_B] = @Original_kanban_B)) AND ((@IsNull_serialPort = 1 AND [serialPort] IS NULL) OR ([serialPort] = @Original_serialPort)) AND ((@IsNull_refreshPeriod = 1 AND [refreshPeriod] IS NULL) OR ([refreshPeriod] = @Original_refreshPeriod)) AND ((@IsNull_simulazione = 1 AND [simulazione] IS NULL) OR ([simulazione] = @Original_simulazione)) AND ((@IsNull_simplePallet = 1 AND [simplePallet] IS NULL) OR ([simplePallet] = @Original_simplePallet)) AND ((@IsNull_insEnabled = 1 AND [insEnabled] IS NULL) OR ([insEnabled] = @Original_insEnabled)))"; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxMacchina", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@palletChange", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "palletChange", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@kanban_A", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "kanban_A", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@kanban_B", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "kanban_B", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@serialPort", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "serialPort", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@refreshPeriod", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "refreshPeriod", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@simulazione", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "simulazione", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@simplePallet", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "simplePallet", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@insEnabled", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "insEnabled", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxMacchina", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxMacchina", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_palletChange", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "palletChange", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_palletChange", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "palletChange", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_kanban_A", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "kanban_A", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_kanban_A", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "kanban_A", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_kanban_B", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "kanban_B", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_kanban_B", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "kanban_B", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_serialPort", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "serialPort", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_serialPort", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "serialPort", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_refreshPeriod", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "refreshPeriod", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_refreshPeriod", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "refreshPeriod", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_simulazione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "simulazione", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_simulazione", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "simulazione", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_simplePallet", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "simplePallet", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_simplePallet", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "simplePallet", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_insEnabled", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "insEnabled", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_insEnabled", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "insEnabled", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT *\r\nFROM dbo.DatiMacchine"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "SELECT *\r\nFROM DatiMacchine WHERE (idxMacchina = @idxMacchina)"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxMacchina", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idxMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_applicazione.DatiMacchineDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_applicazione.DatiMacchineDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_applicazione.DatiMacchineDataTable dataTable = new DS_applicazione.DatiMacchineDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_applicazione.DatiMacchineDataTable GetByIdx(int idxMacchina) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + this.Adapter.SelectCommand.Parameters[0].Value = ((int)(idxMacchina)); + DS_applicazione.DatiMacchineDataTable dataTable = new DS_applicazione.DatiMacchineDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_applicazione.DatiMacchineDataTable dataTable) { + return this.Adapter.Update(dataTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_applicazione dataSet) { + return this.Adapter.Update(dataSet, "DatiMacchine"); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow dataRow) { + return this.Adapter.Update(new global::System.Data.DataRow[] { + dataRow}); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow[] dataRows) { + return this.Adapter.Update(dataRows); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] + public virtual int Delete(int Original_idxMacchina, global::System.Nullable Original_palletChange, string Original_kanban_A, string Original_kanban_B, string Original_serialPort, global::System.Nullable Original_refreshPeriod, global::System.Nullable Original_simulazione, global::System.Nullable Original_simplePallet, global::System.Nullable Original_insEnabled) { + this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idxMacchina)); + if ((Original_palletChange.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[2].Value = ((bool)(Original_palletChange.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((Original_kanban_A == null)) { + this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_kanban_A)); + } + if ((Original_kanban_B == null)) { + this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_kanban_B)); + } + if ((Original_serialPort == null)) { + this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_serialPort)); + } + if ((Original_refreshPeriod.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[10].Value = ((int)(Original_refreshPeriod.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value; + } + if ((Original_simulazione.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[12].Value = ((bool)(Original_simulazione.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value; + } + if ((Original_simplePallet.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[14].Value = ((bool)(Original_simplePallet.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value; + } + if ((Original_insEnabled.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[16].Value = ((bool)(Original_insEnabled.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[16].Value = global::System.DBNull.Value; + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; + if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.DeleteCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.DeleteCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] + public virtual int Insert(int idxMacchina, global::System.Nullable palletChange, string kanban_A, string kanban_B, string serialPort, global::System.Nullable refreshPeriod, global::System.Nullable simulazione, global::System.Nullable simplePallet, global::System.Nullable insEnabled) { + this.Adapter.InsertCommand.Parameters[0].Value = ((int)(idxMacchina)); + if ((palletChange.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[1].Value = ((bool)(palletChange.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value; + } + if ((kanban_A == null)) { + this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[2].Value = ((string)(kanban_A)); + } + if ((kanban_B == null)) { + this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[3].Value = ((string)(kanban_B)); + } + if ((serialPort == null)) { + this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[4].Value = ((string)(serialPort)); + } + if ((refreshPeriod.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[5].Value = ((int)(refreshPeriod.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value; + } + if ((simulazione.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[6].Value = ((bool)(simulazione.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value; + } + if ((simplePallet.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[7].Value = ((bool)(simplePallet.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value; + } + if ((insEnabled.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[8].Value = ((bool)(insEnabled.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value; + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; + if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.InsertCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.InsertCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update( + int idxMacchina, + global::System.Nullable palletChange, + string kanban_A, + string kanban_B, + string serialPort, + global::System.Nullable refreshPeriod, + global::System.Nullable simulazione, + global::System.Nullable simplePallet, + global::System.Nullable insEnabled, + int Original_idxMacchina, + global::System.Nullable Original_palletChange, + string Original_kanban_A, + string Original_kanban_B, + string Original_serialPort, + global::System.Nullable Original_refreshPeriod, + global::System.Nullable Original_simulazione, + global::System.Nullable Original_simplePallet, + global::System.Nullable Original_insEnabled) { + this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(idxMacchina)); + if ((palletChange.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[1].Value = ((bool)(palletChange.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value; + } + if ((kanban_A == null)) { + this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(kanban_A)); + } + if ((kanban_B == null)) { + this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(kanban_B)); + } + if ((serialPort == null)) { + this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(serialPort)); + } + if ((refreshPeriod.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(refreshPeriod.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value; + } + if ((simulazione.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[6].Value = ((bool)(simulazione.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value; + } + if ((simplePallet.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[7].Value = ((bool)(simplePallet.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value; + } + if ((insEnabled.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[8].Value = ((bool)(insEnabled.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value; + } + this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_idxMacchina)); + if ((Original_palletChange.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[11].Value = ((bool)(Original_palletChange.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value; + } + if ((Original_kanban_A == null)) { + this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_kanban_A)); + } + if ((Original_kanban_B == null)) { + this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_kanban_B)); + } + if ((Original_serialPort == null)) { + this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Original_serialPort)); + } + if ((Original_refreshPeriod.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[19].Value = ((int)(Original_refreshPeriod.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value; + } + if ((Original_simulazione.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[21].Value = ((bool)(Original_simulazione.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value; + } + if ((Original_simplePallet.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[23].Value = ((bool)(Original_simplePallet.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value; + } + if ((Original_insEnabled.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[25].Value = ((bool)(Original_insEnabled.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[25].Value = global::System.DBNull.Value; + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; + if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.UpdateCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.UpdateCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update( + global::System.Nullable palletChange, + string kanban_A, + string kanban_B, + string serialPort, + global::System.Nullable refreshPeriod, + global::System.Nullable simulazione, + global::System.Nullable simplePallet, + global::System.Nullable insEnabled, + int Original_idxMacchina, + global::System.Nullable Original_palletChange, + string Original_kanban_A, + string Original_kanban_B, + string Original_serialPort, + global::System.Nullable Original_refreshPeriod, + global::System.Nullable Original_simulazione, + global::System.Nullable Original_simplePallet, + global::System.Nullable Original_insEnabled) { + return this.Update(Original_idxMacchina, palletChange, kanban_A, kanban_B, serialPort, refreshPeriod, simulazione, simplePallet, insEnabled, Original_idxMacchina, Original_palletChange, Original_kanban_A, Original_kanban_B, Original_serialPort, Original_refreshPeriod, Original_simulazione, Original_simplePallet, Original_insEnabled); + } + } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class MicroStatoMacchinaTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public MicroStatoMacchinaTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "MicroStatoMacchina"; + tableMapping.ColumnMappings.Add("IdxMacchina", "IdxMacchina"); + tableMapping.ColumnMappings.Add("IdxMicroStato", "IdxMicroStato"); + tableMapping.ColumnMappings.Add("InizioStato", "InizioStato"); + tableMapping.ColumnMappings.Add("Value", "Value"); + this._adapter.TableMappings.Add(tableMapping); + this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.DeleteCommand.Connection = this.Connection; + this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[MicroStatoMacchina] WHERE (([IdxMacchina] = @Original_IdxMacchina) AND ([IdxMicroStato] = @Original_IdxMicroStato) AND ((@IsNull_InizioStato = 1 AND [InizioStato] IS NULL) OR ([InizioStato] = @Original_InizioStato)) AND ((@IsNull_Value = 1 AND [Value] IS NULL) OR ([Value] = @Original_Value)))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMicroStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMicroStato", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_InizioStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioStato", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_InizioStato", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioStato", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Value", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Value", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Value", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Value", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.InsertCommand.Connection = this.Connection; + this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[MicroStatoMacchina] ([IdxMacchina], [IdxMicroStato], [InizioStato], [Value]) VALUES (@IdxMacchina, @IdxMicroStato, @InizioStato, @Value); +SELECT IdxMacchina, IdxMicroStato, InizioStato, Value FROM MicroStatoMacchina WHERE (IdxMacchina = @IdxMacchina)"; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMicroStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMicroStato", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@InizioStato", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioStato", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Value", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Value", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.UpdateCommand.Connection = this.Connection; + this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[MicroStatoMacchina] SET [IdxMacchina] = @IdxMacchina, [IdxMicroStato] = @IdxMicroStato, [InizioStato] = @InizioStato, [Value] = @Value WHERE (([IdxMacchina] = @Original_IdxMacchina) AND ([IdxMicroStato] = @Original_IdxMicroStato) AND ((@IsNull_InizioStato = 1 AND [InizioStato] IS NULL) OR ([InizioStato] = @Original_InizioStato)) AND ((@IsNull_Value = 1 AND [Value] IS NULL) OR ([Value] = @Original_Value))); +SELECT IdxMacchina, IdxMicroStato, InizioStato, Value FROM MicroStatoMacchina WHERE (IdxMacchina = @IdxMacchina)"; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMicroStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMicroStato", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@InizioStato", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioStato", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Value", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Value", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMicroStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMicroStato", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_InizioStato", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioStato", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_InizioStato", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InizioStato", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Value", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Value", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Value", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Value", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[3]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT IdxMacchina, IdxMicroStato, InizioStato, Value FROM dbo.MicroStatoMacchina" + + ""; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "dbo.stp_MSM_getByIdxMacchina"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[2].Connection = this.Connection; + this._commandCollection[2].CommandText = "dbo.stp_MSM_updateQuery"; + this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMicroStato", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@InizioStato", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Value", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_applicazione.MicroStatoMacchinaDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_applicazione.MicroStatoMacchinaDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_applicazione.MicroStatoMacchinaDataTable dataTable = new DS_applicazione.MicroStatoMacchinaDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_applicazione.MicroStatoMacchinaDataTable getByIdxMacchina(string IdxMacchina) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((IdxMacchina == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(IdxMacchina)); + } + DS_applicazione.MicroStatoMacchinaDataTable dataTable = new DS_applicazione.MicroStatoMacchinaDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_applicazione.MicroStatoMacchinaDataTable dataTable) { + return this.Adapter.Update(dataTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_applicazione dataSet) { + return this.Adapter.Update(dataSet, "MicroStatoMacchina"); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow dataRow) { + return this.Adapter.Update(new global::System.Data.DataRow[] { + dataRow}); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow[] dataRows) { + return this.Adapter.Update(dataRows); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] + public virtual int Delete(string Original_IdxMacchina, int Original_IdxMicroStato, global::System.Nullable Original_InizioStato, string Original_Value) { + if ((Original_IdxMacchina == null)) { + throw new global::System.ArgumentNullException("Original_IdxMacchina"); + } + else { + this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_IdxMacchina)); + } + this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_IdxMicroStato)); + if ((Original_InizioStato.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[3].Value = ((System.DateTime)(Original_InizioStato.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value; + } + if ((Original_Value == null)) { + this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_Value)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; + if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.DeleteCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.DeleteCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] + public virtual int Insert(string IdxMacchina, int IdxMicroStato, global::System.Nullable InizioStato, string Value) { + if ((IdxMacchina == null)) { + throw new global::System.ArgumentNullException("IdxMacchina"); + } + else { + this.Adapter.InsertCommand.Parameters[0].Value = ((string)(IdxMacchina)); + } + this.Adapter.InsertCommand.Parameters[1].Value = ((int)(IdxMicroStato)); + if ((InizioStato.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[2].Value = ((System.DateTime)(InizioStato.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((Value == null)) { + this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Value)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; + if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.InsertCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.InsertCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(string IdxMacchina, int IdxMicroStato, global::System.Nullable InizioStato, string Value, string Original_IdxMacchina, int Original_IdxMicroStato, global::System.Nullable Original_InizioStato, string Original_Value) { + if ((IdxMacchina == null)) { + throw new global::System.ArgumentNullException("IdxMacchina"); + } + else { + this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(IdxMacchina)); + } + this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(IdxMicroStato)); + if ((InizioStato.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[2].Value = ((System.DateTime)(InizioStato.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((Value == null)) { + this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Value)); + } + if ((Original_IdxMacchina == null)) { + throw new global::System.ArgumentNullException("Original_IdxMacchina"); + } + else { + this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_IdxMacchina)); + } + this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_IdxMicroStato)); + if ((Original_InizioStato.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[7].Value = ((System.DateTime)(Original_InizioStato.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value; + } + if ((Original_Value == null)) { + this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_Value)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; + if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.UpdateCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.UpdateCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(int IdxMicroStato, global::System.Nullable InizioStato, string Value, string Original_IdxMacchina, int Original_IdxMicroStato, global::System.Nullable Original_InizioStato, string Original_Value) { + return this.Update(Original_IdxMacchina, IdxMicroStato, InizioStato, Value, Original_IdxMacchina, Original_IdxMicroStato, Original_InizioStato, Original_Value); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, false)] + public virtual int updateQuery(global::System.Nullable IdxMicroStato, global::System.Nullable InizioStato, string Value, string Original_IdxMacchina) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[2]; + if ((IdxMicroStato.HasValue == true)) { + command.Parameters[1].Value = ((int)(IdxMicroStato.Value)); + } + else { + command.Parameters[1].Value = global::System.DBNull.Value; + } + if ((InizioStato.HasValue == true)) { + command.Parameters[2].Value = ((System.DateTime)(InizioStato.Value)); + } + else { + command.Parameters[2].Value = global::System.DBNull.Value; + } + if ((Value == null)) { + command.Parameters[3].Value = global::System.DBNull.Value; + } + else { + command.Parameters[3].Value = ((string)(Value)); + } + if ((Original_IdxMacchina == null)) { + command.Parameters[4].Value = global::System.DBNull.Value; + } + else { + command.Parameters[4].Value = ((string)(Original_IdxMacchina)); + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class LinkMenuJQMTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public LinkMenuJQMTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "LinkMenuJQM"; + tableMapping.ColumnMappings.Add("idxLink", "idxLink"); + tableMapping.ColumnMappings.Add("TipoLink", "TipoLink"); + tableMapping.ColumnMappings.Add("ordine", "ordine"); + tableMapping.ColumnMappings.Add("Testo", "Testo"); + tableMapping.ColumnMappings.Add("NavigateUrl", "NavigateUrl"); + tableMapping.ColumnMappings.Add("icona", "icona"); + this._adapter.TableMappings.Add(tableMapping); + this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.DeleteCommand.Connection = this.Connection; + this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[LinkMenuJQM] WHERE (([idxLink] = @Original_idxLink) AND ((@IsNull_TipoLink = 1 AND [TipoLink] IS NULL) OR ([TipoLink] = @Original_TipoLink)) AND ((@IsNull_ordine = 1 AND [ordine] IS NULL) OR ([ordine] = @Original_ordine)) AND ((@IsNull_Testo = 1 AND [Testo] IS NULL) OR ([Testo] = @Original_Testo)) AND ((@IsNull_NavigateUrl = 1 AND [NavigateUrl] IS NULL) OR ([NavigateUrl] = @Original_NavigateUrl)) AND ((@IsNull_icona = 1 AND [icona] IS NULL) OR ([icona] = @Original_icona)))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxLink", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxLink", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TipoLink", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TipoLink", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TipoLink", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TipoLink", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ordine", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ordine", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ordine", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ordine", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Testo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Testo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Testo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Testo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_NavigateUrl", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NavigateUrl", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NavigateUrl", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NavigateUrl", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_icona", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "icona", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_icona", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "icona", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.InsertCommand.Connection = this.Connection; + this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[LinkMenuJQM] ([TipoLink], [ordine], [Testo], [NavigateUrl], [icona]) VALUES (@TipoLink, @ordine, @Testo, @NavigateUrl, @icona); +SELECT idxLink, TipoLink, ordine, Testo, NavigateUrl, icona FROM LinkMenuJQM WHERE (idxLink = SCOPE_IDENTITY())"; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TipoLink", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TipoLink", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ordine", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ordine", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Testo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Testo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NavigateUrl", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NavigateUrl", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@icona", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "icona", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.UpdateCommand.Connection = this.Connection; + this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[LinkMenuJQM] SET [TipoLink] = @TipoLink, [ordine] = @ordine, [Testo] = @Testo, [NavigateUrl] = @NavigateUrl, [icona] = @icona WHERE (([idxLink] = @Original_idxLink) AND ((@IsNull_TipoLink = 1 AND [TipoLink] IS NULL) OR ([TipoLink] = @Original_TipoLink)) AND ((@IsNull_ordine = 1 AND [ordine] IS NULL) OR ([ordine] = @Original_ordine)) AND ((@IsNull_Testo = 1 AND [Testo] IS NULL) OR ([Testo] = @Original_Testo)) AND ((@IsNull_NavigateUrl = 1 AND [NavigateUrl] IS NULL) OR ([NavigateUrl] = @Original_NavigateUrl)) AND ((@IsNull_icona = 1 AND [icona] IS NULL) OR ([icona] = @Original_icona))); +SELECT idxLink, TipoLink, ordine, Testo, NavigateUrl, icona FROM LinkMenuJQM WHERE (idxLink = @idxLink)"; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TipoLink", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TipoLink", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ordine", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ordine", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Testo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Testo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NavigateUrl", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NavigateUrl", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@icona", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "icona", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxLink", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxLink", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TipoLink", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TipoLink", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TipoLink", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TipoLink", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ordine", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ordine", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ordine", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ordine", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Testo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Testo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Testo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Testo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_NavigateUrl", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NavigateUrl", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NavigateUrl", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NavigateUrl", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_icona", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "icona", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_icona", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "icona", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxLink", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idxLink", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT *\r\nFROM dbo.LinkMenuJQM"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "dbo.stp_LMJ_getByTipo"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TipoLink", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_applicazione.LinkMenuJQMDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_applicazione.LinkMenuJQMDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_applicazione.LinkMenuJQMDataTable dataTable = new DS_applicazione.LinkMenuJQMDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_applicazione.LinkMenuJQMDataTable getByTipo(string TipoLink) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((TipoLink == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(TipoLink)); + } + DS_applicazione.LinkMenuJQMDataTable dataTable = new DS_applicazione.LinkMenuJQMDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_applicazione.LinkMenuJQMDataTable dataTable) { + return this.Adapter.Update(dataTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_applicazione dataSet) { + return this.Adapter.Update(dataSet, "LinkMenuJQM"); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow dataRow) { + return this.Adapter.Update(new global::System.Data.DataRow[] { + dataRow}); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow[] dataRows) { + return this.Adapter.Update(dataRows); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] + public virtual int Delete(int Original_idxLink, string Original_TipoLink, global::System.Nullable Original_ordine, string Original_Testo, string Original_NavigateUrl, string Original_icona) { + this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idxLink)); + if ((Original_TipoLink == null)) { + this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_TipoLink)); + } + if ((Original_ordine.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_ordine.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value; + } + if ((Original_Testo == null)) { + this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Testo)); + } + if ((Original_NavigateUrl == null)) { + this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_NavigateUrl)); + } + if ((Original_icona == null)) { + this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_icona)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; + if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.DeleteCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.DeleteCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] + public virtual int Insert(string TipoLink, global::System.Nullable ordine, string Testo, string NavigateUrl, string icona) { + if ((TipoLink == null)) { + this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[0].Value = ((string)(TipoLink)); + } + if ((ordine.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[1].Value = ((int)(ordine.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value; + } + if ((Testo == null)) { + this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Testo)); + } + if ((NavigateUrl == null)) { + this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[3].Value = ((string)(NavigateUrl)); + } + if ((icona == null)) { + this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[4].Value = ((string)(icona)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; + if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.InsertCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.InsertCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(string TipoLink, global::System.Nullable ordine, string Testo, string NavigateUrl, string icona, int Original_idxLink, string Original_TipoLink, global::System.Nullable Original_ordine, string Original_Testo, string Original_NavigateUrl, string Original_icona, int idxLink) { + if ((TipoLink == null)) { + this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(TipoLink)); + } + if ((ordine.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(ordine.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value; + } + if ((Testo == null)) { + this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Testo)); + } + if ((NavigateUrl == null)) { + this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(NavigateUrl)); + } + if ((icona == null)) { + this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(icona)); + } + this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_idxLink)); + if ((Original_TipoLink == null)) { + this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_TipoLink)); + } + if ((Original_ordine.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_ordine.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value; + } + if ((Original_Testo == null)) { + this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_Testo)); + } + if ((Original_NavigateUrl == null)) { + this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_NavigateUrl)); + } + if ((Original_icona == null)) { + this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_icona)); + } + this.Adapter.UpdateCommand.Parameters[16].Value = ((int)(idxLink)); + global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; + if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.UpdateCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.UpdateCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(string TipoLink, global::System.Nullable ordine, string Testo, string NavigateUrl, string icona, int Original_idxLink, string Original_TipoLink, global::System.Nullable Original_ordine, string Original_Testo, string Original_NavigateUrl, string Original_icona) { + return this.Update(TipoLink, ordine, Testo, NavigateUrl, icona, Original_idxLink, Original_TipoLink, Original_ordine, Original_Testo, Original_NavigateUrl, Original_icona, Original_idxLink); + } + } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class RemoteRebootLogTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public RemoteRebootLogTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "RemoteRebootLog"; + tableMapping.ColumnMappings.Add("idxReboot", "idxReboot"); + tableMapping.ColumnMappings.Add("IdxMacchina", "IdxMacchina"); + tableMapping.ColumnMappings.Add("IPv4", "IPv4"); + tableMapping.ColumnMappings.Add("Agent", "Agent"); + tableMapping.ColumnMappings.Add("DataOraBoot", "DataOraBoot"); + tableMapping.ColumnMappings.Add("macAddr", "macAddr"); + this._adapter.TableMappings.Add(tableMapping); + this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.DeleteCommand.Connection = this.Connection; + this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[RemoteRebootLog] WHERE (([idxReboot] = @Original_idxReboot) AND ([IdxMacchina] = @Original_IdxMacchina) AND ((@IsNull_IPv4 = 1 AND [IPv4] IS NULL) OR ([IPv4] = @Original_IPv4)) AND ((@IsNull_Agent = 1 AND [Agent] IS NULL) OR ([Agent] = @Original_Agent)) AND ((@IsNull_DataOraBoot = 1 AND [DataOraBoot] IS NULL) OR ([DataOraBoot] = @Original_DataOraBoot)) AND ([macAddr] = @Original_macAddr))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxReboot", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxReboot", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IPv4", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IPv4", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IPv4", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IPv4", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Agent", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Agent", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Agent", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Agent", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DataOraBoot", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraBoot", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataOraBoot", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraBoot", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_macAddr", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "macAddr", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.InsertCommand.Connection = this.Connection; + this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[RemoteRebootLog] ([IdxMacchina], [IPv4], [Agent], [DataOraBoot], [macAddr]) VALUES (@IdxMacchina, @IPv4, @Agent, @DataOraBoot, @macAddr); +SELECT idxReboot, IdxMacchina, IPv4, Agent, DataOraBoot, macAddr FROM RemoteRebootLog WHERE (idxReboot = SCOPE_IDENTITY())"; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IPv4", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IPv4", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Agent", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Agent", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataOraBoot", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraBoot", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@macAddr", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "macAddr", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.UpdateCommand.Connection = this.Connection; + this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[RemoteRebootLog] SET [IdxMacchina] = @IdxMacchina, [IPv4] = @IPv4, [Agent] = @Agent, [DataOraBoot] = @DataOraBoot, [macAddr] = @macAddr WHERE (([idxReboot] = @Original_idxReboot) AND ([IdxMacchina] = @Original_IdxMacchina) AND ((@IsNull_IPv4 = 1 AND [IPv4] IS NULL) OR ([IPv4] = @Original_IPv4)) AND ((@IsNull_Agent = 1 AND [Agent] IS NULL) OR ([Agent] = @Original_Agent)) AND ((@IsNull_DataOraBoot = 1 AND [DataOraBoot] IS NULL) OR ([DataOraBoot] = @Original_DataOraBoot)) AND ([macAddr] = @Original_macAddr)); +SELECT idxReboot, IdxMacchina, IPv4, Agent, DataOraBoot, macAddr FROM RemoteRebootLog WHERE (idxReboot = @idxReboot)"; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IPv4", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IPv4", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Agent", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Agent", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataOraBoot", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraBoot", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@macAddr", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "macAddr", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxReboot", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxReboot", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IPv4", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IPv4", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IPv4", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IPv4", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Agent", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Agent", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Agent", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Agent", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DataOraBoot", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraBoot", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataOraBoot", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataOraBoot", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_macAddr", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "macAddr", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxReboot", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idxReboot", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[3]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT *\r\nFROM dbo.RemoteRebootLog"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "dbo.stp_RR_getByIdxMacchina"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[2].Connection = this.Connection; + this._commandCollection[2].CommandText = "dbo.stp_RR_getLastByIdxMacchina"; + this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_applicazione.RemoteRebootLogDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_applicazione.RemoteRebootLogDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_applicazione.RemoteRebootLogDataTable dataTable = new DS_applicazione.RemoteRebootLogDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_applicazione.RemoteRebootLogDataTable getByIdxMacchina(string IdxMacchina) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((IdxMacchina == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(IdxMacchina)); + } + DS_applicazione.RemoteRebootLogDataTable dataTable = new DS_applicazione.RemoteRebootLogDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_applicazione.RemoteRebootLogDataTable getLastByIdxMacchina(string IdxMacchina) { + this.Adapter.SelectCommand = this.CommandCollection[2]; + if ((IdxMacchina == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(IdxMacchina)); + } + DS_applicazione.RemoteRebootLogDataTable dataTable = new DS_applicazione.RemoteRebootLogDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_applicazione.RemoteRebootLogDataTable dataTable) { + return this.Adapter.Update(dataTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_applicazione dataSet) { + return this.Adapter.Update(dataSet, "RemoteRebootLog"); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow dataRow) { + return this.Adapter.Update(new global::System.Data.DataRow[] { + dataRow}); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow[] dataRows) { + return this.Adapter.Update(dataRows); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] + public virtual int Delete(int Original_idxReboot, string Original_IdxMacchina, string Original_IPv4, string Original_Agent, global::System.Nullable Original_DataOraBoot, string Original_macAddr) { + this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idxReboot)); + if ((Original_IdxMacchina == null)) { + throw new global::System.ArgumentNullException("Original_IdxMacchina"); + } + else { + this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_IdxMacchina)); + } + if ((Original_IPv4 == null)) { + this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_IPv4)); + } + if ((Original_Agent == null)) { + this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value; + } + else { + this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_Agent)); + } + if ((Original_DataOraBoot.HasValue == true)) { + this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0)); + this.Adapter.DeleteCommand.Parameters[7].Value = ((System.DateTime)(Original_DataOraBoot.Value)); + } + else { + this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1)); + this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value; + } + if ((Original_macAddr == null)) { + throw new global::System.ArgumentNullException("Original_macAddr"); + } + else { + this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_macAddr)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; + if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.DeleteCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.DeleteCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] + public virtual int Insert(string IdxMacchina, string IPv4, string Agent, global::System.Nullable DataOraBoot, string macAddr) { + if ((IdxMacchina == null)) { + throw new global::System.ArgumentNullException("IdxMacchina"); + } + else { + this.Adapter.InsertCommand.Parameters[0].Value = ((string)(IdxMacchina)); + } + if ((IPv4 == null)) { + this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[1].Value = ((string)(IPv4)); + } + if ((Agent == null)) { + this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Agent)); + } + if ((DataOraBoot.HasValue == true)) { + this.Adapter.InsertCommand.Parameters[3].Value = ((System.DateTime)(DataOraBoot.Value)); + } + else { + this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value; + } + if ((macAddr == null)) { + throw new global::System.ArgumentNullException("macAddr"); + } + else { + this.Adapter.InsertCommand.Parameters[4].Value = ((string)(macAddr)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; + if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.InsertCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.InsertCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(string IdxMacchina, string IPv4, string Agent, global::System.Nullable DataOraBoot, string macAddr, int Original_idxReboot, string Original_IdxMacchina, string Original_IPv4, string Original_Agent, global::System.Nullable Original_DataOraBoot, string Original_macAddr, int idxReboot) { + if ((IdxMacchina == null)) { + throw new global::System.ArgumentNullException("IdxMacchina"); + } + else { + this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(IdxMacchina)); + } + if ((IPv4 == null)) { + this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(IPv4)); + } + if ((Agent == null)) { + this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Agent)); + } + if ((DataOraBoot.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[3].Value = ((System.DateTime)(DataOraBoot.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value; + } + if ((macAddr == null)) { + throw new global::System.ArgumentNullException("macAddr"); + } + else { + this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(macAddr)); + } + this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_idxReboot)); + if ((Original_IdxMacchina == null)) { + throw new global::System.ArgumentNullException("Original_IdxMacchina"); + } + else { + this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_IdxMacchina)); + } + if ((Original_IPv4 == null)) { + this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_IPv4)); + } + if ((Original_Agent == null)) { + this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value; + } + else { + this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_Agent)); + } + if ((Original_DataOraBoot.HasValue == true)) { + this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0)); + this.Adapter.UpdateCommand.Parameters[12].Value = ((System.DateTime)(Original_DataOraBoot.Value)); + } + else { + this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1)); + this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value; + } + if ((Original_macAddr == null)) { + throw new global::System.ArgumentNullException("Original_macAddr"); + } + else { + this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_macAddr)); + } + this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(idxReboot)); + global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; + if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.UpdateCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.UpdateCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(string IdxMacchina, string IPv4, string Agent, global::System.Nullable DataOraBoot, string macAddr, int Original_idxReboot, string Original_IdxMacchina, string Original_IPv4, string Original_Agent, global::System.Nullable Original_DataOraBoot, string Original_macAddr) { + return this.Update(IdxMacchina, IPv4, Agent, DataOraBoot, macAddr, Original_idxReboot, Original_IdxMacchina, Original_IPv4, Original_Agent, Original_DataOraBoot, Original_macAddr, Original_idxReboot); + } + } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class ParetoDurateTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public ParetoDurateTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "ParetoDurate"; + tableMapping.ColumnMappings.Add("IdxMacchina", "IdxMacchina"); + tableMapping.ColumnMappings.Add("InizioStato", "InizioStato"); + tableMapping.ColumnMappings.Add("FineStato", "FineStato"); + tableMapping.ColumnMappings.Add("IdxStato", "IdxStato"); + tableMapping.ColumnMappings.Add("DurataMinuti", "DurataMinuti"); + this._adapter.TableMappings.Add(tableMapping); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "dbo.stp_DDB_getParetoDurateFilt"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@minDurata", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@fine", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@inizio", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "dbo.stp_DDB_getParetoDurateHideSpentaFilt"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@minDurata", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@fine", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@inizio", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_applicazione.ParetoDurateDataTable GetParetoDurateFilt(string IdxMacchina, global::System.Nullable minDurata, global::System.Nullable fine, global::System.Nullable inizio) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((IdxMacchina == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(IdxMacchina)); + } + if ((minDurata.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((double)(minDurata.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((fine.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[3].Value = ((System.DateTime)(fine.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; + } + if ((inizio.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[4].Value = ((System.DateTime)(inizio.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[4].Value = global::System.DBNull.Value; + } + DS_applicazione.ParetoDurateDataTable dataTable = new DS_applicazione.ParetoDurateDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_applicazione.ParetoDurateDataTable GetParetoDurateHideSpenta(string IdxMacchina, global::System.Nullable minDurata, global::System.Nullable fine, global::System.Nullable inizio) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((IdxMacchina == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(IdxMacchina)); + } + if ((minDurata.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((double)(minDurata.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((fine.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[3].Value = ((System.DateTime)(fine.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; + } + if ((inizio.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[4].Value = ((System.DateTime)(inizio.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[4].Value = global::System.DBNull.Value; + } + DS_applicazione.ParetoDurateDataTable dataTable = new DS_applicazione.ParetoDurateDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + } +} + +#pragma warning restore 1591 \ No newline at end of file diff --git a/MapoDb/DS_applicazione.cs b/MapoDb/DS_applicazione.cs new file mode 100644 index 00000000..12e8cfd2 --- /dev/null +++ b/MapoDb/DS_applicazione.cs @@ -0,0 +1,15 @@ +namespace MapoDb +{ + + + partial class DS_applicazione + { + partial class MacchineDataTable + { + } + + partial class StatoMacchineDataTable + { + } + } +} diff --git a/MapoDb/DS_applicazione.xsc b/MapoDb/DS_applicazione.xsc new file mode 100644 index 00000000..05b01991 --- /dev/null +++ b/MapoDb/DS_applicazione.xsc @@ -0,0 +1,9 @@ + + + + + \ No newline at end of file diff --git a/MapoDb/DS_applicazione.xsd b/MapoDb/DS_applicazione.xsd new file mode 100644 index 00000000..c80762de --- /dev/null +++ b/MapoDb/DS_applicazione.xsd @@ -0,0 +1,3150 @@ + + + + + + + + + + + + + + + + DELETE FROM [dbo].[Macchine2FamiglieMacchine] WHERE (([IdxMacchina] = @Original_IdxMacchina) AND ([IdxFamiglia] = @Original_IdxFamiglia)) + + + + + + + + + + INSERT INTO [dbo].[Macchine2FamiglieMacchine] ([IdxMacchina], [IdxFamiglia]) VALUES (@IdxMacchina, @IdxFamiglia); + SELECT IdxMacchina, IdxFamiglia FROM Macchine2FamiglieMacchine WHERE (IdxFamiglia = @IdxFamiglia) AND (IdxMacchina = @IdxMacchina) + + + + + + + + + + SELECT IdxMacchina, IdxFamiglia FROM dbo.Macchine2FamiglieMacchine + + + + + + + UPDATE [dbo].[Macchine2FamiglieMacchine] SET [IdxMacchina] = @IdxMacchina, [IdxFamiglia] = @IdxFamiglia WHERE (([IdxMacchina] = @Original_IdxMacchina) AND ([IdxFamiglia] = @Original_IdxFamiglia)); + SELECT IdxMacchina, IdxFamiglia FROM Macchine2FamiglieMacchine WHERE (IdxFamiglia = @IdxFamiglia) AND (IdxMacchina = @IdxMacchina) + + + + + + + + + + + + + + + + + + + + + + + DELETE FROM [dbo].[FamiglieMacchine] WHERE (([IdxFamiglia] = @Original_IdxFamiglia) AND ([Descrizione] = @Original_Descrizione)) + + + + + + + + + + INSERT INTO [dbo].[FamiglieMacchine] ([Descrizione]) VALUES (@Descrizione); + SELECT IdxFamiglia, Descrizione FROM FamiglieMacchine WHERE (IdxFamiglia = SCOPE_IDENTITY()) + + + + + + + + + SELECT IdxFamiglia, Descrizione FROM dbo.FamiglieMacchine + + + + + + + UPDATE [dbo].[FamiglieMacchine] SET [Descrizione] = @Descrizione WHERE (([IdxFamiglia] = @Original_IdxFamiglia) AND ([Descrizione] = @Original_Descrizione)); + SELECT IdxFamiglia, Descrizione FROM FamiglieMacchine WHERE (IdxFamiglia = @IdxFamiglia) + + + + + + + + + + + + + + + + + + + + + + + DELETE FROM [dbo].[Macchine] WHERE (([IdxMacchina] = @Original_IdxMacchina) AND ((@IsNull_CodMacchina = 1 AND [CodMacchina] IS NULL) OR ([CodMacchina] = @Original_CodMacchina)) AND ((@IsNull_Nome = 1 AND [Nome] IS NULL) OR ([Nome] = @Original_Nome)) AND ((@IsNull_Descrizione = 1 AND [Descrizione] IS NULL) OR ([Descrizione] = @Original_Descrizione)) AND ((@IsNull_Note = 1 AND [Note] IS NULL) OR ([Note] = @Original_Note)) AND ((@IsNull_url = 1 AND [url] IS NULL) OR ([url] = @Original_url)) AND ((@IsNull_locazione = 1 AND [locazione] IS NULL) OR ([locazione] = @Original_locazione))) + + + + + + + + + + + + + + + + + + + + + INSERT INTO [dbo].[Macchine] ([IdxMacchina], [CodMacchina], [Nome], [Descrizione], [Note], [url], [locazione]) VALUES (@IdxMacchina, @CodMacchina, @Nome, @Descrizione, @Note, @url, @locazione); + SELECT IdxMacchina, CodMacchina, Nome, Descrizione, Note, url, locazione FROM Macchine WHERE (IdxMacchina = @IdxMacchina) + + + + + + + + + + + + + + + SELECT IdxMacchina, CodMacchina, Nome, Descrizione, Note, url, locazione FROM dbo.Macchine + + + + + + + UPDATE [dbo].[Macchine] SET [IdxMacchina] = @IdxMacchina, [CodMacchina] = @CodMacchina, [Nome] = @Nome, [Descrizione] = @Descrizione, [Note] = @Note, [url] = @url, [locazione] = @locazione WHERE (([IdxMacchina] = @Original_IdxMacchina) AND ((@IsNull_CodMacchina = 1 AND [CodMacchina] IS NULL) OR ([CodMacchina] = @Original_CodMacchina)) AND ((@IsNull_Nome = 1 AND [Nome] IS NULL) OR ([Nome] = @Original_Nome)) AND ((@IsNull_Descrizione = 1 AND [Descrizione] IS NULL) OR ([Descrizione] = @Original_Descrizione)) AND ((@IsNull_Note = 1 AND [Note] IS NULL) OR ([Note] = @Original_Note)) AND ((@IsNull_url = 1 AND [url] IS NULL) OR ([url] = @Original_url)) AND ((@IsNull_locazione = 1 AND [locazione] IS NULL) OR ([locazione] = @Original_locazione))); + SELECT IdxMacchina, CodMacchina, Nome, Descrizione, Note, url, locazione FROM Macchine WHERE (IdxMacchina = @IdxMacchina) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + SELECT * + FROM dbo.Macchine + where IdxMacchina=@Idx + + + + + + + + + + + + + + + DELETE FROM [dbo].[TransizioneStati] WHERE (([IdxFamiglia] = @Original_IdxFamiglia) AND ([IdxStato] = @Original_IdxStato) AND ([IdxTipo] = @Original_IdxTipo) AND ([next_IdxStato] = @Original_next_IdxStato)) + + + + + + + + + + + + INSERT INTO [dbo].[TransizioneStati] ([IdxFamiglia], [IdxStato], [IdxTipo], [next_IdxStato]) VALUES (@IdxFamiglia, @IdxStato, @IdxTipo, @next_IdxStato); + SELECT IdxFamiglia, IdxStato, IdxTipo, next_IdxStato FROM TransizioneStati WHERE (IdxFamiglia = @IdxFamiglia) AND (IdxStato = @IdxStato) AND (IdxTipo = @IdxTipo) + + + + + + + + + + + + SELECT IdxFamiglia, IdxStato, IdxTipo, next_IdxStato FROM dbo.TransizioneStati + + + + + + + UPDATE [dbo].[TransizioneStati] SET [IdxFamiglia] = @IdxFamiglia, [IdxStato] = @IdxStato, [IdxTipo] = @IdxTipo, [next_IdxStato] = @next_IdxStato WHERE (([IdxFamiglia] = @Original_IdxFamiglia) AND ([IdxStato] = @Original_IdxStato) AND ([IdxTipo] = @Original_IdxTipo) AND ([next_IdxStato] = @Original_next_IdxStato)); + SELECT IdxFamiglia, IdxStato, IdxTipo, next_IdxStato FROM TransizioneStati WHERE (IdxFamiglia = @IdxFamiglia) AND (IdxStato = @IdxStato) AND (IdxTipo = @IdxTipo) + + + + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_TS_getByIdxMacchIdxTipoEv + + + + + + + + + + + + dbo.stp_TS_getUserForcedTrans + + + + + + + + + + + + + + + + DELETE FROM [dbo].[StatoMacchine] WHERE (([IdxMacchina] = @Original_IdxMacchina) AND ([IdxStato] = @Original_IdxStato) AND ((@IsNull_InizioStato = 1 AND [InizioStato] IS NULL) OR ([InizioStato] = @Original_InizioStato)) AND ((@IsNull_Value = 1 AND [Value] IS NULL) OR ([Value] = @Original_Value)) AND ((@IsNull_MatricolaKanban = 1 AND [MatricolaKanban] IS NULL) OR ([MatricolaKanban] = @Original_MatricolaKanban)) AND ((@IsNull_KanbanCode = 1 AND [KanbanCode] IS NULL) OR ([KanbanCode] = @Original_KanbanCode)) AND ((@IsNull_TempoCicloBase = 1 AND [TempoCicloBase] IS NULL) OR ([TempoCicloBase] = @Original_TempoCicloBase)) AND ((@IsNull_PzPalletProd = 1 AND [PzPalletProd] IS NULL) OR ([PzPalletProd] = @Original_PzPalletProd)) AND ((@IsNull_MatrOpr = 1 AND [MatrOpr] IS NULL) OR ([MatrOpr] = @Original_MatrOpr)) AND ((@IsNull_pallet = 1 AND [pallet] IS NULL) OR ([pallet] = @Original_pallet))) + + + + + + + + + + + + + + + + + + + + + + + + + + INSERT INTO [dbo].[StatoMacchine] ([IdxMacchina], [IdxStato], [InizioStato], [Value], [MatricolaKanban], [KanbanCode], [TempoCicloBase], [PzPalletProd], [MatrOpr], [pallet]) VALUES (@IdxMacchina, @IdxStato, @InizioStato, @Value, @MatricolaKanban, @KanbanCode, @TempoCicloBase, @PzPalletProd, @MatrOpr, @pallet); + SELECT IdxMacchina, IdxStato, InizioStato, Value, MatricolaKanban, KanbanCode, TempoCicloBase, PzPalletProd, MatrOpr, pallet FROM StatoMacchine WHERE (IdxMacchina = @IdxMacchina) + + + + + + + + + + + + + + + + + + SELECT * FROM dbo.StatoMacchine + + + + + + + UPDATE [dbo].[StatoMacchine] SET [IdxMacchina] = @IdxMacchina, [IdxStato] = @IdxStato, [InizioStato] = @InizioStato, [Value] = @Value, [MatricolaKanban] = @MatricolaKanban, [KanbanCode] = @KanbanCode, [TempoCicloBase] = @TempoCicloBase, [PzPalletProd] = @PzPalletProd, [MatrOpr] = @MatrOpr, [pallet] = @pallet WHERE (([IdxMacchina] = @Original_IdxMacchina) AND ([IdxStato] = @Original_IdxStato) AND ((@IsNull_InizioStato = 1 AND [InizioStato] IS NULL) OR ([InizioStato] = @Original_InizioStato)) AND ((@IsNull_Value = 1 AND [Value] IS NULL) OR ([Value] = @Original_Value)) AND ((@IsNull_MatricolaKanban = 1 AND [MatricolaKanban] IS NULL) OR ([MatricolaKanban] = @Original_MatricolaKanban)) AND ((@IsNull_KanbanCode = 1 AND [KanbanCode] IS NULL) OR ([KanbanCode] = @Original_KanbanCode)) AND ((@IsNull_TempoCicloBase = 1 AND [TempoCicloBase] IS NULL) OR ([TempoCicloBase] = @Original_TempoCicloBase)) AND ((@IsNull_PzPalletProd = 1 AND [PzPalletProd] IS NULL) OR ([PzPalletProd] = @Original_PzPalletProd)) AND ((@IsNull_MatrOpr = 1 AND [MatrOpr] IS NULL) OR ([MatrOpr] = @Original_MatrOpr)) AND ((@IsNull_pallet = 1 AND [pallet] IS NULL) OR ([pallet] = @Original_pallet))); + SELECT IdxMacchina, IdxStato, InizioStato, Value, MatricolaKanban, KanbanCode, TempoCicloBase, PzPalletProd, MatrOpr, pallet FROM StatoMacchine WHERE (IdxMacchina = @IdxMacchina) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + SELECT IdxMacchina, IdxStato, InizioStato, KanbanCode, MatrOpr, MatricolaKanban, PzPalletProd, TempoCicloBase, Value, pallet FROM StatoMacchine WHERE (IdxMacchina = @IdxMacchina) + + + + + + + + + + dbo.stp_STM_setInsEnabled + + + + + + + + + + + + dbo.stp_STM_updateOper + + + + + + + + + + + + + + + + DELETE FROM [dbo].[AnagraficaStati] WHERE (([IdxStato] = @Original_IdxStato) AND ((@IsNull_Descrizione = 1 AND [Descrizione] IS NULL) OR ([Descrizione] = @Original_Descrizione)) AND ((@IsNull_Semaforo = 1 AND [Semaforo] IS NULL) OR ([Semaforo] = @Original_Semaforo))) + + + + + + + + + + + + + INSERT INTO [dbo].[AnagraficaStati] ([IdxStato], [Descrizione], [Semaforo]) VALUES (@IdxStato, @Descrizione, @Semaforo); + SELECT IdxStato, Descrizione, Semaforo FROM AnagraficaStati WHERE (IdxStato = @IdxStato) + + + + + + + + + + + SELECT IdxStato, Descrizione, Semaforo FROM dbo.AnagraficaStati + + + + + + + UPDATE [dbo].[AnagraficaStati] SET [IdxStato] = @IdxStato, [Descrizione] = @Descrizione, [Semaforo] = @Semaforo WHERE (([IdxStato] = @Original_IdxStato) AND ((@IsNull_Descrizione = 1 AND [Descrizione] IS NULL) OR ([Descrizione] = @Original_Descrizione)) AND ((@IsNull_Semaforo = 1 AND [Semaforo] IS NULL) OR ([Semaforo] = @Original_Semaforo))); + SELECT IdxStato, Descrizione, Semaforo FROM AnagraficaStati WHERE (IdxStato = @IdxStato) + + + + + + + + + + + + + + + + + + + + + + + + + + SELECT * + FROM dbo.AnagraficaStati + WHERE IdxStato=@Idx + + + + + + + + + + + + + + + DELETE FROM [dbo].[Kanban] WHERE (([MatricolaKanban] = @Original_MatricolaKanban) AND ((@IsNull_KanbanCode = 1 AND [KanbanCode] IS NULL) OR ([KanbanCode] = @Original_KanbanCode)) AND ((@IsNull_TempoCicloBase = 1 AND [TempoCicloBase] IS NULL) OR ([TempoCicloBase] = @Original_TempoCicloBase)) AND ((@IsNull_PzPallet = 1 AND [PzPallet] IS NULL) OR ([PzPallet] = @Original_PzPallet)) AND ((@IsNull_CodArticolo = 1 AND [CodArticolo] IS NULL) OR ([CodArticolo] = @Original_CodArticolo))) + + + + + + + + + + + + + + + + INSERT INTO [dbo].[Kanban] ([MatricolaKanban], [KanbanCode], [TempoCicloBase], [PzPallet], [CodArticolo]) VALUES (@MatricolaKanban, @KanbanCode, @TempoCicloBase, @PzPallet, @CodArticolo); +SELECT MatricolaKanban, KanbanCode, TempoCicloBase, PzPallet, CodArticolo FROM Kanban WHERE (MatricolaKanban = @MatricolaKanban) + + + + + + + + + + + + SELECT * + FROM dbo.Kanban + + + + + + UPDATE [dbo].[Kanban] SET [MatricolaKanban] = @MatricolaKanban, [KanbanCode] = @KanbanCode, [TempoCicloBase] = @TempoCicloBase, [PzPallet] = @PzPallet, [CodArticolo] = @CodArticolo WHERE (([MatricolaKanban] = @Original_MatricolaKanban) AND ((@IsNull_KanbanCode = 1 AND [KanbanCode] IS NULL) OR ([KanbanCode] = @Original_KanbanCode)) AND ((@IsNull_TempoCicloBase = 1 AND [TempoCicloBase] IS NULL) OR ([TempoCicloBase] = @Original_TempoCicloBase)) AND ((@IsNull_PzPallet = 1 AND [PzPallet] IS NULL) OR ([PzPallet] = @Original_PzPallet)) AND ((@IsNull_CodArticolo = 1 AND [CodArticolo] IS NULL) OR ([CodArticolo] = @Original_CodArticolo))); +SELECT MatricolaKanban, KanbanCode, TempoCicloBase, PzPallet, CodArticolo FROM Kanban WHERE (MatricolaKanban = @MatricolaKanban) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + SELECT * + FROM dbo.Kanban +where CodArticolo = @CodArticolo + + + + + + + + + + SELECT MatricolaKanban, KanbanCode, TempoCicloBase, PzPallet, CodArticolo +FROM Kanban +WHERE (MatricolaKanban = @codice) + + + + + + + + + + INSERT INTO Kanban + (MatricolaKanban, KanbanCode, TempoCicloBase, PzPallet, CodArticolo) +VALUES (@nuovoCodice,@nuovoCodice, 1, 1,@nuovoCodice) + + + + + + + + + + + + + + DELETE FROM [dbo].[EventList] WHERE (([IdxMacchina] = @Original_IdxMacchina) AND ([InizioStato] = @Original_InizioStato) AND ([IdxTipo] = @Original_IdxTipo) AND ((@IsNull_MatricolaKanban = 1 AND [MatricolaKanban] IS NULL) OR ([MatricolaKanban] = @Original_MatricolaKanban)) AND ((@IsNull_Value = 1 AND [Value] IS NULL) OR ([Value] = @Original_Value)) AND ((@IsNull_MatrOpr = 1 AND [MatrOpr] IS NULL) OR ([MatrOpr] = @Original_MatrOpr)) AND ((@IsNull_pallet = 1 AND [pallet] IS NULL) OR ([pallet] = @Original_pallet))) + + + + + + + + + + + + + + + + + + + INSERT INTO [dbo].[EventList] ([IdxMacchina], [InizioStato], [IdxTipo], [MatricolaKanban], [Value], [MatrOpr], [pallet]) VALUES (@IdxMacchina, @InizioStato, @IdxTipo, @MatricolaKanban, @Value, @MatrOpr, @pallet); + SELECT IdxMacchina, InizioStato, IdxTipo, MatricolaKanban, Value, MatrOpr, pallet FROM EventList WHERE (IdxMacchina = @IdxMacchina) AND (IdxTipo = @IdxTipo) AND (InizioStato = @InizioStato) + + + + + + + + + + + + + + + SELECT * FROM dbo.EventList + + + + + + + UPDATE [dbo].[EventList] SET [IdxMacchina] = @IdxMacchina, [InizioStato] = @InizioStato, [IdxTipo] = @IdxTipo, [MatricolaKanban] = @MatricolaKanban, [Value] = @Value, [MatrOpr] = @MatrOpr, [pallet] = @pallet WHERE (([IdxMacchina] = @Original_IdxMacchina) AND ([InizioStato] = @Original_InizioStato) AND ([IdxTipo] = @Original_IdxTipo) AND ((@IsNull_MatricolaKanban = 1 AND [MatricolaKanban] IS NULL) OR ([MatricolaKanban] = @Original_MatricolaKanban)) AND ((@IsNull_Value = 1 AND [Value] IS NULL) OR ([Value] = @Original_Value)) AND ((@IsNull_MatrOpr = 1 AND [MatrOpr] IS NULL) OR ([MatrOpr] = @Original_MatrOpr)) AND ((@IsNull_pallet = 1 AND [pallet] IS NULL) OR ([pallet] = @Original_pallet))); + SELECT IdxMacchina, InizioStato, IdxTipo, MatricolaKanban, Value, MatrOpr, pallet FROM EventList WHERE (IdxMacchina = @IdxMacchina) AND (IdxTipo = @IdxTipo) AND (InizioStato = @InizioStato) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_EL_contaTipo + + + + + + + + + + + dbo.stp_EL_contaTutti + + + + + + + + + + dbo.stp_EL_deleteAll + + + + + + + + + + dbo.stp_EL_deleteQuery + + + + + + + + + + + + dbo.stp_EL_getAllMacchinePeriodo + + + + + + + + + + + + dbo.stp_EL_getByMacchinaPeriodo + + + + + + + + + + + + + dbo.stp_EL_getByMacchina + + + + + + + + + + + dbo.stp_EL_getDataFilled + + + + + + + + + + dbo.stp_EL_getDataFiltered + + + + + + + + + + + + + dbo.stp_EL_InsEvento + + + + + + + + + + + + + + + + dbo.stp_EL_updateTipo + + + + + + + + + + + + + + + + + DELETE FROM [dbo].[AnagraficaEventi] WHERE (([IdxTipo] = @Original_IdxTipo) AND ((@IsNull_Nome = 1 AND [Nome] IS NULL) OR ([Nome] = @Original_Nome))) + + + + + + + + + + + INSERT INTO [dbo].[AnagraficaEventi] ([IdxTipo], [Nome]) VALUES (@IdxTipo, @Nome); + SELECT IdxTipo, Nome FROM AnagraficaEventi WHERE (IdxTipo = @IdxTipo) + + + + + + + + + + SELECT IdxTipo, Nome FROM dbo.AnagraficaEventi + + + + + + + UPDATE [dbo].[AnagraficaEventi] SET [IdxTipo] = @IdxTipo, [Nome] = @Nome WHERE (([IdxTipo] = @Original_IdxTipo) AND ((@IsNull_Nome = 1 AND [Nome] IS NULL) OR ([Nome] = @Original_Nome))); + SELECT IdxTipo, Nome FROM AnagraficaEventi WHERE (IdxTipo = @IdxTipo) + + + + + + + + + + + + + + + + + + + + + + SELECT IdxTipo, Nome FROM dbo.AnagraficaEventi + where IdxTipo=@IdxTipo + + + + + + + + + + + + + + + DELETE FROM [dbo].[DiarioDiBordo] WHERE (([IdxMacchina] = @Original_IdxMacchina) AND ([InizioStato] = @Original_InizioStato) AND ((@IsNull_FineStato = 1 AND [FineStato] IS NULL) OR ([FineStato] = @Original_FineStato)) AND ([IdxStato] = @Original_IdxStato) AND ((@IsNull_DurataMinuti = 1 AND [DurataMinuti] IS NULL) OR ([DurataMinuti] = @Original_DurataMinuti)) AND ((@IsNull_Value = 1 AND [Value] IS NULL) OR ([Value] = @Original_Value)) AND ((@IsNull_MatricolaKanban = 1 AND [MatricolaKanban] IS NULL) OR ([MatricolaKanban] = @Original_MatricolaKanban)) AND ((@IsNull_KanbanCode = 1 AND [KanbanCode] IS NULL) OR ([KanbanCode] = @Original_KanbanCode)) AND ((@IsNull_TempoCicloBase = 1 AND [TempoCicloBase] IS NULL) OR ([TempoCicloBase] = @Original_TempoCicloBase)) AND ((@IsNull_PzPalletProd = 1 AND [PzPalletProd] IS NULL) OR ([PzPalletProd] = @Original_PzPalletProd)) AND ((@IsNull_MatrOpr = 1 AND [MatrOpr] IS NULL) OR ([MatrOpr] = @Original_MatrOpr)) AND ((@IsNull_pallet = 1 AND [pallet] IS NULL) OR ([pallet] = @Original_pallet))) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + INSERT INTO [dbo].[DiarioDiBordo] ([IdxMacchina], [InizioStato], [FineStato], [IdxStato], [DurataMinuti], [Value], [MatricolaKanban], [KanbanCode], [TempoCicloBase], [PzPalletProd], [MatrOpr], [pallet]) VALUES (@IdxMacchina, @InizioStato, @FineStato, @IdxStato, @DurataMinuti, @Value, @MatricolaKanban, @KanbanCode, @TempoCicloBase, @PzPalletProd, @MatrOpr, @pallet); + SELECT IdxMacchina, InizioStato, FineStato, IdxStato, DurataMinuti, Value, MatricolaKanban, KanbanCode, TempoCicloBase, PzPalletProd, MatrOpr, pallet FROM DiarioDiBordo WHERE (IdxMacchina = @IdxMacchina) AND (InizioStato = @InizioStato) + + + + + + + + + + + + + + + + + + + + SELECT * FROM dbo.DiarioDiBordo + + + + + + + UPDATE [dbo].[DiarioDiBordo] SET [IdxMacchina] = @IdxMacchina, [InizioStato] = @InizioStato, [FineStato] = @FineStato, [IdxStato] = @IdxStato, [DurataMinuti] = @DurataMinuti, [Value] = @Value, [MatricolaKanban] = @MatricolaKanban, [KanbanCode] = @KanbanCode, [TempoCicloBase] = @TempoCicloBase, [PzPalletProd] = @PzPalletProd, [MatrOpr] = @MatrOpr, [pallet] = @pallet WHERE (([IdxMacchina] = @Original_IdxMacchina) AND ([InizioStato] = @Original_InizioStato) AND ((@IsNull_FineStato = 1 AND [FineStato] IS NULL) OR ([FineStato] = @Original_FineStato)) AND ([IdxStato] = @Original_IdxStato) AND ((@IsNull_DurataMinuti = 1 AND [DurataMinuti] IS NULL) OR ([DurataMinuti] = @Original_DurataMinuti)) AND ((@IsNull_Value = 1 AND [Value] IS NULL) OR ([Value] = @Original_Value)) AND ((@IsNull_MatricolaKanban = 1 AND [MatricolaKanban] IS NULL) OR ([MatricolaKanban] = @Original_MatricolaKanban)) AND ((@IsNull_KanbanCode = 1 AND [KanbanCode] IS NULL) OR ([KanbanCode] = @Original_KanbanCode)) AND ((@IsNull_TempoCicloBase = 1 AND [TempoCicloBase] IS NULL) OR ([TempoCicloBase] = @Original_TempoCicloBase)) AND ((@IsNull_PzPalletProd = 1 AND [PzPalletProd] IS NULL) OR ([PzPalletProd] = @Original_PzPalletProd)) AND ((@IsNull_MatrOpr = 1 AND [MatrOpr] IS NULL) OR ([MatrOpr] = @Original_MatrOpr)) AND ((@IsNull_pallet = 1 AND [pallet] IS NULL) OR ([pallet] = @Original_pallet))); + SELECT IdxMacchina, InizioStato, FineStato, IdxStato, DurataMinuti, Value, MatricolaKanban, KanbanCode, TempoCicloBase, PzPalletProd, MatrOpr, pallet FROM DiarioDiBordo WHERE (IdxMacchina = @IdxMacchina) AND (InizioStato = @InizioStato) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_DDB_contaStato + + + + + + + + + + + dbo.stp_DDB_contaTutti + + + + + + + + + + DELETE FROM [dbo].[DiarioDiBordo] + + + + + + + + dbo.stp_DDB_deleteMacchinaPeriodo + + + + + + + + + + + + + dbo.stp_DDB_deleteMacchinaInizio + + + + + + + + + + + + dbo.stp_DDB_getByPeriodo + + + + + + + + + + + + + dbo.stp_DDB_getByMacchinaPeriodo + + + + + + + + + + + + + dbo.stp_DDB_getByMacchina + + + + + + + + + + + dbo.stp_DDB_getDataFilled + + + + + + + + + + dbo.stp_DDB_getDataFiltered + + + + + + + + + + + + + + dbo.stp_DDB_getFermiFilt + + + + + + + + + + + + + dbo.stp_DDB_getNextByMacchinaFrom + + + + + + + + + + + + dbo.stp_DDB_getParetoDurate + + + + + + + + + + dbo.stp_DDB_getSequenza + + + + + + + + + + + + + dbo.stp_DDB_getShortChanging + + + + + + + + + + + + + dbo.stp_DDB_getTortaKanban + + + + + + + + + + + + + + dbo.stp_DDB_InsStato + + + + + + + + + + + + + + + + dbo.stp_DDB_InsStatoBatch + + + + + + + + + + + + + + + + + dbo.stp_DDB_updateFineDurata + + + + + + + + + + + + + + dbo.stp_DDB_updateStato + + + + + + + + + + + + + + + + + DELETE FROM [dbo].[TransizioneEventi] WHERE (([codInviato] = @Original_codInviato) AND ([prec_codInviato] = @Original_prec_codInviato) AND ((@IsNull_IdxTipoEvento = 1 AND [IdxTipoEvento] IS NULL) OR ([IdxTipoEvento] = @Original_IdxTipoEvento)) AND ((@IsNull_text2show = 1 AND [text2show] IS NULL) OR ([text2show] = @Original_text2show)) AND ((@IsNull_descrComando = 1 AND [descrComando] IS NULL) OR ([descrComando] = @Original_descrComando))) + + + + + + + + + + + + + + + + INSERT INTO [dbo].[TransizioneEventi] ([codInviato], [prec_codInviato], [IdxTipoEvento], [text2show], [descrComando]) VALUES (@codInviato, @prec_codInviato, @IdxTipoEvento, @text2show, @descrComando); + SELECT codInviato, prec_codInviato, IdxTipoEvento, text2show, descrComando FROM TransizioneEventi WHERE (codInviato = @codInviato) AND (prec_codInviato = @prec_codInviato) + + + + + + + + + + + + + SELECT codInviato, prec_codInviato, IdxTipoEvento, text2show, descrComando FROM dbo.TransizioneEventi + + + + + + + UPDATE [dbo].[TransizioneEventi] SET [codInviato] = @codInviato, [prec_codInviato] = @prec_codInviato, [IdxTipoEvento] = @IdxTipoEvento, [text2show] = @text2show, [descrComando] = @descrComando WHERE (([codInviato] = @Original_codInviato) AND ([prec_codInviato] = @Original_prec_codInviato) AND ((@IsNull_IdxTipoEvento = 1 AND [IdxTipoEvento] IS NULL) OR ([IdxTipoEvento] = @Original_IdxTipoEvento)) AND ((@IsNull_text2show = 1 AND [text2show] IS NULL) OR ([text2show] = @Original_text2show)) AND ((@IsNull_descrComando = 1 AND [descrComando] IS NULL) OR ([descrComando] = @Original_descrComando))); + SELECT codInviato, prec_codInviato, IdxTipoEvento, text2show, descrComando FROM TransizioneEventi WHERE (codInviato = @codInviato) AND (prec_codInviato = @prec_codInviato) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + SELECT codInviato, prec_codInviato, IdxTipoEvento, text2show, descrComando + FROM TransizioneEventi + WHERE (descrComando = @descrComando) + + + + + + + + + + + + SELECT * + FROM dbo.TransizioneEventi + WHERE codInviato=@codInviato + + + + + + + + + + + + + + + DELETE FROM [dbo].[KeepAlive] WHERE (([IdxMacchina] = @Original_IdxMacchina) AND ((@IsNull_DataOraServer = 1 AND [DataOraServer] IS NULL) OR ([DataOraServer] = @Original_DataOraServer)) AND ((@IsNull_DataOraMacchina = 1 AND [DataOraMacchina] IS NULL) OR ([DataOraMacchina] = @Original_DataOraMacchina)) AND ((@IsNull_DataOraStart = 1 AND [DataOraStart] IS NULL) OR ([DataOraStart] = @Original_DataOraStart))) + + + + + + + + + + + + + + + INSERT INTO [dbo].[KeepAlive] ([IdxMacchina], [DataOraServer], [DataOraMacchina], [DataOraStart]) VALUES (@IdxMacchina, @DataOraServer, @DataOraMacchina, @DataOraStart); + SELECT IdxMacchina, DataOraServer, DataOraMacchina, DataOraStart FROM KeepAlive WHERE (IdxMacchina = @IdxMacchina) + + + + + + + + + + + + SELECT IdxMacchina, DataOraServer, DataOraMacchina, DataOraStart FROM dbo.KeepAlive + + + + + + + UPDATE [dbo].[KeepAlive] SET [IdxMacchina] = @IdxMacchina, [DataOraServer] = @DataOraServer, [DataOraMacchina] = @DataOraMacchina, [DataOraStart] = @DataOraStart WHERE (([IdxMacchina] = @Original_IdxMacchina) AND ((@IsNull_DataOraServer = 1 AND [DataOraServer] IS NULL) OR ([DataOraServer] = @Original_DataOraServer)) AND ((@IsNull_DataOraMacchina = 1 AND [DataOraMacchina] IS NULL) OR ([DataOraMacchina] = @Original_DataOraMacchina)) AND ((@IsNull_DataOraStart = 1 AND [DataOraStart] IS NULL) OR ([DataOraStart] = @Original_DataOraStart))); + SELECT IdxMacchina, DataOraServer, DataOraMacchina, DataOraStart FROM KeepAlive WHERE (IdxMacchina = @IdxMacchina) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_KA_getByIdxMacchina + + + + + + + + + + + + UPDATE [dbo].[KeepAlive] + SET [DataOraServer] = @DataOraServer, [DataOraMacchina] = @DataOraMacchina, [DataOraStart] = @DataOraStart + WHERE ([IdxMacchina] = @Original_IdxMacchina) + + + + + + + + + + + + + + + UPDATE [dbo].[KeepAlive] + SET [DataOraServer] = @DataOraServer, [DataOraMacchina] = @DataOraMacchina + WHERE ([IdxMacchina] = @Original_IdxMacchina) + + + + + + + + + + + + + + + + + DELETE FROM [dbo].[Macchine2FamigliaIngressi] WHERE (([IdxFamigliaIngresso] = @Original_IdxFamigliaIngresso) AND ([IdxMacchina] = @Original_IdxMacchina)) + + + + + + + + + + INSERT INTO [dbo].[Macchine2FamigliaIngressi] ([IdxFamigliaIngresso], [IdxMacchina]) VALUES (@IdxFamigliaIngresso, @IdxMacchina); + SELECT IdxFamigliaIngresso, IdxMacchina FROM Macchine2FamigliaIngressi WHERE (IdxFamigliaIngresso = @IdxFamigliaIngresso) AND (IdxMacchina = @IdxMacchina) + + + + + + + + + + SELECT IdxFamigliaIngresso, IdxMacchina FROM dbo.Macchine2FamigliaIngressi + + + + + + + UPDATE [dbo].[Macchine2FamigliaIngressi] SET [IdxFamigliaIngresso] = @IdxFamigliaIngresso, [IdxMacchina] = @IdxMacchina WHERE (([IdxFamigliaIngresso] = @Original_IdxFamigliaIngresso) AND ([IdxMacchina] = @Original_IdxMacchina)); + SELECT IdxFamigliaIngresso, IdxMacchina FROM Macchine2FamigliaIngressi WHERE (IdxFamigliaIngresso = @IdxFamigliaIngresso) AND (IdxMacchina = @IdxMacchina) + + + + + + + + + + + + + + + + + + + + + + + DELETE FROM [dbo].[FamigliaTipoIngressi] WHERE (([IdxFamigliaIngresso] = @Original_IdxFamigliaIngresso) AND ((@IsNull_DescrizioneIngresso = 1 AND [DescrizioneIngresso] IS NULL) OR ([DescrizioneIngresso] = @Original_DescrizioneIngresso))) + + + + + + + + + + + INSERT INTO [dbo].[FamigliaTipoIngressi] ([IdxFamigliaIngresso], [DescrizioneIngresso]) VALUES (@IdxFamigliaIngresso, @DescrizioneIngresso); + SELECT IdxFamigliaIngresso, DescrizioneIngresso FROM FamigliaTipoIngressi WHERE (IdxFamigliaIngresso = @IdxFamigliaIngresso) + + + + + + + + + + SELECT IdxFamigliaIngresso, DescrizioneIngresso FROM dbo.FamigliaTipoIngressi + + + + + + + UPDATE [dbo].[FamigliaTipoIngressi] SET [IdxFamigliaIngresso] = @IdxFamigliaIngresso, [DescrizioneIngresso] = @DescrizioneIngresso WHERE (([IdxFamigliaIngresso] = @Original_IdxFamigliaIngresso) AND ((@IsNull_DescrizioneIngresso = 1 AND [DescrizioneIngresso] IS NULL) OR ([DescrizioneIngresso] = @Original_DescrizioneIngresso))); + SELECT IdxFamigliaIngresso, DescrizioneIngresso FROM FamigliaTipoIngressi WHERE (IdxFamigliaIngresso = @IdxFamigliaIngresso) + + + + + + + + + + + + + + + + + + + + + + + + DELETE FROM [dbo].[TransizioneIngressi] WHERE (([IdxFamigliaIngresso] = @Original_IdxFamigliaIngresso) AND ([IdxMicroStato] = @Original_IdxMicroStato) AND ([ValoreIngresso] = @Original_ValoreIngresso) AND ((@IsNull_IdxTipoEvento = 1 AND [IdxTipoEvento] IS NULL) OR ([IdxTipoEvento] = @Original_IdxTipoEvento)) AND ([next_IdxMicroStato] = @Original_next_IdxMicroStato)) + + + + + + + + + + + + + + INSERT INTO [dbo].[TransizioneIngressi] ([IdxFamigliaIngresso], [IdxMicroStato], [ValoreIngresso], [IdxTipoEvento], [next_IdxMicroStato]) VALUES (@IdxFamigliaIngresso, @IdxMicroStato, @ValoreIngresso, @IdxTipoEvento, @next_IdxMicroStato); + SELECT IdxFamigliaIngresso, IdxMicroStato, ValoreIngresso, IdxTipoEvento, next_IdxMicroStato FROM TransizioneIngressi WHERE (IdxFamigliaIngresso = @IdxFamigliaIngresso) AND (IdxMicroStato = @IdxMicroStato) AND (ValoreIngresso = @ValoreIngresso) + + + + + + + + + + + + + SELECT IdxFamigliaIngresso, IdxMicroStato, ValoreIngresso, IdxTipoEvento, next_IdxMicroStato FROM dbo.TransizioneIngressi + + + + + + + UPDATE [dbo].[TransizioneIngressi] SET [IdxFamigliaIngresso] = @IdxFamigliaIngresso, [IdxMicroStato] = @IdxMicroStato, [ValoreIngresso] = @ValoreIngresso, [IdxTipoEvento] = @IdxTipoEvento, [next_IdxMicroStato] = @next_IdxMicroStato WHERE (([IdxFamigliaIngresso] = @Original_IdxFamigliaIngresso) AND ([IdxMicroStato] = @Original_IdxMicroStato) AND ([ValoreIngresso] = @Original_ValoreIngresso) AND ((@IsNull_IdxTipoEvento = 1 AND [IdxTipoEvento] IS NULL) OR ([IdxTipoEvento] = @Original_IdxTipoEvento)) AND ([next_IdxMicroStato] = @Original_next_IdxMicroStato)); + SELECT IdxFamigliaIngresso, IdxMicroStato, ValoreIngresso, IdxTipoEvento, next_IdxMicroStato FROM TransizioneIngressi WHERE (IdxFamigliaIngresso = @IdxFamigliaIngresso) AND (IdxMicroStato = @IdxMicroStato) AND (ValoreIngresso = @ValoreIngresso) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_TRI_getByIdxMacchinaValore + + + + + + + + + + + + dbo.stp_TRI_getByIdxMacchina + + + + + + + + + + + + SELECT TransizioneIngressi.IdxFamigliaIngresso, TransizioneIngressi.IdxMicroStato, TransizioneIngressi.ValoreIngresso, TransizioneIngressi.IdxTipoEvento, + TransizioneIngressi.next_IdxMicroStato + FROM TransizioneIngressi INNER JOIN + Macchine2FamigliaIngressi ON TransizioneIngressi.IdxFamigliaIngresso = Macchine2FamigliaIngressi.IdxFamigliaIngresso + WHERE (Macchine2FamigliaIngressi.IdxMacchina = @IdxMacchina) AND (TransizioneIngressi.IdxMicroStato = @IdxMicroStato) AND + (TransizioneIngressi.ValoreIngresso = @ValoreIngresso) + + + + + + + + + + + + + + + + + DELETE FROM [dbo].[AnagraficaOperatori] WHERE (([MatrOpr] = @Original_MatrOpr) AND ((@IsNull_Cognome = 1 AND [Cognome] IS NULL) OR ([Cognome] = @Original_Cognome)) AND ((@IsNull_Nome = 1 AND [Nome] IS NULL) OR ([Nome] = @Original_Nome)) AND ((@IsNull_isAdmin = 1 AND [isAdmin] IS NULL) OR ([isAdmin] = @Original_isAdmin)) AND ((@IsNull_authKey = 1 AND [authKey] IS NULL) OR ([authKey] = @Original_authKey))) + + + + + + + + + + + + + + + + INSERT INTO [dbo].[AnagraficaOperatori] ([MatrOpr], [Cognome], [Nome], [isAdmin], [authKey]) VALUES (@MatrOpr, @Cognome, @Nome, @isAdmin, @authKey); +SELECT MatrOpr, Cognome, Nome, isAdmin, authKey FROM AnagraficaOperatori WHERE (MatrOpr = @MatrOpr) + + + + + + + + + + + + SELECT * FROM dbo.AnagraficaOperatori + + + + + + UPDATE [dbo].[AnagraficaOperatori] SET [MatrOpr] = @MatrOpr, [Cognome] = @Cognome, [Nome] = @Nome, [isAdmin] = @isAdmin, [authKey] = @authKey WHERE (([MatrOpr] = @Original_MatrOpr) AND ((@IsNull_Cognome = 1 AND [Cognome] IS NULL) OR ([Cognome] = @Original_Cognome)) AND ((@IsNull_Nome = 1 AND [Nome] IS NULL) OR ([Nome] = @Original_Nome)) AND ((@IsNull_isAdmin = 1 AND [isAdmin] IS NULL) OR ([isAdmin] = @Original_isAdmin)) AND ((@IsNull_authKey = 1 AND [authKey] IS NULL) OR ([authKey] = @Original_authKey))); +SELECT MatrOpr, Cognome, Nome, isAdmin, authKey FROM AnagraficaOperatori WHERE (MatrOpr = @MatrOpr) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_AO_getByMatrAuthKey + + + + + + + + + + + + dbo.stp_AO_getByMatr + + + + + + + + + + + + + + + DELETE FROM [dbo].[Kanban2ins] WHERE (([MatricolaKanban] = @Original_MatricolaKanban) AND ((@IsNull_KanbanCode = 1 AND [KanbanCode] IS NULL) OR ([KanbanCode] = @Original_KanbanCode)) AND ((@IsNull_TempoCicloBase = 1 AND [TempoCicloBase] IS NULL) OR ([TempoCicloBase] = @Original_TempoCicloBase)) AND ((@IsNull_PzPallet = 1 AND [PzPallet] IS NULL) OR ([PzPallet] = @Original_PzPallet))) + + + + + + + + + + + + + + + INSERT INTO [dbo].[Kanban2ins] ([MatricolaKanban], [KanbanCode], [TempoCicloBase], [PzPallet]) VALUES (@MatricolaKanban, @KanbanCode, @TempoCicloBase, @PzPallet); + SELECT MatricolaKanban, KanbanCode, TempoCicloBase, PzPallet FROM Kanban2ins WHERE (MatricolaKanban = @MatricolaKanban) + + + + + + + + + + + + SELECT MatricolaKanban, KanbanCode, TempoCicloBase, PzPallet FROM dbo.Kanban2ins + + + + + + + UPDATE [dbo].[Kanban2ins] SET [MatricolaKanban] = @MatricolaKanban, [KanbanCode] = @KanbanCode, [TempoCicloBase] = @TempoCicloBase, [PzPallet] = @PzPallet WHERE (([MatricolaKanban] = @Original_MatricolaKanban) AND ((@IsNull_KanbanCode = 1 AND [KanbanCode] IS NULL) OR ([KanbanCode] = @Original_KanbanCode)) AND ((@IsNull_TempoCicloBase = 1 AND [TempoCicloBase] IS NULL) OR ([TempoCicloBase] = @Original_TempoCicloBase)) AND ((@IsNull_PzPallet = 1 AND [PzPallet] IS NULL) OR ([PzPallet] = @Original_PzPallet))); + SELECT MatricolaKanban, KanbanCode, TempoCicloBase, PzPallet FROM Kanban2ins WHERE (MatricolaKanban = @MatricolaKanban) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_K2I_deleteAll + + + + + + + + + + dbo.stp_K2I_updateKanban + + + + + + + + + + + + + + DELETE FROM [dbo].[AnagraficaOperatori2ins] WHERE (([MatrOpr] = @Original_MatrOpr) AND ((@IsNull_Cognome = 1 AND [Cognome] IS NULL) OR ([Cognome] = @Original_Cognome)) AND ((@IsNull_Nome = 1 AND [Nome] IS NULL) OR ([Nome] = @Original_Nome))) + + + + + + + + + + + + + INSERT INTO [dbo].[AnagraficaOperatori2ins] ([MatrOpr], [Cognome], [Nome]) VALUES (@MatrOpr, @Cognome, @Nome); + SELECT MatrOpr, Cognome, Nome FROM AnagraficaOperatori2ins WHERE (MatrOpr = @MatrOpr) + + + + + + + + + + + SELECT MatrOpr, Cognome, Nome FROM dbo.AnagraficaOperatori2ins + + + + + + + UPDATE [dbo].[AnagraficaOperatori2ins] SET [MatrOpr] = @MatrOpr, [Cognome] = @Cognome, [Nome] = @Nome WHERE (([MatrOpr] = @Original_MatrOpr) AND ((@IsNull_Cognome = 1 AND [Cognome] IS NULL) OR ([Cognome] = @Original_Cognome)) AND ((@IsNull_Nome = 1 AND [Nome] IS NULL) OR ([Nome] = @Original_Nome))); + SELECT MatrOpr, Cognome, Nome FROM AnagraficaOperatori2ins WHERE (MatrOpr = @MatrOpr) + + + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_AO2I_deleteAll + + + + + + + + + + dbo.stp_AO2I_updateOperatori + + + + + + + + + + + + + + DELETE FROM [dbo].[DatiMacchine] WHERE (([idxMacchina] = @Original_idxMacchina) AND ((@IsNull_palletChange = 1 AND [palletChange] IS NULL) OR ([palletChange] = @Original_palletChange)) AND ((@IsNull_kanban_A = 1 AND [kanban_A] IS NULL) OR ([kanban_A] = @Original_kanban_A)) AND ((@IsNull_kanban_B = 1 AND [kanban_B] IS NULL) OR ([kanban_B] = @Original_kanban_B)) AND ((@IsNull_serialPort = 1 AND [serialPort] IS NULL) OR ([serialPort] = @Original_serialPort)) AND ((@IsNull_refreshPeriod = 1 AND [refreshPeriod] IS NULL) OR ([refreshPeriod] = @Original_refreshPeriod)) AND ((@IsNull_simulazione = 1 AND [simulazione] IS NULL) OR ([simulazione] = @Original_simulazione)) AND ((@IsNull_simplePallet = 1 AND [simplePallet] IS NULL) OR ([simplePallet] = @Original_simplePallet)) AND ((@IsNull_insEnabled = 1 AND [insEnabled] IS NULL) OR ([insEnabled] = @Original_insEnabled))) + + + + + + + + + + + + + + + + + + + + + + + + INSERT INTO [dbo].[DatiMacchine] ([idxMacchina], [palletChange], [kanban_A], [kanban_B], [serialPort], [refreshPeriod], [simulazione], [simplePallet], [insEnabled]) VALUES (@idxMacchina, @palletChange, @kanban_A, @kanban_B, @serialPort, @refreshPeriod, @simulazione, @simplePallet, @insEnabled) + + + + + + + + + + + + + + + + SELECT * +FROM dbo.DatiMacchine + + + + + + UPDATE [dbo].[DatiMacchine] SET [idxMacchina] = @idxMacchina, [palletChange] = @palletChange, [kanban_A] = @kanban_A, [kanban_B] = @kanban_B, [serialPort] = @serialPort, [refreshPeriod] = @refreshPeriod, [simulazione] = @simulazione, [simplePallet] = @simplePallet, [insEnabled] = @insEnabled WHERE (([idxMacchina] = @Original_idxMacchina) AND ((@IsNull_palletChange = 1 AND [palletChange] IS NULL) OR ([palletChange] = @Original_palletChange)) AND ((@IsNull_kanban_A = 1 AND [kanban_A] IS NULL) OR ([kanban_A] = @Original_kanban_A)) AND ((@IsNull_kanban_B = 1 AND [kanban_B] IS NULL) OR ([kanban_B] = @Original_kanban_B)) AND ((@IsNull_serialPort = 1 AND [serialPort] IS NULL) OR ([serialPort] = @Original_serialPort)) AND ((@IsNull_refreshPeriod = 1 AND [refreshPeriod] IS NULL) OR ([refreshPeriod] = @Original_refreshPeriod)) AND ((@IsNull_simulazione = 1 AND [simulazione] IS NULL) OR ([simulazione] = @Original_simulazione)) AND ((@IsNull_simplePallet = 1 AND [simplePallet] IS NULL) OR ([simplePallet] = @Original_simplePallet)) AND ((@IsNull_insEnabled = 1 AND [insEnabled] IS NULL) OR ([insEnabled] = @Original_insEnabled))) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + SELECT * +FROM DatiMacchine WHERE (idxMacchina = @idxMacchina) + + + + + + + + + + + + + + DELETE FROM [dbo].[MicroStatoMacchina] WHERE (([IdxMacchina] = @Original_IdxMacchina) AND ([IdxMicroStato] = @Original_IdxMicroStato) AND ((@IsNull_InizioStato = 1 AND [InizioStato] IS NULL) OR ([InizioStato] = @Original_InizioStato)) AND ((@IsNull_Value = 1 AND [Value] IS NULL) OR ([Value] = @Original_Value))) + + + + + + + + + + + + + INSERT INTO [dbo].[MicroStatoMacchina] ([IdxMacchina], [IdxMicroStato], [InizioStato], [Value]) VALUES (@IdxMacchina, @IdxMicroStato, @InizioStato, @Value); +SELECT IdxMacchina, IdxMicroStato, InizioStato, Value FROM MicroStatoMacchina WHERE (IdxMacchina = @IdxMacchina) + + + + + + + + + + + SELECT IdxMacchina, IdxMicroStato, InizioStato, Value FROM dbo.MicroStatoMacchina + + + + + + UPDATE [dbo].[MicroStatoMacchina] SET [IdxMacchina] = @IdxMacchina, [IdxMicroStato] = @IdxMicroStato, [InizioStato] = @InizioStato, [Value] = @Value WHERE (([IdxMacchina] = @Original_IdxMacchina) AND ([IdxMicroStato] = @Original_IdxMicroStato) AND ((@IsNull_InizioStato = 1 AND [InizioStato] IS NULL) OR ([InizioStato] = @Original_InizioStato)) AND ((@IsNull_Value = 1 AND [Value] IS NULL) OR ([Value] = @Original_Value))); +SELECT IdxMacchina, IdxMicroStato, InizioStato, Value FROM MicroStatoMacchina WHERE (IdxMacchina = @IdxMacchina) + + + + + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_MSM_getByIdxMacchina + + + + + + + + + + + dbo.stp_MSM_updateQuery + + + + + + + + + + + + + + + + + + DELETE FROM [dbo].[LinkMenuJQM] WHERE (([idxLink] = @Original_idxLink) AND ((@IsNull_TipoLink = 1 AND [TipoLink] IS NULL) OR ([TipoLink] = @Original_TipoLink)) AND ((@IsNull_ordine = 1 AND [ordine] IS NULL) OR ([ordine] = @Original_ordine)) AND ((@IsNull_Testo = 1 AND [Testo] IS NULL) OR ([Testo] = @Original_Testo)) AND ((@IsNull_NavigateUrl = 1 AND [NavigateUrl] IS NULL) OR ([NavigateUrl] = @Original_NavigateUrl)) AND ((@IsNull_icona = 1 AND [icona] IS NULL) OR ([icona] = @Original_icona))) + + + + + + + + + + + + + + + + + + INSERT INTO [dbo].[LinkMenuJQM] ([TipoLink], [ordine], [Testo], [NavigateUrl], [icona]) VALUES (@TipoLink, @ordine, @Testo, @NavigateUrl, @icona); +SELECT idxLink, TipoLink, ordine, Testo, NavigateUrl, icona FROM LinkMenuJQM WHERE (idxLink = SCOPE_IDENTITY()) + + + + + + + + + + + + SELECT * +FROM dbo.LinkMenuJQM + + + + + + UPDATE [dbo].[LinkMenuJQM] SET [TipoLink] = @TipoLink, [ordine] = @ordine, [Testo] = @Testo, [NavigateUrl] = @NavigateUrl, [icona] = @icona WHERE (([idxLink] = @Original_idxLink) AND ((@IsNull_TipoLink = 1 AND [TipoLink] IS NULL) OR ([TipoLink] = @Original_TipoLink)) AND ((@IsNull_ordine = 1 AND [ordine] IS NULL) OR ([ordine] = @Original_ordine)) AND ((@IsNull_Testo = 1 AND [Testo] IS NULL) OR ([Testo] = @Original_Testo)) AND ((@IsNull_NavigateUrl = 1 AND [NavigateUrl] IS NULL) OR ([NavigateUrl] = @Original_NavigateUrl)) AND ((@IsNull_icona = 1 AND [icona] IS NULL) OR ([icona] = @Original_icona))); +SELECT idxLink, TipoLink, ordine, Testo, NavigateUrl, icona FROM LinkMenuJQM WHERE (idxLink = @idxLink) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_LMJ_getByTipo + + + + + + + + + + + + + + + DELETE FROM [dbo].[RemoteRebootLog] WHERE (([idxReboot] = @Original_idxReboot) AND ([IdxMacchina] = @Original_IdxMacchina) AND ((@IsNull_IPv4 = 1 AND [IPv4] IS NULL) OR ([IPv4] = @Original_IPv4)) AND ((@IsNull_Agent = 1 AND [Agent] IS NULL) OR ([Agent] = @Original_Agent)) AND ((@IsNull_DataOraBoot = 1 AND [DataOraBoot] IS NULL) OR ([DataOraBoot] = @Original_DataOraBoot)) AND ([macAddr] = @Original_macAddr)) + + + + + + + + + + + + + + + + INSERT INTO [dbo].[RemoteRebootLog] ([IdxMacchina], [IPv4], [Agent], [DataOraBoot], [macAddr]) VALUES (@IdxMacchina, @IPv4, @Agent, @DataOraBoot, @macAddr); +SELECT idxReboot, IdxMacchina, IPv4, Agent, DataOraBoot, macAddr FROM RemoteRebootLog WHERE (idxReboot = SCOPE_IDENTITY()) + + + + + + + + + + + + SELECT * +FROM dbo.RemoteRebootLog + + + + + + UPDATE [dbo].[RemoteRebootLog] SET [IdxMacchina] = @IdxMacchina, [IPv4] = @IPv4, [Agent] = @Agent, [DataOraBoot] = @DataOraBoot, [macAddr] = @macAddr WHERE (([idxReboot] = @Original_idxReboot) AND ([IdxMacchina] = @Original_IdxMacchina) AND ((@IsNull_IPv4 = 1 AND [IPv4] IS NULL) OR ([IPv4] = @Original_IPv4)) AND ((@IsNull_Agent = 1 AND [Agent] IS NULL) OR ([Agent] = @Original_Agent)) AND ((@IsNull_DataOraBoot = 1 AND [DataOraBoot] IS NULL) OR ([DataOraBoot] = @Original_DataOraBoot)) AND ([macAddr] = @Original_macAddr)); +SELECT idxReboot, IdxMacchina, IPv4, Agent, DataOraBoot, macAddr FROM RemoteRebootLog WHERE (idxReboot = @idxReboot) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_RR_getByIdxMacchina + + + + + + + + + + + dbo.stp_RR_getLastByIdxMacchina + + + + + + + + + + + + + + + dbo.stp_DDB_getParetoDurateFilt + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_DDB_getParetoDurateHideSpentaFilt + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/MapoDb/DS_applicazione.xss b/MapoDb/DS_applicazione.xss new file mode 100644 index 00000000..7f8eb0ee --- /dev/null +++ b/MapoDb/DS_applicazione.xss @@ -0,0 +1,339 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 667 + 1007 + + + 667 + 830 + + + + + + + 699 + 558 + + + 699 + 715 + + + + + + + 754 + 1061 + + + 870 + 1061 + + + + + + + 636 + 558 + + + 636 + 682 + + + 463 + 682 + + + + + + + 386 + 619 + + + 386 + 933 + + + 870 + 933 + + + + + + + 322 + 619 + + + 322 + 665 + + + + + + + 659 + 249 + + + 659 + 698 + + + 463 + 698 + + + + + + + 872 + 193 + + + 920 + 193 + + + + + + + 814 + 359 + + + 920 + 359 + + + + + + + 1285 + 343 + + + 1264 + 343 + + + 1264 + 889 + + + 1132 + 889 + + + 1132 + 916 + + + + + + + 1285 + 302 + + + 1220 + 302 + + + + + + + 298 + 455 + + + 298 + 420 + + + + + + + 610 + 93 + + + 523 + 93 + + + + + + + 619 + 341 + + + 523 + 341 + + + + + + + 1444 + 362 + + + 1444 + 409 + + + + + + + 716 + 558 + + + 716 + 1155 + + + + + + + 943 + 1231 + + + 832 + 1231 + + + + + + + 1285 + 343 + + + 1238 + 343 + + + 1238 + 1213 + + + 504 + 1213 + + + + + + + 943 + 1292 + + + 504 + 1292 + + + + + + + 965 + 669 + + + 513 + 669 + + + 513 + 420 + + + + + + + 1108 + 641 + + + 1108 + 547 + + + + + + + 982 + 851 + + + 982 + 890 + + + 463 + 890 + + + + + \ No newline at end of file diff --git a/MapoDb/DataLayer.cs b/MapoDb/DataLayer.cs new file mode 100644 index 00000000..333d1f6e --- /dev/null +++ b/MapoDb/DataLayer.cs @@ -0,0 +1,403 @@ +using System; +using System.Collections.Generic; +using System.Text; +using SteamWare; +using System.Reflection; +using System.Data.SqlClient; + +namespace MapoDb +{ + /// + /// classe gestione operazioni su DB tramite MapoDb + /// + public class DataLayer + { + #region area table adapters + + // Table adapter x DS_Applicazione + public DS_applicazioneTableAdapters.MacchineTableAdapter taMacchine; + public DS_applicazioneTableAdapters.StatoMacchineTableAdapter taStatoMacchine; + public DS_applicazioneTableAdapters.AnagraficaEventiTableAdapter taAnagEventi; + public DS_applicazioneTableAdapters.AnagraficaStatiTableAdapter taAnagStati; + public DS_applicazioneTableAdapters.KanbanTableAdapter taKanban; + public DS_applicazioneTableAdapters.KeepAliveTableAdapter taKeepAlive; + public DS_applicazioneTableAdapters.DiarioDiBordoTableAdapter taStati; + public DS_applicazioneTableAdapters.EventListTableAdapter taEventi; + public DS_applicazioneTableAdapters.Kanban2insTableAdapter taK2ins; + public DS_applicazioneTableAdapters.AnagraficaOperatoriTableAdapter taOp; + public DS_applicazioneTableAdapters.AnagraficaOperatori2insTableAdapter taOp2ins; + public DS_applicazioneTableAdapters.TransizioneIngressiTableAdapter taTranIngr; + public DS_applicazioneTableAdapters.RemoteRebootLogTableAdapter taRemReb; + // Table adapter x DS_ProdTempi + public DS_ProdTempiTableAdapters.AnagArticoliTableAdapter taAnagArt; + public DS_ProdTempiTableAdapters.ODLTableAdapter taODL; + public DS_ProdTempiTableAdapters.DatiMacchineTableAdapter taDatiMacchine; + public DS_ProdTempiTableAdapters.stp_repDonati_getDatiProdMacchinaTableAdapter taDatiProdMacch; + public DS_ProdTempiTableAdapters.stp_repDonati_getDatiProdMacchinaPeriodoTableAdapter taDatiProdMacchPer; + public DS_ProdTempiTableAdapters.stp_repDonati_getLastStatoDurataMacchinaTableAdapter taDatiStatoMacch; + public DS_ProdTempiTableAdapters.PostazioniMapoTableAdapter taPostazioni; + public DS_ProdTempiTableAdapters.DatiConfermatiTableAdapter taDatiConfermati; + public DS_ProdTempiTableAdapters.stp_PzProd_getByMacchinaTableAdapter taPzProd2conf; + public DS_ProdTempiTableAdapters.TempiCicloRilevatiTableAdapter taTempiCicloRilevati; + public DS_ProdTempiTableAdapters.DatiProduzioneTableAdapter taDatiProd; + public DS_ProdTempiTableAdapters.stp_TempoByIdxMaccPeriodClassTableAdapter taTempoByClass; + public DS_ProdTempiTableAdapters.TurniMacchinaTableAdapter taTurniMacc; + public DS_ProdTempiTableAdapters.CalendFesteFerieTableAdapter taCalFF; + public DS_ProdTempiTableAdapters.MappaStatoExplTableAdapter taMSE; + public DS_ProdTempiTableAdapters.ProduzioneAs400TableAdapter taAs400; + // table adapter x utility + public DS_UtilityTableAdapters.v_selArticoliTableAdapter taSelArt; + public DS_UtilityTableAdapters.v_selKanbanTableAdapter taSelKan; + public DS_UtilityTableAdapters.v_selODLTableAdapter taSelOdlFree; + public DS_UtilityTableAdapters.CommentiTableAdapter taComm; + + + /// + /// init dei table adapters + /// + protected void initTA() + { + // istanzio oggetto + taMacchine = new DS_applicazioneTableAdapters.MacchineTableAdapter(); + taStatoMacchine = new DS_applicazioneTableAdapters.StatoMacchineTableAdapter(); + taAnagEventi = new DS_applicazioneTableAdapters.AnagraficaEventiTableAdapter(); + taAnagStati = new DS_applicazioneTableAdapters.AnagraficaStatiTableAdapter(); + taKanban = new DS_applicazioneTableAdapters.KanbanTableAdapter(); + taKeepAlive = new DS_applicazioneTableAdapters.KeepAliveTableAdapter(); + taStati = new DS_applicazioneTableAdapters.DiarioDiBordoTableAdapter(); + taEventi = new DS_applicazioneTableAdapters.EventListTableAdapter(); + taK2ins = new DS_applicazioneTableAdapters.Kanban2insTableAdapter(); + taOp = new DS_applicazioneTableAdapters.AnagraficaOperatoriTableAdapter(); + taOp2ins = new DS_applicazioneTableAdapters.AnagraficaOperatori2insTableAdapter(); + taTranIngr = new DS_applicazioneTableAdapters.TransizioneIngressiTableAdapter(); + taRemReb = new DS_applicazioneTableAdapters.RemoteRebootLogTableAdapter(); + taAnagArt = new DS_ProdTempiTableAdapters.AnagArticoliTableAdapter(); + taODL = new DS_ProdTempiTableAdapters.ODLTableAdapter(); + taDatiMacchine = new DS_ProdTempiTableAdapters.DatiMacchineTableAdapter(); + taDatiProdMacch = new DS_ProdTempiTableAdapters.stp_repDonati_getDatiProdMacchinaTableAdapter(); + taDatiProdMacchPer = new DS_ProdTempiTableAdapters.stp_repDonati_getDatiProdMacchinaPeriodoTableAdapter(); + taDatiStatoMacch = new DS_ProdTempiTableAdapters.stp_repDonati_getLastStatoDurataMacchinaTableAdapter(); + taPostazioni = new DS_ProdTempiTableAdapters.PostazioniMapoTableAdapter(); + taTurniMacc = new DS_ProdTempiTableAdapters.TurniMacchinaTableAdapter(); + taDatiConfermati = new DS_ProdTempiTableAdapters.DatiConfermatiTableAdapter(); + taPzProd2conf = new DS_ProdTempiTableAdapters.stp_PzProd_getByMacchinaTableAdapter(); + taTempiCicloRilevati = new DS_ProdTempiTableAdapters.TempiCicloRilevatiTableAdapter(); + taDatiProd = new DS_ProdTempiTableAdapters.DatiProduzioneTableAdapter(); + taTempoByClass = new DS_ProdTempiTableAdapters.stp_TempoByIdxMaccPeriodClassTableAdapter(); + taCalFF = new DS_ProdTempiTableAdapters.CalendFesteFerieTableAdapter(); + taMSE = new DS_ProdTempiTableAdapters.MappaStatoExplTableAdapter(); + taAs400 = new DS_ProdTempiTableAdapters.ProduzioneAs400TableAdapter(); + taSelArt = new DS_UtilityTableAdapters.v_selArticoliTableAdapter(); + taSelKan = new DS_UtilityTableAdapters.v_selKanbanTableAdapter(); + taSelOdlFree = new DS_UtilityTableAdapters.v_selODLTableAdapter(); + taComm = new DS_UtilityTableAdapters.CommentiTableAdapter(); + } + /// + /// effettua setup dei connection strings da web.config delal singola applicazione + /// + protected virtual void setupConnectionStringBase() + { + string connectionString = memLayer.ML.confReadString("MoonProConnectionString"); + // connections del db + taMacchine.Connection.ConnectionString = connectionString; + taStatoMacchine.Connection.ConnectionString = connectionString; + taAnagEventi.Connection.ConnectionString = connectionString; + taAnagStati.Connection.ConnectionString = connectionString; + taKanban.Connection.ConnectionString = connectionString; + taKeepAlive.Connection.ConnectionString = connectionString; + taStati.Connection.ConnectionString = connectionString; + taEventi.Connection.ConnectionString = connectionString; + taK2ins.Connection.ConnectionString = connectionString; + taOp.Connection.ConnectionString = connectionString; + taOp2ins.Connection.ConnectionString = connectionString; + taTranIngr.Connection.ConnectionString = connectionString; + taRemReb.Connection.ConnectionString = connectionString; + taAnagArt.Connection.ConnectionString = connectionString; + taODL.Connection.ConnectionString = connectionString; + taDatiMacchine.Connection.ConnectionString = connectionString; + taDatiProdMacch.Connection.ConnectionString = connectionString; + taDatiProdMacchPer.Connection.ConnectionString = connectionString; + taDatiStatoMacch.Connection.ConnectionString = connectionString; + taPostazioni.Connection.ConnectionString = connectionString; + taTurniMacc.Connection.ConnectionString = connectionString; + taDatiConfermati.Connection.ConnectionString = connectionString; + taPzProd2conf.Connection.ConnectionString = connectionString; + taTempiCicloRilevati.Connection.ConnectionString = connectionString; + taDatiProd.Connection.ConnectionString = connectionString; + taTempoByClass.Connection.ConnectionString = connectionString; + taCalFF.Connection.ConnectionString = connectionString; + taMSE.Connection.ConnectionString = connectionString; + taAs400.Connection.ConnectionString = connectionString; + taSelArt.Connection.ConnectionString = connectionString; + taSelKan.Connection.ConnectionString = connectionString; + taSelOdlFree.Connection.ConnectionString = connectionString; + taComm.Connection.ConnectionString = connectionString; + } + + #endregion + + #region Inizializzazione + + protected DataLayer() + { + initTA(); + setupConnectionStringBase(); + + // aggiunta x gestione timeout esteso (ove necessario)! + fixCommandTimeout(); + } + + /// + /// sistemazione timeout comandi nei tableadapter + /// + private void fixCommandTimeout() + { + //SetAllCommandTimeouts(taQL, memLayer.ML.confReadInt("sqlLongCommandTimeout")); + //SetAllCommandTimeouts(taQFQ, memLayer.ML.confReadInt("sqlLongCommandTimeout")); + //SetAllCommandTimeouts(taQRM, memLayer.ML.confReadInt("sqlLongCommandTimeout")); + //SetAllCommandTimeouts(taRMD, memLayer.ML.confReadInt("sqlLongCommandTimeout")); + //SetAllCommandTimeouts(taSCL, memLayer.ML.confReadInt("sqlLongCommandTimeout")); + //SetAllCommandTimeouts(taVSCli, memLayer.ML.confReadInt("sqlLongCommandTimeout")); + //SetAllCommandTimeouts(taVSItm, memLayer.ML.confReadInt("sqlLongCommandTimeout")); + //SetAllCommandTimeouts(taVSRM, memLayer.ML.confReadInt("sqlLongCommandTimeout")); + //SetAllCommandTimeouts(taRPT, memLayer.ML.confReadInt("sqlLongCommandTimeout")); + //SetAllCommandTimeouts(taO4I, memLayer.ML.confReadInt("sqlLongCommandTimeout")); + //SetAllCommandTimeouts(taOH, memLayer.ML.confReadInt("sqlLongCommandTimeout")); + //SetAllCommandTimeouts(taSC2C, memLayer.ML.confReadInt("sqlLongCommandTimeout")); + SetAllCommandTimeouts(taComm, memLayer.ML.confReadInt("sqlLongCommandTimeout")); + } + void SetAllCommandTimeouts(object adapter, int timeout) + { + var commands = adapter.GetType().InvokeMember( + "CommandCollection", + BindingFlags.GetProperty | BindingFlags.Instance | BindingFlags.NonPublic, + null, adapter, new object[0]); + var sqlCommand = (SqlCommand[])commands; + foreach (var cmd in sqlCommand) + { + cmd.CommandTimeout = timeout; + } + } + /// + /// oggetto static per fare chiamate sul magazzino + /// + public static DataLayer obj = new DataLayer(); + + #endregion + + #region utility public esposte + + /// + /// Effettua conferma prod macchina dell'intero periodo da confermare (ultima conferma --> adesso) + /// + /// idx macchina da confermare + /// 0=periodo, 1 = giorno, 2 = turno + /// qta pezzi da confermare + /// + public bool confermaProdMacchina(string idxMacchina, int modoConfProd, int numPzConfermati) + { + bool answ = false; + try + { + DS_ProdTempi.stp_PzProd_getByMacchinaRow rigaProd = DataLayer.obj.taPzProd2conf.GetData(idxMacchina.ToString())[0]; + // chiamo stored stp_ConfermaProduzCompleta(idxMacchina,MatrApp,dataFrom,dataTo,pezziConf) + taPzProd2conf.stp_ConfermaProduzCompleta(idxMacchina, MatrOpr, rigaProd.DataFrom, rigaProd.DataTo, numPzConfermati, modoConfProd,DateTime.Now, true); + // indico eseguito! + answ = true; + } + catch (Exception exc) + { + logger.lg.scriviLog(string.Format("Errore in conferma prod macchina:{0}{1}", Environment.NewLine, exc)); + } + return answ; + } + + /// + /// invia una mail al destinatario x linkare nuovi devices tramite URL + /// + /// + /// + /// + /// + public bool sendUserAuthEmail(string destinatario, string UserAuthKey, int idxDipendente) + { + bool fatto = false; + string smtpCli = ""; + string mittente = ""; + string oggetto = ""; + string userUrl = ""; + string baseUrl = ""; + string userWebUrl = ""; + string baseWebUrl = ""; + string corpo = ""; + try + { + // compongo la stringa + smtpCli = memLayer.ML.confReadString("_smtpCli"); + mittente = memLayer.ML.confReadString("_fromEmail"); + oggetto = "Link autorizzazione device per GPW"; + baseUrl = memLayer.ML.confReadString("baseUrl"); + baseWebUrl = memLayer.ML.confReadString("baseWebUrl"); + userUrl = string.Format("{2}jumper.aspx?UserAuthkey={0}&idxDipendente={1}", UserAuthKey, idxDipendente, baseUrl); + userWebUrl = string.Format("{2}jumper.aspx?UserAuthkey={0}&idxDipendente={1}", UserAuthKey, idxDipendente, baseWebUrl); + corpo = string.Format("Hai ricevuto questa email su richiesta tua o dell'Admin per poter procedere a registrare un (nuovo) devices con GPW:{0}
Per proseguire clicca sul link seguente(rete interna):
{0}{0}{1}{0}{0}

oppure sul link seguente (internet):
{0}{0}{2}{0}{0}

Team GPW Steamware", Environment.NewLine, userUrl, userWebUrl); + gestEmail.ge.mandaEmail(mittente, destinatario, oggetto, corpo); + fatto = true; + } + catch + { } + return fatto; + } + /// + /// Invia email di avviso che ci sono dei TC da confermare + /// + /// + /// + public bool sendWarnTcChangeReq(string destinatario) + { + bool fatto = false; + string mittente = ""; + string oggetto = ""; + string pageUrl = ""; + string corpo = ""; + try + { + // compongo la stringa + mittente = memLayer.ML.confReadString("_fromEmail"); + oggetto = memLayer.ML.confReadString("oggettoChgTc"); + pageUrl = string.Format("{0}{1}", memLayer.ML.confReadString("baseUrlAdmin"), memLayer.ML.confReadString("pageUrlApprODL")); + corpo = string.Format(memLayer.ML.confReadString("corpoChgTc"), Environment.NewLine, pageUrl); + if (memLayer.ML.confReadBool("_useAuthSmtp")) + { + gestEmail.geAuth.mandaEmail(mittente, destinatario, oggetto, corpo); + } + else + { + gestEmail.ge.mandaEmail(mittente, destinatario, oggetto, corpo); + } + fatto = true; + } + catch + { } + return fatto; + } + + /// + /// effettua enroll del device + /// + /// + /// + /// + /// + /// + /// + public bool enrollDevice(string UserAuthKey, string IPv4, string DeviceName, string Description, int matricola) + { + bool fatto = false; + // in primis testo se dipendente ed authKey sono validi.. + if (taOp.getByMatrAuthKey(matricola, UserAuthKey).Rows.Count > 0) + { + // salvo matrOpr + MatrOpr = matricola; + /************************************************ + * Gestione riconoscimento devices + * + * - cerco IP del device, testo se è rete interna (A) o extranet/internet (B) cercando substring "localNet" da web.config + * (A): device interni: c'è un DHCP, e "dhcpLeaseTime" deve essere pari a lease time--- + * - verifico se IP già in uso da un tempo < "dhcpLeaseTime" --> in questo caso segnalo errore e rimbalzo (NON permetto di registrare device a nuovo utente... sospetto uso "improprio" del device + * - se tempo > dhcpLeaseTime allora può aver cambiato IP: aggiorno IP e descrizione del device e proseguo + * (B): all'esterno vedo tutta una subnet NATtata con unico IP, non è + discriminante + * - le timbrature "da esterno" devono essere confermate (instrodurre "tipo timbratura" x cui interne sono autoconfermate, esterne sono "grayed" (da confermare, da admin o ad esempio se si accende secondo device utente entro 5/10 min) + * - le timbrature ext DOVREBBERO chiedere location (jScript?) e inviarla, visibile in conferma + * + * + * **********************************************/ + // calcolo il secret... + DateTime adesso = DateTime.Now; + string Dominio = memLayer.ML.confReadString("dominio"); + string UsrName = memLayer.ML.confReadString("user"); + // recupero dati da matricola... + try + { + DataLayer_AnagGen.UTENTERow rigaUt = user_std.UtSn.rigaUtenteDaMatricola(matricola.ToString()); + if (rigaUt != null) + { + Dominio = rigaUt.DOMINIO; + UsrName = rigaUt.USER_NAME; + } + else + { + logger.lg.scriviLog(string.Format("non sono riuscito a recuperare RIGA utente per matricola {0}", matricola), tipoLog.ERROR); + } + } + catch + { + logger.lg.scriviLog(string.Format("Eccezione! non sono riuscito a recuperare utente per matricola {0}", matricola), tipoLog.ERROR); + Dominio = memLayer.ML.confReadString("dominio"); + UsrName = memLayer.ML.confReadString("user"); + } + string Secret = authProxy.getSecret(Dominio, UsrName, matricola, DeviceName, adesso); + string devSecret = SteamCrypto.EncryptString(Secret, memLayer.ML.confReadString("cookieName")); + try + { + // creo device + cookie! + fatto = authProxy.createNewCookie(Dominio, UsrName, matricola, DeviceName, Description, IPv4, memLayer.ML.confReadString("cookieName"), DateTime.Now.AddDays(memLayer.ML.confReadInt("cookieDayExpire"))); + // loggo! + logger.lg.scriviLog(string.Format("Effettuato enroll nuovo device: utente {0}\\{1} | matricola {2} | DeviceName {3} | Descrizione {4} | IP {5} | nome cookcie {6} | valido sino a {7:yyyy/MM/dd}", Dominio, UsrName, matricola, DeviceName, Description, IPv4, memLayer.ML.confReadString("cookieName"), DateTime.Now.AddDays(memLayer.ML.confReadInt("cookieDayExpire")))); + } + catch (Exception exc) + { + logger.lg.scriviLog(string.Format("Errore enroll nuovo device:{0}{1}", Environment.NewLine, exc), tipoLog.EXCEPTION); + } + } + return fatto; + } + /// + /// MatrOpr in sessione + /// + public static int MatrOpr + { + get + { + int idx = 0; + try + { + idx = memLayer.ML.IntSessionObj("MatrOpr"); + } + catch + { } + return idx; + } + set + { + memLayer.ML.setSessionVal("MatrOpr", value); + } + } + /// + /// Cognome Nome da MatrOpr in sessione + /// + public static string CognomeNomeOpr + { + get + { + // cerco operatore... + string answ = ""; + try + { + DS_applicazione.AnagraficaOperatoriRow oper = (DS_applicazione.AnagraficaOperatoriRow)DataLayer.obj.taOp.getByMatrOpr(MatrOpr)[0]; + answ = string.Format("{0} {1}", oper.Cognome, oper.Nome); + } + catch + { } + return answ; + } + } + + #endregion + } +} + +public enum tipoSelettore +{ + articoli +} diff --git a/MapoDb/MapoDb.cs b/MapoDb/MapoDb.cs new file mode 100644 index 00000000..e00c77f6 --- /dev/null +++ b/MapoDb/MapoDb.cs @@ -0,0 +1,1441 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Configuration; +using System.Runtime.InteropServices; +using SteamWare; +using System.Data; + +namespace MapoDb +{ + + public struct inputComando + { + /// + /// input comando valido si/no + /// + public bool isValid; + /// + /// testo da mostrare all'utente + /// + public string text2show; + /// + /// idx evento associato al comando + /// + public int idxTipoEvento; + /// + /// input precedente + /// + public string precInput; + /// + /// descrizione comando + /// + public string descrComando; + /// + /// refresh stato macchina encessario si/no + /// + public bool needStatusRefresh; + /// + /// lista del nome dei WebBrowserBox e delle relative url, nel formato {0}##{1} {0}=nome WebBrowserBox (es. box01), {1}=url relativo (es. http://server/MoonPro/Produzione.aspx?idxMacchina=99) + /// + public string[] wBrowsBoxUrls; + /// + /// valore di output dal comando + /// + public string outValue; + } + + /// + /// tipologia evento inviato + /// + public enum tipoInputEvento + { + barcode, + hw + } + /// + /// nuovo stato ingressi e eventuale evento da inviare + /// + public struct hwMachineState + { + public int next_IdxMicroStato; + public int IdxTipoEvento; + } + + public class MapoDb + { + #region area protected + + protected string _separatore = ","; + protected string _connectionString = ""; + + #region area table adapters + + // area applicazione + protected DS_applicazioneTableAdapters.EventListTableAdapter taEvList; + protected DS_applicazioneTableAdapters.DiarioDiBordoTableAdapter taDiario; + protected DS_applicazioneTableAdapters.AnagraficaEventiTableAdapter taAnagEv; + protected DS_applicazioneTableAdapters.AnagraficaStatiTableAdapter taAnagSt; + protected DS_applicazioneTableAdapters.MacchineTableAdapter taMacchine; + protected DS_applicazioneTableAdapters.KanbanTableAdapter taKanban; + protected DS_applicazioneTableAdapters.TransizioneEventiTableAdapter taTranEv; + protected DS_applicazioneTableAdapters.TransizioneStatiTableAdapter taTranSt; + protected DS_applicazioneTableAdapters.StatoMacchineTableAdapter taStatoMacchine; + protected DS_applicazioneTableAdapters.KeepAliveTableAdapter taKeepAlive; + protected DS_applicazioneTableAdapters.RemoteRebootLogTableAdapter taRRL; + protected DS_applicazioneTableAdapters.TransizioneIngressiTableAdapter taTransIngr; + protected DS_applicazioneTableAdapters.AnagraficaOperatoriTableAdapter taAnOpr; + protected DS_applicazioneTableAdapters.DatiMacchineTableAdapter taDatiMacch; + protected DS_applicazioneTableAdapters.MicroStatoMacchinaTableAdapter taMSM; + + // area tempi ciclo + protected DS_ProdTempiTableAdapters.TempiCicloRilevatiTableAdapter taTCRilevati; + + #endregion + + /// + /// avvio i table adapter della classe + /// + private void AvviaTabAdapt() + { + taEvList = new global::MapoDb.DS_applicazioneTableAdapters.EventListTableAdapter(); + taDiario = new global::MapoDb.DS_applicazioneTableAdapters.DiarioDiBordoTableAdapter(); + taAnagSt = new global::MapoDb.DS_applicazioneTableAdapters.AnagraficaStatiTableAdapter(); + taAnagEv = new global::MapoDb.DS_applicazioneTableAdapters.AnagraficaEventiTableAdapter(); + taMacchine = new global::MapoDb.DS_applicazioneTableAdapters.MacchineTableAdapter(); + taKanban = new global::MapoDb.DS_applicazioneTableAdapters.KanbanTableAdapter(); + taTranEv = new global::MapoDb.DS_applicazioneTableAdapters.TransizioneEventiTableAdapter(); + taTranSt = new global::MapoDb.DS_applicazioneTableAdapters.TransizioneStatiTableAdapter(); + taStatoMacchine = new global::MapoDb.DS_applicazioneTableAdapters.StatoMacchineTableAdapter(); + taKeepAlive = new global::MapoDb.DS_applicazioneTableAdapters.KeepAliveTableAdapter(); + taRRL = new global::MapoDb.DS_applicazioneTableAdapters.RemoteRebootLogTableAdapter(); + taTransIngr = new global::MapoDb.DS_applicazioneTableAdapters.TransizioneIngressiTableAdapter(); + taAnOpr = new global::MapoDb.DS_applicazioneTableAdapters.AnagraficaOperatoriTableAdapter(); + taDatiMacch = new global::MapoDb.DS_applicazioneTableAdapters.DatiMacchineTableAdapter(); + taMSM = new global::MapoDb.DS_applicazioneTableAdapters.MicroStatoMacchinaTableAdapter(); + + taTCRilevati = new global::MapoDb.DS_ProdTempiTableAdapters.TempiCicloRilevatiTableAdapter(); + } + /// + /// forza la connString x i vari table adapters + /// + private void setConnString() + { + _connectionString = SteamWare.memLayer.ML.confReadString("MoonProConnectionString"); + taEvList.Connection.ConnectionString = _connectionString; + taDiario.Connection.ConnectionString = _connectionString; + taAnagEv.Connection.ConnectionString = _connectionString; + taAnagSt.Connection.ConnectionString = _connectionString; + taMacchine.Connection.ConnectionString = _connectionString; + taKanban.Connection.ConnectionString = _connectionString; + taTranEv.Connection.ConnectionString = _connectionString; + taTranSt.Connection.ConnectionString = _connectionString; + taStatoMacchine.Connection.ConnectionString = _connectionString; + taKeepAlive.Connection.ConnectionString = _connectionString; + taRRL.Connection.ConnectionString = _connectionString; + taTransIngr.Connection.ConnectionString = _connectionString; + taAnOpr.Connection.ConnectionString = _connectionString; + taDatiMacch.Connection.ConnectionString = _connectionString; + taMSM.Connection.ConnectionString = _connectionString; + + taTCRilevati.Connection.ConnectionString = _connectionString; + } + /// + /// cerca codice in anagrafica macchine ed eventualmente inserisce nuova macchina + /// + /// + private void verificaIdxMacchina(string IdxMacchina) + { + // verifico esistenza macchina + if (taMacchine.GetByIdx(IdxMacchina).Rows.Count == 0) + { + // inserisco nuova macchina... + taMacchine.Insert(IdxMacchina, "9999", IdxMacchina, "Macchina non codificata", "-", "http://", "nd"); + } + // verifico ci sia un microstato macchina... + if (taMSM.getByIdxMacchina(IdxMacchina).Rows.Count == 0) + { + // inserisco nuovo stato... + taMSM.Insert(IdxMacchina, 0, DateTime.Now, "00"); + } + } + /// + /// verifica se sia necessario inserire un cambio di stato impianto + /// + /// + /// + /// + /// + /// + private void checkCambiaStato(tipoInputEvento tipoInput, string IdxMacchina, int IdxTipo, string matrKanban, string Value, int MatrOpr, string pallet) + { + DS_applicazione.TransizioneStatiRow rigaTransStati; + switch (tipoInput) + { + case tipoInputEvento.barcode: + // effettuo cambio stato INDIPENDENTEMENTE da stato precedente + try + { + rigaTransStati = taTranSt.GetUserForcedTransitions(IdxMacchina, IdxTipo)[0]; + taDiario.InsStato(IdxMacchina, rigaTransStati.next_IdxStato, matrKanban, Value, MatrOpr, pallet); + } + catch (Exception exc) + { + // non dovrebbe succedere... input utente da barcode dovrebbero TUTTI essere inseriti in tab transizione con famiglia 1... + logger.lg.scriviLog(string.Format("Errore controllo transizione stato x evento barcode:{0}{1}", Environment.NewLine, exc), tipoLog.EXCEPTION); + } + break; + case tipoInputEvento.hw: + // verifico se ci sia necessità di cambio stato + try + { + rigaTransStati = taTranSt.GetHwTransitions(IdxMacchina, IdxTipo)[0]; + if (rigaTransStati != null) + { + taDiario.InsStato(IdxMacchina, rigaTransStati.next_IdxStato, matrKanban, Value, MatrOpr, pallet); + } + } + catch + { + // non trovo riga [0]... NON scrivo! + } + break; + } + } + /// + /// verifica se sia necessario inserire un cambio di stato impianto in modalità batch + /// + /// + /// + /// + /// + /// + /// + private void checkCambiaStatoBatch(tipoInputEvento tipoInput, string IdxMacchina, DateTime InizioStato, int IdxTipo, string matrKanban, string Value, int MatrOpr, string pallet) + { + DS_applicazione.TransizioneStatiRow rigaTransStati; + switch (tipoInput) + { + case tipoInputEvento.barcode: + // effettuo cambio stato INDIPENDENTEMENTE da stato precedente + try + { + rigaTransStati = taTranSt.GetUserForcedTransitions(IdxMacchina, IdxTipo)[0]; + taDiario.InsStatoBatch(IdxMacchina, InizioStato, rigaTransStati.next_IdxStato, matrKanban, Value, MatrOpr, pallet); + } + catch (Exception exc) + { + // non dovrebbe succedere... input utente da barcode dovrebbero TUTTI essere inseriti in tab transizione con famiglia 1... + logger.lg.scriviLog(string.Format("Errore controllo transizione stato x evento barcode:{0}{1}", Environment.NewLine, exc), tipoLog.EXCEPTION); + } + break; + case tipoInputEvento.hw: + // verifico se ci sia necessità di cambio stato + try + { + rigaTransStati = taTranSt.GetHwTransitions(IdxMacchina, IdxTipo)[0]; + if (rigaTransStati != null) + { + taDiario.InsStatoBatch(IdxMacchina, InizioStato, rigaTransStati.next_IdxStato, matrKanban, Value, MatrOpr, pallet); + } + } + catch + { + // non trovo riga [0]... NON scrivo! + } + break; + } + } + + /// + /// metodo privato x fornire matricola che è correntemente sulla macchina + /// + /// + /// + private int getMatrOpMacc(string idxMacchina) + { + int matr = -1; + try + { + matr = (taStatoMacchine.GetDataByIdxMacchina(idxMacchina)[0]).MatrOpr; + } + catch + { + } + return matr; + } + /// + /// metodo privato x fornire cognome-nome dalla matricola + /// + /// + /// + private string getGeneralitDaMatr(int matrOpr) + { + string cognNome = ""; + // cerco operatore... + DS_applicazione.AnagraficaOperatoriRow rigaOpr; + try + { + rigaOpr = (DS_applicazione.AnagraficaOperatoriRow)(taAnOpr.getByMatrOpr(matrOpr)[0]); + cognNome = string.Format("{0} {1}", rigaOpr.Cognome, rigaOpr.Nome); + } + catch + { + } + return cognNome; + } + + #endregion + + #region area public + + /// + /// avvio della classe + /// + public MapoDb() + { + AvviaTabAdapt(); + } + /// + /// Oggetto singleton x MapoDb + /// + /// + public static MapoDb obj = new MapoDb(); + /// + /// restituisce la stringa di connessione al db + /// + public string getStringaConnessione() + { + return _connectionString; + } + /// + /// imposta la stringa di connessione al db + /// + public bool setStringaConnessione(string valore) + { + _connectionString = valore; + setConnString(); + return true; + } + /// + /// scrive una riga di evento nel db + /// + /// codice macchina + /// idx evento + /// matricola prodotto (kanban) + /// valore + /// matricola operatore + /// pallet (vuoto se nd) + /// data-ora dell'evento + /// data-ora corrente dell'invio + /// + public inputComando scriviRigaEvento(string IdxMacchina, int IdxTipo, string matrKanban, string Value, int MatrOpr, string pallet, DateTime eventTime, DateTime currentTime) + { + int inserito = 0; + try + { + // verifico se esista la macchina altrimenti la creo... + verificaIdxMacchina(IdxMacchina); + // calcolo dataOra reale (evento + delta(ora server - ora remota) + DateTime dataOra = eventTime.Add(DateTime.Now - currentTime); + // inserisco evento + inserito = taEvList.Insert(IdxMacchina, dataOra, IdxTipo, matrKanban, Value, MatrOpr, pallet); + // faccio controllo per eventuale cambio stato da tab transizioni... + checkCambiaStato(tipoInputEvento.hw, IdxMacchina, IdxTipo, matrKanban, Value, MatrOpr, pallet); + } + catch + { + logger.lg.scriviLog(string.Format("Errore in fase di scrittura evento con i seguenti dati:{0} macchina {1}{0} IdxTipo {2}{0} matrKanban {3}{0} Value {4}{0} MatrOpr {5}{0} Pallet {6}{0} eventTime {7}{0} currentTime {8}{0} eccezione: {0}{9}", Environment.NewLine, IdxMacchina, IdxTipo, matrKanban, Value, MatrOpr, pallet, eventTime, currentTime), tipoLog.EXCEPTION); + } + // formatto output + inputComando answ = new inputComando(); + answ.outValue = inserito.ToString(); + answ.needStatusRefresh = true; + return answ; + } + /// + /// scrive una riga di evento nel db + /// + /// codice macchina + /// idx evento + /// matricola prodotto (kanban) + /// valore + /// matricola operatore + /// pallet (vuoto se nd) + /// + public inputComando scriviRigaEvento(string IdxMacchina, int IdxTipo, string matrKanban, string Value, int MatrOpr, string pallet) + { + int inserito = 0; + try + { + // verifico se esista la macchina altrimenti la creo... + verificaIdxMacchina(IdxMacchina); + // inserisco evento + inserito = taEvList.InsEvento(IdxMacchina, IdxTipo, matrKanban, Value, MatrOpr, pallet); + // faccio controllo per eventuale cambio stato da tab transizioni... + checkCambiaStato(tipoInputEvento.hw, IdxMacchina, IdxTipo, matrKanban, Value, MatrOpr, pallet); + } + catch + { + logger.lg.scriviLog(string.Format("Errore in fase di scrittura evento con i seguenti dati:{0} macchina {1}{0} IdxTipo {2}{0} matrKanban {3}{0} Value {4}{0} MatrOpr {5}{0} Pallet {6}{0} eccezione: {0}{7}", Environment.NewLine, IdxMacchina, IdxTipo, matrKanban, Value, MatrOpr, pallet), tipoLog.EXCEPTION); + } + // formatto output + inputComando answ = new inputComando(); + answ.outValue = inserito.ToString(); + answ.needStatusRefresh = true; + return answ; + } + /// + /// restituisce boolean se la amcchian sia abilitata x inserimento dati (tab DatiMacchine) + /// + /// + /// + public bool insEnabled(int idxMacchina) + { + bool answ = false; + try + { + answ = ((DS_applicazione.DatiMacchineRow)taDatiMacch.GetByIdx(idxMacchina)[0]).insEnabled; + } + catch + { } + return answ; + } + /// + /// controlla se da il segnale di "microstato" deriva un evento da generare - modalità OFFLINE + /// + /// idx macchina + /// valore ingresso + /// data-ora evento (server) + /// sequenza dati inviati + /// + public inputComando checkMicroStato(string idxMacchina, string valore, DateTime dtEve, string contatore) + { + if (memLayer.ML.confReadInt("_logLevel") > 6) + { + logger.lg.scriviLog(string.Format("[ChkMiSt]{2}---------------------------{2}Richiesta verifica INPUT per Macchina {0}, seriale {1}", idxMacchina, valore, Environment.NewLine), tipoLog.INFO); + } + // scrivo keep alive! + scriviKeepAlive(idxMacchina, DateTime.Now); + // formatto output + inputComando answ = new inputComando(); + DS_applicazione.TransizioneIngressiDataTable TabTransIn; + DS_applicazione.TransizioneIngressiRow rigaTransIn = null; + // verifico se esista la macchina altrimenti la creo... + verificaIdxMacchina(idxMacchina); + string kanban = "K"; + // recupero kanban corretto + try + { + kanban = DataLayer.obj.taDatiMacchine.getByIdx(Convert.ToInt32(idxMacchina))[0].kanban_A; + } + catch (Exception exc) + { + logger.lg.scriviLog(string.Format("[ChkMiSt] - Eccezione in recupero KANBAN:{0}{1}", Environment.NewLine, exc), tipoLog.EXCEPTION); + } + // recupero next microstato + //int? valINT = Convert.ToInt32(valore); + int? valINT = 0; + try + { + valINT = int.Parse(valore, System.Globalization.NumberStyles.HexNumber); + TabTransIn = taTransIngr.getByIdxMacchinaValore(idxMacchina, valINT); + if (TabTransIn.Rows.Count > 0) + { + rigaTransIn = TabTransIn[0]; + } + } + catch (Exception exc) + { + logger.lg.scriviLog(string.Format("[ChkMiSt] - Eccezione in recupero riga Trans ingressi per idxMacchina {3} e valore {2}:{0}{1}", Environment.NewLine, exc, valINT, idxMacchina), tipoLog.EXCEPTION); + } + int _logLevel = memLayer.ML.confReadInt("_logLevel"); + // effettuo update vari + if (rigaTransIn != null) + { + try + { + if (_logLevel > 5) + { + logger.lg.scriviLog(string.Format("[ChkMiSt] - Salvo Update Microstato:{0}macchina: {1} | valore seriale: {2} | next micro stato: {3}", Environment.NewLine, idxMacchina, valINT, rigaTransIn.next_IdxMicroStato), tipoLog.INFO); + } + // salvo nuovo microstato... + taMSM.updateQuery(rigaTransIn.next_IdxMicroStato, dtEve, valore, idxMacchina); + // controllo se c'è evento + if (rigaTransIn.IdxTipoEvento > 0) + { + if (_logLevel > 5) + { + logger.lg.scriviLog(string.Format("[ChkMiSt] - Salvo evento:{0}macchina: {1} | tipoEvento: {2} | kanban: {3} | contatore: {4} | valore: {5}", Environment.NewLine, idxMacchina, rigaTransIn.IdxTipoEvento, kanban, contatore, valore), tipoLog.INFO); + } + string valEsteso = string.Format("[{0}] {1}", contatore.PadLeft(3, '0'), valore); + answ = scriviRigaEvento(idxMacchina, rigaTransIn.IdxTipoEvento, kanban, valEsteso, 0, "-", dtEve, DateTime.Now); // aggiunto contatore! + if (_logLevel > 5) + { + logger.lg.scriviLog(string.Format("[ChkMiSt] - Macchina {0} | seriale(INT) {1} | valEsteso {3} | answ {4}{2}---------------------------{2}", idxMacchina, valINT, Environment.NewLine, valEsteso, answ), tipoLog.INFO); + } + } + } + catch (Exception exc) + { + logger.lg.scriviLog(string.Format("[ChkMiSt] - Eccezione:{0}{1}", Environment.NewLine, exc), tipoLog.EXCEPTION); + } + } + return answ; + } + /// + /// controlla se da il segnale di "microstato" deriva un evento da generare - modalità OFFLINE + /// + /// idx macchina + /// valore ingresso + /// data-ora evento (server) + /// + public inputComando checkMicroStato(string idxMacchina, string valore, DateTime dtEve) + { + if (memLayer.ML.confReadInt("_logLevel") > 6) + { + logger.lg.scriviLog(string.Format("{2}---------------------------{2}Richiesta verifica INPUT per Macchina {0}, seriale {1}", idxMacchina, valore, Environment.NewLine), tipoLog.INFO); + } + // scrivo keep alive! + scriviKeepAlive(idxMacchina, DateTime.Now); + // formatto output + inputComando answ = new inputComando(); + DS_applicazione.TransizioneIngressiDataTable TabTransIn; + DS_applicazione.TransizioneIngressiRow rigaTransIn = null; + // verifico se esista la macchina altrimenti la creo... + verificaIdxMacchina(idxMacchina); + string kanban = "K"; + // recupero kanban corretto + try + { + kanban = DataLayer.obj.taDatiMacchine.getByIdx(Convert.ToInt32(idxMacchina))[0].kanban_A; + } + catch (Exception exc) + { + logger.lg.scriviLog(string.Format("Eccezione in recupero KANBAN:{0}{1}", Environment.NewLine, exc), tipoLog.EXCEPTION); + } + // recupero next microstato + //int? valINT = Convert.ToInt32(valore); + int? valINT = 0; + try + { + valINT = int.Parse(valore, System.Globalization.NumberStyles.HexNumber); + TabTransIn = taTransIngr.getByIdxMacchinaValore(idxMacchina, valINT); + if (TabTransIn.Rows.Count > 0) + { + rigaTransIn = TabTransIn[0]; + } + } + catch (Exception exc) + { + logger.lg.scriviLog(string.Format("Eccezione in recupero riga Trans ingressi per idxMacchina {3} e valore {2}:{0}{1}", Environment.NewLine, exc, valINT, idxMacchina), tipoLog.EXCEPTION); + } + int _logLevel = memLayer.ML.confReadInt("_logLevel"); + // effettuo update vari + if (rigaTransIn != null) + { + try + { + if (_logLevel > 5) + { + logger.lg.scriviLog(string.Format("Salvo Update Microstato:{0}macchina: {1} | valore seriale: {2} | next micro stato: {3}", Environment.NewLine, idxMacchina, valINT, rigaTransIn.next_IdxMicroStato), tipoLog.INFO); + } + // salvo nuovo microstato... + taMSM.updateQuery(rigaTransIn.next_IdxMicroStato, dtEve, valore, idxMacchina); + // controllo se c'è evento + if (rigaTransIn.IdxTipoEvento > 0) + { + if (_logLevel > 5) + { + logger.lg.scriviLog(string.Format("Salvo evento:{0}macchina: {1} | tipoEvento: {2} | kanban: {3}", Environment.NewLine, idxMacchina, rigaTransIn.IdxTipoEvento, kanban), tipoLog.INFO); + } + answ = scriviRigaEvento(idxMacchina, rigaTransIn.IdxTipoEvento, kanban, valore, 0, "-", dtEve, DateTime.Now); + if (_logLevel > 5) + { + logger.lg.scriviLog(string.Format("Macchina {0}, seriale(INT) {1}{2}---------------------------{2}", idxMacchina, valINT, Environment.NewLine), tipoLog.INFO); + } + } + } + catch (Exception exc) + { + logger.lg.scriviLog(string.Format("Eccezione:{0}{1}", Environment.NewLine, exc), tipoLog.EXCEPTION); + } + } + return answ; + } + /// + /// controlla se da il segnale di "microstato" deriva un evento da generare + /// + /// + /// + /// + public inputComando checkMicroStato(string idxMacchina, string valore) + { + // wrapper ad ora corrente... + return checkMicroStato(idxMacchina, valore, DateTime.Now); + } + /// + /// + /// + /// + /// + /// + /// mac address (inviato dalla macchina) + /// + public inputComando registraStartup(string idxMacchina, string IPv4, string agent, string macAddr) + { + if (memLayer.ML.confReadInt("_logLevel") > 6) + { + logger.lg.scriviLog(string.Format("{0}---------------------------{0}Richiesta registrazione (ri)avvio Macchina {1} - mac: {2}", Environment.NewLine, idxMacchina, macAddr), tipoLog.INFO); + } + // formatto output + inputComando answ = new inputComando(); + // scrivo remote reboot alive! + scriviRemoteReboot(idxMacchina, IPv4, agent, macAddr); + // scrivo PRIMO keep alive + scriviPrimoKeepAlive(idxMacchina, DateTime.Now); + + + return answ; + } + + /// + /// scrive una riga di evento nel db SENZA passare operatore e pallet (mette a 0 e "-") + /// + /// codice macchina + /// idx evento + /// matricola prodotto (kanban) + /// valore + /// + public inputComando scriviRigaEvento(string IdxMacchina, int IdxTipo, string matrKanban, string Value) + { + int inserito = 0; + try + { + // verifico se esista la macchina altrimenti la creo... + verificaIdxMacchina(IdxMacchina); + // inserisco evento + inserito = taEvList.InsEvento(IdxMacchina, IdxTipo, matrKanban, Value, 0, "-"); + // faccio controllo per eventuale cambio stato da tab transizioni... + checkCambiaStato(tipoInputEvento.hw, IdxMacchina, IdxTipo, matrKanban, Value, 0, "-"); + } + catch + { + logger.lg.scriviLog(string.Format("Errore in fase di scrittura evento con i seguenti dati:{0} macchina {1}{0} IdxTipo {2}{0} matrKanban {3}{0} Value {4}{0} eccezione: {0}{5}", Environment.NewLine, IdxMacchina, IdxTipo, matrKanban, Value), tipoLog.EXCEPTION); + } + // formatto output + inputComando answ = new inputComando(); + answ.outValue = inserito.ToString(); + answ.needStatusRefresh = true; + return answ; + } + /// + /// scrive una riga di evento inviato da Barcode nel db + /// + /// codice macchina + /// idx evento + /// matricola prodotto (kanban) + /// valore + /// matricola operatore + /// pallet (vuoto se nd) + /// data-ora dell'evento + /// data-ora corrente dell'invio + /// + public inputComando scriviRigaEventoBarcode(string IdxMacchina, int IdxTipo, string matrKanban, string Value, int MatrOpr, string pallet, DateTime eventTime, DateTime currentTime) + { + int inserito = 0; + try + { + // verifico se esista la macchina altrimenti la creo... + verificaIdxMacchina(IdxMacchina); + // calcolo dataOra reale (evento + delta(ora server - ora remota) + DateTime dataOra = eventTime.Add(DateTime.Now - currentTime); + // inserisco evento + inserito = taEvList.Insert(IdxMacchina, dataOra, IdxTipo, matrKanban, Value, MatrOpr, pallet); + // faccio controllo per eventuale cambio stato da tab transizioni... + checkCambiaStato(tipoInputEvento.barcode, IdxMacchina, IdxTipo, matrKanban, Value, MatrOpr, pallet); + } + catch + { + logger.lg.scriviLog(string.Format("Errore in fase di scrittura evento con i seguenti dati:{0} macchina {1}{0} IdxTipo {2}{0} matrKanban {3}{0} Value {4}{0} MatrOpr {5}{0} Pallet {6}{0} eventTime {7}{0} currentTime {8}{0} eccezione: {0}{9}", Environment.NewLine, IdxMacchina, IdxTipo, matrKanban, Value, MatrOpr, pallet, eventTime, currentTime), tipoLog.EXCEPTION); + } + // formatto output + inputComando answ = new inputComando(); + answ.outValue = inserito.ToString(); + answ.needStatusRefresh = true; + return answ; + } + /// + /// scrive una riga di evento inviato da Barcode nel db + /// + /// codice macchina + /// idx evento + /// matricola prodotto (kanban) + /// valore + /// matricola operatore + /// pallet (vuoto se nd) + /// + public inputComando scriviRigaEventoBarcode(string IdxMacchina, int IdxTipo, string matrKanban, string Value, int MatrOpr, string pallet) + { + int inserito = 0; + try + { + // verifico se esista la macchina altrimenti la creo... + verificaIdxMacchina(IdxMacchina); + // inserisco evento + inserito = taEvList.InsEvento(IdxMacchina, IdxTipo, matrKanban, Value, MatrOpr, pallet); + // faccio controllo per eventuale cambio stato da tab transizioni... + checkCambiaStato(tipoInputEvento.barcode, IdxMacchina, IdxTipo, matrKanban, Value, MatrOpr, pallet); + } + catch (Exception exc) + { + logger.lg.scriviLog(string.Format("Errore in fase di scrittura evento con i seguenti dati:{0} macchina {1}{0} IdxTipo {2}{0} matrKanban {3}{0} Value {4}{0} MatrOpr {5}{0} Pallet {6}{0} eccezione: {0}{7}", Environment.NewLine, IdxMacchina, IdxTipo, matrKanban, Value, MatrOpr, pallet, exc), tipoLog.EXCEPTION); + } + // formatto output + inputComando answ = new inputComando(); + answ.outValue = inserito.ToString(); + answ.needStatusRefresh = true; + return answ; + } + /// + /// scrive una riga di evento inviato da Barcode nel db SENZA operatore e pallet (mette a 0 e "-") + /// + /// codice macchina + /// idx evento + /// matricola prodotto (kanban) + /// valore + /// + public inputComando scriviRigaEventoBarcode(string IdxMacchina, int IdxTipo, string matrKanban, string Value) + { + int inserito = 0; + try + { + // verifico se esista la macchina altrimenti la creo... + verificaIdxMacchina(IdxMacchina); + // inserisco evento + inserito = taEvList.InsEvento(IdxMacchina, IdxTipo, matrKanban, Value, 0, "-"); + // faccio controllo per eventuale cambio stato da tab transizioni... + checkCambiaStato(tipoInputEvento.barcode, IdxMacchina, IdxTipo, matrKanban, Value, 0, "-"); + } + catch + { + logger.lg.scriviLog(string.Format("Errore in fase di scrittura evento con i seguenti dati:{0} macchina {1}{0} IdxTipo {2}{0} matrKanban {3}{0} Value {4}{0} eccezione: {0}{5}", Environment.NewLine, IdxMacchina, IdxTipo, matrKanban, Value), tipoLog.EXCEPTION); + } + // formatto output + inputComando answ = new inputComando(); + answ.outValue = inserito.ToString(); + answ.needStatusRefresh = true; + return answ; + } + /// + /// scrive una riga di stato nel diario di bordo + /// + /// codice macchina + /// idx stato + /// matricola prodotto (kanban) + /// valore + /// matricola operatore + /// pallet (vuoto se nd) + /// data-ora dell'evento + /// data-ora corrente dell'invio + /// + public inputComando scriviRigaStato(string IdxMacchina, int IdxStato, string matrKanban, string Value, int MatrOpr, string pallet, DateTime eventTime, DateTime currentTime) + { + int inserito = 0; + try + { + // verifico se esista la macchina altrimenti la creo... + verificaIdxMacchina(IdxMacchina); + // calcolo dataOra reale (evento + delta(ora server - ora remota) + DateTime dataOra = eventTime.Add(DateTime.Now - currentTime); + // inserisco la nuova riga di stato mentre il trigger aggiorna le tab... + inserito = taDiario.Insert(IdxMacchina, dataOra, null, IdxStato, null, Value, matrKanban, "", null, null, MatrOpr, pallet); + } + catch + { + logger.lg.scriviLog(string.Format("Errore in fase di scrittura stato con i seguenti dati:{0} macchina {1}{0} IdxStato {2}{0} matrKanban {3}{0} Value {4}{0} MatrOpr {5}{0} Pallet {6}{0} eventTime {7}{0} currentTime {8}{0} eccezione: {0}{9}", Environment.NewLine, IdxMacchina, IdxStato, matrKanban, Value, MatrOpr, pallet, eventTime, currentTime), tipoLog.EXCEPTION); + } + // formatto output + inputComando answ = new inputComando(); + answ.outValue = inserito.ToString(); + answ.needStatusRefresh = true; + return answ; + } + /// + /// scrive una riga di stato nel diario di bordo + /// + /// codice macchina + /// idx stato + /// matricola prodotto (kanban) + /// valore + /// matricola operatore + /// pallet (vuoto se nd) + /// + public inputComando scriviRigaStato(string IdxMacchina, int IdxStato, string matrKanban, string Value, int MatrOpr, string pallet) + { + int inserito = 0; + try + { + // verifico se esista la macchina altrimenti la creo... + verificaIdxMacchina(IdxMacchina); + // inserisco la nuova riga di stato mentre il trigger aggiorna le tab... + inserito = taDiario.InsStato(IdxMacchina, IdxStato, matrKanban, Value, MatrOpr, pallet); + } + catch + { + logger.lg.scriviLog(string.Format("Errore in fase di scrittura stato con i seguenti dati:{0} macchina {1}{0} IdxStato {2}{0} matrKanban {3}{0} Value {4}{0} MatrOpr {5}{0} Pallet {6}{0} eccezione: {0}{7}", Environment.NewLine, IdxMacchina, IdxStato, matrKanban, Value, MatrOpr, pallet), tipoLog.EXCEPTION); + } + // formatto output + inputComando answ = new inputComando(); + answ.outValue = inserito.ToString(); + answ.needStatusRefresh = true; + return answ; + } + /// + /// scrive una riga di stato nel diario di bordo SENZA operatore e pallet (mette a 0 e "-") + /// + /// codice macchina + /// idx stato + /// matricola prodotto (kanban) + /// valore + /// + public inputComando scriviRigaStato(string IdxMacchina, int IdxStato, string matrKanban, string Value) + { + int inserito = 0; + try + { + // verifico se esista la macchina altrimenti la creo... + verificaIdxMacchina(IdxMacchina); + // inserisco la nuova riga di stato mentre il trigger aggiorna le tab... + inserito = taDiario.InsStato(IdxMacchina, IdxStato, matrKanban, Value, 0, "-"); + } + catch + { + logger.lg.scriviLog(string.Format("Errore in fase di scrittura stato con i seguenti dati:{0} macchina {1}{0} IdxStato {2}{0} matrKanban {3}{0} Value {4}{0} eccezione: {0}{5}", Environment.NewLine, IdxMacchina, IdxStato, matrKanban, Value), tipoLog.EXCEPTION); + } + // formatto output + inputComando answ = new inputComando(); + answ.outValue = inserito.ToString(); + answ.needStatusRefresh = true; + return answ; + } + /// + /// Restituisce una stringa su 2 righe con intestazione colonne e valore dell'oggetto cercato tutti delimitati da separatore + /// + /// + /// + public string getAnagEventi(string chiave) + { + int IdxTipo = Convert.ToInt32(chiave); + string _nomi = ""; + string _valori = ""; + DS_applicazione.AnagraficaEventiDataTable tabella = taAnagEv.GetByIdx(IdxTipo); + foreach (System.Data.DataColumn colonna in tabella.Columns) + { + _nomi += string.Format("{0}{1}", colonna.ColumnName, _separatore); + _valori += string.Format("{0}{1}", tabella[0][colonna.ColumnName], _separatore); + } + return string.Format("{0}\n\r{1}\n\r", _nomi, _valori); + } + /// + /// Restituisce una stringa su 2 righe con intestazione colonne e valore dell'oggetto cercato tutti delimitati da separatore + /// + /// + /// + public string getAnagStati(string chiave) + { + int IdxStato = Convert.ToInt32(chiave); + string _nomi = ""; + string _valori = ""; + DS_applicazione.AnagraficaStatiDataTable tabella = taAnagSt.GetByIdx(IdxStato); + foreach (System.Data.DataColumn colonna in tabella.Columns) + { + _nomi += string.Format("{0}{1}", colonna.ColumnName, _separatore); + _valori += string.Format("{0}{1}", tabella[0][colonna.ColumnName], _separatore); + } + return string.Format("{0}\n\r{1}\n\r", _nomi, _valori); + } + /// + /// Restituisce una stringa su 2 righe con intestazione colonne e valore dell'oggetto cercato tutti delimitati da separatore + /// + /// + /// + public string getAnagMacchine(string chiave) + { + string _nomi = ""; + string _valori = ""; + DS_applicazione.MacchineDataTable tabella = taMacchine.GetByIdx(chiave); + foreach (System.Data.DataColumn colonna in tabella.Columns) + { + _nomi += string.Format("{0}{1}", colonna.ColumnName, _separatore); + _valori += string.Format("{0}{1}", tabella[0][colonna.ColumnName], _separatore); + } + return string.Format("{0}\n\r{1}\n\r", _nomi, _valori); + } + /// + /// fornisce tabella elenco eventi + /// + /// + public DS_applicazione.EventListDataTable elencoEventi() + { + return taEvList.GetData(); + } + /// + /// fornisce tabella elenco stati (DiarioDiBordo) + /// + /// + public DS_applicazione.DiarioDiBordoDataTable elencoStati() + { + return taDiario.GetData(); + } + /// + /// restituisce l'oggetto tipizzato che rappresenta i dati del setup di una macchina + /// + /// + /// + public DS_applicazione.DatiMacchineRow getDatiMacchina(int idxMacchina) + { + DS_applicazione.DatiMacchineRow answ = null; + try + { + answ = taDatiMacch.GetByIdx(idxMacchina)[0]; + } + catch + { + SteamWare.logger.lg.scriviLog(string.Format("Non sono riuscito a leggere la conf della macchina {0}", idxMacchina), SteamWare.tipoLog.ERROR); + } + return answ; + } + /// + /// restituisce una tabella con tutte le transizioni degli ingressi per una data macchina + /// + /// + /// + public DS_applicazione.TransizioneIngressiDataTable getMatriceIngressi(string idxMacchina) + { + DS_applicazione.TransizioneIngressiDataTable answ; + try + { + answ = DataLayer.obj.taTranIngr.getMatriceByIdxMacchina(idxMacchina); + } + catch + { + answ = null; + } + return answ; + } + + #region scritture eventi simulati + + public int scriviRigaEventoSimulata(DateTime dataOra, string IdxMacchina, int IdxTipo, string matrKanban, string Value, int MatrOpr, string pallet) + { + // verifico se esista la macchina altrimenti la creo... + verificaIdxMacchina(IdxMacchina); + // inserisco evento + int inserito = taEvList.Insert(IdxMacchina, dataOra, IdxTipo, matrKanban, Value, MatrOpr, pallet); + return inserito; + } + public int scriviRigaStatoSimulata(DateTime dataOra, string IdxMacchina, int IdxStato, string matrKanban, string Value, int MatrOpr, string pallet) + { + // verifico se esista la macchina altrimenti la creo... + verificaIdxMacchina(IdxMacchina); + // inserisco la nuova riga di stato mentre il trigger aggiorna le tab... + int inserito = taDiario.Insert(IdxMacchina, dataOra, null, IdxStato, null, Value, matrKanban, "", null, null, MatrOpr, pallet); + return inserito; + } + + public int scriviRigaEventoSimulata(DateTime dataOra, string IdxMacchina, int IdxTipo, string matrKanban, string Value) + { + // verifico se esista la macchina altrimenti la creo... + verificaIdxMacchina(IdxMacchina); + // inserisco evento + int inserito = taEvList.Insert(IdxMacchina, dataOra, IdxTipo, matrKanban, Value, 0, "-"); + return inserito; + } + public int scriviRigaStatoSimulata(DateTime dataOra, string IdxMacchina, int IdxStato, string matrKanban, string Value) + { + // verifico se esista la macchina altrimenti la creo... + verificaIdxMacchina(IdxMacchina); + // inserisco la nuova riga di stato mentre il trigger aggiorna le tab... + int inserito = taDiario.Insert(IdxMacchina, dataOra, null, IdxStato, null, Value, matrKanban, "", null, null, 0, "-"); + return inserito; + } + + #endregion + + /// + /// cancella tutti gli eventi + /// + public void deleteAllEventi() + { + taEvList.DeleteAll(); + } + /// + /// cancella tutti gli stati + /// + public void deleteAllStati() + { + taDiario.DeleteAll(); + } + + /// + /// restituisce una riga di dati relativa ad una macchina + /// + /// + /// + public DS_applicazione.MacchineRow getRigaMacchina(string idxMacchina) + { + return taMacchine.GetByIdx(idxMacchina)[0]; + } + + public DS_applicazione.EventListDataTable elencoEventiImpianto(string idxMacchina) + { + return taEvList.GetDataByIdxMacchina(idxMacchina); + } + public DS_applicazione.DiarioDiBordoDataTable elencoStatiImpianto(string idxMacchina) + { + return taDiario.GetDataByIdxMacchina(idxMacchina); + } + public DS_applicazione.EventListDataTable elencoEventiImpiantoPeriodo(string idxMacchina, DateTime dal, DateTime al) + { + return taEvList.GetByMacchinaPeriodo(idxMacchina, dal, al); + } + public DS_applicazione.DiarioDiBordoDataTable nextEventoImpiantoFrom(string idxMacchina, DateTime prevData) + { + return taDiario.getNextByMacchInizioStato(idxMacchina, prevData); + } + public DS_applicazione.DiarioDiBordoDataTable elencoStatiImpiantoPeriodo(string idxMacchina, DateTime dal, DateTime al) + { + DS_applicazione.DiarioDiBordoDataTable answ = new DS_applicazione.DiarioDiBordoDataTable(); + try + { + answ = taDiario.GetByMacchinaPeriodo(idxMacchina, dal, al); + } + catch (Exception exc) + { + logger.lg.scriviLog(string.Format("Eccezione recupero elencoStatiImpiantoPeriodo:{0}{1}", Environment.NewLine, exc), tipoLog.EXCEPTION); + } + return answ; + } + /// + /// verifica kanban valido + /// + /// + /// + public bool isKanban(string codice) + { + return (taKanban.GetDataByKanbanMatrCode(codice).Rows.Count > 0); + } + /// + /// verifica se sia un nuovo kanban + /// + /// + /// + public bool isNewKanban(string codice) + { + // controlli validità kanban + bool check = codice.StartsWith("K"); + return check; + } + + /// verifica che il bar code sia un barcode Operatore + /// + /// Bar code da verificare + /// true se bar code per operatore + public bool isOperatore(string codice) + { + // controlli validità bar code operatore : deve cominciare con O maiuscola + bool check = codice.StartsWith("O"); + return check; + } + + /// verifica che il bar code sia un barcode nomeMacchina + /// + /// Bar code da verificare + /// true se bar code per operatore + public bool isNomeMacchina(string codice) + { + // FARE!!! controllare quale codice ci vuole + // controlli validità bar code nomeMacchina : deve cominciare con O maiuscola + bool check = codice.StartsWith("C#"); + return check; + } + + + /// + /// inserisce un nuovo kanban ignoto + /// + /// + /// + public int insertUnknownKanban(string codice) + { + return taKanban.InsertUndefinedKanban(codice); + } + /// + /// verifica un codice se sia di tipo "comando" + /// + /// + /// + public inputComando isComando(string comando) + { + inputComando answ = new inputComando(); + answ.isValid = false; + DS_applicazione.TransizioneEventiDataTable tabTransEv = new DS_applicazione.TransizioneEventiDataTable(); + try + { + tabTransEv = taTranEv.GetDataByCodInviato(comando); + } + catch + { + } + if (tabTransEv.Rows.Count != 0) + { + answ.isValid = true; + answ.idxTipoEvento = tabTransEv[0].IdxTipoEvento; + answ.precInput = tabTransEv[0].prec_codInviato; + answ.text2show = tabTransEv[0].text2show; + try + { + answ.descrComando = tabTransEv[0].descrComando; + } + catch + { + answ.descrComando = "-"; + } + } + return answ; + } + + /// + /// restituisce una riga di dati relativa ad una macchina + /// + /// + /// + public DS_applicazione.StatoMacchineRow getRigaStatoMacchina(string idxMacchina) + { + return taStatoMacchine.GetDataByIdxMacchina(idxMacchina)[0]; + } + /// + /// converte la definizioen di stato nel suo valore + /// + /// + /// + public string statoDaIdxStato(int idx) + { + return taAnagSt.GetByIdx(idx)[0].Descrizione; + } + + /// + /// scrive un evento di keepalive sulla tabella + /// + /// + /// + /// + public void scriviKeepAlive(string IdxMacchina, DateTime oraMacchina) + { + // salvo in variabile boolean se registrare keep alive su db o meno + bool doWrite = false; + string nomeVar = string.Format("KA{0}", IdxMacchina); + // in primis controllo se in cache c'è oggetto keep alive x macchina... formato KA{ID-MACCHINA} + if (memLayer.ML.isInCacheObject(nomeVar)) + { + // leggo data ora, se è + vecchia di corrente - kaMinUpdSec segno da aggiornare + DateTime adesso = DateTime.Now; + DateTime lastKA = DateTime.Now; + try + { + lastKA = (DateTime)memLayer.ML.objCacheObj(nomeVar); + } + catch + { } + if (adesso.AddSeconds(-memLayer.ML.CRI("kaMinUpdSec")) > lastKA) + { + doWrite = true; + } + } + else + { + // non c'è in sessione, lo salvo + memLayer.ML.setCacheVal(nomeVar, oraMacchina); + // indico di fare refresh + doWrite = true; + } + if (doWrite) + { + try + { + if (memLayer.ML.confReadBool("forceResetKeepAlive")) + { + taKeepAlive.Connection.Close(); + taKeepAlive.Connection.Open(); + } + else + { + if (taKeepAlive.Connection.State == ConnectionState.Closed) + { + taKeepAlive.Connection.Open(); + } + } + taKeepAlive.UpdateQueryNoStartTime(DateTime.Now, oraMacchina, IdxMacchina); + } + catch (Exception exc) + { + logger.lg.scriviLog(string.Format("Errore in scrittura keep alive!{0}oraMacchina:{1} - IdxMacchina:{2}{0}{3}", Environment.NewLine, oraMacchina, IdxMacchina, exc), tipoLog.EXCEPTION); + } + } + } + /// + /// Registra un evento di RemoteReboot sulla tabella + /// + /// + /// + /// + /// + public void scriviRemoteReboot(string IdxMacchina, string IPv4, string agent, string macAddr) + { + taRRL.Insert(IdxMacchina, IPv4, agent, DateTime.Now, macAddr); + } + + /// + /// scrive un evento di start di keepalive sulla tabella + /// + /// + /// + /// + public void scriviPrimoKeepAlive(string IdxMacchina, DateTime oraMacchina) + { + // se non c'è riga macchina insert... + if (taKeepAlive.GetData().FindByIdxMacchina(IdxMacchina) == null) + { + taKeepAlive.Insert(IdxMacchina, DateTime.Now, oraMacchina, DateTime.Now); + } + else // altrimenti update! + { + taKeepAlive.UpdateQuery(DateTime.Now, oraMacchina, DateTime.Now, IdxMacchina); + } + } + + /// + /// fornisce il prossimo IdxMicroStato della macchina a stati della gestione segnali in input + /// + /// + /// + /// + /// + public hwMachineState getNextMicroStato(string IdxMacchina, int IdxMicroStato, int ValoreIngresso) + { + hwMachineState valori = new hwMachineState(); + valori.IdxTipoEvento = -1; + valori.next_IdxMicroStato = IdxMicroStato; // se non trovo un nuovo stato, resto in questo + // provo a recuperare i dati... + DS_applicazione.TransizioneIngressiRow rigaIngr; + try + { + rigaIngr = (DS_applicazione.TransizioneIngressiRow)(taTransIngr.GetNextStatus(IdxMacchina, IdxMicroStato, ValoreIngresso)[0]); + valori.IdxTipoEvento = rigaIngr.IdxTipoEvento; + valori.next_IdxMicroStato = rigaIngr.next_IdxMicroStato; + } + catch + { + } + return valori; + } + + /// + /// restituisce la stringa del colore della macchina (1 char, V/G/R) + /// + /// + /// + public string getColoreMacchina(string idxMacchina) + { + string colore = ""; + // cerco stato macchina... + DS_applicazione.StatoMacchineRow rigaStato; + try + { + rigaStato = (DS_applicazione.StatoMacchineRow)(taStatoMacchine.GetDataByIdxMacchina(idxMacchina)[0]); + // cerco il colore... + try + { + colore = taAnagSt.GetByIdx(rigaStato.IdxStato)[0].Semaforo; + } + catch + { + } + } + catch + { + } + return colore; + } + /// + /// restituisce la stringa del pallet correntemente in lavorazione sulla macchina + /// + /// + /// + public string getPalletMacchina(string idxMacchina) + { + string pallet = ""; + try + { + pallet = (taStatoMacchine.GetDataByIdxMacchina(idxMacchina)[0]).pallet; + } + catch + { + } + return pallet; + } + /// + /// restituisce la matricola dell'operatore sulla macchina + /// + /// + /// + public int getMatrOprMacchina(string idxMacchina) + { + return getMatrOpMacc(idxMacchina); + } + + /// + /// restituisce cognome nome dell'operatore data la sua matricola + /// + /// + /// + public string getCognomeNomeDaMatr(int matrOpr) + { + return getGeneralitDaMatr(matrOpr); + } + /// + /// restituisce cognome nome dell'operatore data la sua matricola + /// + /// + /// + public string getCognomeNomeOprMacchina(string idxMacchina) + { + string cognNome = ""; + try + { + cognNome = getGeneralitDaMatr(getMatrOpMacc(idxMacchina)); + } + catch + { + } + return cognNome; + } + + /// + /// restituisce il TempoCiclo effettivo (tecnico) della macchina + /// + /// + /// + public decimal getTcEffMacchina(string idxMacchina) + { + decimal tc = 0; + try + { + DS_ProdTempi.stp_repDonati_getDatiProdMacchinaPeriodoRow riga = DataLayer.obj.taDatiProdMacchPer.GetData(idxMacchina, DateTime.Now.AddMinutes(-30), DateTime.Now)[0]; + if (riga.TCEffRT > 0) + { + tc = riga.TCEffRT; + } + else + { + tc = riga.TCAssegnato; + } + } + catch + { } + // imposto a 99'TC + if (tc == 0) + { + tc = 99.9M; + // scrivo log per indicare mancato caricamento dati tc dichiarato e conseguente errore sul timer - 2/11/2012 EN&CV + logger.lg.scriviLog(string.Format("Impostato TC Tempo Ciclo a 99' (99.9M) causa mancato inserimento tempo ciclo dichiarato")); + } + return tc; + } + + /// + /// rigenera la tab diario di bordo x la macchian richiesta nell'intervallo definito + /// + /// + /// + /// + public void rigeneraDiarioDiBordo(string IdxMacchina, DateTime dataInizio, DateTime dataFine) + { + // elimino da diario di bordo i valori nell'intervallo... + taDiario.DeleteByMacchinaPeriodo(IdxMacchina, dataInizio, dataFine); + // seleziono le righe eventi interessate e le processo 1 ad 1... + DS_applicazione.EventListDataTable tabEventi = taEvList.GetByMacchinaPeriodo(IdxMacchina, dataInizio, dataFine); + foreach (DS_applicazione.EventListRow rigaEv in tabEventi) + { + if (rigaEv.IdxTipo <= 12) // è barcode + { + checkCambiaStatoBatch(tipoInputEvento.barcode, IdxMacchina, rigaEv.InizioStato, rigaEv.IdxTipo, rigaEv.MatricolaKanban, rigaEv.Value, rigaEv.MatrOpr, rigaEv.pallet); + } + else // è hw + { + checkCambiaStatoBatch(tipoInputEvento.hw, IdxMacchina, rigaEv.InizioStato, rigaEv.IdxTipo, rigaEv.MatricolaKanban, rigaEv.Value, rigaEv.MatrOpr, rigaEv.pallet); + } + } + } + /// + /// restituisce la riga di transizione del comando... + /// + /// + /// + public DS_applicazione.TransizioneEventiRow getRigaTransizioneDaDescrComando(string descrComando) + { + return taTranEv.getByDescrComando(descrComando)[0]; + } + /// + /// restituisce il kanban (CodArticolo) dalla matricola + /// + /// codice univoco della matricola + /// restituisce il kanban (eventualmente comune a più matricole...) + public string getKanbanDaMatr(string matricola) + { + string answ = ""; + try + { + answ = (taKanban.GetDataByKanbanMatrCode(matricola)[0]).KanbanCode; + } + catch + { } + return answ; + } + + + + /// + /// Dichiara esplicitamente produzione e tempo ciclo rilevato per il numero di pezzi indicati (real time, NON confermati) + /// + /// + /// + /// + /// + /// + /// + public void dichiaraProduzTempoCiclo(string IdxMacchina, string CodArticolo, decimal tempoRilevato, int numPz, DateTime eventTime, DateTime currentTime) + { + // calcolo dataOra reale (evento + delta(ora server - ora remota) + DateTime dataOra = eventTime.Add(DateTime.Now - currentTime); + // scrivo il dato del TC rilevato + taTCRilevati.Insert(IdxMacchina, CodArticolo, dataOra, tempoRilevato, numPz); + } + + /// + /// effettua verifica del codice barcode e restituisce un oggetto inputComando che indica come proseguire + /// + /// + /// + public inputComando tryBarcode(string barcodeValue) + { + inputComando answ = new inputComando(); + // controllo... + + return answ; + } + + #endregion + } +} \ No newline at end of file diff --git a/MapoDb/MapoDb.csproj b/MapoDb/MapoDb.csproj new file mode 100644 index 00000000..6b082bae --- /dev/null +++ b/MapoDb/MapoDb.csproj @@ -0,0 +1,243 @@ + + + + Debug + AnyCPU + 9.0.30729 + 2.0 + {4617A665-D6E3-4CEB-A689-CE2EECD45713} + Library + Properties + MapoDb + MapoDb + true + + + 3.5 + + + v3.5 + + http://localhost/MapoDb/ + true + Web + true + Foreground + 7 + Days + false + false + true + 0 + 1.0.0.%2a + false + true + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + AllRules.ruleset + + + none + true + bin\Release\ + TRACE + prompt + 4 + false + AllRules.ruleset + + + + + + + + + + + + + + DS_applicazione.xsd + + + True + True + DS_applicazione.xsd + + + DS_ProdTempi.xsd + + + True + True + DS_ProdTempi.xsd + + + DS_Utility.xsd + + + True + True + DS_Utility.xsd + + + + + True + True + Settings.settings + + + + + + + + + + + DS_applicazione.xsd + + + Designer + MSDataSetGenerator + DS_applicazione.Designer.cs + + + DS_applicazione.xsd + + + DS_ProdTempi.xsd + + + Designer + MSDataSetGenerator + DS_ProdTempi1.Designer.cs + + + DS_ProdTempi.xsd + + + DS_Utility.xsd + + + Designer + MSDataSetGenerator + DS_Utility.Designer.cs + + + DS_Utility.xsd + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + + + + + + + + + + + + + + + + + + + + + False + .NET Framework 3.5 SP1 Client Profile + false + + + False + .NET Framework 2.0 %28x86%29 + true + + + False + .NET Framework 3.0 %28x86%29 + false + + + False + .NET Framework 3.5 + false + + + False + .NET Framework 3.5 SP1 + false + + + False + SQL Server 2005 Express Edition + true + + + False + Windows Installer 3.1 + true + + + + + + + + + + + {2872DCFE-8B46-43B2-BAA0-842A816A2DD5} + SteamWare + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/MapoDb/MapoDb.csproj.user b/MapoDb/MapoDb.csproj.user new file mode 100644 index 00000000..a0d75822 --- /dev/null +++ b/MapoDb/MapoDb.csproj.user @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + en-US + true + + + + \ No newline at end of file diff --git a/MapoDb/MapoDb.sln b/MapoDb/MapoDb.sln new file mode 100644 index 00000000..919a0af1 --- /dev/null +++ b/MapoDb/MapoDb.sln @@ -0,0 +1,20 @@ + +Microsoft Visual Studio Solution File, Format Version 9.00 +# Visual Studio 2005 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MapoDb", "MapoDb.csproj", "{4617A665-D6E3-4CEB-A689-CE2EECD45713}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {4617A665-D6E3-4CEB-A689-CE2EECD45713}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4617A665-D6E3-4CEB-A689-CE2EECD45713}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4617A665-D6E3-4CEB-A689-CE2EECD45713}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4617A665-D6E3-4CEB-A689-CE2EECD45713}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/MapoDb/MapoDb.suo b/MapoDb/MapoDb.suo new file mode 100644 index 0000000000000000000000000000000000000000..493220af5ef32951fdaf87409884753e9892b4e3 GIT binary patch literal 15360 zcmeI2Yml2&8OPtWP(YANTMHB{p%kgWrkmZ(URqk*+}i3cElqD?q^3!BNjICUNtSJ) z2;McTc_xpjK>5^IGg-$z<7;Y!O|MnX6} zJ3DJ%`X)U+<)s5PRP8P2FP^`Bf~x6|)M&CF>ZY)P7il)VNI2__qpEKYe=p z*8Y>eu)y`LY3C{g*xP+5nZ4{wsF%Uv@z@Kz2noK>9DqQkiwc zHvm7l5v&I{fek=n@g8ss*a+SWZUwi2+d&ryfK8wq1VInz1$`g{`oRDg1VcbHw>a@u z;%(qg=Xsbo3?k06$_m?g-T`)k_k$0B5iknw0=vL&a5vZk5@0Xb2lj&l;2`)QxCeX) zB*BNlz2Fe|2uOj$APq7=BR&Sk!F?bHj(`b}2a})xieL(S6qJD5?rGBZgBc)AQvL(P z4}#<1A@DKqFn9#~`?Xh>U-$J#^8;Pku~RN8z6lN&fi@zBfr)-=6?!Yct~$ zg|BIA8ZKvzH7r|xMySBZ_>Epxun;+($I;rPHBA1bdA4mwiLw=HDDiF-Y4^`lUlQq1 z>1oR5O|2Eu8S;ue^&r#T$Z!(bvh8A)_EZeDQNEa>R1|qp{obcDXF`;o9;OB3{ABkI zm_DSDy)0B04t~e}$|fLcvkQM=;aS?gg38v@57UM$ZJ0296|dF%=3yiDPxeZ*6`Gf< zzLD*F(Rr+=ulYxIcgl=(5&EsD%T_HjHcs}kUHY>9fIblY*Lgy=jp*1w5xR8=krD1Zq>Q(zqBz8KV+}6@ME!pBZ@WE zy_vk4iWYcSVflO%$(UlRtiI(>EXUoMoxOaSY4(#4%ixF5X2*g-Pk{AZ|&Q$>||CMk-2)5Z?wV{Sad9HSYnKUdABV z6T)$xG*x9#o@P^(T-e&FDnf@m=NKQzBbC?DJjnjZ?zo|O$?6;VB<@o^{ZX1e z3018_4mh^3h&R*B3g3?Xlh3MksoLPy+bY(u%2!j6y{|yCglua@u3Dgh{_TR66 z*thca)Bl(i^zK(=|J8Z#eWxs~y+&b6-i%U${}i$$MorE6aF(?dpGOvL3r&?TzIdi0 z0F!6%7QA$KLAwGSQB~MtR%^9oTM;Jl*D)lSU4L!m1{yYx3xR%=9s2))-1MA`U2S;n%y6?VC1|Jr{L-BlE5m%i8j*h(u|x!A0` z7gIL3ppc6#?R&7m@+8HxEQ&siRhIdRpl$mwD`S`k$&6MoVM=OZuj;{_i{75<{MBh& zY)hc^p7+-^_tZM&{YL4B=zBYsz^2+`OzRL_v)zs^jB6azIe=O1qqaWdpbU};XlfoAgN9{ET=9^kGlE3 zpL*3lO;~nchYYP@YVI+d7=&V+w8}&%Wsgm#RJ*AwNIgNm@2CChR}b-^p{jHbDNU+z zTGeGJhM}x!GiJV#4D@%{*EnAcKt(*Zsmj3>ztva$#Oon`eTKe0s{N)7-G&1p!=p|) zta{`CXpGcD$yUVatDFfr*^-|jdMI~WuD4nh>4pE=!wZ>YKBOOs+2Myn&^s|Rj zAt3o`mnusjzR=E74ks{6ePhg!_ADV!ySdfVK5Hi-VQskdjp5s#_{EOr|L}vCSAGA$ z6(iQEpa1LNqw9Ybdv5dZ(%<;cQBBu`gf%#}`i0XktQ+~>H#0x_`nuPLnw7N6xA%Xy zU;BTHx}-YiF16=Ww!Kb!O1XZZ)TJN+D@;~HdYTv(I|3kjtOHQ@> zn7>6;3)C!d+v6@KoMKHQ`Cp>zhNcBQFTDQG4kSEdXcy>np4P;TN2=D8@G%w&Zrhz(d%oq$fT z4A#nRf-%>Aq%kTd-^6Xnfl(htM_h?uSfrUJX{8(gKmDSILgb7P679v)jfYr;J3>L$%EIba3Kvm z6Zwxp+ueVcpAch|_JsoesU>M?I- zXSK;;b9~a-6EZL6{-gz(dk)h^SwEf7SA*vCqS+tO$*6lySbO%U^`F}4hWTo2*e$2< z_VCEgr9bvjX6r+6PFtGdW192>#M-URnoZ8K>FLAtcxg+y?Uzj%uSlx`oen4IeeFR* zz{rXAtj7%pN**5QCd1O^L8CR36zg`y((c#%V>`?UYmZH*KzS^~PDWHWwCv+3^;~yK zmUhn<(qCD zCdj)Vi!EO>z)HQ_>>>;p?K%c^t-&UFbCCZ$v2AbVa|vpP?lYaccDSbj^R+~`tzh(~b23^?PfunGm9jro$oLc4N+nkqFDHjHlet2!Tq&h0#Zq$g zn18NZa(}Kooyz+YmFY~b=e&!tljHD&iDGn)fXQPR> z?LUHz(QaS8y=%s?YCiYB%>B-lWVO5g(3(!?rV6%I+l}9p#uBFR8?so@c5h$l&S>ZR zKU%%r?1)#Z{g>7&f75)+z5jL{kL~vVQWLErY`Z92{V#eaA0*)IJrQ(2!w-y@>P zXCPfHjODb`J13dV2sh+6c=_L2s&`_Tde7~hhz!$3t7XJd-e;U!5^@i;_!}@=`#K7U z;yi?L8{DISC@CF@=m<&26TOtxp@R-*bXcMdj$w`h%pHl36MX`F5_}GP8hi$P7CZ_b z1KKbBJn`e;3GfB*Mero}643jnh`$293clv#dFAr$^#3OZoI5g=3%}dOy|>2OqK_|i z9e*qCeP8vP?>u)4I;bGuM&~oK&e~JbwJ&*s+NaSyVC`MX1C!sXlRfQDT>*5TMRT;~ z^;KXs(0-8andz>Z?z~(J)&k9ay3?bBx^>_N;0HH?_24GpN8Xo$3Z_-)%$G3!iq>6cs# ztH0LK`VvU>ZT)w;19t~*b?xPDTK^ILc7birego@w^bT~wvS0bP;M@qGwh z=+c0Wl=ZWZ_I1E5^f99xXJ~`%cr8^Ccx8$2Ak252(X#${&#nJeALV38bEJjR9%-WT jq +// This code was generated by a tool. +// Runtime Version:4.0.30319.34014 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace MapoDb.Properties { + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default { + get { + return defaultInstance; + } + } + + [global::System.Configuration.ApplicationScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)] + [global::System.Configuration.DefaultSettingValueAttribute("Data Source=192.168.51.71\\sqlexpress;Initial Catalog=MoonPro;Persist Security Inf" + + "o=True;User ID=sa;Password=keyhammer")] + public string MoonProConnectionString { + get { + return ((string)(this["MoonProConnectionString"])); + } + } + + [global::System.Configuration.ApplicationScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)] + [global::System.Configuration.DefaultSettingValueAttribute("Data Source=T110-WIN2008R2\\SQL2008R2;Initial Catalog=MoonPro;Persist Security Inf" + + "o=True;User ID=sa;Password=keyhammer")] + public string MoonProConnectionString1 { + get { + return ((string)(this["MoonProConnectionString1"])); + } + } + } +} diff --git a/MapoDb/Properties/Settings.settings b/MapoDb/Properties/Settings.settings new file mode 100644 index 00000000..77eb0d82 --- /dev/null +++ b/MapoDb/Properties/Settings.settings @@ -0,0 +1,22 @@ + + + + + + <?xml version="1.0" encoding="utf-16"?> +<SerializableConnectionString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> + <ConnectionString>Data Source=192.168.51.71\sqlexpress;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer</ConnectionString> + <ProviderName>System.Data.SqlClient</ProviderName> +</SerializableConnectionString> + Data Source=192.168.51.71\sqlexpress;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer + + + <?xml version="1.0" encoding="utf-16"?> +<SerializableConnectionString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> + <ConnectionString>Data Source=T110-WIN2008R2\SQL2008R2;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer</ConnectionString> + <ProviderName>System.Data.SqlClient</ProviderName> +</SerializableConnectionString> + Data Source=T110-WIN2008R2\SQL2008R2;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer + + + \ No newline at end of file diff --git a/MapoDb/Settings.cs b/MapoDb/Settings.cs new file mode 100644 index 00000000..92ea9dd5 --- /dev/null +++ b/MapoDb/Settings.cs @@ -0,0 +1,28 @@ +namespace MapoDb.Properties { + + + // This class allows you to handle specific events on the settings class: + // The SettingChanging event is raised before a setting's value is changed. + // The PropertyChanged event is raised after a setting's value is changed. + // The SettingsLoaded event is raised after the setting values are loaded. + // The SettingsSaving event is raised before the setting values are saved. + internal sealed partial class Settings { + + public Settings() { + // // To add event handlers for saving and changing settings, uncomment the lines below: + // + // this.SettingChanging += this.SettingChangingEventHandler; + // + // this.SettingsSaving += this.SettingsSavingEventHandler; + // + } + + private void SettingChangingEventHandler(object sender, System.Configuration.SettingChangingEventArgs e) { + // Add code to handle the SettingChangingEvent event here. + } + + private void SettingsSavingEventHandler(object sender, System.ComponentModel.CancelEventArgs e) { + // Add code to handle the SettingsSaving event here. + } + } +} diff --git a/MapoDb/SqlUpdate/MoonPro/V1.0/MoonPro_00010.sql b/MapoDb/SqlUpdate/MoonPro/V1.0/MoonPro_00010.sql new file mode 100644 index 00000000..0c5e8e78 --- /dev/null +++ b/MapoDb/SqlUpdate/MoonPro/V1.0/MoonPro_00010.sql @@ -0,0 +1,167 @@ +create table LogUpdateDb( + Versione int not null constraint PK_LogUpdateDb primary key, + Data datetime +) +go + +set xact_abort on +go + +begin transaction +go + +alter table AnagraficaStati add + Priorita int +go + +exec sp_addextendedproperty 'MS_Description', 'livello di precedenza (il minore precede e sovrascrive i livelli successivi)', 'SCHEMA', 'dbo', 'TABLE', 'AnagraficaStati', 'COLUMN', 'Priorita' +go + +set ANSI_NULLS on +go + +alter TRIGGER UpdDiarioDiBordo +ON DiarioDiBordo +FOR INSERT +AS + + /* dichiaro variabili */ + DECLARE @IdxMacchina NVARCHAR(50) + DECLARE @InizioStato DATETIME + DECLARE @soloMinuti FLOAT + DECLARE @IdxStatoOld INT + DECLARE @IdxStatoNew INT + DECLARE @semaforoOld VARCHAR(50) + DECLARE @semaforoNew VARCHAR(50) + DECLARE @prioritaOld INT + DECLARE @prioritaNew INT + + /* recupero valori x inserting */ + SET @IdxMacchina = ( SELECT i.IdxMacchina FROM inserted i ) + SET @InizioStato = ( SELECT i.InizioStato FROM inserted i ) + SET @soloMinuti = ( SELECT DATEDIFF(n, InizioStato, @InizioStato) FROM DiarioDiBordo WHERE (FineStato IS NULL) AND (IdxMacchina = @IdxMacchina) AND (InizioStato <>@InizioStato) ) + /* recupero dati x stati e semafori/priorità x eventuale update a ritroso dello stato */ + SET @IdxStatoOld = ( SELECT IdxStato FROM DiarioDiBordo WHERE (FineStato IS NULL) AND (IdxMacchina = @IdxMacchina) AND (InizioStato <>@InizioStato) ) + SET @IdxStatoNew = ( SELECT i.IdxStato FROM inserted i ) + + /* ------------------------------------------------------------------------------------------------------------ */ + /* CONTROLLO SE NECESSARIO AGGIORNARE STATO PRECEDENTE guardando le famiglie "semaforiche" e la priorità dello stato vecchio e nuovo*/ + /* faccio i controlli SOLO se lo stato è cambiato da vecchio a nuovo */ + IF (@IdxStatoOld <> @IdxStatoNew) + BEGIN + SET @semaforoOld = ( SELECT Semaforo FROM AnagraficaStati WHERE IdxStato = @IdxStatoOld ) + SET @semaforoNew = ( SELECT Semaforo FROM AnagraficaStati WHERE IdxStato = @IdxStatoNew ) + + /* questo controllo ed eventuale update lo faccio SOLO se i semafori corrispondono (stessa "famiglia" */ + IF (@semaforoOld = @semaforoNew) + BEGIN + SET @prioritaOld = ( SELECT Priorita FROM AnagraficaStati WHERE IdxStato = @IdxStatoOld ) + SET @prioritaNew = ( SELECT Priorita FROM AnagraficaStati WHERE IdxStato = @IdxStatoNew ) + + /* controlo se la priorità nuova sia + bassa della precedente e nel caso sovrascrivo */ + IF (@prioritaNew < @prioritaOld) + BEGIN + /* in questo caso imposto lo stato precedente come quello nuovo */ + UPDATE DiarioDiBordo + SET IdxStato = @IdxStatoNew + WHERE (FineStato IS NULL) AND (IdxMacchina = @IdxMacchina) AND (InizioStato <> @InizioStato) + END + END + END + /* ------------------------------------------------------------------------------------------------------------ */ + + /* Chiudo lo stato precedente */ + UPDATE DiarioDiBordo + SET FineStato = @InizioStato, DurataMinuti = @soloMinuti + CAST((DATEDIFF(ms, DATEADD(n,@soloMinuti,InizioStato), @InizioStato)) AS FLOAT)/60000 + WHERE (FineStato IS NULL) AND (IdxMacchina = @IdxMacchina) AND (InizioStato <> @InizioStato) + + /* Aggiorno tabella stato corrente della macchina */ + DELETE FROM StatoMacchine + WHERE IdxMacchina = @IdxMacchina + + INSERT INTO StatoMacchine(IdxMacchina, IdxStato, InizioStato, Value, MatricolaKanban, KanbanCode, TempoCicloBase, PzPalletProd) + SELECT IdxMacchina, IdxStato, InizioStato, Value, MatricolaKanban, KanbanCode, TempoCicloBase, PzPalletProd + FROM inserted + + /* aggiorno dati kanban DiarioDiBordo... */ + UPDATE DiarioDiBordo + SET KanbanCode = k.KanbanCode, TempoCicloBase = k.TempoCicloBase, PzPalletProd = k.PzPallet + FROM Kanban AS k INNER JOIN + DiarioDiBordo ON k.MatricolaKanban = DiarioDiBordo.MatricolaKanban + WHERE (DiarioDiBordo.TempoCicloBase IS NULL) + + /* aggiorno dati kanban statoMacchine... */ + UPDATE StatoMacchine + SET KanbanCode = k.KanbanCode, TempoCicloBase = k.TempoCicloBase, PzPalletProd = k.PzPallet + FROM Kanban AS k INNER JOIN + StatoMacchine ON k.MatricolaKanban = StatoMacchine.MatricolaKanban + WHERE (StatoMacchine.TempoCicloBase IS NULL) +go + +commit +go + + +set xact_abort on +go + +begin transaction +go + +UPDATE dbo.AnagraficaStati SET + Priorita=1 + WHERE IdxStato=1 +UPDATE dbo.AnagraficaStati SET + Priorita=1 + WHERE IdxStato=2 +UPDATE dbo.AnagraficaStati SET + Priorita=1 + WHERE IdxStato=3 +UPDATE dbo.AnagraficaStati SET + Priorita=1 + WHERE IdxStato=4 +UPDATE dbo.AnagraficaStati SET + Priorita=3 + WHERE IdxStato=5 +UPDATE dbo.AnagraficaStati SET + Priorita=1 + WHERE IdxStato=6 +UPDATE dbo.AnagraficaStati SET + Priorita=1 + WHERE IdxStato=7 +UPDATE dbo.AnagraficaStati SET + Priorita=1 + WHERE IdxStato=8 +UPDATE dbo.AnagraficaStati SET + Priorita=1 + WHERE IdxStato=9 +UPDATE dbo.AnagraficaStati SET + Priorita=1 + WHERE IdxStato=10 +UPDATE dbo.AnagraficaStati SET + Priorita=1 + WHERE IdxStato=11 +UPDATE dbo.AnagraficaStati SET + Priorita=4 + WHERE IdxStato=12 +UPDATE dbo.AnagraficaStati SET + Priorita=1 + WHERE IdxStato=13 +UPDATE dbo.AnagraficaStati SET + Priorita=1 + WHERE IdxStato=14 +UPDATE dbo.AnagraficaStati SET + Priorita=5 + WHERE IdxStato=15 +go + +commit transaction +go + + + + + +-- registro versione... +INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(10, GETDATE()) +GO \ No newline at end of file diff --git a/MapoDb/SqlUpdate/MoonPro/V1.0/MoonPro_00015.sql b/MapoDb/SqlUpdate/MoonPro/V1.0/MoonPro_00015.sql new file mode 100644 index 00000000..a222b7dd --- /dev/null +++ b/MapoDb/SqlUpdate/MoonPro/V1.0/MoonPro_00015.sql @@ -0,0 +1,45 @@ +set xact_abort on +go + +begin transaction +go + +create table TempiCicloRilevati( + IdxMacchina nvarchar(50) not null, + DataOraRif datetime not null, + TempoMedio decimal(18,8) not null constraint DF_TempiCicloRilevati_TempoMedio default (1), + PzProd int not null constraint DF_TempiCicloRilevati_PzProd default (1), + + constraint PK_TempiCicloRilevati primary key(IdxMacchina,DataOraRif) +) +go + +alter table TempiCicloRilevati add + constraint FK_TempiCicloRilevati_Macchine foreign key(IdxMacchina) references Macchine(IdxMacchina) on update cascade +go + +create table TempiCicloTeorici( + IdxMacchina nvarchar(50) not null, + DataOraFrom datetime not null, + DataOraTo datetime, + TempoAssegnato decimal(18,8) not null constraint DF_TempiCicloTeorici_TempoMedio default (1), + + constraint PK_TempiCicloTeorici primary key(IdxMacchina,DataOraFrom) +) +go + +alter table TempiCicloTeorici add + constraint FK_TempiCicloTeorici_Macchine foreign key(IdxMacchina) references Macchine(IdxMacchina) on update cascade +go + +commit +go + + + + + + +-- registro versione... +INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(15, GETDATE()) +GO \ No newline at end of file diff --git a/MapoDb/SqlUpdate/MoonPro/V1.0/MoonPro_00020.sql b/MapoDb/SqlUpdate/MoonPro/V1.0/MoonPro_00020.sql new file mode 100644 index 00000000..0ec96225 --- /dev/null +++ b/MapoDb/SqlUpdate/MoonPro/V1.0/MoonPro_00020.sql @@ -0,0 +1,215 @@ +create table AnagClassiTempo( + ClasseTempo nvarchar(50) not null constraint PK_AnagClassiTempo primary key, + Descrizione nvarchar(500) +) +go + + +alter table AnagraficaStati add + ClasseTempo nvarchar(50) +go + +set xact_abort on +go + +begin transaction +go + +INSERT INTO dbo.AnagClassiTempo + VALUES (N'T_Auto', N'Macchina in Automatico') +INSERT INTO dbo.AnagClassiTempo + VALUES (N'T_AutoRun', N'Macchina in Automatico e Lavora') +INSERT INTO dbo.AnagClassiTempo + VALUES (N'T_Fermo', N'Macchina Ferma') +INSERT INTO dbo.AnagClassiTempo + VALUES (N'T_ND', N'Macchina non disponibile') +go + +commit transaction +go + + +set xact_abort on +go + +begin transaction +go + +UPDATE dbo.AnagraficaStati SET + ClasseTempo=N'T_Auto' + WHERE IdxStato=1 +UPDATE dbo.AnagraficaStati SET + ClasseTempo=N'T_ND' + WHERE IdxStato=2 +UPDATE dbo.AnagraficaStati SET + ClasseTempo=N'T_ND' + WHERE IdxStato=3 +UPDATE dbo.AnagraficaStati SET + ClasseTempo=N'T_Fermo' + WHERE IdxStato=4 +UPDATE dbo.AnagraficaStati SET + ClasseTempo=N'T_Fermo' + WHERE IdxStato=5 +UPDATE dbo.AnagraficaStati SET + ClasseTempo=N'T_Fermo' + WHERE IdxStato=6 +UPDATE dbo.AnagraficaStati SET + ClasseTempo=N'T_Fermo' + WHERE IdxStato=7 +UPDATE dbo.AnagraficaStati SET + ClasseTempo=N'T_Fermo' + WHERE IdxStato=8 +UPDATE dbo.AnagraficaStati SET + ClasseTempo=N'T_Fermo' + WHERE IdxStato=9 +UPDATE dbo.AnagraficaStati SET + ClasseTempo=N'T_ND' + WHERE IdxStato=10 +UPDATE dbo.AnagraficaStati SET + ClasseTempo=N'T_ND' + WHERE IdxStato=11 +UPDATE dbo.AnagraficaStati SET + ClasseTempo=N'T_Fermo' + WHERE IdxStato=12 +UPDATE dbo.AnagraficaStati SET + ClasseTempo=N'T_AutoRun' + WHERE IdxStato=13 +UPDATE dbo.AnagraficaStati SET + ClasseTempo=N'T_ND' + WHERE IdxStato=14 +UPDATE dbo.AnagraficaStati SET + ClasseTempo=N'T_Auto' + WHERE IdxStato=15 +go + +commit transaction +go + + +set xact_abort on +go + +begin transaction +go + +create table DatiConfermati( + IdxConferma int not null identity constraint PK_DatiConfermati primary key, + DataOraApp datetime not null, + DataRif datetime not null, + TurnoRif int, + CodArticolo nvarchar(50), + IdxMacchina nvarchar(50) not null, + TCAssegnato decimal(18,8), + MatrOpr int, + MatrApp int not null, + DataOraFrom datetime, + DataOraTo datetime, + IdxStato int not null, + TotPzProd int, + TempoProdotto decimal(18,8), + TempoLavoro decimal(18,8), + TempoAuto decimal(18,8), + TempoFermo decimal(18,8), + TotPzFermo int +) +go + +exec sp_addextendedproperty 'MS_Description', 'matricola dell''operatore che ha lavorato sulla macchina', 'SCHEMA', 'dbo', 'TABLE', 'DatiConfermati', 'COLUMN', 'MatrOpr' +go + +exec sp_addextendedproperty 'MS_Description', 'matricola dell''approvatore del record', 'SCHEMA', 'dbo', 'TABLE', 'DatiConfermati', 'COLUMN', 'MatrApp' +go + +exec sp_addextendedproperty 'MS_Description', 'pezzi prodotti in ciclo', 'SCHEMA', 'dbo', 'TABLE', 'DatiConfermati', 'COLUMN', 'TotPzProd' +go + +exec sp_addextendedproperty 'MS_Description', 'TCAssegnato x num pezzi prodotti', 'SCHEMA', 'dbo', 'TABLE', 'DatiConfermati', 'COLUMN', 'TempoProdotto' +go + +exec sp_addextendedproperty 'MS_Description', 'Totale tempo macchina in automatico ed in lavoro', 'SCHEMA', 'dbo', 'TABLE', 'DatiConfermati', 'COLUMN', 'TempoLavoro' +go + +exec sp_addextendedproperty 'MS_Description', 'Totale tempo macchina in automatico', 'SCHEMA', 'dbo', 'TABLE', 'DatiConfermati', 'COLUMN', 'TempoAuto' +go + +exec sp_addextendedproperty 'MS_Description', 'Totale tempo macchina in fermo (anche ND)', 'SCHEMA', 'dbo', 'TABLE', 'DatiConfermati', 'COLUMN', 'TempoFermo' +go + +exec sp_addextendedproperty 'MS_Description', 'pezzi prodotti durante la fermata (es setup)', 'SCHEMA', 'dbo', 'TABLE', 'DatiConfermati', 'COLUMN', 'TotPzFermo' +go + +commit +go + + +create table TabAvvioProduzione( + IdxProduzione int not null identity constraint PK_TabAvvioProduzione primary key, + CodArticolo nvarchar(50) not null, + NumPezzi int not null, + TCAssegnato decimal(18,8) not null constraint DF_TabAvvioProduzione_TCAssegnato default (1) +) +go + + +drop table TempiCicloRilevati +go + + + +set xact_abort on +go + +begin transaction +go + +create table TempiCicloRilevati( + IdxMacchina nvarchar(50) not null, + DataOraRif datetime not null, + TCMedio decimal(18,8) not null constraint DF_TempiCicloRilevati_TempoMedio default (1), + PzProd int not null constraint DF_TempiCicloRilevati_PzProd default (1), + + constraint PK_TempiCicloRilevati primary key(IdxMacchina,DataOraRif) +) +go + +alter table TempiCicloRilevati add + constraint FK_TempiCicloRilevati_Macchine foreign key(IdxMacchina) references Macchine(IdxMacchina) on update cascade +go + +commit +go + +drop table TempiCicloTeorici +go + + +set xact_abort on +go + +begin transaction +go + +create table TempiCicloTeorici( + IdxMacchina nvarchar(50) not null, + DataOraFrom datetime not null, + DataOraTo datetime, + TCAssegnato decimal(18,8) not null constraint DF_TempiCicloTeorici_TempoMedio default (1), + + constraint PK_TempiCicloTeorici primary key(IdxMacchina,DataOraFrom) +) +go + +alter table TempiCicloTeorici add + constraint FK_TempiCicloTeorici_Macchine foreign key(IdxMacchina) references Macchine(IdxMacchina) on update cascade +go + +commit +go + + + + + +-- registro versione... +INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(20, GETDATE()) +GO \ No newline at end of file diff --git a/MapoDb/SqlUpdate/MoonPro/V1.0/MoonPro_00025.sql b/MapoDb/SqlUpdate/MoonPro/V1.0/MoonPro_00025.sql new file mode 100644 index 00000000..47f4a845 --- /dev/null +++ b/MapoDb/SqlUpdate/MoonPro/V1.0/MoonPro_00025.sql @@ -0,0 +1,258 @@ +set xact_abort on +go + +begin transaction +go + +drop table TempiCicloRilevati +go + +create table TempiCicloRilevati( + IdxMacchina nvarchar(50) not null, + CodArticolo nvarchar(50) not null, + DataOraRif datetime not null, + TCMedio decimal(18,8) not null constraint DF_TempiCicloRilevati_TempoMedio default (1), + PzProd int not null constraint DF_TempiCicloRilevati_PzProd default (1), + + constraint PK_TempiCicloRilevati primary key(IdxMacchina,CodArticolo,DataOraRif) +) +go + +alter table TempiCicloRilevati add + constraint FK_TempiCicloRilevati_Macchine foreign key(IdxMacchina) references Macchine(IdxMacchina) on update cascade +go + +drop table TempiCicloTeorici +go + +create table TempiCicloTeorici( + IdxMacchina nvarchar(50) not null, + CodArticolo nvarchar(50) not null, + DataOraFrom datetime not null, + DataOraTo datetime, + TCAssegnato decimal(18,8) not null constraint DF_TempiCicloTeorici_TempoMedio default (1), + + constraint PK_TempiCicloTeorici primary key(IdxMacchina,CodArticolo,DataOraFrom) +) +go + +alter table TempiCicloTeorici add + constraint FK_TempiCicloTeorici_Macchine foreign key(IdxMacchina) references Macchine(IdxMacchina) on update cascade +go + +commit +go + + +set xact_abort on +go + +begin transaction +go + +INSERT INTO dbo.AnagraficaEventi + VALUES (20, N'Contapezzi') +go + +commit transaction +go + + +set xact_abort on +go + +begin transaction +go + +alter table Kanban add + CodArticolo nvarchar(50) +go + +set ANSI_NULLS on +go + + +commit +go + + +set xact_abort on +go + +begin transaction +go + +alter table AnagraficaEventi add + TabAzione nvarchar(50) constraint DF_AnagraficaEventi_TabAzione default (''), + Azione nvarchar(50) constraint DF_AnagraficaEventi_Azione default ('') +go + +update AnagraficaEventi set TabAzione='',Azione='' +go + +set ANSI_NULLS on +go + +create TRIGGER trg_doActions +ON EventList +FOR INSERT +AS + + /* dichiarazione variabili */ + DECLARE @IdxTipo INT + DECLARE @TabAzione NVARCHAR(50) + DECLARE @Azione NVARCHAR(50) + DECLARE @IdxMacchina NVARCHAR(50) + DECLARE @MatricolaKanban NVARCHAR(50) + DECLARE @CodArticolo NVARCHAR(50) + DECLARE @TCMedio DECIMAL(18,8) + DECLARE @DataOra DATETIME + DECLARE @DataOraPrec DATETIME + + + /* recupero valori dell'INSERT */ + SET @IdxTipo = ( SELECT i.IdxTipo FROM inserted i ) + SET @IdxMacchina = ( SELECT i.IdxMacchina FROM inserted i ) + /* recupero altri valori */ + SET @TabAzione = ( SELECT ISNULL(TabAzione,'') FROM AnagraficaEventi WHERE IdxTipo = @IdxTipo ) + SET @Azione = ( SELECT ISNULL(Azione,'') FROM AnagraficaEventi WHERE IdxTipo = @IdxTipo ) + /* controllo se l'evento richieda azioni successive */ + IF(@TabAzione <> '' AND @Azione <> '') + BEGIN + /* azioni richieste: seconda dei casi eseguo... */ + IF(@TabAzione = 'TempiCicloRilevati' AND @Azione = 'Insert') + BEGIN + /* calcolo valori */ + SET @DataOra = ( SELECT i.InizioStato FROM inserted i ) + SET @MatricolaKanban = ( SELECT i.MatricolaKanban FROM inserted i ) + SET @CodArticolo = ( SELECT CodArticolo FROM Kanban WHERE MatricolaKanban = @MatricolaKanban ) + /* calcolo tempo tra gli ultimi 2 eventi "contapezzi" */ + SET @DataOraPrec = ( SELECT ISNULL((SELECT Top 1 InizioStato FROM EventList WHERE IdxMacchina = @IdxMacchina AND IdxTipo = @IdxTipo AND InizioStato < @DataOra ORDER BY InizioStato DESC), @DataOra ) ) + /* è in millisecondi, divido per 60'000.00 x avere minuti centesimali*/ + SET @TCMedio = ( SELECT (DATEDIFF(ms, @DataOraPrec, @DataOra) / 60000.00 ) ) + /* inserisco riga di tempo ciclo */ + INSERT INTO TempiCicloRilevati + VALUES(@IdxMacchina, @CodArticolo, @DataOra, @TCMedio, 1) + END + END +go + +commit +go + +set xact_abort on +go + +begin transaction +go + +UPDATE dbo.AnagraficaEventi SET + TabAzione=N'TempiCicloRilevati', Azione=N'Insert' + WHERE IdxTipo=20 +go + +commit transaction +go + + +set xact_abort on +go + +begin transaction +go + +set ANSI_NULLS on +go + +alter TRIGGER trg_doActions +ON EventList +FOR INSERT +AS + + /* dichiarazione variabili */ + DECLARE @IdxTipo INT + DECLARE @TabAzione NVARCHAR(50) + DECLARE @Azione NVARCHAR(50) + DECLARE @IdxMacchina NVARCHAR(50) + DECLARE @MatricolaKanban NVARCHAR(50) + DECLARE @CodArticolo NVARCHAR(50) + DECLARE @TCMedio DECIMAL(18,8) + DECLARE @DataOra DATETIME + DECLARE @DataOraPrec DATETIME + DECLARE @NumPz INT + + + /* recupero valori dell'INSERT */ + SET @IdxTipo = ( SELECT i.IdxTipo FROM inserted i ) + SET @IdxMacchina = ( SELECT i.IdxMacchina FROM inserted i ) + /* recupero altri valori */ + SET @TabAzione = ( SELECT ISNULL(TabAzione,'') FROM AnagraficaEventi WHERE IdxTipo = @IdxTipo ) + SET @Azione = ( SELECT ISNULL(Azione,'') FROM AnagraficaEventi WHERE IdxTipo = @IdxTipo ) + /* controllo se l'evento richieda azioni successive */ + IF(@TabAzione <> '' AND @Azione <> '') + BEGIN + /* azioni richieste: seconda dei casi eseguo... */ + IF(@TabAzione = 'TempiCicloRilevati' AND @Azione = 'Insert') + BEGIN + /* calcolo valori */ + SET @DataOra = ( SELECT i.InizioStato FROM inserted i ) + SET @MatricolaKanban = ( SELECT i.MatricolaKanban FROM inserted i ) + SET @NumPz = ( SELECT CASE WHEN (ISNUMERIC(value)=1) THEN value ELSE 1 END FROM inserted i ) + SET @CodArticolo = ( SELECT CodArticolo FROM Kanban WHERE MatricolaKanban = @MatricolaKanban ) + /* calcolo tempo tra gli ultimi 2 eventi "contapezzi" */ + SET @DataOraPrec = ( SELECT ISNULL((SELECT Top 1 InizioStato FROM EventList WHERE IdxMacchina = @IdxMacchina AND IdxTipo = @IdxTipo AND InizioStato < @DataOra ORDER BY InizioStato DESC), @DataOra ) ) + /* è in millisecondi, divido per 60'000.00 x avere minuti centesimali*/ + SET @TCMedio = ( SELECT (DATEDIFF(ms, @DataOraPrec, @DataOra) / 60000.00 ) ) + /* inserisco riga di tempo ciclo */ + INSERT INTO TempiCicloRilevati + VALUES(@IdxMacchina, @CodArticolo, @DataOra, @TCMedio, @NumPz) + END + END +go + +commit +go + + +set xact_abort on +go + +begin transaction +go + +set ANSI_NULLS on +go + +/************************************* +* STORED PROCEDURE stp_TC_getByMacchinaPeriodo +* recupera tempi ciclo x machcian e periodo +* +* modif.: S.E.L. - 2010.12.15 +**************************************/ +create PROCEDURE stp_TC_getByMacchinaPeriodo +( + @IdxMacchina NVARCHAR(50), + @Inizio DATETIME, + @Fine DATETIME +) +AS + +SELECT * FROM TempiCicloRilevati +WHERE IdxMacchina = @IdxMacchina AND + (DataOraRif >= @Inizio) AND (DataOraRif <= @Fine) + +RETURN +go + +commit +go + + + + + + + +-- registro versione... +INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(25, GETDATE()) +GO \ No newline at end of file diff --git a/MapoDb/SqlUpdate/MoonPro/V1.0/MoonPro_00030.sql b/MapoDb/SqlUpdate/MoonPro/V1.0/MoonPro_00030.sql new file mode 100644 index 00000000..3d8ef8be --- /dev/null +++ b/MapoDb/SqlUpdate/MoonPro/V1.0/MoonPro_00030.sql @@ -0,0 +1,223 @@ +set xact_abort on +go + +begin transaction +go + +set ANSI_NULLS on +go + +/************************************* +* STORED PROCEDURE stp_TC_getMaxByMacchinaPeriodo +* recupera tempi ciclo x macchina e periodo +* +* modif.: S.E.L. - 2010.12.15 +**************************************/ +create PROCEDURE stp_TC_getMaxByMacchinaPeriodo +( + @IdxMacchina NVARCHAR(50), + @Inizio DATETIME, + @Fine DATETIME +) +AS + +SELECT @IdxMacchina AS IdxMacchina, '' AS CodArticolo, GETDATE() as DataOraRif, MAX(TCMedio) AS TCMedio, 0 AS PzProd FROM TempiCicloRilevati +WHERE IdxMacchina = @IdxMacchina AND + (DataOraRif >= @Inizio) AND (DataOraRif <= @Fine) + +RETURN +go + +/************************************* +* STORED PROCEDURE stp_TC_getMinByMacchinaPeriodo +* recupera tempi ciclo x macchina e periodo +* +* modif.: S.E.L. - 2010.12.15 +**************************************/ +create PROCEDURE stp_TC_getMinByMacchinaPeriodo +( + @IdxMacchina NVARCHAR(50), + @Inizio DATETIME, + @Fine DATETIME +) +AS + +SELECT @IdxMacchina AS IdxMacchina, '' AS CodArticolo, GETDATE() as DataOraRif, MIN(TCMedio) AS TCMedio, 0 AS PzProd FROM TempiCicloRilevati +WHERE IdxMacchina = @IdxMacchina AND + (DataOraRif >= @Inizio) AND (DataOraRif <= @Fine) + +RETURN +go + +commit +go + + + +set xact_abort on +go + +begin transaction +go + +set ANSI_NULLS on +go + +/************************************* +* STORED PROCEDURE stp_TC_getMaxByMacchinaPeriodo +* recupera tempi ciclo x macchina e periodo +* +* modif.: S.E.L. - 2010.12.15 +**************************************/ +alter PROCEDURE stp_TC_getMaxByMacchinaPeriodo +( + @IdxMacchina NVARCHAR(50), + @Inizio DATETIME, + @Fine DATETIME +) +AS + +SELECT @IdxMacchina AS IdxMacchina, '' AS CodArticolo, GETDATE() as DataOraRif, MAX(TCMedio) AS TCMedio, 0 AS PzProd FROM TempiCicloRilevati +WHERE IdxMacchina = @IdxMacchina AND + (DataOraRif >= @Inizio) AND (DataOraRif <= @Fine) + AND TCMedio > 0 + +RETURN +go + +/************************************* +* STORED PROCEDURE stp_TC_getMedByMacchinaPeriodo +* recupera tempi ciclo x macchina e periodo +* +* modif.: S.E.L. - 2010.12.24 +**************************************/ +create PROCEDURE stp_TC_getMedByMacchinaPeriodo +( + @IdxMacchina NVARCHAR(50), + @Inizio DATETIME, + @Fine DATETIME +) +AS + +SELECT @IdxMacchina AS IdxMacchina, '' AS CodArticolo, GETDATE() as DataOraRif, SUM(TCMedio * PzProd) / SUM(PzProd) AS TCMedio, 0 AS PzProd FROM TempiCicloRilevati +WHERE IdxMacchina = @IdxMacchina AND + (DataOraRif >= @Inizio) AND (DataOraRif <= @Fine) + AND TCMedio > 0 + +RETURN +go + +/************************************* +* STORED PROCEDURE stp_TC_getMinByMacchinaPeriodo +* recupera tempi ciclo x macchina e periodo +* +* modif.: S.E.L. - 2010.12.15 +**************************************/ +alter PROCEDURE stp_TC_getMinByMacchinaPeriodo +( + @IdxMacchina NVARCHAR(50), + @Inizio DATETIME, + @Fine DATETIME +) +AS + +SELECT @IdxMacchina AS IdxMacchina, '' AS CodArticolo, GETDATE() as DataOraRif, MIN(TCMedio) AS TCMedio, 0 AS PzProd FROM TempiCicloRilevati +WHERE IdxMacchina = @IdxMacchina AND + (DataOraRif >= @Inizio) AND (DataOraRif <= @Fine) + AND TCMedio > 0 + +RETURN +go + +-- ============================================= +-- Author: Samuele E. Locatelli +-- Create date: 2009-03-04 +-- mod date: 2010-07-14 +-- +-- Description: riallineamento con update massivo dati db +-- aggiorna i dati nel db per portarli ad essere "odierni" ovvero ultimo evento appena successo +-- ============================================= +alter PROCEDURE stp_ZZZ_riallineaDateDb +AS + +DBCC SHOWCONTIG(EventList) +DBCC SHOWCONTIG(DiarioDiBordo) + +EXEC USP_DisableEnableNonClusteredIndexes 'Mapo_ColMecc',null, 1 --disabilito indici + + +PRINT 'inizio UPDATE tabelle...' + +DECLARE @lastData AS DATETIME +DECLARE @diff_min as INT + +-- calcolo l'ultima data degli eventi +SET @lastData = (SELECT MAX(InizioStato) AS inizio FROM EventList) + +-- ora calcolo la differenza tra quello e la data/ora odierna +SET @diff_min = (SELECT DATEDIFF(n, @lastData, getdate())) + +-- aggiorno tabelle di conseguenza modificando le date + +-- aggiorno EventList +UPDATE EventList SET InizioStato = DATEADD(n, @diff_min, InizioStato) + +-- aggiorno DiarioDiBordo +UPDATE DiarioDiBordo SET InizioStato = DATEADD(n, @diff_min, InizioStato),FineStato = DATEADD(n, @diff_min, FineStato) + + +-- aggiorno StatoMacchine +UPDATE StatoMacchine SET InizioStato = DATEADD(n, @diff_min, InizioStato) + +-- aggiorno KeepAlive +UPDATE KeepAlive SET DataOraServer = DATEADD(n, @diff_min, DataOraServer), DataOraMacchina = DATEADD(n, @diff_min, DataOraMacchina), DataOraStart = DATEADD(n, @diff_min, DataOraStart) + +-- aggiorno TC teorici +UPDATE TempiCicloTeorici SET DataOraFrom = DATEADD(n, @diff_min, DataOraFrom), DataOraTo = DATEADD(n, @diff_min, DataOraTo) + +-- aggiorno TC rilevati +UPDATE TempiCicloRilevati SET DataOraRif = DATEADD(n, @diff_min, DataOraRif) + + +PRINT 'concluso UPDATE tabelle...' + + +DBCC SHOWCONTIG(EventList) +DBCC SHOWCONTIG(DiarioDiBordo) +EXEC USP_DisableEnableNonClusteredIndexes 'Mapo_ColMecc',null, 2 --riattivo indici + + +--ricostruisco indici +PRINT 'ricostruisco indici...' +DBCC DBREINDEX(EventList) +DBCC DBREINDEX(DiarioDiBordo) +DBCC DBREINDEX(TransizioneIngressi) +DBCC DBREINDEX(Kanban2ins) +DBCC DBREINDEX(Kanban) +DBCC DBREINDEX(AnagraficaOperatori) +DBCC DBREINDEX(AnagraficaOperatori2ins) + +DBCC SHOWCONTIG(EventList) +DBCC SHOWCONTIG(DiarioDiBordo) + + --shrink del db +PRINT 'compatto DB...' +DBCC SHRINKDATABASE (Mapo_ColMecc) + + +RETURN +go + +commit +go + + + + + + + + +-- registro versione... +INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(30, GETDATE()) +GO diff --git a/MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_00230.sql b/MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_00230.sql new file mode 100644 index 00000000..1703f3a1 --- /dev/null +++ b/MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_00230.sql @@ -0,0 +1,172 @@ +set xact_abort on +go + +begin transaction +go + +set ANSI_NULLS on +go + +-- ============================================= +-- Author: Samuele E. Locatelli +-- Create date: 2011-02-20 +-- Description: +-- ============================================= +create PROCEDURE stp_zzz_rimuoviDuplicatiConsecutivi + -- Add the parameters for the stored procedure here + @idxMacchina int +AS +BEGIN + SET NOCOUNT ON; + + DECLARE @InizioStato DATETIME, @IdxTipo INT, @MatricolaKanban NVARCHAR(50); + DECLARE @InizioStatoPrec DATETIME, @IdxTipoPrec INT, @MatricolaKanbanPrec NVARCHAR(50); + DECLARE @messaggio NVARCHAR(500); + + -- mostro conteggio eventi + SELECT count(*), DATEPART(DD,InizioStato) AS inizio FROM EventList + WHERE IdxMacchina=37 + GROUP BY DATEPART(DD,InizioStato) + + -- inizializzo valori precedenti + SET @InizioStatoPrec = (SELECT Top 1 InizioStato FROM EventList WHERE idxMacchina = @idxMacchina ORDER BY InizioStato ASC); + SET @IdxTipoPrec = (SELECT Top 1 IdxTipo FROM EventList WHERE idxMacchina = @idxMacchina ORDER BY InizioStato ASC); + SET @MatricolaKanbanPrec = (SELECT Top 1 MatricolaKanban FROM EventList WHERE idxMacchina = @idxMacchina ORDER BY InizioStato ASC); + + -- uso un cursore x percorrere i dati... + DECLARE eventiDuplicati CURSOR FOR + SELECT InizioStato, IdxTipo, MatricolaKanban + FROM EventList + WHERE IdxMacchina = @idxMacchina + ORDER BY InizioStato; + + OPEN eventiDuplicati; + + FETCH NEXT FROM eventiDuplicati + INTO @InizioStato, @IdxTipo,@MatricolaKanban; + + WHILE @@FETCH_STATUS = 0 + BEGIN + -- controllo: se uguali i valori ai precedenti elimino attuale... + IF((@InizioStato > @InizioStatoPrec) AND (@IdxTipo = @IdxTipoPrec) AND (@MatricolaKanban = @MatricolaKanbanPrec)) + BEGIN + SELECT @messaggio = '--> Old tipo: ' + CAST(@IdxTipoPrec AS NVARCHAR(50)) + ' - new: ' + CAST(@IdxTipo AS NVARCHAR(50)) + ' | old time: ' + CAST(@InizioStatoPrec AS NVARCHAR(250)) + ' - new: ' +CAST(@InizioStato AS NVARCHAR(250)) + ' | old kanban: ' + CAST(@MatricolaKanbanPrec AS NVARCHAR(250)) + ' - new: ' +CAST(@MatricolaKanban AS NVARCHAR(250)); + PRINT @messaggio; + -- elimino riga errata + DELETE FROM EventList + WHERE InizioStato=@InizioStato and IdxMacchina=@idxMacchina and IdxTipo=@IdxTipo and MatricolaKanban=@MatricolaKanban; + END + ELSE + BEGIN + SELECT @messaggio = 'Ok Old tipo: ' + CAST(@IdxTipoPrec AS NVARCHAR(50)) + ' - new: ' + CAST(@IdxTipo AS NVARCHAR(50)) + ' | old time: ' + CAST(@InizioStatoPrec AS NVARCHAR(250)) + ' - new: ' +CAST(@InizioStato AS NVARCHAR(250)) + ' | old kanban: ' + CAST(@MatricolaKanbanPrec AS NVARCHAR(250)) + ' - new: ' +CAST(@MatricolaKanban AS NVARCHAR(250)); + --PRINT @messaggio; + END + + + SET @InizioStatoPrec = @InizioStato; + SET @IdxTipoPrec = @IdxTipo; + SET @MatricolaKanbanPrec = @MatricolaKanban; + + -- Get the next values. + FETCH NEXT FROM eventiDuplicati + INTO @InizioStato, @IdxTipo, @MatricolaKanban; + END + CLOSE eventiDuplicati; + DEALLOCATE eventiDuplicati; + + -- mostro conteggio eventi + SELECT count(*), DATEPART(DD,InizioStato) AS inizio FROM EventList + WHERE IdxMacchina=37 + GROUP BY DATEPART(DD,InizioStato) + +END +go + +commit +go + + +set xact_abort on +go + +begin transaction +go + +set ANSI_NULLS on +go + +/************************************* +* STORED PROCEDURE stp_TC_getCodArticoliByMacchinaPeriodo +* recupera tempi ciclo x machcian e periodo +* +* modif.: S.E.L. - 2010.12.18 +**************************************/ +create PROCEDURE stp_TC_getCodArticoliByMacchinaPeriodo +( + @IdxMacchina NVARCHAR(50), + @Inizio DATETIME, + @Fine DATETIME +) +AS + +SELECT DISTINCT(CodArticolo) FROM TempiCicloRilevati +WHERE IdxMacchina = @IdxMacchina AND + (DataOraRif >= @Inizio) AND (DataOraRif <= @Fine) + + +RETURN +go + +commit +go + + +set xact_abort on +go + +begin transaction +go + +set ANSI_NULLS on +go + +/************************************* +* STORED PROCEDURE stp_TC_getByMacchinaPeriodoArticolo +* recupera tempi ciclo x macchina, articolo e periodo +* +* modif.: S.E.L. - 2010.12.18 +**************************************/ +create PROCEDURE stp_TC_getByMacchinaPeriodoArticolo +( + @IdxMacchina NVARCHAR(50), + @CodArticolo NVARCHAR(50), + @Inizio DATETIME, + @Fine DATETIME +) +AS + +SELECT * FROM TempiCicloRilevati +WHERE IdxMacchina = @IdxMacchina AND CodArticolo = @CodArticolo AND + (DataOraRif >= @Inizio) AND (DataOraRif <= @Fine) +ORDER BY DataOraRif + +RETURN +go + +commit +go + + + +alter table DatiMacchine add + constraint PK_DatiMacchine primary key(idxMacchina) +go + + + + + + +-- registro versione... +INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(230, GETDATE()) +GO diff --git a/MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_00235.sql b/MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_00235.sql new file mode 100644 index 00000000..85e72ef1 --- /dev/null +++ b/MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_00235.sql @@ -0,0 +1,129 @@ +set xact_abort on +go + +begin transaction +go + +set ANSI_NULLS on +go + +/************************************* +* STORED PROCEDURE stp_DDB_getDataFiltered +* ottiene i dati nel diario di bordo filtrati x macchina, periodo e durata +* +* modif.: S.E.L. - 2010.07.13 +**************************************/ +alter PROCEDURE stp_DDB_getDataFiltered +( + @IdxMacchina NVARCHAR(50), + @Inizio DATETIME, + @Fine DATETIME, + @durataMin FLOAT +) +AS + +-- controllo fine sia max uguale ad istante attuale +DECLARE @adesso DATETIME +SET @adesso = GETDATE() + +IF @fine > @adesso + BEGIN + SET @fine = @adesso + END + +SELECT IdxMacchina, InizioStato, ISNULL(FineStato, @Fine) AS FineStato, IdxStato, + ISNULL(DurataMinuti, DATEDIFF(s, InizioStato, @Fine)/60) AS DurataMinuti, Value, MatricolaKanban, KanbanCode, TempoCicloBase, + PzPalletProd, MatrOpr, pallet +FROM DiarioDiBordo +WHERE ((IdxMacchina = @IdxMacchina) AND (InizioStato >= @Inizio) AND (InizioStato <= @Fine)) OR + ((IdxMacchina = @IdxMacchina) AND (FineStato >= @Inizio) AND (FineStato <= @Fine)) +ORDER BY InizioStato DESC + +RETURN +go + +commit +go + + + +set xact_abort on +go + +begin transaction +go + +set ANSI_NULLS on +go + +/************************************* +* STORED PROCEDURE stp_DDB_getSequenza +* ottiene la serie in sequenza di dati x macchina-periodo con durata > 0 +* +* modif.: S.E.L. - 2010.07.14 +**************************************/ +alter PROCEDURE stp_DDB_getSequenza +( + @IdxMacchina NVARCHAR(50), + @Inizio DATETIME, + @Fine DATETIME +) +AS + + +SELECT IdxMacchina, InizioStato, ISNULL(FineStato, @Fine) AS FineStato, IdxStato, + ISNULL(DurataMinuti, DATEDIFF(n, InizioStato, @Fine)) AS DurataMinuti, Value, MatricolaKanban, KanbanCode, TempoCicloBase, + PzPalletProd, MatrOpr, pallet +FROM DiarioDiBordo +WHERE ((IdxMacchina = @IdxMacchina) AND (InizioStato >= @Inizio) AND (InizioStato <= @Fine)) OR + ((IdxMacchina = @IdxMacchina) AND (FineStato >= @Inizio) AND (FineStato <= @Fine)) +ORDER BY InizioStato + +RETURN +go + +commit +go + + +set xact_abort on +go + +begin transaction +go + +INSERT INTO dbo.Permessi + VALUES ('ADMIN_kanban', 'caricaUpdateKanban.aspx', 5, 3, 'UpdateKanban', 'UpdateKanbanExpl') +INSERT INTO dbo.Permessi + VALUES ('ADMIN_operatori', 'caricaUpdateOperatori.aspx', 5, 4, 'UpdateOperatori', 'UpdateOperatoriExpl') +UPDATE dbo.Permessi SET + URL='~/../MoonPro/MappaStato.aspx' + WHERE COD_PERMESSO='MAP' +go + +commit transaction +go + + +set xact_abort on +go + +begin transaction +go + +INSERT INTO dbo.Permessi2Funzione + VALUES ('ADMIN_kanban', N'MoonPro_admin', 'S') +INSERT INTO dbo.Permessi2Funzione + VALUES ('ADMIN_operatori', N'MoonPro_admin', 'S') +go + +commit transaction +go + + + + + +-- registro versione... +INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(235, GETDATE()) +GO diff --git a/MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_00236.sql b/MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_00236.sql new file mode 100644 index 00000000..cd4ea8a5 --- /dev/null +++ b/MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_00236.sql @@ -0,0 +1,55 @@ +set xact_abort on +go + +begin transaction +go + +set ANSI_NULLS on +go + +/************************************* +* STORED PROCEDURE stp_DDB_getDataFiltered +* ottiene i dati nel diario di bordo filtrati x macchina, periodo e durata +* +* modif.: S.E.L. - 2010.07.13 +**************************************/ +alter PROCEDURE stp_DDB_getDataFiltered +( + @IdxMacchina NVARCHAR(50), + @Inizio DATETIME, + @Fine DATETIME, + @durataMin FLOAT +) +AS + +-- controllo fine sia max uguale ad istante attuale +DECLARE @adesso DATETIME +SET @adesso = GETDATE() + +IF @fine > @adesso + BEGIN + SET @fine = @adesso + END + +SELECT IdxMacchina, InizioStato, ISNULL(FineStato, @Fine) AS FineStato, IdxStato, + ISNULL(DurataMinuti, DATEDIFF(s, InizioStato, @Fine)/60) AS DurataMinuti, Value, MatricolaKanban, KanbanCode, TempoCicloBase, + PzPalletProd, MatrOpr, pallet +FROM DiarioDiBordo +WHERE ((IdxMacchina = @IdxMacchina) AND (InizioStato >= @Inizio) AND (InizioStato <= @Fine)) OR + ((IdxMacchina = @IdxMacchina) AND (FineStato >= @Inizio) AND (FineStato <= @Fine)) +ORDER BY InizioStato DESC + +RETURN +go + +commit +go + + + + + + +-- registro versione... +INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(236, GETDATE()) +GO diff --git a/MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_00240.sql b/MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_00240.sql new file mode 100644 index 00000000..87ddf43c --- /dev/null +++ b/MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_00240.sql @@ -0,0 +1,124 @@ +-- ============================================= +-- Author: Samuele E. Locatelli +-- Create date: 2009-03-04 +-- mod date: 2010-07-14 +-- +-- Description: riallineamento con update massivo dati db +-- aggiorna i dati nel db per portarli ad essere "odierni" ovvero ultimo evento appena successo +-- ============================================= +ALTER PROCEDURE [dbo].[stp_ZZZ_riallineaDateDb] +AS + +DBCC SHOWCONTIG(EventList) +DBCC SHOWCONTIG(DiarioDiBordo) + +EXEC USP_DisableEnableNonClusteredIndexes 'MoonPro',null, 1 --disabilito indici + + +PRINT 'inizio UPDATE tabelle...' + +DECLARE @lastData AS DATETIME +DECLARE @diff_min as INT + +-- calcolo l'ultima data degli eventi +SET @lastData = (SELECT MAX(InizioStato) AS inizio FROM DiarioDiBordo )--WHERE IdxMacchina < 99) + +-- elimino gli eventi della macchina test DOPO @lastData... +DELETE FROM EventList WHERE IdxMacchina = 99 AND InizioStato > @lastData + +-- elimino da diario di bordo della macchina test DOPO @lastData... +DELETE FROM DiarioDiBordo WHERE IdxMacchina = 99 AND InizioStato > @lastData + +-- elimino da tempi ciclo teorici della macchina test DOPO @lastData... +DELETE FROM TempiCicloTeorici WHERE IdxMacchina = 99 AND DataOraFrom > @lastData + +-- elimino da tempi ciclo rilevati della macchina test DOPO @lastData... +DELETE FROM TempiCicloRilevati WHERE IdxMacchina = 99 AND DataOraRif > @lastData + +-- ora calcolo la differenza tra quello e la data/ora odierna +SET @diff_min = (SELECT DATEDIFF(n, @lastData, getdate())) + +-- aggiorno tabelle di conseguenza modificando le date + +-- aggiorno EventList +UPDATE EventList SET InizioStato = DATEADD(n, @diff_min, InizioStato) + +-- aggiorno DiarioDiBordo +UPDATE DiarioDiBordo SET InizioStato = DATEADD(n, @diff_min, InizioStato),FineStato = DATEADD(n, @diff_min, FineStato) + + +-- aggiorno StatoMacchine +UPDATE StatoMacchine SET InizioStato = DATEADD(n, @diff_min, InizioStato) + +-- aggiorno KeepAlive +UPDATE KeepAlive SET DataOraServer = DATEADD(n, @diff_min, DataOraServer), DataOraMacchina = DATEADD(n, @diff_min, DataOraMacchina), DataOraStart = DATEADD(n, @diff_min, DataOraStart) + +-- aggiorno TC teorici +UPDATE TempiCicloTeorici SET DataOraFrom = DATEADD(n, @diff_min, DataOraFrom), DataOraTo = DATEADD(n, @diff_min, DataOraTo) + +-- aggiorno TC rilevati +UPDATE TempiCicloRilevati SET DataOraRif = DATEADD(n, @diff_min, DataOraRif) + +-- aggiorno Dati confermati +UPDATE DatiConfermati SET DataOraApp = DATEADD(n, @diff_min, DataOraApp), DataRif = DATEADD(n, @diff_min, DataRif), DataOraFrom = DATEADD(n, @diff_min, DataOraFrom), DataOraTo = DATEADD(n, @diff_min, DataOraTo) + + +PRINT 'concluso UPDATE tabelle...' + + +DBCC SHOWCONTIG(EventList) +DBCC SHOWCONTIG(DiarioDiBordo) +EXEC USP_DisableEnableNonClusteredIndexes 'MoonPro',null, 2 --riattivo indici + + +--ricostruisco indici +PRINT 'ricostruisco indici...' +DBCC DBREINDEX(EventList) +DBCC DBREINDEX(DiarioDiBordo) +DBCC DBREINDEX(TransizioneIngressi) +DBCC DBREINDEX(Kanban2ins) +DBCC DBREINDEX(Kanban) +DBCC DBREINDEX(AnagraficaOperatori) +DBCC DBREINDEX(AnagraficaOperatori2ins) + +DBCC SHOWCONTIG(EventList) +DBCC SHOWCONTIG(DiarioDiBordo) + + --shrink del db +PRINT 'compatto DB...' +DBCC SHRINKDATABASE (MoonPro) + + +RETURN + + +/************************************* +* STORED PROCEDURE stp_DatiCOnf_getByMacchPeriodo +* +* recupera i dati confermati x una amcchina e periodo, ordinati in data DESC +* +* modif.: S.E.L. +* il: 2008.08.07 +**************************************/ +create PROCEDURE dbo.stp_DatiConf_getByMacchPeriodo +( + @idxMacchina NVARCHAR(50), + @dataFrom DATETIME, + @dataTo DATETIME +) +AS + +SELECT * +FROM DatiConfermati +WHERE IdxMacchina = @idxMacchina AND (DataRif >= @dataFrom AND DataRif <= @dataTo) +ORDER BY DataRif DESC + +RETURN + + + + + +-- registro versione... +INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(240, GETDATE()) +GO diff --git a/MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_00245.sql b/MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_00245.sql new file mode 100644 index 00000000..857faaee --- /dev/null +++ b/MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_00245.sql @@ -0,0 +1,538 @@ +set xact_abort on +go + +begin transaction +go + +set ANSI_NULLS on +go + +-- ============================================= +-- TRIGGER trg_kanban4articoloIns +-- +-- Author: S.E.L. +-- Create date: 2011.05.17 +-- Description: Controlla esistenza etichette kanban per l'articolo creato ed in caso sia necessario le crea +-- ============================================= +create TRIGGER trg_kanban4articoloIns + ON AnagArticoli + AFTER INSERT +AS +BEGIN + -- SET NOCOUNT ON added to prevent extra result sets from + -- interfering with SELECT statements. + SET NOCOUNT ON; + + -- seleziono il nuovo articolo... + DECLARE @kanbanTrovati INT + DECLARE @CodArticolo NVARCHAR(50) + + SET @CodArticolo = ( SELECT CodArticolo FROM inserted ) + -- ...e cerco se ci sia un kanban x tale articolo tabella + SET @kanbanTrovati = ( SELECT ISNULL(COUNT(*),0) FROM Kanban WHERE CodArticolo = @CodArticolo ) + + -- se non ne ho trovati creo articolo! + IF(@kanbanTrovati = 0) + BEGIN + -- inserisco nuovo articolo! + INSERT INTO Kanban(MatricolaKanban, KanbanCode, TempoCicloBase, PzPallet, CodArticolo) + VALUES ('KA'+@CodArticolo, @CodArticolo, 1, 1, @CodArticolo) + END + +END +go + +-- ============================================= +-- TRIGGER trg_kanban4articoloUpd +-- +-- Author: S.E.L. +-- Create date: 2011.05.17 +-- Description: Controlla esistenza etichette kanban per l'articolo modificato ed in caso sia necessario le modifica +-- ============================================= +create TRIGGER trg_kanban4articoloUpd + ON AnagArticoli + AFTER UPDATE +AS +BEGIN + -- SET NOCOUNT ON added to prevent extra result sets from + -- interfering with SELECT statements. + SET NOCOUNT ON; + + -- solo se è stato aggiornato codice articolo... + IF UPDATE(CodArticolo) + BEGIN + -- seleziono l'articolo... + DECLARE @kanbanTrovati INT + DECLARE @CodArticoloOld NVARCHAR(50) + DECLARE @CodArticoloNew NVARCHAR(50) + + SET @CodArticoloOld = ( SELECT CodArticolo FROM deleted ) + SET @CodArticoloNew = ( SELECT CodArticolo FROM inserted ) + -- ...e cerco se ci sia un kanban x tale articolo tabella + SET @kanbanTrovati = ( SELECT ISNULL(COUNT(*),0) FROM Kanban WHERE CodArticolo = @CodArticoloOld ) + + -- se non ne ho trovati creo articolo! + IF(@kanbanTrovati = 0) + BEGIN + -- inserisco nuovo articolo! + INSERT INTO Kanban(MatricolaKanban, KanbanCode, TempoCicloBase, PzPallet, CodArticolo) + VALUES ('KA'+@CodArticoloNew, @CodArticoloNew, 1, 1, @CodArticoloNew) + END + ELSE -- altrimenti aggiorno! + BEGIN + UPDATE Kanban + SET MatricolaKanban = 'KA'+@CodArticoloNew, + CodArticolo = @CodArticoloNew, + KanbanCode = @CodArticoloNew + WHERE CodArticolo = @CodArticoloOld + END + END +END +go + +commit +go + + +set xact_abort on +go + +begin transaction +go + +set ANSI_NULLS on +go + +create TRIGGER trg_updateKanban +ON EventList +FOR INSERT +AS /* dichiarazione variabili */ + DECLARE @IdxTipo INT + DECLARE @TabAzione NVARCHAR(50) + DECLARE @Azione NVARCHAR(50) + DECLARE @IdxMacchina NVARCHAR(50) + DECLARE @MatricolaKanban NVARCHAR(50) + DECLARE @MatricolaKanbanOk NVARCHAR(50) + DECLARE @CodArticolo NVARCHAR(50) + DECLARE @TCMedio DECIMAL(18,8) + DECLARE @DataOra DATETIME + DECLARE @DataOraPrec DATETIME + DECLARE @NumPz INT + + /* recupero valori dell'INSERT */ + SET @IdxTipo = ( SELECT i.IdxTipo FROM inserted i ) + SET @IdxMacchina = ( SELECT i.IdxMacchina FROM inserted i ) + /* recupero altri valori */ + SET @TabAzione = ( SELECT ISNULL(TabAzione,'') FROM AnagraficaEventi WHERE IdxTipo = @IdxTipo ) + SET @Azione = ( SELECT ISNULL(Azione,'') FROM AnagraficaEventi WHERE IdxTipo = @IdxTipo ) + /* controllo se l'evento richieda azioni successive */ + IF(@TabAzione <> '' AND @Azione <> '') + BEGIN + /* azioni richieste: seconda dei casi eseguo... */ + IF(@TabAzione = 'TempiCicloRilevati' AND @Azione = 'Insert') + BEGIN + /* calcolo valori */ + SET @DataOra = ( SELECT i.InizioStato FROM inserted i ) + SET @MatricolaKanban = ( SELECT i.MatricolaKanban FROM inserted i ) + SET @NumPz = ( SELECT CASE WHEN (ISNUMERIC(value)=1) THEN value ELSE 1 END FROM inserted i ) + SET @CodArticolo = ( SELECT CodArticolo FROM Kanban WHERE MatricolaKanban = @MatricolaKanban ) + /* calcolo tempo tra gli ultimi 2 eventi "contapezzi" */ + SET @DataOraPrec = ( SELECT ISNULL((SELECT Top 1 InizioStato FROM EventList WHERE IdxMacchina = @IdxMacchina AND IdxTipo = @IdxTipo AND InizioStato < @DataOra ORDER BY InizioStato DESC), @DataOra ) ) + /* è in millisecondi, divido per 60'000.00 x avere minuti centesimali*/ + SET @TCMedio = ( SELECT (DATEDIFF(ms, @DataOraPrec, @DataOra) / 60000.00 ) ) + /* inserisco riga di tempo ciclo */ + INSERT INTO TempiCicloRilevati + VALUES(@IdxMacchina, @CodArticolo, @DataOra, @TCMedio, @NumPz) + END + ELSE IF(@TabAzione = 'TempiCicloRilevati' AND @Azione = 'Stop2StartCiclo') + BEGIN + /* calcolo valori */ + SET @DataOra = ( SELECT i.InizioStato FROM inserted i ) + SET @MatricolaKanban = ( SELECT i.MatricolaKanban FROM inserted i ) + /* prendo la matricola dall'evento inizio (precedente) */ + SET @MatricolaKanbanOk = ( SELECT ISNULL((SELECT Top 1 MatricolaKanban FROM EventList WHERE IdxMacchina = @IdxMacchina AND IdxTipo = @IdxTipo - 1 AND InizioStato < @DataOra ORDER BY InizioStato DESC), @MatricolaKanban ) ) + + -- calcolare num pezzi da codice... + SET @NumPz = ( SELECT CASE WHEN (ISNUMERIC(value)=1) THEN value ELSE 1 END FROM inserted i ) + SET @CodArticolo = ( SELECT CodArticolo FROM Kanban WHERE MatricolaKanban = @MatricolaKanbanOk ) + /* calcolo tempo tra eventi "contapezzi" inizio - fine NB: idxEvento per fine è idxEvento inizio + 1 ... HARD CODED!!! */ + SET @DataOraPrec = ( SELECT ISNULL((SELECT Top 1 InizioStato FROM EventList WHERE IdxMacchina = @IdxMacchina AND IdxTipo = @IdxTipo - 1 AND InizioStato < @DataOra ORDER BY InizioStato DESC), @DataOra ) ) + /* è in millisecondi, divido per 60'000.00 x avere minuti centesimali*/ + SET @TCMedio = ( SELECT (DATEDIFF(ms, @DataOraPrec, @DataOra) / 60000.00 ) ) + /* inserisco riga di tempo ciclo */ + INSERT INTO TempiCicloRilevati + VALUES(@IdxMacchina, @CodArticolo, @DataOra, @TCMedio, @NumPz) + END + ELSE IF(@TabAzione = 'TempiCicloRilevati' AND @Azione = 'Stop2StopCiclo') + BEGIN + /* calcolo valori */ + SET @DataOra = ( SELECT i.InizioStato FROM inserted i ) + SET @MatricolaKanban = ( SELECT i.MatricolaKanban FROM inserted i ) + /* prendo la matricola dall'evento inizio (precedente) */ + SET @MatricolaKanbanOk = ( SELECT ISNULL((SELECT Top 1 MatricolaKanban FROM EventList WHERE IdxMacchina = @IdxMacchina AND IdxTipo = @IdxTipo AND InizioStato < @DataOra ORDER BY InizioStato DESC), @MatricolaKanban ) ) + + -- calcolare num pezzi da codice... + SET @NumPz = ( SELECT PzPallet FROM Kanban WHERE MatricolaKanban = @MatricolaKanbanOk ) + SET @CodArticolo = ( SELECT CodArticolo FROM Kanban WHERE MatricolaKanban = @MatricolaKanbanOk ) + /* calcolo tempo tra eventi "contapezzi" fine - fine NB: idxEvento per fine è idxEvento inizio + 1 ... HARD CODED!!! */ + SET @DataOraPrec = ( SELECT ISNULL((SELECT Top 1 InizioStato FROM EventList WHERE IdxMacchina = @IdxMacchina AND IdxTipo = @IdxTipo AND InizioStato < @DataOra ORDER BY InizioStato DESC), @DataOra ) ) + /* è in millisecondi, divido per 60'000.00 x avere minuti centesimali*/ + SET @TCMedio = ( SELECT (DATEDIFF(ms, @DataOraPrec, @DataOra) / 60000.00 ) ) + /* inserisco riga di tempo ciclo */ + INSERT INTO TempiCicloRilevati + VALUES(@IdxMacchina, @CodArticolo, @DataOra, @TCMedio, @NumPz) + END + END +go + +/*************************************************** +* Trigger trg_doActions +* +* processa eventuali azioni legate ad un inserimento evento +* +* modificato: S.E.L. +* 2011.05.18 +* +***************************************************/ +alter TRIGGER trg_doActions +ON EventList +FOR INSERT +AS /* dichiarazione variabili */ + DECLARE @IdxTipo INT + DECLARE @TabAzione NVARCHAR(50) + DECLARE @Azione NVARCHAR(50) + DECLARE @IdxMacchina NVARCHAR(50) + DECLARE @MatricolaKanban NVARCHAR(50) + DECLARE @MatricolaKanbanOk NVARCHAR(50) + DECLARE @CodArticolo NVARCHAR(50) + DECLARE @TCMedio DECIMAL(18,8) + DECLARE @DataOra DATETIME + DECLARE @DataOraPrec DATETIME + DECLARE @NumPz INT + + /* recupero valori dell'INSERT */ + SET @IdxTipo = ( SELECT i.IdxTipo FROM inserted i ) + SET @IdxMacchina = ( SELECT i.IdxMacchina FROM inserted i ) + /* recupero altri valori */ + SET @TabAzione = ( SELECT ISNULL(TabAzione,'') FROM AnagraficaEventi WHERE IdxTipo = @IdxTipo ) + SET @Azione = ( SELECT ISNULL(Azione,'') FROM AnagraficaEventi WHERE IdxTipo = @IdxTipo ) + /* controllo se l'evento richieda azioni successive */ + IF(@TabAzione <> '' AND @Azione <> '') + BEGIN + /* azioni richieste: seconda dei casi eseguo... */ + + /****************************************** + * + * Calcolo tempo ciclo per INIZIO + * + ******************************************/ + IF(@TabAzione = 'TempiCicloRilevati' AND @Azione = 'Insert') + BEGIN + /* calcolo valori */ + SET @DataOra = ( SELECT i.InizioStato FROM inserted i ) + SET @MatricolaKanban = ( SELECT i.MatricolaKanban FROM inserted i ) + SET @NumPz = ( SELECT CASE WHEN (ISNUMERIC(value)=1) THEN value ELSE 1 END FROM inserted i ) + SET @CodArticolo = ( SELECT CodArticolo FROM Kanban WHERE MatricolaKanban = @MatricolaKanban ) + /* calcolo tempo tra gli ultimi 2 eventi "contapezzi" */ + SET @DataOraPrec = ( SELECT ISNULL((SELECT Top 1 InizioStato FROM EventList WHERE IdxMacchina = @IdxMacchina AND IdxTipo = @IdxTipo AND InizioStato < @DataOra ORDER BY InizioStato DESC), @DataOra ) ) + /* è in millisecondi, divido per 60'000.00 x avere minuti centesimali*/ + SET @TCMedio = ( SELECT (DATEDIFF(ms, @DataOraPrec, @DataOra) / 60000.00 ) ) + /* inserisco riga di tempo ciclo */ + INSERT INTO TempiCicloRilevati + VALUES(@IdxMacchina, @CodArticolo, @DataOra, @TCMedio, @NumPz) + END + /****************************************** + * + * Calcolo tempo ciclo con logica stop/start + * + ******************************************/ + ELSE IF(@TabAzione = 'TempiCicloRilevati' AND @Azione = 'Stop2StartCiclo') + BEGIN + /* calcolo valori */ + SET @DataOra = ( SELECT i.InizioStato FROM inserted i ) + SET @MatricolaKanban = ( SELECT i.MatricolaKanban FROM inserted i ) + /* prendo la matricola dall'evento inizio (precedente) */ + SET @MatricolaKanbanOk = ( SELECT ISNULL((SELECT Top 1 MatricolaKanban FROM EventList WHERE IdxMacchina = @IdxMacchina AND IdxTipo = @IdxTipo - 1 AND InizioStato < @DataOra ORDER BY InizioStato DESC), @MatricolaKanban ) ) + + -- calcolare num pezzi da codice... + SET @NumPz = ( SELECT CASE WHEN (ISNUMERIC(value)=1) THEN value ELSE 1 END FROM inserted i ) + SET @CodArticolo = ( SELECT CodArticolo FROM Kanban WHERE MatricolaKanban = @MatricolaKanbanOk ) + /* calcolo tempo tra eventi "contapezzi" inizio - fine NB: idxEvento per fine è idxEvento inizio + 1 ... HARD CODED!!! */ + SET @DataOraPrec = ( SELECT ISNULL((SELECT Top 1 InizioStato FROM EventList WHERE IdxMacchina = @IdxMacchina AND IdxTipo = @IdxTipo - 1 AND InizioStato < @DataOra ORDER BY InizioStato DESC), @DataOra ) ) + /* è in millisecondi, divido per 60'000.00 x avere minuti centesimali*/ + SET @TCMedio = ( SELECT (DATEDIFF(ms, @DataOraPrec, @DataOra) / 60000.00 ) ) + /* inserisco riga di tempo ciclo */ + INSERT INTO TempiCicloRilevati + VALUES(@IdxMacchina, @CodArticolo, @DataOra, @TCMedio, @NumPz) + END + /****************************************** + * + * calcolo tempo ciclo con logica stop/stop + * + ******************************************/ + ELSE IF(@TabAzione = 'TempiCicloRilevati' AND @Azione = 'Stop2StopCiclo') + BEGIN + /* calcolo valori */ + SET @DataOra = ( SELECT i.InizioStato FROM inserted i ) + SET @MatricolaKanban = ( SELECT i.MatricolaKanban FROM inserted i ) + /* prendo la matricola dall'evento inizio (precedente) */ + SET @MatricolaKanbanOk = ( SELECT ISNULL((SELECT Top 1 MatricolaKanban FROM EventList WHERE IdxMacchina = @IdxMacchina AND IdxTipo = @IdxTipo AND InizioStato < @DataOra ORDER BY InizioStato DESC), @MatricolaKanban ) ) + + -- calcolare num pezzi da codice... + SET @NumPz = ( SELECT PzPallet FROM Kanban WHERE MatricolaKanban = @MatricolaKanbanOk ) + SET @CodArticolo = ( SELECT CodArticolo FROM Kanban WHERE MatricolaKanban = @MatricolaKanbanOk ) + /* calcolo tempo tra eventi "contapezzi" fine - fine NB: idxEvento per fine è idxEvento inizio + 1 ... HARD CODED!!! */ + SET @DataOraPrec = ( SELECT ISNULL((SELECT Top 1 InizioStato FROM EventList WHERE IdxMacchina = @IdxMacchina AND IdxTipo = @IdxTipo AND InizioStato < @DataOra ORDER BY InizioStato DESC), @DataOra ) ) + /* è in millisecondi, divido per 60'000.00 x avere minuti centesimali*/ + SET @TCMedio = ( SELECT (DATEDIFF(ms, @DataOraPrec, @DataOra) / 60000.00 ) ) + /* inserisco riga di tempo ciclo */ + INSERT INTO TempiCicloRilevati + VALUES(@IdxMacchina, @CodArticolo, @DataOra, @TCMedio, @NumPz) + END + /****************************************** + * + * Aggiorno kanban in dati macchine per + * INIZIO ATTREZZAGGIO + * + ******************************************/ + ELSE IF(@TabAzione = 'DatiMacchine' AND @Azione = 'Inizio') + BEGIN + /* calcolo valori */ + SET @MatricolaKanban = ( SELECT i.MatricolaKanban FROM inserted i ) + /* aggiorno riga di dati macchina */ + UPDATE DatiMacchine + SET kanban_A = @MatricolaKanban, + kanban_B = @MatricolaKanban + WHERE idxMacchina = @IdxMacchina + /* aggiorno stato macchina */ + UPDATE StatoMacchine + SET MatricolaKanban = @MatricolaKanban + WHERE idxMacchina = @IdxMacchina + /* aggiorno dati kanban statoMacchine... */ + UPDATE StatoMacchine + SET KanbanCode = k.KanbanCode, TempoCicloBase = k.TempoCicloBase, PzPalletProd = k.PzPallet + FROM Kanban AS k INNER JOIN StatoMacchine ON k.MatricolaKanban = StatoMacchine.MatricolaKanban + WHERE (StatoMacchine.idxMacchina = @IdxMacchina) + END + /****************************************** + * + * Aggiorno kanban in dati macchine per + * FINE PRODUZIONE + * + ******************************************/ + ELSE IF(@TabAzione = 'DatiMacchine' AND @Azione = 'Fine') + BEGIN + /* calcolo valori */ + SET @MatricolaKanban = 'KAND' -- kanban non definito !!!HARD CODED!!! + /* aggiorno riga di dati macchina */ + UPDATE DatiMacchine + SET kanban_A = @MatricolaKanban, + kanban_B = @MatricolaKanban + WHERE idxMacchina = @IdxMacchina + /* aggiorno stato macchina */ + UPDATE StatoMacchine + SET MatricolaKanban = @MatricolaKanban + WHERE idxMacchina = @IdxMacchina + /* aggiorno dati kanban statoMacchine... */ + UPDATE StatoMacchine + SET KanbanCode = k.KanbanCode, TempoCicloBase = k.TempoCicloBase, PzPalletProd = k.PzPallet + FROM Kanban AS k INNER JOIN StatoMacchine ON k.MatricolaKanban = StatoMacchine.MatricolaKanban + WHERE (StatoMacchine.idxMacchina = @IdxMacchina) + + END + END +go + +commit +go + +set xact_abort on +go + +begin transaction +go + +set ANSI_NULLS on +go + +/************************************* +* Function f_turnoByDate +* calcola il turno in cui cade una data +* +* modif.: S.E.L. +* il: 2011.03.30 +**************************************/ +create FUNCTION f_oreNdPeriodo +( + @dataFrom DATETIME, + @dataTo DATETIME +) +RETURNS DECIMAL(18,8) +AS + BEGIN + /* + per farlo va reinserito codice come GIM in questo modo... + - tempo totale iniziale c'è... + A) va tolto tempo dell'apertura std + B) vanno tolte le fermate tipo ferie, chiusure...x la loro durata std + + + */ + + RETURN 0.0 + END +go + +commit +go + + +set xact_abort on +go + +begin transaction +go + +set ANSI_NULLS on +go + +/************************************* +* STORED PROCEDURE stp_DP_ricalcolaTempi +* +* calcola i tempi +* - T_AutoRun (lavorazione in auto) +* - T_Auto (in auto sia lavora che non lavora) +* - T_fermo (tempo fermata) +* - T_ND (tempo ND) +* +* dato una riga di dichairazione produzione (prendendo come riferimento i tempi from/to) +* +* modif.: S.E.L. - 2011.04.18 +**************************************/ +alter PROCEDURE stp_DP_ricalcolaTempi +( + @idxConferma INT +) +AS + +BEGIN TRAN + -- dichiaro variabili + DECLARE @DataFrom AS DATETIME + DECLARE @DataTo AS DATETIME + DECLARE @IdxMacchina AS NVARCHAR(50) + + -- variabili tempo + DECLARE @TempoCron DECIMAL(18,8) + DECLARE @TempoND DECIMAL(18,8) + DECLARE @TempoApertura DECIMAL(18,8) + DECLARE @TempoOFF DECIMAL(18,8) + DECLARE @TempoON DECIMAL(18,8) + DECLARE @TempoFermoON DECIMAL(18,8) + DECLARE @TempoAuto DECIMAL(18,8) + DECLARE @TempoFermoAuto DECIMAL(18,8) + DECLARE @TempoRun DECIMAL(18,8) + + -- setto date + SET @DataFrom = ( SELECT DataOraFrom FROM DatiConfermati WHERE IdxConferma = @idxConferma ) + SET @DataTo = ( SELECT DataOraTo FROM DatiConfermati WHERE IdxConferma = @idxConferma ) + SET @IdxMacchina = ( SELECT IdxMacchina FROM DatiConfermati WHERE IdxConferma = @idxConferma ) + + -- calcolo i tempi + SET @TempoCron = ( SELECT CAST(ISNULL(DATEDIFF (n, @DataFrom, @DataTo), 0) AS DECIMAL(18,8)) / 60) + SET @TempoND = dbo.f_oreNdPeriodo(@DataFrom, @DataTo)-- 0 -- FARE!!! (SELECT DATEDIFF (n, DataOraFrom, DataOraTo) / 60 FROM DatiConfermati WHERE IdxConferma = @idxConferma ) + + + + SET @TempoApertura = @TempoCron - @TempoND + SET @TempoOFF = ( SELECT CAST(ISNULL(SUM(ddb.DurataMinuti),0) AS DECIMAL(18,8)) / 60 AS ore FROM DiarioDiBordo ddb + INNER JOIN AnagraficaStati a ON ddb.IdxStato = a.IdxStato + WHERE (a.ClasseTempo = 'T_OFF') + AND (ddb.IdxMacchina = @IdxMacchina) + AND (ddb.InizioStato >= @DataFrom) + AND (ddb.FineStato <= @DataTo) )-- sistemare eventuali eventi sui bordi inizio/fine + SET @TempoON = @TempoApertura - @TempoOFF + SET @TempoFermoON = ( SELECT CAST(ISNULL(SUM(ddb.DurataMinuti),0) AS DECIMAL(18,8)) / 60 AS ore FROM DiarioDiBordo ddb + INNER JOIN AnagraficaStati a ON ddb.IdxStato = a.IdxStato + WHERE (a.ClasseTempo = 'T_FermoOn') + AND (ddb.IdxMacchina = @IdxMacchina) + AND (ddb.InizioStato >= @DataFrom) + AND (ddb.FineStato <= @DataTo) )-- sistemare eventuali eventi sui bordi inizio/fine + SET @TempoAuto = @TempoON - @TempoFermoON + /* -- lo derivo x riportare eventuali "resti" ed errori riclassifica + SET @TempoFermoAuto = (SELECT SUM(ddb.DurataMinuti) / 60 AS ore FROM DiarioDiBordo ddb INNER JOIN AnagraficaStati a ON ddb.IdxStato = a.IdxStato + WHERE (a.ClasseTempo = 'T_FermoAuto') + AND (ddb.IdxMacchina = @IdxMacchina) + AND (ddb.InizioStato >= @DataFrom) + AND (ddb.FineStato <= @DataTo) )-- sistemare eventuali eventi sui bordi inizio/fine + */ + SET @TempoRun = ( SELECT CAST(ISNULL(SUM(ddb.DurataMinuti),0) AS DECIMAL(18,8)) / 60 AS ore FROM DiarioDiBordo ddb + INNER JOIN AnagraficaStati a ON ddb.IdxStato = a.IdxStato + WHERE (a.ClasseTempo = 'T_Run') + AND (ddb.IdxMacchina = @IdxMacchina) + AND (ddb.InizioStato >= @DataFrom) + AND (ddb.FineStato <= @DataTo) )-- sistemare eventuali eventi sui bordi inizio/fine + SET @TempoFermoAuto = @TempoAuto - @TempoRun + + -- aggiorno record + UPDATE DatiConfermati + SET TempoCron = @TempoCron, + TempoND = @TempoND, + TempoApertura = @TempoApertura, + TempoOFF = @TempoOFF, + TempoON = @TempoON, + TempoFermoON = @TempoFermoON, + TempoAuto = @TempoAuto, + TempoFermoAuto = @TempoFermoAuto, + TempoRun = @TempoRun + WHERE idxConferma = @idxConferma + +COMMIT TRAN + +RETURN +go + +commit +go + + +set xact_abort on +go + +begin transaction +go + +UPDATE dbo.AnagraficaEventi SET + TabAzione=N'DatiMacchine', Azione=N'Inizio' + WHERE IdxTipo=2 +UPDATE dbo.AnagraficaEventi SET + TabAzione=N'DatiMacchine', Azione=N'Fine' + WHERE IdxTipo=7 +go + +commit transaction +go + + +set xact_abort on +go + +begin transaction +go + +INSERT INTO dbo.Kanban + VALUES (N'KAND', N'ND', 1, 1, N'ND') +go + +commit transaction +go + + + + + + + + +-- registro versione... +INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(245, GETDATE()) +GO diff --git a/MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_00300.sql b/MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_00300.sql new file mode 100644 index 00000000..e9aeadf8 --- /dev/null +++ b/MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_00300.sql @@ -0,0 +1,1313 @@ +create table CalendApertura( + NumGG int not null constraint PK_CalendApertura primary key, + T1 int not null, + T2 int not null, + T3 int not null, + oraInizio int, + oraFine int +) +go + + +set xact_abort on +go + +begin transaction +go + +INSERT INTO dbo.CalendApertura + VALUES (1, 8, 8, 8, 0, 24) +INSERT INTO dbo.CalendApertura + VALUES (2, 8, 8, 8, 0, 24) +INSERT INTO dbo.CalendApertura + VALUES (3, 8, 8, 8, 0, 24) +INSERT INTO dbo.CalendApertura + VALUES (4, 8, 8, 8, 0, 24) +INSERT INTO dbo.CalendApertura + VALUES (5, 8, 8, 8, 0, 24) +INSERT INTO dbo.CalendApertura + VALUES (6, 8, 0, 0, 0, 14) +INSERT INTO dbo.CalendApertura + VALUES (7, 0, 0, 8, 22, 24) +go + +commit transaction +go + + +set xact_abort on +go + +begin transaction +go + +create table DatiProduzione( + IdxConferma int not null identity constraint PK_DatiProduzione primary key, + IdxODL int not null, + DataOraApp datetime not null, + DataRif datetime not null, + TurnoRif int, + CodArticolo nvarchar(50), + IdxMacchina nvarchar(50) not null, + TCAssegnato decimal(18,8), + MatrOpr int, + MatrApp int not null, + DataOraFrom datetime, + DataOraTo datetime, + TotPzProd int, + Tempo decimal(18,8), + ClasseTempo nvarchar(50) +) +go + +exec sp_addextendedproperty 'MS_Description', 'matricola dell''operatore che ha lavorato sulla macchina', 'SCHEMA', 'dbo', 'TABLE', 'DatiProduzione', 'COLUMN', 'MatrOpr' +go + +exec sp_addextendedproperty 'MS_Description', 'matricola dell''approvatore del record', 'SCHEMA', 'dbo', 'TABLE', 'DatiProduzione', 'COLUMN', 'MatrApp' +go + +exec sp_addextendedproperty 'MS_Description', 'pezzi prodotti in ciclo', 'SCHEMA', 'dbo', 'TABLE', 'DatiProduzione', 'COLUMN', 'TotPzProd' +go + +exec sp_addextendedproperty 'MS_Description', 'TCAssegnato x num pezzi prodotti', 'SCHEMA', 'dbo', 'TABLE', 'DatiProduzione', 'COLUMN', 'Tempo' +go + +commit +go + + +set xact_abort on +go + +begin transaction +go + +set ANSI_NULLS on +go + +/************************************* +* STORED PROCEDURE stp_DatiConf_conferma +* conferma la produzione per la macchina indicata +* +* modif.: S.E.L. +* il: 2011.03.30 +**************************************/ +alter PROCEDURE stp_DatiConf_conferma +( + @idxODL INT, + @idxMacchina NVARCHAR(50), + @MatrApp INT, + @dataFrom DATETIME, + @dataTo DATETIME, + @turno INT, + @idxStato INT, + @pezziConf INT +) +AS + +BEGIN TRAN + + -- calcolo valori + DECLARE @CodArticolo NVARCHAR(50) + SET @CodArticolo = ISNULL((SELECT ISNULL(CodArticolo,'') FROM ODL WHERE IdxODL = @idxODL), '') + DECLARE @TCAss DECIMAL(18,8) + SET @TCAss = ISNULL((SELECT ISNULL(TCAssegnato, 1) FROM ODL WHERE IdxODL = @idxODL), 1) + -- versione semplificata: approva tutto x data e turno INIZIALE del periodo indicato + INSERT INTO DatiConfermati(IdxODL, DataOraApp, DataRif, TurnoRif, CodArticolo, IdxMacchina, TCAssegnato, MatrOpr, MatrApp, DataOraFrom, DataOraTo, IdxStato, TotPzProd, TempoProdotto) + VALUES (@idxODL, GETDATE(), @dataFrom, @turno, @CodArticolo, @idxMacchina, @TCAss, @MatrApp, @MatrApp, @dataFrom, @dataTo, @idxStato, @pezziConf, @pezziConf*@TCAss) + +COMMIT TRAN + +RETURN +go + +commit +go + + +set xact_abort on +go + +begin transaction +go + +set ANSI_NULLS on +go + +/************************************* +* STORED PROCEDURE stp_DatiProd_insAllPeriodo +* calcola il tempo da diario di bordo x una macchina dato periodo e inserisce in tabella dati prod INSIEME ai pezzi prodotti +* +* modif.: S.E.L. +* il: 2011.06.06 +**************************************/ +create PROCEDURE stp_DatiProd_insAllPeriodo +( + @IdxMacchina NVARCHAR(50), + @dataFrom DATETIME, + @dataTo DATETIME, + @dataRif DATETIME, + @turnoRif INT, + @MatrApp INT +) +AS + +BEGIN TRAN + -- calcolo i pz prod da confermare per l'intero periodo + DECLARE @pzProd AS INT + SET @pzProd = ( SELECT ISNULL(SUM(PzProd),0) + FROM TempiCicloRilevati + WHERE IdxMacchina = @idxMacchina + AND DataOraRif BETWEEN @dataFrom AND @dataTo ) + + -- calcolo l'ODL, l'articolo ed il TCiclo... + DECLARE @idxODL INT + SET @idxODL = ( SELECT ISNULL(IdxODL, 0) FROM ODL WHERE (@dataFrom BETWEEN DataInizio AND ISNULL(DataFine, DATEADD(d, 1, GETDATE()))) AND NOT (DataInizio IS NULL) ) + + DECLARE @CodArticolo NVARCHAR(50) + SET @CodArticolo = ISNULL((SELECT ISNULL(CodArticolo,'') FROM ODL WHERE IdxODL = @idxODL), '') + + DECLARE @TCAss DECIMAL(18,8) + SET @TCAss = ISNULL((SELECT ISNULL(TCAssegnato, 1) FROM ODL WHERE IdxODL = @idxODL), 1) + + -- dichiaro le ore che calcolo man mano... + DECLARE @totOre DECIMAL(18,8) + DECLARE @ClasseTempo NVARCHAR(50) + + -- variabili x ricerca gg festivi o aperture/chiusure ND programmate + DECLARE @chiusura INT + DECLARE @apertura INT + DECLARE @ggSett INT + -- verifico se sia giorno di chiusura, in tal caso carico 8 h in T_OFF_ND + SET @chiusura = ( SELECT COUNT(*) FROM CalendFesteFerie WHERE data = @dataRif ) + -- verifico che da apertura sia un periodo valido e non di fermo programmato + IF(@chiusura = 0) + BEGIN + -- controllo a seconda della data e turno a che gg di settimana e turno corrisponde... + SET DATEFIRST 1; -- setto al lunedì inizio settimana + SET @ggSett = DATEPART(dw, @dataFrom ) -- calcolo giorno + SET @apertura = ( SELECT CASE @turnoRif WHEN 1 THEN T1 WHEN 2 THEN T2 ELSE T3 END FROM CalendApertura WHERE NumGG = @ggSett ) -- cerco ore apertura... + SET @chiusura = ( SELECT CASE @apertura WHEN 8 THEN 0 ELSE 1 END ) -- e se sia turno valido (8h) o vuoto (0h) nel qual caso chiusura > 0 + END + -- se c'è chiusura per turno singolo o per giorno intero... + IF(@chiusura > 0) + BEGIN + SET @ClasseTempo = 'T_OFF_ND' + SET @totOre = 8 + INSERT INTO DatiProduzione(IdxODL, DataOraApp, DataRif, TurnoRif, CodArticolo, IdxMacchina, TCAssegnato, MatrOpr, MatrApp, + DataOraFrom, DataOraTo, TotPzProd, Tempo, ClasseTempo) + VALUES (@idxODL, GETDATE(), @dataRif, @turnoRif, @CodArticolo, @IdxMacchina, @TCAss, @MatrApp, @MatrApp, + @dataFrom, @dataTo, @pzProd, @totOre, @ClasseTempo) + END + ELSE -- normale dichiarazione + BEGIN + -- inserisco i dati di SOLO tempo prodotto e pz prodotti + SET @ClasseTempo = 'T_AutoRun' + SET @totOre = dbo.f_calcolaTempoClasse_ByInterv(@IdxMacchina, @dataFrom, @dataTo, @ClasseTempo) + IF(@totOre > 0) + BEGIN + INSERT INTO DatiProduzione(IdxODL, DataOraApp, DataRif, TurnoRif, CodArticolo, IdxMacchina, TCAssegnato, MatrOpr, MatrApp, + DataOraFrom, DataOraTo, TotPzProd, Tempo, ClasseTempo) + VALUES (@idxODL, GETDATE(), @dataRif, @turnoRif, @CodArticolo, @IdxMacchina, @TCAss, @MatrApp, @MatrApp, + @dataFrom, @dataTo, @pzProd, @totOre, @ClasseTempo) + END + + -- inserisco gli altri tempi, pezzi prod ZERO!!! + SET @ClasseTempo = 'T_Microfermo' + SET @totOre = dbo.f_calcolaTempoClasse_ByInterv(@IdxMacchina, @dataFrom, @dataTo, @ClasseTempo) + IF(@totOre > 0) + BEGIN + INSERT INTO DatiProduzione(IdxODL, DataOraApp, DataRif, TurnoRif, CodArticolo, IdxMacchina, TCAssegnato, MatrOpr, MatrApp, + DataOraFrom, DataOraTo, TotPzProd, Tempo, ClasseTempo) + VALUES (@idxODL, GETDATE(), @dataRif, @turnoRif, @CodArticolo, @IdxMacchina, @TCAss, @MatrApp, @MatrApp, + @dataFrom, @dataTo, 0, @totOre, @ClasseTempo) + END + + SET @ClasseTempo = 'T_FermoGiallo' + SET @totOre = dbo.f_calcolaTempoClasse_ByInterv(@IdxMacchina, @dataFrom, @dataTo, @ClasseTempo) + IF(@totOre > 0) + BEGIN + INSERT INTO DatiProduzione(IdxODL, DataOraApp, DataRif, TurnoRif, CodArticolo, IdxMacchina, TCAssegnato, MatrOpr, MatrApp, + DataOraFrom, DataOraTo, TotPzProd, Tempo, ClasseTempo) + VALUES (@idxODL, GETDATE(), @dataRif, @turnoRif, @CodArticolo, @IdxMacchina, @TCAss, @MatrApp, @MatrApp, + @dataFrom, @dataTo, 0, @totOre, @ClasseTempo) + END + + SET @ClasseTempo = 'T_FermoRosso' + SET @totOre = dbo.f_calcolaTempoClasse_ByInterv(@IdxMacchina, @dataFrom, @dataTo, @ClasseTempo) + IF(@totOre > 0) + BEGIN + INSERT INTO DatiProduzione(IdxODL, DataOraApp, DataRif, TurnoRif, CodArticolo, IdxMacchina, TCAssegnato, MatrOpr, MatrApp, + DataOraFrom, DataOraTo, TotPzProd, Tempo, ClasseTempo) + VALUES (@idxODL, GETDATE(), @dataRif, @turnoRif, @CodArticolo, @IdxMacchina, @TCAss, @MatrApp, @MatrApp, + @dataFrom, @dataTo, 0, @totOre, @ClasseTempo) + END + + SET @ClasseTempo = 'T_OFF' + SET @totOre = dbo.f_calcolaTempoClasse_ByInterv(@IdxMacchina, @dataFrom, @dataTo, @ClasseTempo) + IF(@totOre > 0) + BEGIN + INSERT INTO DatiProduzione(IdxODL, DataOraApp, DataRif, TurnoRif, CodArticolo, IdxMacchina, TCAssegnato, MatrOpr, MatrApp, + DataOraFrom, DataOraTo, TotPzProd, Tempo, ClasseTempo) + VALUES (@idxODL, GETDATE(), @dataRif, @turnoRif, @CodArticolo, @IdxMacchina, @TCAss, @MatrApp, @MatrApp, + @dataFrom, @dataTo, 0, @totOre, @ClasseTempo) + END + END + +COMMIT TRAN +RETURN +go + +/************************************* +* STORED PROCEDURE stp_DatiProd_insert +* dichiara i dati x la machcina indicata x tab DatiProduzione +* +* modif.: S.E.L. +* il: 2011.06.06 +**************************************/ +create PROCEDURE stp_DatiProd_insert +( + @idxODL INT, + @idxMacchina NVARCHAR(50), + @MatrApp INT, + @dataFrom DATETIME, + @dataTo DATETIME, + @turno INT, + @pezziConf INT, + @Tempo DECIMAL(18,8), + @ClasseTempo NVARCHAR(50) +) +AS + +BEGIN TRAN + -- calcolo variabili + DECLARE @CodArticolo NVARCHAR(50) + SET @CodArticolo = ISNULL((SELECT ISNULL(CodArticolo,'') FROM ODL WHERE IdxODL = @idxODL), '') + DECLARE @TCAss DECIMAL(18,8) + SET @TCAss = ISNULL((SELECT ISNULL(TCAssegnato, 1) FROM ODL WHERE IdxODL = @idxODL), 1) + -- versione semplificata: approva tutto x data e turno INIZIALE del periodo indicato + INSERT INTO DatiProduzione(IdxODL, DataOraApp, DataRif, TurnoRif, CodArticolo, IdxMacchina, TCAssegnato, MatrOpr, MatrApp, DataOraFrom, DataOraTo, TotPzProd, Tempo, ClasseTempo) + VALUES (@idxODL, GETDATE(), @dataFrom, @turno, @CodArticolo, @idxMacchina, @TCAss, @MatrApp, @MatrApp, @dataFrom, @dataTo, @pezziConf, @Tempo, @ClasseTempo) + +COMMIT TRAN + +RETURN +go + +commit +go + +set xact_abort on +go + +begin transaction +go + +set ANSI_NULLS on +go + +/************************************* +* Function f_calcolaTempoClasse_ByInterv +* calcola il totale del tempo di una classe fermata per un intervallo date +* +* modif.: S.E.L. +* il: 2011.06.07 +**************************************/ +create FUNCTION f_calcolaTempoClasse_ByInterv +( + @IdxMacchina NVARCHAR(50), + @dataFrom DATETIME, + @dataTo DATETIME, + @classeTempo NVARCHAR(50) +) +RETURNS DECIMAL(18,8) +AS + BEGIN + -- dichiaro out + DECLARE @totOre AS DECIMAL(18,8) + DECLARE @incl AS DECIMAL(18,8) + DECLARE @start AS DECIMAL(18,8) + DECLARE @end AS DECIMAL(18,8) + DECLARE @full AS DECIMAL(18,8) + + -- inizio calcolando il tempo degli eventi totalmente inclusi nell'intervallo + SET @incl = (SELECT CAST(ISNULL(SUM(ddb.DurataMinuti),0) AS DECIMAL(18,8)) / 60 AS Tempo + FROM DiarioDiBordo ddb INNER JOIN AnagraficaStati a ON ddb.IdxStato = a.IdxStato + WHERE (ddb.IdxMacchina = @IdxMacchina) + AND (ddb.InizioStato BETWEEN @dataFrom AND @dataTo) + AND (ddb.FineStato BETWEEN @dataFrom AND @dataTo) + AND a.ClasseTempo = @classeTempo) + + -- ora sommo gli eventi sui bordi: inizio... + SET @start = (SELECT CAST(ISNULL(DATEDIFF(n, @dataFrom, CASE WHEN ddb.FineStato < @dataTo THEN ddb.FineStato ELSE @dataTo END) ,0) AS DECIMAL(18,8)) / 60 AS Tempo + FROM DiarioDiBordo ddb INNER JOIN AnagraficaStati a ON ddb.IdxStato = a.IdxStato + WHERE (ddb.IdxMacchina = @IdxMacchina) + AND (ddb.InizioStato < @dataFrom) + AND (ddb.FineStato BETWEEN @dataFrom AND @dataTo) + AND a.ClasseTempo = @classeTempo) + + -- ...e fine... + SET @end = (SELECT CAST(ISNULL(DATEDIFF(n, CASE WHEN ddb.InizioStato < @dataFrom THEN @dataFrom ELSE ddb.InizioStato END, @dataTo) ,0) AS DECIMAL(18,8)) / 60 AS Tempo + FROM DiarioDiBordo ddb INNER JOIN AnagraficaStati a ON ddb.IdxStato = a.IdxStato + WHERE (ddb.IdxMacchina = @IdxMacchina) + AND (ddb.InizioStato BETWEEN @dataFrom AND @dataTo) + AND (ddb.FineStato > @dataTo) + AND a.ClasseTempo = @classeTempo) + + -- ...e pure eventi totalmente overlapping... + SET @full = (SELECT CAST(ISNULL(DATEDIFF(n, @dataFrom, @dataTo) ,0) AS DECIMAL(18,8)) / 60 AS Tempo + FROM DiarioDiBordo ddb INNER JOIN AnagraficaStati a ON ddb.IdxStato = a.IdxStato + WHERE (ddb.IdxMacchina = @IdxMacchina) + AND (ddb.InizioStato < @dataFrom) + AND (ddb.FineStato > @dataTo) + AND a.ClasseTempo = @classeTempo) + + -- sommo! + SET @totOre = (ISNULL(@incl,0) + ISNULL(@start,0) + ISNULL(@end,0) + ISNULL(@full,0)) + + RETURN @totOre + + END +go + +commit +go + + +set xact_abort on +go + +begin transaction +go + +set ANSI_NULLS on +go + +/************************************* +* STORED PROCEDURE stp_PzProd_getByMacchinaPeriodo +* recupera per la macchina indicata i pezzi prodotti nel periodo +* +* modif.: S.E.L. +* il: 2011.06.06 +**************************************/ +create PROCEDURE stp_PzProd_getByMacchinaPeriodo +( + @idxMacchina NVARCHAR(50), + @startProd DATETIME, + @endProd DATETIME +) +AS + +BEGIN TRAN + + SELECT @idxMacchina as idxMacchina, ISNULL(SUM(PzProd),0) as pezziNonConfermati, @startProd AS DataFrom, @endProd AS DataTo + FROM TempiCicloRilevati + WHERE IdxMacchina = @idxMacchina + AND DataOraRif BETWEEN @startProd AND @endProd + +COMMIT TRAN + +RETURN +go + +/************************************* +* STORED PROCEDURE stp_TempoByIdxMaccPeriodClass +* calcola il tempo da diario di bordo x una macchian dato periodo e tipo classe stati +* +* modif.: S.E.L. +* il: 2011.06.06 +**************************************/ +create PROCEDURE stp_TempoByIdxMaccPeriodClass +( + @IdxMacchina NVARCHAR(50), + @DataFrom DATETIME, + @DataTo DATETIME, + @ClasseTempo NVARCHAR(50) +) +AS + + + SELECT CAST(ISNULL(SUM(ddb.DurataMinuti),0) AS DECIMAL(18,8)) / 60 AS ore FROM DiarioDiBordo ddb + INNER JOIN AnagraficaStati a ON ddb.IdxStato = a.IdxStato + WHERE (a.ClasseTempo = @ClasseTempo) + AND (ddb.IdxMacchina = @IdxMacchina) + AND (ddb.InizioStato >= @DataFrom) + AND (ddb.FineStato <= @DataTo) + +RETURN +go + +commit +go + + +set xact_abort on +go + +begin transaction +go + +UPDATE dbo.AnagraficaStati SET + ClasseTempo=N'T_Microfermo' + WHERE IdxStato=1 +UPDATE dbo.AnagraficaStati SET + ClasseTempo=N'T_FermoGiallo' + WHERE IdxStato=2 +UPDATE dbo.AnagraficaStati SET + ClasseTempo=N'T_FermoGiallo' + WHERE IdxStato=3 +UPDATE dbo.AnagraficaStati SET + ClasseTempo=N'T_FermoRosso' + WHERE IdxStato=4 +UPDATE dbo.AnagraficaStati SET + ClasseTempo=N'T_FermoRosso' + WHERE IdxStato=5 +UPDATE dbo.AnagraficaStati SET + ClasseTempo=N'T_Microfermo' + WHERE IdxStato=6 +UPDATE dbo.AnagraficaStati SET + ClasseTempo=N'T_FermoRosso' + WHERE IdxStato=7 +UPDATE dbo.AnagraficaStati SET + ClasseTempo=N'T_FermoRosso' + WHERE IdxStato=8 +UPDATE dbo.AnagraficaStati SET + ClasseTempo=N'T_FermoRosso' + WHERE IdxStato=9 +UPDATE dbo.AnagraficaStati SET + ClasseTempo=N'T_FermoGiallo' + WHERE IdxStato=10 +UPDATE dbo.AnagraficaStati SET + ClasseTempo=N'T_Microfermo' + WHERE IdxStato=12 +UPDATE dbo.AnagraficaStati SET + ClasseTempo=N'T_FermoRosso' + WHERE IdxStato=15 +UPDATE dbo.AnagraficaStati SET + ClasseTempo=N'T_FermoRosso' + WHERE IdxStato=23 +UPDATE dbo.AnagraficaStati SET + ClasseTempo=N'T_FermoGiallo' + WHERE IdxStato=24 +UPDATE dbo.AnagraficaStati SET + ClasseTempo=N'T_FermoGiallo' + WHERE IdxStato=25 +INSERT INTO dbo.AnagraficaStati + VALUES (26, N'Non Disponibile', N'S', 1, N'T_OFF_ND') +go + +commit transaction +go + + +set xact_abort on +go + +begin transaction +go + +INSERT INTO dbo.AnagClassiTempo + VALUES (N'T_Microfermo', N'Microfermate') +INSERT INTO dbo.AnagClassiTempo + VALUES (N'T_OFF', N'Macchina spenta') +INSERT INTO dbo.AnagClassiTempo + VALUES (N'T_OFF_ND', N'Macchina in tempo Non Disponibile') +INSERT INTO dbo.AnagClassiTempo + VALUES (N'T_FermoGiallo', N'Macchina in Automatico, ferma per attrezzaggi o fermi a ciclo') +INSERT INTO dbo.AnagClassiTempo + VALUES (N'T_FermoRosso', N'Macchina Ferma in RUN') +go + +commit transaction +go + + +set xact_abort on +go + +begin transaction +go + +DELETE FROM dbo.AnagClassiTempo WHERE ClasseTempo=N'T_Auto' +DELETE FROM dbo.AnagClassiTempo WHERE ClasseTempo=N'T_Fermo' +DELETE FROM dbo.AnagClassiTempo WHERE ClasseTempo=N'T_ND' +go + +commit transaction +go + + +set xact_abort on +go + +begin transaction +go + +INSERT INTO dbo.CalendFesteFerie + VALUES ('2011-04-25 00:00:00.000', N'festa della liberazione') +INSERT INTO dbo.CalendFesteFerie + VALUES ('2011-05-01 00:00:00.000', N'festa dei lavoratori') +INSERT INTO dbo.CalendFesteFerie + VALUES ('2011-06-02 00:00:00.000', N'festa della repubblica') +go + +commit transaction +go + + +set xact_abort on +go + +begin transaction +go + +set ANSI_NULLS on +go + +/************************************* +* Function f_calcolaTempoStato_ByInterv +* calcola il totale del tempo di uno stato per un intervallo date +* +* modif.: S.E.L. +* il: 2011.06.23 +**************************************/ +create FUNCTION f_calcolaTempoStato_ByInterv +( + @IdxMacchina NVARCHAR(50), + @dataFrom DATETIME, + @dataTo DATETIME, + @IdxStato INT +) +RETURNS DECIMAL(18,8) +AS + BEGIN + -- dichiaro out + DECLARE @totOre AS DECIMAL(18,8) + DECLARE @incl AS DECIMAL(18,8) + DECLARE @start AS DECIMAL(18,8) + DECLARE @end AS DECIMAL(18,8) + DECLARE @full AS DECIMAL(18,8) + + -- inizio calcolando il tempo degli eventi totalmente inclusi nell'intervallo + SET @incl = (SELECT CAST(ISNULL(SUM(ddb.DurataMinuti),0) AS DECIMAL(18,8)) / 60 AS Tempo + FROM DiarioDiBordo ddb + WHERE (ddb.IdxMacchina = @IdxMacchina) + AND (ddb.InizioStato BETWEEN @dataFrom AND @dataTo) + AND (ddb.FineStato BETWEEN @dataFrom AND @dataTo) + AND IdxStato = @IdxStato) + + -- ora sommo gli eventi sui bordi: inizio... + SET @start = (SELECT CAST(ISNULL(DATEDIFF(n, @dataFrom, CASE WHEN ddb.FineStato < @dataTo THEN ddb.FineStato ELSE @dataTo END) ,0) AS DECIMAL(18,8)) / 60 AS Tempo + FROM DiarioDiBordo ddb + WHERE (ddb.IdxMacchina = @IdxMacchina) + AND (ddb.InizioStato < @dataFrom) + AND (ddb.FineStato BETWEEN @dataFrom AND @dataTo) + AND IdxStato = @IdxStato) + + -- ...e fine... + SET @end = (SELECT CAST(ISNULL(DATEDIFF(n, CASE WHEN ddb.InizioStato < @dataFrom THEN @dataFrom ELSE ddb.InizioStato END, @dataTo) ,0) AS DECIMAL(18,8)) / 60 AS Tempo + FROM DiarioDiBordo ddb + WHERE (ddb.IdxMacchina = @IdxMacchina) + AND (ddb.InizioStato BETWEEN @dataFrom AND @dataTo) + AND (ddb.FineStato > @dataTo) + AND IdxStato = @IdxStato) + + -- ...e pure eventi totalmente overlapping... + SET @full = (SELECT CAST(ISNULL(DATEDIFF(n, @dataFrom, @dataTo) ,0) AS DECIMAL(18,8)) / 60 AS Tempo + FROM DiarioDiBordo ddb + WHERE (ddb.IdxMacchina = @IdxMacchina) + AND (ddb.InizioStato < @dataFrom) + AND (ddb.FineStato > @dataTo) + AND IdxStato = @IdxStato) + + + -- sommo! + SET @totOre = (ISNULL(@incl,0) + ISNULL(@start,0) + ISNULL(@end,0) + ISNULL(@full,0)) + + RETURN @totOre + + END +go + +commit +go + + + + +set xact_abort on +go + +begin transaction +go + +alter table DatiProduzione add + Causale nvarchar(50) +go + +set ANSI_NULLS on +go + +/************************************* +* STORED PROCEDURE stp_DatiProd_insAllPeriodo +* calcola il tempo da diario di bordo x una macchina dato periodo e inserisce in tabella dati prod INSIEME ai pezzi prodotti +* +* modif.: S.E.L. +* il: 2011.06.06 +**************************************/ +alter PROCEDURE stp_DatiProd_insAllPeriodo +( + @IdxMacchina NVARCHAR(50), + @dataFrom DATETIME, + @dataTo DATETIME, + @dataRif DATETIME, + @turnoRif INT, + @MatrApp INT +) +AS + +BEGIN TRAN + -- calcolo i pz prod da confermare per l'intero periodo + DECLARE @pzProd AS INT + SET @pzProd = ( SELECT ISNULL(SUM(PzProd),0) + FROM TempiCicloRilevati + WHERE IdxMacchina = @idxMacchina + AND DataOraRif BETWEEN @dataFrom AND @dataTo ) + + -- calcolo l'ODL, l'articolo ed il TCiclo... + DECLARE @idxODL INT + SET @idxODL = ( SELECT ISNULL(IdxODL, 0) FROM ODL WHERE (@dataFrom BETWEEN DataInizio AND ISNULL(DataFine, DATEADD(d, 1, GETDATE()))) AND NOT (DataInizio IS NULL) ) + + DECLARE @CodArticolo NVARCHAR(50) + SET @CodArticolo = ISNULL((SELECT ISNULL(CodArticolo,'') FROM ODL WHERE IdxODL = @idxODL), '') + + DECLARE @TCAss DECIMAL(18,8) + SET @TCAss = ISNULL((SELECT ISNULL(TCAssegnato, 1) FROM ODL WHERE IdxODL = @idxODL), 1) + + -- dichiaro le ore che calcolo man mano... + DECLARE @totOre DECIMAL(18,8) + DECLARE @ClasseTempo NVARCHAR(50) + + -- variabili x ricerca gg festivi o aperture/chiusure ND programmate + DECLARE @chiusura INT + DECLARE @apertura INT + DECLARE @ggSett INT + -- verifico se sia giorno di chiusura, in tal caso carico 8 h in T_OFF_ND + SET @chiusura = ( SELECT COUNT(*) FROM CalendFesteFerie WHERE data = @dataRif ) + -- verifico che da apertura sia un periodo valido e non di fermo programmato + IF(@chiusura = 0) + BEGIN + -- controllo a seconda della data e turno a che gg di settimana e turno corrisponde... + SET DATEFIRST 1; -- setto al lunedì inizio settimana + SET @ggSett = DATEPART(dw, @dataFrom ) -- calcolo giorno + SET @apertura = ( SELECT CASE @turnoRif WHEN 1 THEN T1 WHEN 2 THEN T2 ELSE T3 END FROM CalendApertura WHERE NumGG = @ggSett ) -- cerco ore apertura... + SET @chiusura = ( SELECT CASE @apertura WHEN 8 THEN 0 ELSE 1 END ) -- e se sia turno valido (8h) o vuoto (0h) nel qual caso chiusura > 0 + END + -- se c'è chiusura per turno singolo o per giorno intero... + IF(@chiusura > 0) + BEGIN + SET @ClasseTempo = 'T_OFF_ND' + SET @totOre = 8 + INSERT INTO DatiProduzione(IdxODL, DataOraApp, DataRif, TurnoRif, CodArticolo, IdxMacchina, TCAssegnato, MatrOpr, MatrApp, + DataOraFrom, DataOraTo, TotPzProd, Tempo, ClasseTempo, Causale) + VALUES (@idxODL, GETDATE(), @dataRif, @turnoRif, @CodArticolo, @IdxMacchina, @TCAss, @MatrApp, @MatrApp, + @dataFrom, @dataTo, @pzProd, @totOre, @ClasseTempo, @ClasseTempo) + END + ELSE -- normale dichiarazione + BEGIN + -- inserisco i dati di SOLO tempo prodotto e pz prodotti + SET @ClasseTempo = 'T_AutoRun' + SET @totOre = dbo.f_calcolaTempoClasse_ByInterv(@IdxMacchina, @dataFrom, @dataTo, @ClasseTempo) + IF(@totOre > 0) + BEGIN + INSERT INTO DatiProduzione(IdxODL, DataOraApp, DataRif, TurnoRif, CodArticolo, IdxMacchina, TCAssegnato, MatrOpr, MatrApp, + DataOraFrom, DataOraTo, TotPzProd, Tempo, ClasseTempo, Causale) + VALUES (@idxODL, GETDATE(), @dataRif, @turnoRif, @CodArticolo, @IdxMacchina, @TCAss, @MatrApp, @MatrApp, + @dataFrom, @dataTo, @pzProd, @totOre, @ClasseTempo, @ClasseTempo) + END + + -- inserisco gli altri tempi, pezzi prod ZERO!!! + SET @ClasseTempo = 'T_Microfermo' + SET @totOre = dbo.f_calcolaTempoClasse_ByInterv(@IdxMacchina, @dataFrom, @dataTo, @ClasseTempo) + IF(@totOre > 0) + BEGIN + -- scrivo tutti gli eventi della classe + EXEC stp_DatiProd_insClasseTempo @IdxMacchina, @dataFrom, @dataTo, @dataRif, @turnoRif, @MatrApp, @idxODL, @CodArticolo, @TCAss, @ClasseTempo + END + + SET @ClasseTempo = 'T_FermoGiallo' + SET @totOre = dbo.f_calcolaTempoClasse_ByInterv(@IdxMacchina, @dataFrom, @dataTo, @ClasseTempo) + IF(@totOre > 0) + BEGIN + -- scrivo tutti gli eventi della classe + EXEC stp_DatiProd_insClasseTempo @IdxMacchina, @dataFrom, @dataTo, @dataRif, @turnoRif, @MatrApp, @idxODL, @CodArticolo, @TCAss, @ClasseTempo + END + + SET @ClasseTempo = 'T_FermoRosso' + SET @totOre = dbo.f_calcolaTempoClasse_ByInterv(@IdxMacchina, @dataFrom, @dataTo, @ClasseTempo) + IF(@totOre > 0) + BEGIN + -- scrivo tutti gli eventi della classe + EXEC stp_DatiProd_insClasseTempo @IdxMacchina, @dataFrom, @dataTo, @dataRif, @turnoRif, @MatrApp, @idxODL, @CodArticolo, @TCAss, @ClasseTempo + END + + SET @ClasseTempo = 'T_OFF' + SET @totOre = dbo.f_calcolaTempoClasse_ByInterv(@IdxMacchina, @dataFrom, @dataTo, @ClasseTempo) + IF(@totOre > 0) + BEGIN + -- scrivo tutti gli eventi della classe + EXEC stp_DatiProd_insClasseTempo @IdxMacchina, @dataFrom, @dataTo, @dataRif, @turnoRif, @MatrApp, @idxODL, @CodArticolo, @TCAss, @ClasseTempo + END + END + +COMMIT TRAN +RETURN +go + +/************************************* +* STORED PROCEDURE stp_DatiProd_insert +* dichiara i dati x la machcina indicata x tab DatiProduzione +* +* modif.: S.E.L. +* il: 2011.06.06 +**************************************/ +alter PROCEDURE stp_DatiProd_insert +( + @idxODL INT, + @idxMacchina NVARCHAR(50), + @MatrApp INT, + @dataFrom DATETIME, + @dataTo DATETIME, + @turno INT, + @pezziConf INT, + @Tempo DECIMAL(18,8), + @ClasseTempo NVARCHAR(50) +) +AS + +BEGIN TRAN + -- calcolo variabili + DECLARE @CodArticolo NVARCHAR(50) + SET @CodArticolo = ISNULL((SELECT ISNULL(CodArticolo,'') FROM ODL WHERE IdxODL = @idxODL), '') + DECLARE @TCAss DECIMAL(18,8) + SET @TCAss = ISNULL((SELECT ISNULL(TCAssegnato, 1) FROM ODL WHERE IdxODL = @idxODL), 1) + -- versione semplificata: approva tutto x data e turno INIZIALE del periodo indicato + INSERT INTO DatiProduzione(IdxODL, DataOraApp, DataRif, TurnoRif, CodArticolo, IdxMacchina, TCAssegnato, MatrOpr, MatrApp, DataOraFrom, DataOraTo, TotPzProd, Tempo, ClasseTempo, Causale) + VALUES (@idxODL, GETDATE(), @dataFrom, @turno, @CodArticolo, @idxMacchina, @TCAss, @MatrApp, @MatrApp, @dataFrom, @dataTo, @pezziConf, @Tempo, @ClasseTempo, @ClasseTempo) + +COMMIT TRAN + +RETURN +go + +/************************************* +* STORED PROCEDURE stp_DatiProd_insClasseTempo +* inserisce i tempi di tutte le SIONGOLE causali rilevate per un intervallo di tempo ed una data classe tempo +* +* modif.: S.E.L. +* il: 2011.06.23 +**************************************/ +create PROCEDURE stp_DatiProd_insClasseTempo +( + @IdxMacchina NVARCHAR(50), + @dataFrom DATETIME, + @dataTo DATETIME, + @dataRif DATETIME, + @turnoRif INT, + @MatrApp INT, + @idxODL INT, + @CodArticolo NVARCHAR(50), + @TCAss DECIMAL(18,8), + @ClasseTempo NVARCHAR(50) +) +AS + +-- creo tab elenco delle fermate raggruppate x classe tempo +WITH cte_stati AS( +SELECT DISTINCT ddb.IdxStato, Descrizione as Causale +FROM DiarioDiBordo AS ddb INNER JOIN AnagraficaStati AS a ON ddb.IdxStato = a.IdxStato +WHERE (ddb.InizioStato BETWEEN @dataFrom AND @dataTo) AND (a.ClasseTempo = @classeTempo) AND (IdxMacchina = @IdxMacchina) +) + +--...e lo inserisco! +INSERT INTO DatiProduzione(IdxODL, DataOraApp, DataRif, TurnoRif, CodArticolo, IdxMacchina, TCAssegnato, MatrOpr, MatrApp, DataOraFrom, + DataOraTo, TotPzProd, Tempo, ClasseTempo, Causale) + ( + SELECT @idxODL, GETDATE(), @dataRif, @turnoRif, @CodArticolo, @IdxMacchina, @TCAss, @MatrApp, @MatrApp, @dataFrom, + @dataTo, 0, dbo.f_calcolaTempoStato_ByInterv(@IdxMacchina,@dataFrom, @dataTo, IdxStato), @ClasseTempo, Causale + FROM cte_stati + ) + + +RETURN +go + +commit +go + + +set xact_abort on +go + +begin transaction +go + +alter table AnagraficaStati add + ShowArticolo bit +go + +set ANSI_NULLS on +go + +/************************************* +* STORED PROCEDURE stp_DatiProd_insClasseTempo +* inserisce i tempi di tutte le SIONGOLE causali rilevate per un intervallo di tempo ed una data classe tempo +* +* modif.: S.E.L. +* il: 2011.06.23 +**************************************/ +alter PROCEDURE stp_DatiProd_insClasseTempo +( + @IdxMacchina NVARCHAR(50), + @dataFrom DATETIME, + @dataTo DATETIME, + @dataRif DATETIME, + @turnoRif INT, + @MatrApp INT, + @idxODL INT, + @CodArticolo NVARCHAR(50), + @TCAss DECIMAL(18,8), + @ClasseTempo NVARCHAR(50) +) +AS + +-- creo tab elenco delle fermate raggruppate x classe tempo +WITH cte_stati AS( +SELECT DISTINCT ddb.IdxStato, Descrizione as Causale, a.ShowArticolo +FROM DiarioDiBordo AS ddb INNER JOIN AnagraficaStati AS a ON ddb.IdxStato = a.IdxStato +WHERE (ddb.InizioStato BETWEEN @dataFrom AND @dataTo) AND (a.ClasseTempo = @classeTempo) AND (IdxMacchina = @IdxMacchina) +) + +--...e lo inserisco! +INSERT INTO DatiProduzione(IdxODL, DataOraApp, DataRif, TurnoRif, CodArticolo, IdxMacchina, TCAssegnato, MatrOpr, MatrApp, DataOraFrom, + DataOraTo, TotPzProd, Tempo, ClasseTempo, Causale) + ( + SELECT @idxODL, GETDATE(), @dataRif, @turnoRif, CASE ShowArticolo WHEN 1 THEN @CodArticolo ELSE '' END AS CodArticolo, @IdxMacchina, @TCAss, @MatrApp, @MatrApp, @dataFrom, + @dataTo, 0, dbo.f_calcolaTempoStato_ByInterv(@IdxMacchina,@dataFrom, @dataTo, IdxStato), @ClasseTempo, Causale + FROM cte_stati + ) + + +RETURN +go + +commit +go + + +set xact_abort on +go + +begin transaction +go + +UPDATE dbo.AnagraficaStati SET + ShowArticolo=0 + WHERE IdxStato=1 +UPDATE dbo.AnagraficaStati SET + ShowArticolo=1 + WHERE IdxStato=2 +UPDATE dbo.AnagraficaStati SET + ShowArticolo=1 + WHERE IdxStato=3 +UPDATE dbo.AnagraficaStati SET + ShowArticolo=0 + WHERE IdxStato=4 +UPDATE dbo.AnagraficaStati SET + ShowArticolo=0 + WHERE IdxStato=5 +UPDATE dbo.AnagraficaStati SET + ShowArticolo=1 + WHERE IdxStato=6 +UPDATE dbo.AnagraficaStati SET + ShowArticolo=0 + WHERE IdxStato=7 +UPDATE dbo.AnagraficaStati SET + ShowArticolo=0 + WHERE IdxStato=8 +UPDATE dbo.AnagraficaStati SET + ShowArticolo=0 + WHERE IdxStato=9 +UPDATE dbo.AnagraficaStati SET + ShowArticolo=1 + WHERE IdxStato=10 +UPDATE dbo.AnagraficaStati SET + ShowArticolo=0 + WHERE IdxStato=11 +UPDATE dbo.AnagraficaStati SET + ShowArticolo=1 + WHERE IdxStato=12 +UPDATE dbo.AnagraficaStati SET + ShowArticolo=1 + WHERE IdxStato=13 +UPDATE dbo.AnagraficaStati SET + ShowArticolo=1 + WHERE IdxStato=14 +UPDATE dbo.AnagraficaStati SET + ShowArticolo=0 + WHERE IdxStato=15 +UPDATE dbo.AnagraficaStati SET + ShowArticolo=0 + WHERE IdxStato=23 +UPDATE dbo.AnagraficaStati SET + ShowArticolo=1 + WHERE IdxStato=24 +UPDATE dbo.AnagraficaStati SET + ShowArticolo=1 + WHERE IdxStato=25 +UPDATE dbo.AnagraficaStati SET + ShowArticolo=0 + WHERE IdxStato=26 +go + +commit transaction +go + + + + +set xact_abort on +go + +begin transaction +go + +set ANSI_NULLS on +go + +/************************************* +* STORED PROCEDURE stp_DatiProd_insClasseTempo +* inserisce i tempi di tutte le SIONGOLE causali rilevate per un intervallo di tempo ed una data classe tempo +* +* modif.: S.E.L. +* il: 2011.06.23 +**************************************/ +alter PROCEDURE stp_DatiProd_insClasseTempo +( + @IdxMacchina NVARCHAR(50), + @dataFrom DATETIME, + @dataTo DATETIME, + @dataRif DATETIME, + @turnoRif INT, + @MatrApp INT, + @idxODL INT, + @CodArticolo NVARCHAR(50), + @TCAss DECIMAL(18,8), + @ClasseTempo NVARCHAR(50) +) +AS + +-- creo tab elenco delle fermate raggruppate x classe tempo +WITH cte_stati AS( +SELECT DISTINCT ddb.IdxStato, Descrizione as Causale, a.ShowArticolo +FROM DiarioDiBordo AS ddb INNER JOIN AnagraficaStati AS a ON ddb.IdxStato = a.IdxStato +WHERE (ddb.InizioStato BETWEEN @dataFrom AND @dataTo) AND (a.ClasseTempo = @classeTempo) AND (IdxMacchina = @IdxMacchina) +) + +--...e lo inserisco! +INSERT INTO DatiProduzione(IdxODL, DataOraApp, DataRif, TurnoRif, CodArticolo, IdxMacchina, TCAssegnato, MatrOpr, MatrApp, DataOraFrom, + DataOraTo, TotPzProd, Tempo, ClasseTempo, Causale) + ( + SELECT @idxODL, GETDATE(), @dataRif, @turnoRif, CASE ShowArticolo WHEN 1 THEN @CodArticolo ELSE '' END AS CodArticolo, @IdxMacchina, @TCAss, @MatrApp, @MatrApp, @dataFrom, + @dataTo, 0, dbo.f_calcolaTempoStato_ByInterv(@IdxMacchina,@dataFrom, @dataTo, IdxStato), @ClasseTempo, Causale + FROM cte_stati + ) + + +RETURN +go + +commit +go + + + + +set xact_abort on +go + +begin transaction +go + +set ANSI_NULLS on +go + +/************************************* +* STORED PROCEDURE stp_DatiProd_insClasseTempo +* inserisce i tempi di tutte le SIONGOLE causali rilevate per un intervallo di tempo ed una data classe tempo +* +* modif.: S.E.L. +* il: 2011.06.23 +**************************************/ +alter PROCEDURE stp_DatiProd_insClasseTempo +( + @IdxMacchina NVARCHAR(50), + @dataFrom DATETIME, + @dataTo DATETIME, + @dataRif DATETIME, + @turnoRif INT, + @MatrApp INT, + @idxODL INT, + @CodArticolo NVARCHAR(50), + @TCAss DECIMAL(18,8), + @ClasseTempo NVARCHAR(50) +) +AS + +-- creo tab elenco delle fermate raggruppate x classe tempo +WITH cte_stati AS( +SELECT DISTINCT ddb.IdxStato, Descrizione as Causale, a.ShowArticolo +FROM DiarioDiBordo AS ddb INNER JOIN AnagraficaStati AS a ON ddb.IdxStato = a.IdxStato +WHERE (ddb.InizioStato BETWEEN @dataFrom AND @dataTo) AND (a.ClasseTempo = @classeTempo) AND (IdxMacchina = @IdxMacchina) +) + +--...e lo inserisco! +INSERT INTO DatiProduzione(IdxODL, DataOraApp, DataRif, TurnoRif, CodArticolo, IdxMacchina, TCAssegnato, MatrOpr, MatrApp, DataOraFrom, + DataOraTo, TotPzProd, Tempo, ClasseTempo, Causale) + ( + SELECT @idxODL, GETDATE(), @dataRif, @turnoRif, CASE ShowArticolo WHEN 1 THEN @CodArticolo ELSE '' END AS CodArticolo, @IdxMacchina, CASE ShowArticolo WHEN 1 THEN @TCAss ELSE 0 END AS TCAss, @MatrApp, @MatrApp, @dataFrom, + @dataTo, 0, dbo.f_calcolaTempoStato_ByInterv(@IdxMacchina,@dataFrom, @dataTo, IdxStato), @ClasseTempo, Causale + FROM cte_stati + ) + + +RETURN +go + +commit +go + + +set xact_abort on +go + +begin transaction +go + +set ANSI_NULLS on +go + +/************************************* +* STORED PROCEDURE stp_DatiProd_insAllPeriodo +* calcola il tempo da diario di bordo x una macchina dato periodo e inserisce in tabella dati prod INSIEME ai pezzi prodotti +* +* modif.: S.E.L. +* il: 2011.06.06 +**************************************/ +alter PROCEDURE stp_DatiProd_insAllPeriodo +( + @IdxMacchina NVARCHAR(50), + @dataFrom DATETIME, + @dataTo DATETIME, + @dataRif DATETIME, + @turnoRif INT, + @MatrApp INT +) +AS + +BEGIN TRAN + -- calcolo i pz prod da confermare per l'intero periodo + DECLARE @pzProd AS INT + SET @pzProd = ( SELECT ISNULL(SUM(PzProd),0) + FROM TempiCicloRilevati + WHERE IdxMacchina = @idxMacchina + AND DataOraRif BETWEEN @dataFrom AND @dataTo ) + + -- calcolo l'ODL, l'articolo ed il TCiclo... + DECLARE @idxODL INT + SET @idxODL = ( SELECT ISNULL(IdxODL, 0) FROM ODL WHERE (@dataFrom BETWEEN DataInizio AND ISNULL(DataFine, DATEADD(d, 1, GETDATE()))) AND NOT (DataInizio IS NULL) ) + + DECLARE @CodArticolo NVARCHAR(50) + SET @CodArticolo = ISNULL((SELECT ISNULL(CodArticolo,'') FROM ODL WHERE IdxODL = @idxODL), '') + + DECLARE @TCAss DECIMAL(18,8) + SET @TCAss = ISNULL((SELECT ISNULL(TCAssegnato, 1) FROM ODL WHERE IdxODL = @idxODL), 1) + + -- dichiaro le ore che calcolo man mano... + DECLARE @totOre DECIMAL(18,8) + DECLARE @ClasseTempo NVARCHAR(50) + + -- variabili x ricerca gg festivi o aperture/chiusure ND programmate + DECLARE @chiusura INT + DECLARE @apertura INT + DECLARE @ggSett INT + -- verifico se sia giorno di chiusura, in tal caso carico 8 h in T_OFF_ND + SET @chiusura = ( SELECT COUNT(*) FROM CalendFesteFerie WHERE data = @dataRif ) + -- verifico che da apertura sia un periodo valido e non di fermo programmato + IF(@chiusura = 0) + BEGIN + -- controllo a seconda della data e turno a che gg di settimana e turno corrisponde... + SET DATEFIRST 1; -- setto al lunedì inizio settimana + SET @ggSett = DATEPART(dw, @dataFrom ) -- calcolo giorno + SET @apertura = ( SELECT CASE @turnoRif WHEN 1 THEN T1 WHEN 2 THEN T2 ELSE T3 END FROM CalendApertura WHERE NumGG = @ggSett ) -- cerco ore apertura... + SET @chiusura = ( SELECT CASE @apertura WHEN 8 THEN 0 ELSE 1 END ) -- e se sia turno valido (8h) o vuoto (0h) nel qual caso chiusura > 0 + END + -- se c'è chiusura per turno singolo o per giorno intero... + IF(@chiusura > 0) + BEGIN + SET @ClasseTempo = 'T_OFF_ND' + SET @totOre = 8 + INSERT INTO DatiProduzione(IdxODL, DataOraApp, DataRif, TurnoRif, CodArticolo, IdxMacchina, TCAssegnato, MatrOpr, MatrApp, + DataOraFrom, DataOraTo, TotPzProd, Tempo, ClasseTempo, Causale) + VALUES (@idxODL, GETDATE(), @dataRif, @turnoRif, '', @IdxMacchina, 0, @MatrApp, @MatrApp, -- non metto ne tempo ne cod articolo... + @dataFrom, @dataTo, @pzProd, @totOre, @ClasseTempo, @ClasseTempo) + END + ELSE -- normale dichiarazione + BEGIN + -- inserisco i dati di SOLO tempo prodotto e pz prodotti + SET @ClasseTempo = 'T_AutoRun' + SET @totOre = dbo.f_calcolaTempoClasse_ByInterv(@IdxMacchina, @dataFrom, @dataTo, @ClasseTempo) + IF(@totOre > 0) + BEGIN + INSERT INTO DatiProduzione(IdxODL, DataOraApp, DataRif, TurnoRif, CodArticolo, IdxMacchina, TCAssegnato, MatrOpr, MatrApp, + DataOraFrom, DataOraTo, TotPzProd, Tempo, ClasseTempo, Causale) + VALUES (@idxODL, GETDATE(), @dataRif, @turnoRif, @CodArticolo, @IdxMacchina, @TCAss, @MatrApp, @MatrApp, + @dataFrom, @dataTo, @pzProd, @totOre, @ClasseTempo, @ClasseTempo) + END + + -- inserisco gli altri tempi, pezzi prod ZERO!!! + SET @ClasseTempo = 'T_Microfermo' + SET @totOre = dbo.f_calcolaTempoClasse_ByInterv(@IdxMacchina, @dataFrom, @dataTo, @ClasseTempo) + IF(@totOre > 0) + BEGIN + -- scrivo tutti gli eventi della classe + EXEC stp_DatiProd_insClasseTempo @IdxMacchina, @dataFrom, @dataTo, @dataRif, @turnoRif, @MatrApp, @idxODL, @CodArticolo, @TCAss, @ClasseTempo + END + + SET @ClasseTempo = 'T_FermoGiallo' + SET @totOre = dbo.f_calcolaTempoClasse_ByInterv(@IdxMacchina, @dataFrom, @dataTo, @ClasseTempo) + IF(@totOre > 0) + BEGIN + -- scrivo tutti gli eventi della classe + EXEC stp_DatiProd_insClasseTempo @IdxMacchina, @dataFrom, @dataTo, @dataRif, @turnoRif, @MatrApp, @idxODL, @CodArticolo, @TCAss, @ClasseTempo + END + + SET @ClasseTempo = 'T_FermoRosso' + SET @totOre = dbo.f_calcolaTempoClasse_ByInterv(@IdxMacchina, @dataFrom, @dataTo, @ClasseTempo) + IF(@totOre > 0) + BEGIN + -- scrivo tutti gli eventi della classe + EXEC stp_DatiProd_insClasseTempo @IdxMacchina, @dataFrom, @dataTo, @dataRif, @turnoRif, @MatrApp, @idxODL, @CodArticolo, @TCAss, @ClasseTempo + END + + SET @ClasseTempo = 'T_OFF' + SET @totOre = dbo.f_calcolaTempoClasse_ByInterv(@IdxMacchina, @dataFrom, @dataTo, @ClasseTempo) + IF(@totOre > 0) + BEGIN + -- scrivo tutti gli eventi della classe + EXEC stp_DatiProd_insClasseTempo @IdxMacchina, @dataFrom, @dataTo, @dataRif, @turnoRif, @MatrApp, @idxODL, @CodArticolo, @TCAss, @ClasseTempo + END + END + +COMMIT TRAN +RETURN +go + +commit +go + + + +set xact_abort on +go + +begin transaction +go + +set ANSI_NULLS on +go + +/************************************* +* STORED PROCEDURE stp_DatiConf_getByPeriodo +* +* recupera i dati confermati x un periodo, ordinati in data DESC +* +* modif.: S.E.L. +* il: 2011.07.04 +**************************************/ +create PROCEDURE stp_DatiConf_getByPeriodo +( + @dataFrom DATETIME, + @dataTo DATETIME +) +AS + +SELECT * +FROM DatiConfermati +WHERE (DataRif >= @dataFrom AND DataRif <= @dataTo) +ORDER BY DataRif DESC + +RETURN +go + +/************************************* +* STORED PROCEDURE stp_DatiProd_getByMacchPeriodo +* +* recupera i dati confermati x una macchina e periodo, ordinati in data DESC +* +* modif.: S.E.L. +* il: 2011.07.04 +**************************************/ +create PROCEDURE stp_DatiProd_getByMacchPeriodo +( + @idxMacchina NVARCHAR(50), + @dataFrom DATETIME, + @dataTo DATETIME +) +AS + +SELECT * +FROM DatiProduzione +WHERE IdxMacchina = @idxMacchina AND (DataRif >= @dataFrom AND DataRif <= @dataTo) +ORDER BY DataRif DESC + +RETURN +go + +/************************************* +* STORED PROCEDURE stp_DatiProd_getByPeriodo +* +* recupera i dati confermati x un periodo, ordinati in data DESC +* +* modif.: S.E.L. +* il: 2011.07.04 +**************************************/ +create PROCEDURE stp_DatiProd_getByPeriodo +( + @dataFrom DATETIME, + @dataTo DATETIME +) +AS + +SELECT * +FROM DatiProduzione +WHERE (DataRif >= @dataFrom AND DataRif <= @dataTo) +ORDER BY DataRif DESC + +RETURN +go + +commit +go + + + + + + + + + +-- registro versione... +INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(300, GETDATE()) +GO diff --git a/MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_00305.sql b/MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_00305.sql new file mode 100644 index 00000000..e4a264ed --- /dev/null +++ b/MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_00305.sql @@ -0,0 +1,100 @@ +set xact_abort on; +go + +begin transaction; +go + +set ANSI_NULLS on; +go + +/************************************* +* STORED PROCEDURE stp_repDonati_getDatiProdMacchina +* restituisce i dati di produzione di una macchina +* +* modif.: S.E.L. - 2012.03.08 +**************************************/ +alter PROCEDURE stp_repDonati_getDatiProdMacchina +( + @idxMacchina NVARCHAR(50) +) +AS + +-- calcolo codice articolo +DECLARE @CodArticolo NVARCHAR (50) +SET @CodArticolo = ( + SELECT CodArticolo FROM Kanban k + INNER JOIN StatoMacchine sm ON k.MatricolaKanban=sm.MatricolaKanban + WHERE sm.IdxMacchina = @idxMacchina + ) +-- calcolo il codice operatore +DECLARE @CodOperatore INT +SET @CodOperatore = ( + SELECT MatrOpr FROM StatoMacchine + WHERE IdxMacchina = @idxMacchina + ) +-- calcolo il codice ODL +DECLARE @idxODL INT +SET @idxODL = ( + SELECT idxODL FROM ODL + WHERE CodArticolo = @CodArticolo AND IdxMacchina = @idxMacchina AND (ISNULL(DataFine,DATEADD(hh,1,GETDATE())) > GETDATE()) + ) + + +DECLARE @PezziConf INT +SET @PezziConf = ( + SELECT ISNULL(SUM(TotPzProd),0) FROM DatiConfermati + WHERE idxODL = @idxOdl + ) + +DECLARE @PezziLanciati INT +SET @PezziLanciati =( + SELECT ISNULL(SUM(NumPezzi),0) FROM ODL + WHERE idxODL = @idxOdl + ) + +DECLARE @TCAss DECIMAL(18,8) +SET @TCAss = ( + SELECT ISNULL(SUM(TCAssegnato),0) FROM ODL + WHERE idxODL = @idxOdl + ) + +-- dato l'ODL calcolo il TC Medio ed i pezzi prodotti per l'ODL +DECLARE @inizioOdl DATETIME +SET @inizioOdl = ( + SELECT DataInizio FROM ODL + WHERE idxODL = @idxOdl + ) + +DECLARE @PezziProd INT +SET @PezziProd = ( + SELECT COUNT(*) FROM TempiCicloRilevati + WHERE DataOraRif >= @inizioOdl + AND TCMedio < 3 * @TCAss + ) + +DECLARE @TCMed DECIMAL(18,8) +SET @TCMed = ( + SELECT SUM(TCMedio)/@PezziProd FROM TempiCicloRilevati + WHERE DataOraRif >= @inizioOdl + AND TCMedio < 3 * @TCAss + ) + + +SELECT @CodArticolo as CodArticolo, @PezziLanciati as PezziLanciati, @PezziProd as PezziProd, @PezziConf as PezziConf, @TCAss AS TCAssegnato, @TCMed AS TCMedio, @CodOperatore AS CodOperatore + + +RETURN +go + +commit; +go + + + + + + + +-- registro versione... +INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(305, GETDATE()) +GO diff --git a/MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_00310.sql b/MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_00310.sql new file mode 100644 index 00000000..37d63d6b --- /dev/null +++ b/MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_00310.sql @@ -0,0 +1,328 @@ +set xact_abort on; +go + +begin transaction; +go + +set ANSI_NULLS on; +go + +/************************************* +* STORED PROCEDURE stp_TC_getByMacchinaPeriodo +* recupera tempi ciclo x machcian e periodo filtrando il MAX ammissibile +* +* modif.: S.E.L. - 2010.12.15 +**************************************/ +create PROCEDURE stp_TC_getByMacchinaPeriodoFiltMax +( + @IdxMacchina NVARCHAR(50), + @Inizio DATETIME, + @Fine DATETIME, + @MAX DECIMAL(18, 8) +) +AS + +SELECT * FROM TempiCicloRilevati +WHERE IdxMacchina = @IdxMacchina AND + (DataOraRif >= @Inizio) AND (DataOraRif <= @Fine) + AND TCMedio <= @MAX +ORDER BY DataOraRif + +RETURN +go + +commit; +go + + +set xact_abort on; +go + +begin transaction; +go + +set ANSI_NULLS on; +go + +/************************************* +* STORED PROCEDURE stp_DDB_getParetoDurate +* ottiene il pareto delle durate eventi diario di bordo +* +* modif.: S.E.L. - 2010.07.13 +**************************************/ +alter PROCEDURE stp_DDB_getParetoDurateFilt +( + @IdxMacchina NVARCHAR(50), + @minDurata FLOAT, + @fine DATETIME, + @inizio DATETIME +) +AS + + +WITH my_cte AS +( +SELECT * +FROM DiarioDiBordo +WHERE IdxMacchina=@IdxMacchina AND + DurataMinuti >= @minDurata AND + ( (InizioStato BETWEEN @inizio AND @fine) OR (FineStato BETWEEN @inizio AND @fine) ) +) + + +SELECT IdxMacchina, + CASE WHEN MIN(InizioStato) < @inizio THEN @inizio ELSE MIN(InizioStato) END AS InizioStato, + CASE WHEN MAX(FineStato) > @fine THEN @fine ELSE MAX(FineStato) END AS FineStato, + IdxStato, + SUM( DATEDIFF(n, CASE WHEN InizioStato < @inizio THEN @inizio ELSE InizioStato END, CASE WHEN ISNULL(FineStato, GETDATE()) > @fine THEN @fine ELSE FineStato END) ) AS DurataMinuti +FROM my_cte +GROUP BY IdxMacchina, IdxStato +ORDER BY DurataMinuti DESC + +/* +SELECT IdxMacchina, MIN(InizioStato) AS InizioStato, MAX(FineStato) AS FineStato, IdxStato, + SUM(ISNULL(DurataMinuti, DATEDIFF(n, InizioStato, GETDATE()))) AS DurataMinuti +FROM DiarioDiBordo +WHERE IdxMacchina=@IdxMacchina AND DurataMinuti >= @minDurata AND + (((FineStato <= @fine) AND (InizioStato >= @inizio)) OR ((FineStato IS NULL) AND (InizioStato >= @inizio AND InizioStato <= @fine))) +GROUP BY IdxMacchina, IdxStato +ORDER BY DurataMinuti DESC +*/ + +RETURN +go + +/************************************* +* STORED PROCEDURE stp_DDB_getParetoDurateHideSpentaFilt +* ottiene il pareto delle durate eventi diario di bordo filtrato eventi spenta +* +* modif.: S.E.L. - 2010.07.14 +**************************************/ +alter PROCEDURE stp_DDB_getParetoDurateHideSpentaFilt +( + @IdxMacchina NVARCHAR(50), + @minDurata FLOAT, + @fine DATETIME, + @inizio DATETIME +) +AS + +WITH my_cte AS +( +SELECT * +FROM DiarioDiBordo +WHERE IdxMacchina=@IdxMacchina AND + DurataMinuti >= @minDurata AND + IdxStato <>11 AND + ( (InizioStato BETWEEN @inizio AND @fine) OR (FineStato BETWEEN @inizio AND @fine) ) +) + + +SELECT IdxMacchina, + CASE WHEN MIN(InizioStato) < @inizio THEN @inizio ELSE MIN(InizioStato) END AS InizioStato, + CASE WHEN MAX(FineStato) > @fine THEN @fine ELSE MAX(FineStato) END AS FineStato, + IdxStato, + SUM( DATEDIFF(n, CASE WHEN InizioStato < @inizio THEN @inizio ELSE InizioStato END, CASE WHEN ISNULL(FineStato, GETDATE()) > @fine THEN @fine ELSE FineStato END) ) AS DurataMinuti +FROM my_cte +GROUP BY IdxMacchina, IdxStato +ORDER BY DurataMinuti DESC + + +/* +SELECT IdxMacchina, MIN(InizioStato) AS InizioStato, MAX(FineStato) AS FineStato, IdxStato, + SUM(ISNULL(DurataMinuti, DATEDIFF(n, InizioStato, GETDATE()))) AS DurataMinuti +FROM DiarioDiBordo +WHERE IdxMacchina=@IdxMacchina AND + DurataMinuti >= @minDurata AND + IdxStato <>11 AND + (((FineStato <= @fine) AND (InizioStato >= @inizio)) OR ((FineStato IS NULL) AND (InizioStato >= @inizio AND InizioStato <= @fine))) +GROUP BY IdxMacchina, IdxStato +ORDER BY DurataMinuti DESC + +*/ + +RETURN +go + +commit; +go + + + +drop table AnagraficaStatiOld; +go + + +set xact_abort on; +go + +begin transaction; +go + +set ANSI_NULLS on; +go + +/************************************* +* STORED PROCEDURE stp_repDonati_getDatiProdMacchina +* restituisce i dati di produzione di una macchina +* +* modif.: S.E.L. - 2012.03.08 +**************************************/ +alter PROCEDURE stp_repDonati_getDatiProdMacchina +( + @idxMacchina NVARCHAR(50) +) +AS + +-- calcolo codice articolo +DECLARE @CodArticolo NVARCHAR (50) +SET @CodArticolo = ( + SELECT CodArticolo FROM Kanban k + INNER JOIN StatoMacchine sm ON k.MatricolaKanban=sm.MatricolaKanban + WHERE sm.IdxMacchina = @idxMacchina + ) +-- calcolo il codice operatore +DECLARE @CodOperatore INT +SET @CodOperatore = ( + SELECT MatrOpr FROM StatoMacchine + WHERE IdxMacchina = @idxMacchina + ) +-- calcolo il codice ODL +DECLARE @idxODL INT +SET @idxODL = ( + SELECT idxODL FROM ODL + WHERE CodArticolo = @CodArticolo AND IdxMacchina = @idxMacchina AND (ISNULL(DataFine,DATEADD(hh,1,GETDATE())) > GETDATE()) + ) + + +DECLARE @PezziConf INT +SET @PezziConf = ( + SELECT ISNULL(SUM(TotPzProd),0) FROM DatiProduzione + WHERE idxODL = @idxOdl + ) + +DECLARE @PezziLanciati INT +SET @PezziLanciati =( + SELECT ISNULL(SUM(NumPezzi),0) FROM ODL + WHERE idxODL = @idxOdl + ) + +DECLARE @TCAss DECIMAL(18,8) +SET @TCAss = ( + SELECT ISNULL(SUM(TCAssegnato),0) FROM ODL + WHERE idxODL = @idxOdl + ) + +-- dato l'ODL calcolo il TC Medio ed i pezzi prodotti per l'ODL +DECLARE @inizioOdl DATETIME +SET @inizioOdl = ( + SELECT DataInizio FROM ODL + WHERE idxODL = @idxOdl + ) + +DECLARE @PezziProd INT +SET @PezziProd = ( + SELECT COUNT(*) FROM TempiCicloRilevati + WHERE DataOraRif >= @inizioOdl + ) + +/**************************************************** +* Calcolo tempi apertura confermati +****************************************************/ +-- calcolo i tempi di apertura: TempoON (Verde + giallo + rosso) +DECLARE @TempoOn DECIMAL(18,8) +SET @TempoOn = ( + SELECT ISNULL(SUM(Tempo),0) FROM DatiProduzione + WHERE ClasseTempo NOT IN ('T_OFF', 'T_OFF_ND') AND idxODL = @idxOdl + ) + +-- calcolo i tempi di apertura: TempoAuto (Verde + giallo) - precedente meno "T_FermoRosso" +DECLARE @TempoAuto DECIMAL(18,8) +SET @TempoAuto = ( + SELECT @TempoOn - ISNULL(SUM(Tempo),0) FROM DatiProduzione + WHERE ClasseTempo = 'T_FermoRosso' AND idxODL = @idxOdl + ) + +-- calcolo i tempi di apertura: TempoRun (Verde) +DECLARE @TempoRun DECIMAL(18,8) +SET @TempoRun = ( + SELECT ISNULL(SUM(Tempo),0) FROM DatiProduzione + WHERE ClasseTempo = 'T_AutoRun' AND idxODL = @idxOdl + ) + +/**************************************************** +* Calcolo tempi apertura realtime +****************************************************/ +-- calcolo i tempi di apertura: TempoON (Verde + giallo + rosso) +DECLARE @TempoOnRT DECIMAL(18,8) +SET @TempoOnRT = ( + SELECT ISNULL(SUM(DurataMinuti),0) + FROM DiarioDiBordo ddb INNER JOIN AnagraficaStati AnSt ON ddb.IdxStato= AnSt.IdxStato + WHERE AnSt.ClasseTempo NOT IN ('T_OFF', 'T_OFF_ND') AND InizioStato >= @inizioOdl + ) + +-- calcolo i tempi di apertura: TempoAuto (Verde + giallo) - precedente meno "T_FermoRosso" +DECLARE @TempoAutoRT DECIMAL(18,8) +SET @TempoAutoRT = ( + SELECT @TempoOnRT - ISNULL(SUM(DurataMinuti),0) + FROM DiarioDiBordo ddb INNER JOIN AnagraficaStati AnSt ON ddb.IdxStato= AnSt.IdxStato + WHERE AnSt.ClasseTempo = 'T_FermoRosso' AND InizioStato >= @inizioOdl + ) + +-- calcolo i tempi di apertura: TempoRun (Verde) +DECLARE @TempoRunRT DECIMAL(18,8) +SET @TempoRunRT = ( + SELECT ISNULL(SUM(DurataMinuti),0) + FROM DiarioDiBordo ddb INNER JOIN AnagraficaStati AnSt ON ddb.IdxStato= AnSt.IdxStato + WHERE AnSt.ClasseTempo = 'T_AutoRun' AND InizioStato >= @inizioOdl + ) + +/**************************************************** +* Calcolo i TEMPI CICLO confermati +****************************************************/ +DECLARE @TCMed DECIMAL(18,8) +SET @TCMed = ( + SELECT @TempoOn * 60 / @PezziConf -- tempo in ore + ) +DECLARE @TCLav DECIMAL(18,8) +SET @TCLav = ( + SELECT @TempoAuto * 60 / @PezziConf -- tempo in ore + ) +DECLARE @TCEff DECIMAL(18,8) +SET @TCEff = ( + SELECT @TempoRun * 60 / @PezziConf -- tempo in ore + ) + +/**************************************************** +* Calcolo i TEMPI CICLO realtime (anche non confermati) +****************************************************/ +DECLARE @TCMedRT DECIMAL(18,8) +SET @TCMedRT = ( + SELECT @TempoOnRT / @PezziProd + ) +DECLARE @TCLavRT DECIMAL(18,8) +SET @TCLavRT = ( + SELECT @TempoAutoRT / @PezziProd + ) +DECLARE @TCEffRT DECIMAL(18,8) +SET @TCEffRT = ( + SELECT @TempoRunRT / @PezziProd + ) + + +SELECT @CodArticolo as CodArticolo, @PezziLanciati as PezziLanciati, @PezziProd as PezziProd, @PezziConf as PezziConf, @TCAss AS TCAssegnato, @CodOperatore AS CodOperatore, @TempoOn AS TempoOn, @TempoAuto AS TempoAuto, @TempoRun AS TempoRun, @TCMed AS TCMedio, @TCLav AS TCLav, @TCEff AS TCEff, @TCMedRT AS TCMedioRT, @TCLavRT AS TCLavRT, @TCEffRT AS TCEffRT + + +RETURN +go + +commit; +go + + + + + +-- registro versione... +INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(310, GETDATE()) +GO diff --git a/MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_00315.sql b/MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_00315.sql new file mode 100644 index 00000000..d26894a0 --- /dev/null +++ b/MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_00315.sql @@ -0,0 +1,182 @@ +set xact_abort on; +go + +begin transaction; +go + +set ANSI_NULLS on; +go + +/************************************* +* STORED PROCEDURE stp_repDonati_getDatiProdMacchina +* restituisce i dati di produzione di una macchina +* +* modif.: S.E.L. - 2012.03.08 +**************************************/ +alter PROCEDURE stp_repDonati_getDatiProdMacchina +( + @idxMacchina NVARCHAR(50) +) +AS + +-- calcolo codice articolo +DECLARE @CodArticolo NVARCHAR (50) +SET @CodArticolo = ( + SELECT CodArticolo FROM Kanban k + INNER JOIN StatoMacchine sm ON k.MatricolaKanban=sm.MatricolaKanban + WHERE sm.IdxMacchina = @idxMacchina + ) +-- calcolo il codice operatore +DECLARE @CodOperatore INT +SET @CodOperatore = ( + SELECT MatrOpr FROM StatoMacchine + WHERE IdxMacchina = @idxMacchina + ) +-- calcolo il codice ODL +DECLARE @idxODL INT +SET @idxODL = ( + SELECT idxODL FROM ODL + WHERE CodArticolo = @CodArticolo AND IdxMacchina = @idxMacchina AND (ISNULL(DataFine,DATEADD(hh,1,GETDATE())) > GETDATE()) + ) + + +DECLARE @PezziConf INT +SET @PezziConf = ( + SELECT ISNULL(SUM(TotPzProd),0) FROM DatiProduzione + WHERE idxODL = @idxOdl + ) + +DECLARE @PezziLanciati INT +SET @PezziLanciati =( + SELECT ISNULL(SUM(NumPezzi),0) FROM ODL + WHERE idxODL = @idxOdl + ) + +DECLARE @TCAss DECIMAL(18,8) +SET @TCAss = ( + SELECT ISNULL(SUM(TCAssegnato),0) FROM ODL + WHERE idxODL = @idxOdl + ) + +-- dato l'ODL calcolo il TC Medio ed i pezzi prodotti per l'ODL +DECLARE @inizioOdl DATETIME +SET @inizioOdl = ( + SELECT DataInizio FROM ODL + WHERE idxODL = @idxOdl + ) + +DECLARE @PezziProd INT +SET @PezziProd = ( + SELECT COUNT(*) FROM TempiCicloRilevati + WHERE DataOraRif >= @inizioOdl + ) + + +/**************************************************** +* Calcolo tempi apertura confermati +****************************************************/ +-- calcolo i tempi di apertura: TempoON (Verde + giallo + rosso) +DECLARE @TempoOn DECIMAL(18,8) +SET @TempoOn = ( + SELECT ISNULL(SUM(Tempo),0) FROM DatiProduzione + WHERE ClasseTempo NOT IN ('T_OFF', 'T_OFF_ND') AND idxODL = @idxOdl + ) + +-- calcolo i tempi di apertura: TempoAuto (Verde + giallo) - precedente meno "T_FermoRosso" +DECLARE @TempoAuto DECIMAL(18,8) +SET @TempoAuto = ( + SELECT @TempoOn - ISNULL(SUM(Tempo),0) FROM DatiProduzione + WHERE ClasseTempo = 'T_FermoRosso' AND idxODL = @idxOdl + ) + +-- calcolo i tempi di apertura: TempoRun (Verde) +DECLARE @TempoRun DECIMAL(18,8) +SET @TempoRun = ( + SELECT ISNULL(SUM(Tempo),0) FROM DatiProduzione + WHERE ClasseTempo = 'T_AutoRun' AND idxODL = @idxOdl + ) + +/**************************************************** +* Calcolo tempi apertura realtime +****************************************************/ +-- calcolo i tempi di apertura: TempoON (Verde + giallo + rosso) +DECLARE @TempoOnRT DECIMAL(18,8) +SET @TempoOnRT = ( + SELECT ISNULL(SUM(DurataMinuti),0) + FROM DiarioDiBordo ddb INNER JOIN AnagraficaStati AnSt ON ddb.IdxStato= AnSt.IdxStato + WHERE AnSt.ClasseTempo NOT IN ('T_OFF', 'T_OFF_ND') AND InizioStato >= @inizioOdl + ) + +-- calcolo i tempi di apertura: TempoAuto (Verde + giallo) - precedente meno "T_FermoRosso" +DECLARE @TempoAutoRT DECIMAL(18,8) +SET @TempoAutoRT = ( + SELECT @TempoOnRT - ISNULL(SUM(DurataMinuti),0) + FROM DiarioDiBordo ddb INNER JOIN AnagraficaStati AnSt ON ddb.IdxStato= AnSt.IdxStato + WHERE AnSt.ClasseTempo = 'T_FermoRosso' AND InizioStato >= @inizioOdl + ) + +-- calcolo i tempi di apertura: TempoRun (Verde) +DECLARE @TempoRunRT DECIMAL(18,8) +SET @TempoRunRT = ( + SELECT ISNULL(SUM(DurataMinuti),0) + FROM DiarioDiBordo ddb INNER JOIN AnagraficaStati AnSt ON ddb.IdxStato= AnSt.IdxStato + WHERE AnSt.ClasseTempo = 'T_AutoRun' AND InizioStato >= @inizioOdl + ) + +/**************************************************** +* Calcolo i TEMPI CICLO confermati +****************************************************/ + +-- DIVISIONE PER ZERO: controllo pezzi conf > 0... +IF(@PezziConf = 0) SET @PezziConf = 1 + +DECLARE @TCMed DECIMAL(18,8) +SET @TCMed = ( + SELECT @TempoOn * 60 / @PezziConf -- tempo in ore + ) +DECLARE @TCLav DECIMAL(18,8) +SET @TCLav = ( + SELECT @TempoAuto * 60 / @PezziConf -- tempo in ore + ) +DECLARE @TCEff DECIMAL(18,8) +SET @TCEff = ( + SELECT @TempoRun * 60 / @PezziConf -- tempo in ore + ) + +/**************************************************** +* Calcolo i TEMPI CICLO realtime (anche non confermati) +****************************************************/ + +-- DIVISIONE PER ZERO: controllo pezzi prod > 0... +IF(@PezziProd = 0) SET @PezziProd = 1 + +DECLARE @TCMedRT DECIMAL(18,8) +SET @TCMedRT = ( + SELECT @TempoOnRT / @PezziProd + ) +DECLARE @TCLavRT DECIMAL(18,8) +SET @TCLavRT = ( + SELECT @TempoAutoRT / @PezziProd + ) +DECLARE @TCEffRT DECIMAL(18,8) +SET @TCEffRT = ( + SELECT @TempoRunRT / @PezziProd + ) + + +SELECT @CodArticolo as CodArticolo, @PezziLanciati as PezziLanciati, @PezziProd as PezziProd, @PezziConf as PezziConf, @TCAss AS TCAssegnato, @CodOperatore AS CodOperatore, @TempoOn AS TempoOn, @TempoAuto AS TempoAuto, @TempoRun AS TempoRun, @TCMed AS TCMedio, @TCLav AS TCLav, @TCEff AS TCEff, @TCMedRT AS TCMedioRT, @TCLavRT AS TCLavRT, @TCEffRT AS TCEffRT + + +RETURN +go + +commit; +go + + + + + +-- registro versione... +INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(315, GETDATE()) +GO diff --git a/MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_00316.sql b/MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_00316.sql new file mode 100644 index 00000000..64d5eb57 --- /dev/null +++ b/MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_00316.sql @@ -0,0 +1,275 @@ +set ANSI_NULLS on; +go + +/************************************* +* Function f_lastTempoTecnico +* calcola il tempo tecnico per un impianto dato idxMacchina e intervallo di tempo x filtraggio +* utilizza migliori 10 tempi nell'intervallo e fa media +* +* modif.: S.E.L. +* il: 2011.03.30 +**************************************/ +create FUNCTION f_lastTempoTecnico +( + @idxMacchina NVARCHAR(50), + @finestraOre INT +) +RETURNS DECIMAL(18,8) +AS + + +BEGIN + DECLARE @TcTecnico AS DECIMAL (18,8) + ;WITH LastTempi AS + ( + SELECT TOP 10 * + FROM TempiCicloRilevati + WHERE IdxMacchina = @idxMacchina + AND DataOraRif >= DATEADD(HH,-@finestraOre,getdate()) + ORDER BY TCMedio + ) + + SELECT @TcTecnico = AVG(TcMedio) FROM LastTempi + RETURN @TcTecnico +END +go + + +set xact_abort on; +go + +begin transaction; +go + +set ANSI_NULLS on; +go + +/************************************* +* STORED PROCEDURE stp_repDonati_getDatiProdMacchina +* restituisce i dati di produzione di una macchina +* +* modif.: S.E.L. - 2012.03.08 +**************************************/ +alter PROCEDURE stp_repDonati_getDatiProdMacchina +( + @idxMacchina NVARCHAR(50) +) +AS + + +-- calcolo codice articolo +DECLARE @CodArticolo NVARCHAR (50) +SET @CodArticolo = ( + SELECT CodArticolo FROM Kanban k + INNER JOIN StatoMacchine sm ON k.MatricolaKanban=sm.MatricolaKanban + WHERE sm.IdxMacchina = @idxMacchina + ) +-- calcolo il codice operatore +DECLARE @CodOperatore INT +SET @CodOperatore = ( + SELECT MatrOpr FROM StatoMacchine + WHERE IdxMacchina = @idxMacchina + ) +-- calcolo il codice ODL +DECLARE @idxODL INT +SET @idxODL = ( + SELECT idxODL FROM ODL + WHERE CodArticolo = @CodArticolo AND IdxMacchina = @idxMacchina AND (ISNULL(DataFine,DATEADD(hh,1,GETDATE())) > GETDATE()) + ) + + +DECLARE @PezziConf INT +SET @PezziConf = ( + SELECT ISNULL(SUM(TotPzProd),0) FROM DatiProduzione + WHERE idxODL = @idxOdl + ) + +DECLARE @PezziLanciati INT +SET @PezziLanciati =( + SELECT ISNULL(SUM(NumPezzi),0) FROM ODL + WHERE idxODL = @idxOdl + ) + +DECLARE @TCAss DECIMAL(18,8) +SET @TCAss = ( + SELECT ISNULL(SUM(TCAssegnato),0) FROM ODL + WHERE idxODL = @idxOdl + ) + +-- dato l'ODL calcolo il TC Medio ed i pezzi prodotti per l'ODL +DECLARE @inizioOdl DATETIME +SET @inizioOdl = ( + SELECT DataInizio FROM ODL + WHERE idxODL = @idxOdl + ) + +DECLARE @PezziProd INT +SET @PezziProd = ( + SELECT COUNT(*) FROM TempiCicloRilevati + WHERE DataOraRif >= @inizioOdl + ) + + +/**************************************************** +* Calcolo tempi apertura confermati +****************************************************/ +-- calcolo i tempi di apertura: TempoON (Verde + giallo + rosso) +DECLARE @TempoOn DECIMAL(18,8) +SET @TempoOn = ( + SELECT ISNULL(SUM(Tempo),0) FROM DatiProduzione + WHERE ClasseTempo NOT IN ('T_OFF', 'T_OFF_ND') AND idxODL = @idxOdl + ) + +-- calcolo i tempi di apertura: TempoAuto (Verde + giallo) - precedente meno "T_FermoRosso" +DECLARE @TempoAuto DECIMAL(18,8) +SET @TempoAuto = ( + SELECT @TempoOn - ISNULL(SUM(Tempo),0) FROM DatiProduzione + WHERE ClasseTempo = 'T_FermoRosso' AND idxODL = @idxOdl + ) + +-- calcolo i tempi di apertura: TempoRun (Verde) +DECLARE @TempoRun DECIMAL(18,8) +SET @TempoRun = ( + SELECT ISNULL(SUM(Tempo),0) FROM DatiProduzione + WHERE ClasseTempo = 'T_AutoRun' AND idxODL = @idxOdl + ) + +/**************************************************** +* Calcolo tempi apertura realtime +****************************************************/ +-- calcolo i tempi di apertura: TempoON (Verde + giallo + rosso) +DECLARE @TempoOnRT DECIMAL(18,8) +SET @TempoOnRT = ( + SELECT ISNULL(SUM(DurataMinuti),0) + FROM DiarioDiBordo ddb INNER JOIN AnagraficaStati AnSt ON ddb.IdxStato= AnSt.IdxStato + WHERE AnSt.ClasseTempo NOT IN ('T_OFF', 'T_OFF_ND') AND InizioStato >= @inizioOdl + ) + +-- calcolo i tempi di apertura: TempoAuto (Verde + giallo) - precedente meno "T_FermoRosso" +DECLARE @TempoAutoRT DECIMAL(18,8) +SET @TempoAutoRT = ( + SELECT @TempoOnRT - ISNULL(SUM(DurataMinuti),0) + FROM DiarioDiBordo ddb INNER JOIN AnagraficaStati AnSt ON ddb.IdxStato= AnSt.IdxStato + WHERE AnSt.ClasseTempo = 'T_FermoRosso' AND InizioStato >= @inizioOdl + ) + +-- calcolo i tempi di apertura: TempoRun (Verde) +DECLARE @TempoRunRT DECIMAL(18,8) +SET @TempoRunRT = ( + SELECT ISNULL(SUM(DurataMinuti),0) + FROM DiarioDiBordo ddb INNER JOIN AnagraficaStati AnSt ON ddb.IdxStato= AnSt.IdxStato + WHERE AnSt.ClasseTempo = 'T_AutoRun' AND InizioStato >= @inizioOdl + ) + +DECLARE @numPezzi INT + +/**************************************************** +* Calcolo i TEMPI CICLO confermati +****************************************************/ + +-- DIVISIONE PER ZERO: controllo pezzi conf > 0 +SET @numPezzi = @PezziConf +IF(@numPezzi = 0) SET @numPezzi = 1 + +DECLARE @TCMed DECIMAL(18,8) +SET @TCMed = ( + SELECT @TempoOn * 60 / @numPezzi -- tempo in ore + ) +DECLARE @TCLav DECIMAL(18,8) +SET @TCLav = ( + SELECT @TempoAuto * 60 / @numPezzi -- tempo in ore + ) + + + + +DECLARE @TCEff DECIMAL(18,8) -- è la media degli ultimi 10 migliori tempi minimi nell'ultima giornata +SET @TCEff = ISNULL(( SELECT dbo.f_lastTempoTecnico(@idxMacchina, 8) ), -1) -- provo a calcolare ultimi tempi tecnici +IF (@TCEff =-1) +BEGIN + SET @TCEff = ( + SELECT @TempoRun * 60 / @numPezzi -- tempo in ore + ) +END + +/**************************************************** +* Calcolo i TEMPI CICLO realtime (anche non confermati) +****************************************************/ + +-- DIVISIONE PER ZERO: controllo pezzi prod > 0... +SET @numPezzi = @PezziProd +IF(@numPezzi = 0) SET @numPezzi = 1 + +DECLARE @TCMedRT DECIMAL(18,8) +SET @TCMedRT = ( + SELECT @TempoOnRT / @numPezzi + ) +DECLARE @TCLavRT DECIMAL(18,8) +SET @TCLavRT = ( + SELECT @TempoAutoRT / @numPezzi + ) +DECLARE @TCEffRT DECIMAL(18,8) +SET @TCEffRT = ( + SELECT @TempoRunRT / @numPezzi + ) + + +SELECT @CodArticolo as CodArticolo, @PezziLanciati as PezziLanciati, @PezziProd as PezziProd, @PezziConf as PezziConf, @TCAss AS TCAssegnato, @CodOperatore AS CodOperatore, @TempoOn AS TempoOn, @TempoAuto AS TempoAuto, @TempoRun AS TempoRun, @TCMed AS TCMedio, @TCLav AS TCLav, @TCEff AS TCEff, @TCMedRT AS TCMedioRT, @TCLavRT AS TCLavRT, @TCEffRT AS TCEffRT + + +RETURN +go + +/************************************* +* STORED PROCEDURE stp_repDonati_getLastStatoDurataMacchina +* restituisce l'ultimo stato di una macchina e la durata +* andando a filtrare gli eventi sotto una soglia indicata (default 6 sec) +* e quindi sommando +* +* modif.: S.E.L. - 2012.03.08 +**************************************/ +create PROCEDURE stp_repDonati_getLastStatoDurataMacchina +( + @idxMacchina NVARCHAR(50), + @minDurata FLOAT +) +AS + +-- calcolo codice articolo +DECLARE @idxStato INT +SET @idxStato = ( + SELECT TOP 1 ISNULL(IdxStato,0) + FROM DiarioDiBordo + WHERE idxMacchina = @idxMacchina + AND ISNULL(durataMinuti, 0) > @minDurata + ORDER BY InizioStato DESC + ) +-- calcolo durata filtrata... ovvero evento più recente NON dello stato indicato (changed) +DECLARE @lastChTime DATETIME +SET @lastChTime = ( + SELECT TOP 1 ISNULL(inizioStato, GetDate()) + FROM DiarioDiBordo + WHERE idxMacchina = @idxMacchina + AND idxStato <> @idxStato + AND ISNULL(durataMinuti, 0) > @minDurata + ORDER BY InizioStato DESC + ) + +DECLARE @timeMinuti FLOAT +SET @timeMinuti = ( SELECT DATEDIFF(n, @lastChTime, GetDate()) ) + +SELECT @idxStato AS idxStato, @timeMinuti AS Minuti + + +RETURN +go + +commit; +go + + + + +-- registro versione... +INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(316, GETDATE()) +GO diff --git a/MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_00317.sql b/MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_00317.sql new file mode 100644 index 00000000..6db0ac90 --- /dev/null +++ b/MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_00317.sql @@ -0,0 +1,291 @@ +drop table DiarioDiBordo_backup; +go + + +set xact_abort on; +go + +begin transaction; +go + +set ANSI_NULLS on; +go + +/************************************* +* STORED PROCEDURE stp_repDonati_getDatiProdMacchina +* restituisce i dati di produzione di una macchina +* +* modif.: S.E.L. - 2012.03.08 +**************************************/ +alter PROCEDURE stp_repDonati_getDatiProdMacchina +( + @idxMacchina NVARCHAR(50) +) +AS + + +-- calcolo codice articolo +DECLARE @CodArticolo NVARCHAR (50) +SET @CodArticolo = ( + SELECT CodArticolo FROM Kanban k + INNER JOIN StatoMacchine sm ON k.MatricolaKanban=sm.MatricolaKanban + WHERE sm.IdxMacchina = @idxMacchina + ) +-- calcolo il codice operatore +DECLARE @CodOperatore INT +SET @CodOperatore = ( + SELECT MatrOpr FROM StatoMacchine + WHERE IdxMacchina = @idxMacchina + ) +-- calcolo il codice ODL +DECLARE @idxODL INT +SET @idxODL = ( + SELECT idxODL FROM ODL + WHERE CodArticolo = @CodArticolo AND IdxMacchina = @idxMacchina AND (ISNULL(DataFine,DATEADD(hh,1,GETDATE())) > GETDATE()) + ) + + +DECLARE @PezziConf INT +SET @PezziConf = ( + SELECT ISNULL(SUM(TotPzProd),0) FROM DatiProduzione + WHERE idxODL = @idxOdl + ) + +DECLARE @PezziLanciati INT +SET @PezziLanciati =( + SELECT ISNULL(SUM(NumPezzi),0) FROM ODL + WHERE idxODL = @idxOdl + ) + +DECLARE @TCAss DECIMAL(18,8) +SET @TCAss = ( + SELECT ISNULL(SUM(TCAssegnato),0) FROM ODL + WHERE idxODL = @idxOdl + ) + +-- dato l'ODL calcolo il TC Medio ed i pezzi prodotti per l'ODL +DECLARE @inizioOdl DATETIME +SET @inizioOdl = ( + SELECT DataInizio FROM ODL + WHERE idxODL = @idxOdl + ) + +DECLARE @PezziProd INT +SET @PezziProd = ( + SELECT COUNT(*) FROM TempiCicloRilevati + WHERE DataOraRif >= @inizioOdl + ) + + +/**************************************************** +* Calcolo tempi apertura confermati +****************************************************/ +-- calcolo i tempi di apertura: TempoON (Verde + giallo + rosso) +DECLARE @TempoOn DECIMAL(18,8) +SET @TempoOn = ( + SELECT ISNULL(SUM(Tempo),0) FROM DatiProduzione + WHERE ClasseTempo NOT IN ('T_OFF', 'T_OFF_ND') AND idxODL = @idxOdl + ) + +-- calcolo i tempi di apertura: TempoAuto (Verde + giallo) - precedente meno "T_FermoRosso" +DECLARE @TempoAuto DECIMAL(18,8) +SET @TempoAuto = ( + SELECT @TempoOn - ISNULL(SUM(Tempo),0) FROM DatiProduzione + WHERE ClasseTempo = 'T_FermoRosso' AND idxODL = @idxOdl + ) + +-- calcolo i tempi di apertura: TempoRun (Verde) +DECLARE @TempoRun DECIMAL(18,8) +SET @TempoRun = ( + SELECT ISNULL(SUM(Tempo),0) FROM DatiProduzione + WHERE ClasseTempo = 'T_AutoRun' AND idxODL = @idxOdl + ) + +/**************************************************** +* Calcolo tempi apertura realtime +****************************************************/ +-- calcolo i tempi di apertura: TempoON (Verde + giallo + rosso) +DECLARE @TempoOnRT DECIMAL(18,8) +SET @TempoOnRT = ( + SELECT ISNULL(SUM(DurataMinuti),0) + FROM DiarioDiBordo ddb INNER JOIN AnagraficaStati AnSt ON ddb.IdxStato= AnSt.IdxStato + WHERE AnSt.ClasseTempo NOT IN ('T_OFF', 'T_OFF_ND') AND InizioStato >= @inizioOdl + ) + +-- calcolo i tempi di apertura: TempoAuto (Verde + giallo) - precedente meno "T_FermoRosso" +DECLARE @TempoAutoRT DECIMAL(18,8) +SET @TempoAutoRT = ( + SELECT @TempoOnRT - ISNULL(SUM(DurataMinuti),0) + FROM DiarioDiBordo ddb INNER JOIN AnagraficaStati AnSt ON ddb.IdxStato= AnSt.IdxStato + WHERE AnSt.ClasseTempo = 'T_FermoRosso' AND InizioStato >= @inizioOdl + ) + +-- calcolo i tempi di apertura: TempoRun (Verde) +DECLARE @TempoRunRT DECIMAL(18,8) +SET @TempoRunRT = ( + SELECT ISNULL(SUM(DurataMinuti),0) + FROM DiarioDiBordo ddb INNER JOIN AnagraficaStati AnSt ON ddb.IdxStato= AnSt.IdxStato + WHERE AnSt.ClasseTempo = 'T_AutoRun' AND InizioStato >= @inizioOdl + ) + +DECLARE @numPezzi INT + +/**************************************************** +* Calcolo i TEMPI CICLO confermati +****************************************************/ + +-- DIVISIONE PER ZERO: controllo pezzi conf > 0 +SET @numPezzi = @PezziConf +IF(@numPezzi = 0) SET @numPezzi = 1 + +DECLARE @TCMed DECIMAL(18,8) +SET @TCMed = ( + SELECT @TempoOn * 60 / @numPezzi -- tempo in ore + ) +DECLARE @TCLav DECIMAL(18,8) +SET @TCLav = ( + SELECT @TempoAuto * 60 / @numPezzi -- tempo in ore + ) + + + + +DECLARE @TCEff DECIMAL(18,8) -- è la media degli ultimi 10 migliori tempi minimi nell'ultima giornata +SET @TCEff = ( + SELECT @TempoRun * 60 / @numPezzi -- tempo in ore + ) + +/**************************************************** +* Calcolo i TEMPI CICLO realtime (anche non confermati) +****************************************************/ + +-- DIVISIONE PER ZERO: controllo pezzi prod > 0... +SET @numPezzi = @PezziProd +IF(@numPezzi = 0) SET @numPezzi = 1 + +DECLARE @TCMedRT DECIMAL(18,8) +SET @TCMedRT = ( + SELECT @TempoOnRT / @numPezzi + ) +DECLARE @TCLavRT DECIMAL(18,8) +SET @TCLavRT = ( + SELECT @TempoAutoRT / @numPezzi + ) +DECLARE @TCEffRT DECIMAL(18,8) +SET @TCEffRT = ISNULL(( SELECT dbo.f_lastTempoTecnico(@idxMacchina, 2) ), -1) -- provo a calcolare ultimi tempi tecnici +IF (@TCEffRT =-1) +BEGIN + SET @TCEffRT = ( + SELECT @TempoRunRT / @numPezzi + ) +END + + +SELECT @CodArticolo as CodArticolo, @PezziLanciati as PezziLanciati, @PezziProd as PezziProd, @PezziConf as PezziConf, @TCAss AS TCAssegnato, @CodOperatore AS CodOperatore, @TempoOn AS TempoOn, @TempoAuto AS TempoAuto, @TempoRun AS TempoRun, @TCMed AS TCMedio, @TCLav AS TCLav, @TCEff AS TCEff, @TCMedRT AS TCMedioRT, @TCLavRT AS TCLavRT, @TCEffRT AS TCEffRT + + +RETURN +go + +/************************************* +* STORED PROCEDURE stp_repDonati_getLastStatoDurataMacchina +* restituisce l'ultimo stato di una macchina e la durata +* andando a filtrare gli eventi sotto una soglia indicata (default 6 sec) +* e quindi sommando +* +* modif.: S.E.L. - 2012.03.08 +**************************************/ +alter PROCEDURE stp_repDonati_getLastStatoDurataMacchina +( + @idxMacchina NVARCHAR(50), + @minDurata FLOAT +) +AS + +-- calcolo codice articolo +DECLARE @idxStato INT +SET @idxStato = ( + SELECT TOP 1 ISNULL(IdxStato,0) + FROM DiarioDiBordo + WHERE idxMacchina = @idxMacchina + --AND ISNULL(durataMinuti, 0) > @minDurata + ORDER BY InizioStato DESC + ) +-- calcolo durata filtrata... ovvero evento più recente NON dello stato indicato (changed) +DECLARE @lastChTime DATETIME +SET @lastChTime = ( + SELECT TOP 1 ISNULL(inizioStato, GetDate()) + FROM DiarioDiBordo + WHERE idxMacchina = @idxMacchina + AND idxStato <> @idxStato + AND ISNULL(durataMinuti, 0) > @minDurata + ORDER BY InizioStato DESC + ) + +DECLARE @timeMinuti FLOAT +SET @timeMinuti = ( SELECT DATEDIFF(n, @lastChTime, GetDate()) ) + +SELECT @idxStato AS idxStato, @timeMinuti AS Minuti + + +RETURN +go + +commit; +go + + +set xact_abort on; +go + +begin transaction; +go + +set ANSI_NULLS on; +go + +/************************************* +* Function f_lastTempoTecnico +* calcola il tempo tecnico per un impianto dato idxMacchina e intervallo di tempo x filtraggio +* utilizza migliori 10 tempi nell'intervallo e fa media +* +* modif.: S.E.L. +* il: 2011.03.30 +**************************************/ +alter FUNCTION f_lastTempoTecnico +( + @idxMacchina NVARCHAR(50), + @finestraOre INT +) +RETURNS DECIMAL(18,8) +AS + + +BEGIN + DECLARE @TcTecnico AS DECIMAL (18,8) + ;WITH LastTempi AS + ( + SELECT TOP 5 * + FROM TempiCicloRilevati + WHERE IdxMacchina = @idxMacchina + AND DataOraRif >= DATEADD(HH,-@finestraOre,getdate()) + ORDER BY TCMedio + ) + + SELECT @TcTecnico = AVG(TcMedio) FROM LastTempi + RETURN @TcTecnico +END +go + +commit; +go + + + + + + + +-- registro versione... +INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(317, GETDATE()) +GO diff --git a/MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_00318.sql b/MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_00318.sql new file mode 100644 index 00000000..f86e77b6 --- /dev/null +++ b/MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_00318.sql @@ -0,0 +1,420 @@ +set xact_abort on; +go + +begin transaction; +go + +set ANSI_NULLS on; +go + +/************************************* +* STORED PROCEDURE stp_repDonati_getDatiProdMacchina +* restituisce i dati di produzione di una macchina per l'ULTIMO ODL +* +* modif.: S.E.L. - 2012.03.08 +**************************************/ +alter PROCEDURE stp_repDonati_getDatiProdMacchina +( + @idxMacchina NVARCHAR(50) +) +AS + + +-- calcolo codice articolo +DECLARE @CodArticolo NVARCHAR (50) +SET @CodArticolo = ( + SELECT CodArticolo FROM Kanban k + INNER JOIN StatoMacchine sm ON k.MatricolaKanban=sm.MatricolaKanban + WHERE sm.IdxMacchina = @idxMacchina + ) +-- calcolo il codice operatore +DECLARE @CodOperatore INT +SET @CodOperatore = ( + SELECT MatrOpr FROM StatoMacchine + WHERE IdxMacchina = @idxMacchina + ) +-- calcolo il codice ODL +DECLARE @idxODL INT +SET @idxODL = ( + SELECT idxODL FROM ODL + WHERE CodArticolo = @CodArticolo AND IdxMacchina = @idxMacchina AND (ISNULL(DataFine,DATEADD(hh,1,GETDATE())) > GETDATE()) + ) + + +DECLARE @PezziConf INT +SET @PezziConf = ( + SELECT ISNULL(SUM(TotPzProd),0) FROM DatiProduzione + WHERE idxODL = @idxOdl + ) + +DECLARE @PezziLanciati INT +SET @PezziLanciati =( + SELECT ISNULL(SUM(NumPezzi),0) FROM ODL + WHERE idxODL = @idxOdl + ) + +DECLARE @TCAss DECIMAL(18,8) +SET @TCAss = ( + SELECT ISNULL(SUM(TCAssegnato),0) FROM ODL + WHERE idxODL = @idxOdl + ) + +-- dato l'ODL calcolo il TC Medio ed i pezzi prodotti per l'ODL +DECLARE @inizioOdl DATETIME +SET @inizioOdl = ( + SELECT DataInizio FROM ODL + WHERE idxODL = @idxOdl + ) + +DECLARE @PezziProd INT +SET @PezziProd = ( + SELECT COUNT(*) FROM TempiCicloRilevati + WHERE DataOraRif >= @inizioOdl + AND idxMacchina = @idxMacchina + ) + + +/**************************************************** +* Calcolo tempi apertura confermati +****************************************************/ +-- calcolo i tempi di apertura: TempoON (Verde + giallo + rosso) +DECLARE @TempoOn DECIMAL(18,8) +SET @TempoOn = ( + SELECT ISNULL(SUM(Tempo),0) FROM DatiProduzione + WHERE ClasseTempo NOT IN ('T_OFF', 'T_OFF_ND') AND idxODL = @idxOdl + ) + +-- calcolo i tempi di apertura: TempoAuto (Verde + giallo) - precedente meno "T_FermoRosso" +DECLARE @TempoAuto DECIMAL(18,8) +SET @TempoAuto = ( + SELECT @TempoOn - ISNULL(SUM(Tempo),0) FROM DatiProduzione + WHERE ClasseTempo = 'T_FermoRosso' AND idxODL = @idxOdl + ) + +-- calcolo i tempi di apertura: TempoRun (Verde) +DECLARE @TempoRun DECIMAL(18,8) +SET @TempoRun = ( + SELECT ISNULL(SUM(Tempo),0) FROM DatiProduzione + WHERE ClasseTempo = 'T_AutoRun' AND idxODL = @idxOdl + ) + +/**************************************************** +* Calcolo tempi apertura realtime +****************************************************/ +-- calcolo i tempi di apertura: TempoON (Verde + giallo + rosso) +DECLARE @TempoOnRT DECIMAL(18,8) +SET @TempoOnRT = ( + SELECT ISNULL(SUM(DurataMinuti),0) + FROM DiarioDiBordo ddb INNER JOIN AnagraficaStati AnSt ON ddb.IdxStato= AnSt.IdxStato + WHERE AnSt.ClasseTempo NOT IN ('T_OFF', 'T_OFF_ND') AND InizioStato >= @inizioOdl + AND IdxMacchina = @idxMacchina + ) + +-- calcolo i tempi di apertura: TempoAuto (Verde + giallo) - precedente meno "T_FermoRosso" +DECLARE @TempoAutoRT DECIMAL(18,8) +SET @TempoAutoRT = ( + SELECT @TempoOnRT - ISNULL(SUM(DurataMinuti),0) + FROM DiarioDiBordo ddb INNER JOIN AnagraficaStati AnSt ON ddb.IdxStato= AnSt.IdxStato + WHERE AnSt.ClasseTempo = 'T_FermoRosso' AND InizioStato >= @inizioOdl + AND IdxMacchina = @idxMacchina + ) + +-- calcolo i tempi di apertura: TempoRun (Verde) +DECLARE @TempoRunRT DECIMAL(18,8) +SET @TempoRunRT = ( + SELECT ISNULL(SUM(DurataMinuti),0) + FROM DiarioDiBordo ddb INNER JOIN AnagraficaStati AnSt ON ddb.IdxStato= AnSt.IdxStato + WHERE AnSt.ClasseTempo = 'T_AutoRun' AND InizioStato >= @inizioOdl + AND IdxMacchina = @idxMacchina + ) + +DECLARE @numPezzi INT + +/**************************************************** +* Calcolo i TEMPI CICLO confermati +****************************************************/ + +-- DIVISIONE PER ZERO: controllo pezzi conf > 0 +SET @numPezzi = @PezziConf +IF(@numPezzi = 0) SET @numPezzi = 1 + +DECLARE @TCMed DECIMAL(18,8) +SET @TCMed = ( + SELECT @TempoOn * 60 / @numPezzi -- tempo in ore + ) +DECLARE @TCLav DECIMAL(18,8) +SET @TCLav = ( + SELECT @TempoAuto * 60 / @numPezzi -- tempo in ore + ) + + + + +DECLARE @TCEff DECIMAL(18,8) -- è la media degli ultimi 10 migliori tempi minimi nell'ultima giornata +SET @TCEff = ( + SELECT @TempoRun * 60 / @numPezzi -- tempo in ore + ) + +/**************************************************** +* Calcolo i TEMPI CICLO realtime (anche non confermati) +****************************************************/ + +-- DIVISIONE PER ZERO: controllo pezzi prod > 0... +SET @numPezzi = @PezziProd +IF(@numPezzi = 0) SET @numPezzi = 1 + +DECLARE @TCMedRT DECIMAL(18,8) +SET @TCMedRT = ( + SELECT @TempoOnRT / @numPezzi + ) +DECLARE @TCLavRT DECIMAL(18,8) +SET @TCLavRT = ( + SELECT @TempoAutoRT / @numPezzi + ) +DECLARE @TCEffRT DECIMAL(18,8) +SET @TCEffRT = ISNULL(( SELECT dbo.f_lastTempoTecnico(@idxMacchina, 2) ), -1) -- provo a calcolare ultimi tempi tecnici +IF (@TCEffRT =-1) +BEGIN + SET @TCEffRT = ( + SELECT @TempoRunRT / @numPezzi + ) +END + + +SELECT @CodArticolo as CodArticolo, @PezziLanciati as PezziLanciati, @PezziProd as PezziProd, @PezziConf as PezziConf, @TCAss AS TCAssegnato, @CodOperatore AS CodOperatore, @TempoOn AS TempoOn, @TempoAuto AS TempoAuto, @TempoRun AS TempoRun, @TCMed AS TCMedio, @TCLav AS TCLav, @TCEff AS TCEff, @TCMedRT AS TCMedioRT, @TCLavRT AS TCLavRT, @TCEffRT AS TCEffRT + + +RETURN +go + +/************************************* +* STORED PROCEDURE stp_repDonati_getDatiProdMacchina +* restituisce i dati di produzione di una macchina per PERIODO +* +* modif.: S.E.L. - 2012.03.21 +**************************************/ +create PROCEDURE stp_repDonati_getDatiProdMacchinaPeriodo +( + @idxMacchina NVARCHAR(50), + @dataFrom DATETIME, + @dataTo DATETIME +) +AS + +-- calcolo pezzi CONTATI, non quelli poi confermati... +DECLARE @PezziProd INT +SET @PezziProd = ISNULL(( + SELECT COUNT(*)FROM TempiCicloRilevati + WHERE idxMacchina = @idxMacchina + AND DataOraRif BETWEEN @dataFrom AND @dataTo + ), 0) + +-- calcolo TEMPO MEDIO ponderato in base al num di pezzi per tipo... +DECLARE @TCAss DECIMAL(18,8) + +;WITH cte_tabMinProd as +( + SELECT ISNULL(COUNT(tcr.DataOraRif), 0) * ISNULL(o.TCAssegnato, 0) AS MinProd + FROM TempiCicloRilevati tcr INNER JOIN ODL o + ON o.IdxMacchina=tcr.IdxMacchina AND o.CodArticolo = tcr.CodArticolo + WHERE tcr.DataOraRif BETWEEN o.DataInizio and o.DataFine + AND tcr.DataOraRif BETWEEN @dataFrom AND @dataTo + AND ((o.DataInizio <= @dataTo) AND (o.DataFine >= @dataFrom)) + GROUP BY o.TCAssegnato--, tcr.IdxMacchina, tcr.CodArticolo, +) +SELECT @TCAss = ISNULL(SUM(MinProd) / @PezziProd, 0) +FROM cte_tabMinProd + + +/**************************************************** +* Calcolo tempi apertura realtime +****************************************************/ +-- calcolo i tempi di apertura: TempoON (Verde + giallo + rosso) +DECLARE @TempoOnRT DECIMAL(18,8) +SET @TempoOnRT = ( + SELECT ISNULL(SUM(DurataMinuti),0) + FROM DiarioDiBordo ddb INNER JOIN AnagraficaStati AnSt ON ddb.IdxStato= AnSt.IdxStato + WHERE AnSt.ClasseTempo NOT IN ('T_OFF', 'T_OFF_ND') AND InizioStato BETWEEN @dataFrom AND @dataTo + AND IdxMacchina = @idxMacchina + ) + +-- calcolo i tempi di apertura: TempoAuto (Verde + giallo) - precedente meno "T_FermoRosso" +DECLARE @TempoAutoRT DECIMAL(18,8) +SET @TempoAutoRT = ( + SELECT @TempoOnRT - ISNULL(SUM(DurataMinuti),0) + FROM DiarioDiBordo ddb INNER JOIN AnagraficaStati AnSt ON ddb.IdxStato= AnSt.IdxStato + WHERE AnSt.ClasseTempo = 'T_FermoRosso' AND InizioStato BETWEEN @dataFrom AND @dataTo + AND IdxMacchina = @idxMacchina + ) + +-- calcolo i tempi di apertura: TempoRun (Verde) +DECLARE @TempoRunRT DECIMAL(18,8) +SET @TempoRunRT = ( + SELECT ISNULL(SUM(DurataMinuti),0) + FROM DiarioDiBordo ddb INNER JOIN AnagraficaStati AnSt ON ddb.IdxStato= AnSt.IdxStato + WHERE AnSt.ClasseTempo = 'T_AutoRun' AND InizioStato BETWEEN @dataFrom AND @dataTo + AND IdxMacchina = @idxMacchina + ) + + + +/**************************************************** +* Calcolo i TEMPI CICLO realtime (anche non confermati) +****************************************************/ + +-- DIVISIONE PER ZERO: controllo pezzi prod > 0... +DECLARE @numPezzi INT +SET @numPezzi = @PezziProd +IF(@numPezzi = 0) SET @numPezzi = 1 + +DECLARE @TCMedRT DECIMAL(18,8) +SET @TCMedRT = ( + SELECT @TempoOnRT / @numPezzi + ) +DECLARE @TCLavRT DECIMAL(18,8) +SET @TCLavRT = ( + SELECT @TempoAutoRT / @numPezzi + ) +DECLARE @TCEffRT DECIMAL(18,8) +SET @TCEffRT = ISNULL(( SELECT dbo.f_lastTempoTecnico(@idxMacchina, 2) ), -1) -- provo a calcolare ultimi tempi tecnici +IF (@TCEffRT =-1) +BEGIN + SET @TCEffRT = ( + SELECT @TempoRunRT / @numPezzi + ) +END + + +SELECT @PezziProd as PezziProd, @TCAss AS TCAssegnato, @TCMedRT AS TCMedioRT, @TCLavRT AS TCLavRT, @TCEffRT AS TCEffRT + + +RETURN +go + +commit; +go + + +set xact_abort on; +go + +begin transaction; +go + +set ANSI_NULLS on; +go + +/************************************* +* STORED PROCEDURE stp_repDonati_getDatiProdMacchina +* restituisce i dati di produzione di una macchina per PERIODO +* +* modif.: S.E.L. - 2012.03.21 +**************************************/ +alter PROCEDURE stp_repDonati_getDatiProdMacchinaPeriodo +( + @idxMacchina NVARCHAR(50), + @dataFrom DATETIME, + @dataTo DATETIME +) +AS + +-- calcolo pezzi CONTATI, non quelli poi confermati... +DECLARE @PezziProd INT +SET @PezziProd = ISNULL(( + SELECT COUNT(*)FROM TempiCicloRilevati + WHERE idxMacchina = @idxMacchina + AND DataOraRif BETWEEN @dataFrom AND @dataTo + ), 0) + +-- calcolo TEMPO MEDIO ponderato in base al num di pezzi per tipo... +DECLARE @TCAss DECIMAL(18,8) + +;WITH cte_tabMinProd as +( + SELECT ISNULL(COUNT(tcr.DataOraRif), 0) * ISNULL(o.TCAssegnato, 0) AS MinProd + FROM TempiCicloRilevati tcr INNER JOIN ODL o + ON o.IdxMacchina=tcr.IdxMacchina AND o.CodArticolo = tcr.CodArticolo + WHERE tcr.DataOraRif BETWEEN o.DataInizio AND ISNULL(o.DataFine, GETDATE()) + AND tcr.DataOraRif BETWEEN @dataFrom AND @dataTo + AND ((o.DataInizio <= @dataTo) AND (ISNULL(o.DataFine, GETDATE()) >= @dataFrom)) + GROUP BY o.TCAssegnato +) +SELECT @TCAss = ISNULL(SUM(MinProd) / @PezziProd, 0) +FROM cte_tabMinProd + + +/**************************************************** +* Calcolo tempi apertura realtime +****************************************************/ +-- calcolo i tempi di apertura: TempoON (Verde + giallo + rosso) +DECLARE @TempoOnRT DECIMAL(18,8) +SET @TempoOnRT = ( + SELECT ISNULL(SUM(DurataMinuti),0) + FROM DiarioDiBordo ddb INNER JOIN AnagraficaStati AnSt ON ddb.IdxStato= AnSt.IdxStato + WHERE AnSt.ClasseTempo NOT IN ('T_OFF', 'T_OFF_ND') AND InizioStato BETWEEN @dataFrom AND @dataTo + AND IdxMacchina = @idxMacchina + ) + +-- calcolo i tempi di apertura: TempoAuto (Verde + giallo) - precedente meno "T_FermoRosso" +DECLARE @TempoAutoRT DECIMAL(18,8) +SET @TempoAutoRT = ( + SELECT @TempoOnRT - ISNULL(SUM(DurataMinuti),0) + FROM DiarioDiBordo ddb INNER JOIN AnagraficaStati AnSt ON ddb.IdxStato= AnSt.IdxStato + WHERE AnSt.ClasseTempo = 'T_FermoRosso' AND InizioStato BETWEEN @dataFrom AND @dataTo + AND IdxMacchina = @idxMacchina + ) + +-- calcolo i tempi di apertura: TempoRun (Verde) +DECLARE @TempoRunRT DECIMAL(18,8) +SET @TempoRunRT = ( + SELECT ISNULL(SUM(DurataMinuti),0) + FROM DiarioDiBordo ddb INNER JOIN AnagraficaStati AnSt ON ddb.IdxStato= AnSt.IdxStato + WHERE AnSt.ClasseTempo = 'T_AutoRun' AND InizioStato BETWEEN @dataFrom AND @dataTo + AND IdxMacchina = @idxMacchina + ) + + + +/**************************************************** +* Calcolo i TEMPI CICLO realtime (anche non confermati) +****************************************************/ + +-- DIVISIONE PER ZERO: controllo pezzi prod > 0... +DECLARE @numPezzi INT +SET @numPezzi = @PezziProd +IF(@numPezzi = 0) SET @numPezzi = 1 + +DECLARE @TCMedRT DECIMAL(18,8) +SET @TCMedRT = ( + SELECT @TempoOnRT / @numPezzi + ) +DECLARE @TCLavRT DECIMAL(18,8) +SET @TCLavRT = ( + SELECT @TempoAutoRT / @numPezzi + ) +DECLARE @TCEffRT DECIMAL(18,8) +SET @TCEffRT = ISNULL(( SELECT dbo.f_lastTempoTecnico(@idxMacchina, 2) ), -1) -- provo a calcolare ultimi tempi tecnici +IF (@TCEffRT =-1) +BEGIN + SET @TCEffRT = ( + SELECT @TempoRunRT / @numPezzi + ) +END + + +SELECT @PezziProd as PezziProd, @TCAss AS TCAssegnato, @TCMedRT AS TCMedioRT, @TCLavRT AS TCLavRT, @TCEffRT AS TCEffRT + + +RETURN +go + +commit; +go + + + + + +-- registro versione... +INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(318, GETDATE()) +GO diff --git a/MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_00319.sql b/MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_00319.sql new file mode 100644 index 00000000..b6332135 --- /dev/null +++ b/MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_00319.sql @@ -0,0 +1,444 @@ +set xact_abort on; +go + +begin transaction; +go + +set ANSI_NULLS on; +go + +/************************************* +* Function f_lastTempoTecnico +* calcola il tempo tecnico per un impianto dato idxMacchina e intervallo di tempo x filtraggio +* utilizza migliori 10 tempi nell'intervallo e fa media +* +* modif.: S.E.L. +* il: 2011.03.30 +**************************************/ +alter FUNCTION f_lastTempoTecnico +( + @idxMacchina NVARCHAR(50), + @finestraOre INT +) +RETURNS DECIMAL(18,8) +AS + + +BEGIN + DECLARE @TcTecnico AS DECIMAL (18,8) + ;WITH LastTempi AS + ( + SELECT TOP 5 * + FROM TempiCicloRilevati + WHERE IdxMacchina = @idxMacchina + AND DataOraRif >= DATEADD(HH,-@finestraOre,getdate()) + ORDER BY TCMedio + ) + + SELECT @TcTecnico = ISNULL(MIN(TcMedio),0) FROM LastTempi + --SELECT @TcTecnico = AVG(TcMedio) FROM LastTempi + RETURN @TcTecnico +END +go + +commit; +go + + +set xact_abort on; +go + +begin transaction; +go + +set ANSI_NULLS on; +go + +/************************************* +* STORED PROCEDURE stp_repDonati_getDatiProdMacchina +* restituisce i dati di produzione di una macchina per l'ULTIMO ODL +* +* modif.: S.E.L. - 2012.03.08 +**************************************/ +alter PROCEDURE stp_repDonati_getDatiProdMacchina +( + @idxMacchina NVARCHAR(50) +) +AS + + +-- calcolo codice articolo +DECLARE @CodArticolo NVARCHAR (50) +SET @CodArticolo = ( + SELECT CodArticolo FROM Kanban k + INNER JOIN StatoMacchine sm ON k.MatricolaKanban=sm.MatricolaKanban + WHERE sm.IdxMacchina = @idxMacchina + ) +-- calcolo il codice operatore +DECLARE @CodOperatore INT +SET @CodOperatore = ( + SELECT MatrOpr FROM StatoMacchine + WHERE IdxMacchina = @idxMacchina + ) +-- calcolo il codice ODL +DECLARE @idxODL INT +SET @idxODL = ( + SELECT idxODL FROM ODL + WHERE CodArticolo = @CodArticolo AND IdxMacchina = @idxMacchina AND (ISNULL(DataFine,DATEADD(hh,1,GETDATE())) > GETDATE()) + ) + + +DECLARE @PezziConf INT +SET @PezziConf = ( + SELECT ISNULL(SUM(TotPzProd),0) FROM DatiProduzione + WHERE idxODL = @idxOdl + ) + +DECLARE @PezziLanciati INT +SET @PezziLanciati =( + SELECT ISNULL(SUM(NumPezzi),0) FROM ODL + WHERE idxODL = @idxOdl + ) + +DECLARE @TCAss DECIMAL(18,8) +SET @TCAss = ( + SELECT ISNULL(SUM(TCAssegnato),0) FROM ODL + WHERE idxODL = @idxOdl + ) + +-- dato l'ODL calcolo il TC Medio ed i pezzi prodotti per l'ODL +DECLARE @inizioOdl DATETIME +SET @inizioOdl = ( + SELECT DataInizio FROM ODL + WHERE idxODL = @idxOdl + ) + +DECLARE @PezziProd INT +SET @PezziProd = ( + SELECT COUNT(*) FROM TempiCicloRilevati + WHERE DataOraRif >= @inizioOdl + AND idxMacchina = @idxMacchina + ) + + +/**************************************************** +* Calcolo tempi apertura confermati +****************************************************/ +-- calcolo i tempi di apertura: TempoON (Verde + giallo + rosso) +DECLARE @TempoOn DECIMAL(18,8) +SET @TempoOn = ( + SELECT ISNULL(SUM(Tempo),0) FROM DatiProduzione + WHERE ClasseTempo NOT IN ('T_OFF', 'T_OFF_ND') AND idxODL = @idxOdl + ) + +-- calcolo i tempi di apertura: TempoAuto (Verde + giallo) - precedente meno "T_FermoRosso" +DECLARE @TempoAuto DECIMAL(18,8) +SET @TempoAuto = ( + SELECT @TempoOn - ISNULL(SUM(Tempo),0) FROM DatiProduzione + WHERE ClasseTempo = 'T_FermoRosso' AND idxODL = @idxOdl + ) + +-- calcolo i tempi di apertura: TempoRun (Verde) +DECLARE @TempoRun DECIMAL(18,8) +SET @TempoRun = ( + SELECT ISNULL(SUM(Tempo),0) FROM DatiProduzione + WHERE ClasseTempo = 'T_AutoRun' AND idxODL = @idxOdl + ) + +/**************************************************** +* Calcolo tempi apertura realtime +****************************************************/ +-- calcolo i tempi di apertura: TempoON (Verde + giallo + rosso) +DECLARE @TempoOnRT DECIMAL(18,8) +SET @TempoOnRT = ( + SELECT ISNULL(SUM(DurataMinuti),0) + FROM DiarioDiBordo ddb INNER JOIN AnagraficaStati AnSt ON ddb.IdxStato= AnSt.IdxStato + WHERE AnSt.ClasseTempo NOT IN ('T_OFF', 'T_OFF_ND') AND InizioStato >= @inizioOdl + AND IdxMacchina = @idxMacchina + ) + +-- calcolo i tempi di apertura: TempoAuto (Verde + giallo) - precedente meno "T_FermoRosso" +DECLARE @TempoAutoRT DECIMAL(18,8) +SET @TempoAutoRT = ( + SELECT @TempoOnRT - ISNULL(SUM(DurataMinuti),0) + FROM DiarioDiBordo ddb INNER JOIN AnagraficaStati AnSt ON ddb.IdxStato= AnSt.IdxStato + WHERE AnSt.ClasseTempo = 'T_FermoRosso' AND InizioStato >= @inizioOdl + AND IdxMacchina = @idxMacchina + ) + +-- calcolo i tempi di apertura: TempoRun (Verde) +DECLARE @TempoRunRT DECIMAL(18,8) +SET @TempoRunRT = ( + SELECT ISNULL(SUM(DurataMinuti),0) + FROM DiarioDiBordo ddb INNER JOIN AnagraficaStati AnSt ON ddb.IdxStato= AnSt.IdxStato + WHERE AnSt.ClasseTempo = 'T_AutoRun' AND InizioStato >= @inizioOdl + AND IdxMacchina = @idxMacchina + ) + +DECLARE @numPezzi INT + +/**************************************************** +* Calcolo i TEMPI CICLO confermati +****************************************************/ + +-- DIVISIONE PER ZERO: controllo pezzi conf > 0 +SET @numPezzi = @PezziConf - 1 -- divido per n-1 per avere numIntervalli = numPezzi +IF(@numPezzi < 1) SET @numPezzi = 1 + +DECLARE @TCMed DECIMAL(18,8) +SET @TCMed = ( + SELECT @TempoOn * 60 / @numPezzi -- tempo in ore + ) +DECLARE @TCLav DECIMAL(18,8) +SET @TCLav = ( + SELECT @TempoAuto * 60 / @numPezzi -- tempo in ore + ) +DECLARE @TCEff DECIMAL(18,8) -- è la media degli ultimi 10 migliori tempi minimi nell'ultima giornata +SET @TCEff = ( + SELECT @TempoRun * 60 / @numPezzi -- tempo in ore + ) + +/**************************************************** +* Calcolo i TEMPI CICLO realtime (anche non confermati) +****************************************************/ + +-- DIVISIONE PER ZERO: controllo pezzi prod > 0... +SET @numPezzi = @PezziProd - 1 -- divido per n-1 per avere numIntervalli = numPezzi +IF(@numPezzi < 1) SET @numPezzi = 1 + +DECLARE @TCMedRT DECIMAL(18,8) +SET @TCMedRT = ( + SELECT @TempoOnRT / @numPezzi + ) +DECLARE @TCLavRT DECIMAL(18,8) +SET @TCLavRT = ( + SELECT @TempoAutoRT / @numPezzi + ) +DECLARE @TCEffRT DECIMAL(18,8) +SET @TCEffRT = ISNULL(( SELECT dbo.f_lastTempoTecnico(@idxMacchina, 2) ), -1) -- provo a calcolare ultimi tempi tecnici +IF (@TCEffRT =-1) +BEGIN + SET @TCEffRT = ( + SELECT @TempoRunRT / @numPezzi + ) +END + + +SELECT @CodArticolo as CodArticolo, @PezziLanciati as PezziLanciati, @PezziProd as PezziProd, @PezziConf as PezziConf, @TCAss AS TCAssegnato, @CodOperatore AS CodOperatore, @TempoOn AS TempoOn, @TempoAuto AS TempoAuto, @TempoRun AS TempoRun, @TCMed AS TCMedio, @TCLav AS TCLav, @TCEff AS TCEff, @TCMedRT AS TCMedioRT, @TCLavRT AS TCLavRT, @TCEffRT AS TCEffRT + + +RETURN +go + +/************************************* +* STORED PROCEDURE stp_repDonati_getLastStatoDurataMacchina +* restituisce l'ultimo stato di una macchina e la durata +* andando a filtrare gli eventi sotto una soglia indicata @minDurata (in minuti) +* e quindi sommando +* +* modif.: S.E.L. - 2012.03.08 +**************************************/ +alter PROCEDURE stp_repDonati_getLastStatoDurataMacchina +( + @idxMacchina NVARCHAR(50), + @minDurata FLOAT +) +AS + +-- calcolo codice articolo +DECLARE @idxStato INT +SET @idxStato = ( + SELECT TOP 1 ISNULL(IdxStato,0) + FROM DiarioDiBordo + WHERE idxMacchina = @idxMacchina + --AND ISNULL(durataMinuti, 0) > @minDurata + ORDER BY InizioStato DESC + ) +-- calcolo durata filtrata... ovvero evento più recente NON dello stato indicato (changed) +DECLARE @lastChTime DATETIME +SET @lastChTime = ( + SELECT TOP 1 ISNULL(inizioStato, GetDate()) + FROM DiarioDiBordo + WHERE idxMacchina = @idxMacchina + AND idxStato <> @idxStato + AND ISNULL(durataMinuti, 0) > @minDurata + ORDER BY InizioStato DESC + ) + +DECLARE @timeMinuti FLOAT +SET @timeMinuti = ( SELECT DATEDIFF(n, @lastChTime, GetDate()) ) + +SELECT @idxStato AS idxStato, @timeMinuti AS Minuti + + +RETURN +go + +commit; +go + + +set xact_abort on; +go + +begin transaction; +go + +set ANSI_NULLS on; +go + +/************************************* +* STORED PROCEDURE stp_repDonati_getDatiProdMacchina +* restituisce i dati di produzione di una macchina per PERIODO +* +* modif.: S.E.L. - 2012.03.21 +**************************************/ +alter PROCEDURE stp_repDonati_getDatiProdMacchinaPeriodo +( + @idxMacchina NVARCHAR(50), + @dataFrom DATETIME, + @dataTo DATETIME +) +AS + +-- calcolo pezzi CONTATI, non quelli poi confermati... +DECLARE @PezziProd INT +SET @PezziProd = ISNULL(( + SELECT COUNT(*)FROM TempiCicloRilevati + WHERE idxMacchina = @idxMacchina + AND DataOraRif BETWEEN @dataFrom AND @dataTo + ), 0) + +-- calcolo TEMPO MEDIO ponderato in base al num di pezzi per tipo... +DECLARE @TCAss DECIMAL(18,8) + +;WITH cte_tabMinProd as +( + SELECT ISNULL(COUNT(tcr.DataOraRif), 0) * ISNULL(o.TCAssegnato, 0) AS MinProd + FROM TempiCicloRilevati tcr INNER JOIN ODL o + ON o.IdxMacchina=tcr.IdxMacchina AND o.CodArticolo = tcr.CodArticolo + WHERE tcr.DataOraRif BETWEEN o.DataInizio AND ISNULL(o.DataFine, GETDATE()) + AND tcr.DataOraRif BETWEEN @dataFrom AND @dataTo + AND ((o.DataInizio <= @dataTo) AND (ISNULL(o.DataFine, GETDATE()) >= @dataFrom)) + GROUP BY o.TCAssegnato +) +SELECT @TCAss = ISNULL(SUM(MinProd) / @PezziProd, 0) +FROM cte_tabMinProd + + +/**************************************************** +* Calcolo tempi apertura realtime +****************************************************/ +-- calcolo i tempi di apertura: TempoON (Verde + giallo + rosso) +DECLARE @TempoOnRT DECIMAL(18,8) +SET @TempoOnRT = ( + SELECT ISNULL(SUM(DurataMinuti),0) + FROM DiarioDiBordo ddb INNER JOIN AnagraficaStati AnSt ON ddb.IdxStato= AnSt.IdxStato + WHERE AnSt.ClasseTempo NOT IN ('T_OFF', 'T_OFF_ND') AND InizioStato BETWEEN @dataFrom AND @dataTo + AND IdxMacchina = @idxMacchina + ) + +-- calcolo i tempi di apertura: TempoAuto (Verde + giallo) - precedente meno "T_FermoRosso" +DECLARE @TempoAutoRT DECIMAL(18,8) +SET @TempoAutoRT = ( + SELECT @TempoOnRT - ISNULL(SUM(DurataMinuti),0) + FROM DiarioDiBordo ddb INNER JOIN AnagraficaStati AnSt ON ddb.IdxStato= AnSt.IdxStato + WHERE AnSt.ClasseTempo = 'T_FermoRosso' AND InizioStato BETWEEN @dataFrom AND @dataTo + AND IdxMacchina = @idxMacchina + ) + +-- calcolo i tempi di apertura: TempoRun (Verde) +DECLARE @TempoRunRT DECIMAL(18,8) +SET @TempoRunRT = ( + SELECT ISNULL(SUM(DurataMinuti),0) + FROM DiarioDiBordo ddb INNER JOIN AnagraficaStati AnSt ON ddb.IdxStato= AnSt.IdxStato + WHERE AnSt.ClasseTempo = 'T_AutoRun' AND InizioStato BETWEEN @dataFrom AND @dataTo + AND IdxMacchina = @idxMacchina + ) + + + +/**************************************************** +* Calcolo i TEMPI CICLO realtime (anche non confermati) +****************************************************/ + +-- DIVISIONE PER ZERO: controllo pezzi prod > 0... +DECLARE @numPezzi INT +SET @numPezzi = @PezziProd - 1 -- divido per n-1 per avere numIntervalli = numPezzi +IF(@numPezzi < 1) SET @numPezzi = 1 + +DECLARE @TCMedRT DECIMAL(18,8) +SET @TCMedRT = ( + SELECT @TempoOnRT / @numPezzi + ) +DECLARE @TCLavRT DECIMAL(18,8) +SET @TCLavRT = ( + SELECT @TempoAutoRT / @numPezzi + ) +DECLARE @TCEffRT DECIMAL(18,8) +SET @TCEffRT = ISNULL(( SELECT dbo.f_lastTempoTecnico(@idxMacchina, 2) ), -1) -- provo a calcolare ultimi tempi tecnici +IF (@TCEffRT =-1) +BEGIN + SET @TCEffRT = ( + SELECT @TempoRunRT / @numPezzi + ) +END + + +SELECT @PezziProd as PezziProd, @TCAss AS TCAssegnato, @TCMedRT AS TCMedioRT, @TCLavRT AS TCLavRT, @TCEffRT AS TCEffRT + + +RETURN +go + +commit; +go + + +set ANSI_NULLS on; +go + +/************************************* +* Function f_TC_60-100 +* converte il tempo in min e sec (60) +* in minuti centesimali (100) +* +* modif.: S.E.L. +* il: 2012.03.22 +**************************************/ +create FUNCTION f_TC_60_100 +( + @TC_60 DECIMAL(18,8) +) +RETURNS DECIMAL(18,8) +AS + + +BEGIN + DECLARE @TC_100 AS DECIMAL (18,8) + + SELECT @TC_100 = FLOOR(@TC_60) + (@TC_60 - FLOOR(@TC_60)) * 100 / 60 + + RETURN @TC_100 +END +go + + + +update ODL +set TCAssegnato = dbo.f_TC_60_100(TCAssegnato) + +update DatiProduzione +set TCAssegnato = dbo.f_TC_60_100(TCAssegnato) + +update TempiCicloTeorici +set TCAssegnato = dbo.f_TC_60_100(TCAssegnato) + +update DatiConfermati +set TCAssegnato = dbo.f_TC_60_100(TCAssegnato) + + + +-- registro versione... +INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(319, GETDATE()) +GO diff --git a/MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_00320.sql b/MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_00320.sql new file mode 100644 index 00000000..e19d615f --- /dev/null +++ b/MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_00320.sql @@ -0,0 +1,304 @@ +/******************************************************* +* GESTIONE NUOVO EVENTO per timeout contapezzo +*******************************************************/ + +-- tab eventi, nuovo evento 27 +set xact_abort on +go + +begin transaction +go + +INSERT INTO dbo.AnagraficaEventi + VALUES (27, N'Timer - timeout tempo ciclo', N'', N'') +go + +commit transaction +go + + +-- tab transazioneEventi x andare da lavora a fermoGenerico +set xact_abort on +go + +begin transaction +go + +INSERT INTO dbo.TransizioneStati + VALUES (10, 13, 27, 12) +go + +commit transaction +go + + +create table TurniMacchina( + IdxMacchina nvarchar(50) not null constraint PK_TurniMacchina primary key, + T1 bit, + T2 bit, + T3 bit +); +go + + +set xact_abort on +go + +begin transaction +go + +INSERT INTO dbo.TurniMacchina + VALUES (N'1005', 1, 1, 0) +go + +commit transaction +go + + +set xact_abort on; +go + +begin transaction; +go + +set ANSI_NULLS on; +go + +/************************************* +* STORED PROCEDURE stp_DatiProd_getByMacchPeriodo +* +* recupera i dati confermati x una macchina e periodo, ordinati in data DESC +* +* modif.: S.E.L. +* il: 2011.07.04 +**************************************/ +alter PROCEDURE stp_DatiProd_getByMacchPeriodo +( + @idxMacchina NVARCHAR(50), + @dataFrom DATETIME, + @dataTo DATETIME +) +AS + +SELECT * +FROM DatiProduzione +WHERE IdxMacchina = @idxMacchina AND (DataRif >= @dataFrom AND DataRif <= @dataTo) + +RETURN +go + +commit; +go + + +set xact_abort on; +go + +begin transaction; +go + +set ANSI_NULLS on; +go + +/************************************* +* STORED PROCEDURE stp_turniMacchineByIdxMacc +* elenco turni x macchina +* +* modif.: S.E.L. - 2012.03.26 +**************************************/ +create PROCEDURE stp_turniMacchineByIdxMacc +( + @IdxMacchina NVARCHAR(50) +) +AS + +SELECT * +FROM TurniMacchina +WHERE IdxMacchina = @IdxMacchina + +RETURN +go + +commit; +go + + +set xact_abort on; +go + +begin transaction; +go + +set ANSI_NULLS on; +go + +/************************************* +* Function f_lastTempoTecnico +* calcola il tempo tecnico per un impianto dato idxMacchina e intervallo di tempo x filtraggio +* utilizza migliori 10 tempi nell'intervallo e fa media +* +* modif.: S.E.L. +* il: 2011.03.30 +**************************************/ +alter FUNCTION f_lastTempoTecnico +( + @idxMacchina NVARCHAR(50), + @finestraOre INT +) +RETURNS DECIMAL(18,8) +AS + + +BEGIN + DECLARE @TcTecnico AS DECIMAL (18,8) + ;WITH LastTempi AS + ( + SELECT TOP 5 * + FROM TempiCicloRilevati + WHERE IdxMacchina = @idxMacchina + AND DataOraRif >= DATEADD(HH,-@finestraOre,getdate()) + ORDER BY TCMedio + ) + + SELECT @TcTecnico = ISNULL(AVG(TcMedio), 0) FROM LastTempi + --SELECT @TcTecnico = ISNULL(MIN(TcMedio), 0) FROM LastTempi + --SELECT @TcTecnico = AVG(TcMedio) FROM LastTempi + RETURN @TcTecnico +END +go + +commit; +go + + +set xact_abort on; +go + +begin transaction; +go + +set ANSI_NULLS on; +go + +/************************************* +* STORED PROCEDURE stp_turniMacchineUpdateTurno +* cambia il turno specificato per la macchina (toggle: attivo/disattivo) +* +* modif.: S.E.L. - 2012.03.26 +**************************************/ +create PROCEDURE stp_turniMacchineUpdateTurno +( + @IdxMacchina NVARCHAR(50), + @numTurno INT +) +AS + +-- in base al turno indicato cambio solo uno + UPDATE TurniMacchina + SET T1 = CASE @numTurno WHEN 1 THEN 1-T1 ELSE T1 END, + T2 = CASE @numTurno WHEN 2 THEN 1-T2 ELSE T2 END, + T3 = CASE @numTurno WHEN 3 THEN 1-T3 ELSE T3 END + WHERE IdxMacchina = @IdxMacchina + +RETURN +go + +commit; +go + + +set xact_abort on +go + +begin transaction +go + +INSERT INTO dbo.AnagraficaEventi + VALUES (28, N'Timer - timeout TURNO by tempo ciclo', N'', N'') +go + +commit transaction +go + +set xact_abort on +go + +begin transaction +go + +INSERT INTO dbo.TransizioneStati + VALUES (10, 1, 28, 26) +INSERT INTO dbo.TransizioneStati + VALUES (10, 2, 28, 26) +INSERT INTO dbo.TransizioneStati + VALUES (10, 3, 28, 26) +INSERT INTO dbo.TransizioneStati + VALUES (10, 4, 28, 26) +INSERT INTO dbo.TransizioneStati + VALUES (10, 5, 28, 26) +INSERT INTO dbo.TransizioneStati + VALUES (10, 6, 28, 26) +INSERT INTO dbo.TransizioneStati + VALUES (10, 7, 28, 26) +INSERT INTO dbo.TransizioneStati + VALUES (10, 8, 28, 26) +INSERT INTO dbo.TransizioneStati + VALUES (10, 9, 28, 26) +INSERT INTO dbo.TransizioneStati + VALUES (10, 10, 28, 26) +INSERT INTO dbo.TransizioneStati + VALUES (10, 12, 28, 26) +INSERT INTO dbo.TransizioneStati + VALUES (10, 13, 28, 26) +INSERT INTO dbo.TransizioneStati + VALUES (10, 14, 28, 26) +INSERT INTO dbo.TransizioneStati + VALUES (10, 15, 28, 26) +INSERT INTO dbo.TransizioneStati + VALUES (10, 23, 28, 26) +INSERT INTO dbo.TransizioneStati + VALUES (10, 24, 28, 26) +INSERT INTO dbo.TransizioneStati + VALUES (10, 25, 28, 26) +INSERT INTO dbo.TransizioneStati + VALUES (10, 26, 14, 11) +INSERT INTO dbo.TransizioneStati + VALUES (10, 26, 15, 12) +INSERT INTO dbo.TransizioneStati + VALUES (10, 26, 16, 13) +INSERT INTO dbo.TransizioneStati + VALUES (10, 26, 17, 14) +INSERT INTO dbo.TransizioneStati + VALUES (10, 26, 18, 15) +INSERT INTO dbo.TransizioneStati + VALUES (10, 26, 20, 14) +INSERT INTO dbo.TransizioneStati + VALUES (10, 26, 21, 13) +INSERT INTO dbo.TransizioneStati + VALUES (10, 26, 22, 14) +INSERT INTO dbo.TransizioneStati + VALUES (10, 26, 23, 23) +INSERT INTO dbo.TransizioneStati + VALUES (10, 26, 24, 24) +INSERT INTO dbo.TransizioneStati + VALUES (10, 26, 25, 25) +INSERT INTO dbo.TransizioneStati + VALUES (10, 26, 26, 27) +INSERT INTO dbo.TransizioneStati + VALUES (10, 27, 14, 11) +INSERT INTO dbo.TransizioneStati + VALUES (10, 27, 28, 26) +DELETE FROM dbo.TransizioneStati WHERE IdxFamiglia=10 and IdxStato=11 and IdxTipo=14 +go + +commit transaction +go + + + + + + +-- registro versione... +INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(320, GETDATE()) +GO diff --git a/MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_301.sql b/MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_301.sql new file mode 100644 index 00000000..efcd2fe0 --- /dev/null +++ b/MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_301.sql @@ -0,0 +1,123 @@ +create table AnagraficaStatiOld( + IdxStato int not null, + Descrizione nvarchar(50), + Semaforo nvarchar(50), + Priorita int, + ClasseTempo nvarchar(50) +) +go + + +-- + +create table DatiConf_old( + IdxConferma int not null identity, + IdxODL int not null, + DataOraApp datetime not null, + DataRif datetime not null, + TurnoRif int, + CodArticolo nvarchar(50), + IdxMacchina nvarchar(50) not null, + TCAssegnato decimal(18,8), + MatrOpr int, + MatrApp int not null, + DataOraFrom datetime, + DataOraTo datetime, + IdxStato int not null, + TotPzProd int, + TempoProdotto decimal(18,8), + TempoCron decimal(18,8), + TempoND decimal(18,8), + TempoApertura decimal(18,8), + TempoOFF decimal(18,8), + TempoON decimal(18,8), + TempoFermoOn decimal(18,8), + TempoAuto decimal(18,8), + TempoFermoAuto decimal(18,8), + TempoRun decimal(18,8), + TotPzFermo int +) +go + + +-- + +create table DatiConf_older( + IdxConferma int not null identity, + IdxODL int not null, + DataOraApp datetime not null, + DataRif datetime not null, + TurnoRif int, + CodArticolo nvarchar(50), + IdxMacchina nvarchar(50) not null, + TCAssegnato decimal(18,8), + MatrOpr int, + MatrApp int not null, + DataOraFrom datetime, + DataOraTo datetime, + IdxStato int not null, + TotPzProd int, + TempoProdotto decimal(18,8), + TempoCron decimal(18,8), + TempoND decimal(18,8), + TempoApertura decimal(18,8), + TempoOFF decimal(18,8), + TempoON decimal(18,8), + TempoFermoOn decimal(18,8), + TempoAuto decimal(18,8), + TempoFermoAuto decimal(18,8), + TempoRun decimal(18,8), + TotPzFermo int +) +go + + +-- + +create table DatiProd_old( + IdxConferma int not null identity, + IdxODL int not null, + DataOraApp datetime not null, + DataRif datetime not null, + TurnoRif int, + CodArticolo nvarchar(50), + IdxMacchina nvarchar(50) not null, + TCAssegnato decimal(18,8), + MatrOpr int, + MatrApp int not null, + DataOraFrom datetime, + DataOraTo datetime, + TotPzProd int, + Tempo decimal(18,8), + ClasseTempo nvarchar(50) +) +go + + +-- + +create table DatiProd_older( + IdxConferma int not null identity, + IdxODL int not null, + DataOraApp datetime not null, + DataRif datetime not null, + TurnoRif int, + CodArticolo nvarchar(50), + IdxMacchina nvarchar(50) not null, + TCAssegnato decimal(18,8), + MatrOpr int, + MatrApp int not null, + DataOraFrom datetime, + DataOraTo datetime, + TotPzProd int, + Tempo decimal(18,8), + ClasseTempo nvarchar(50) +) +go + + +-- + +-- registro versione... +INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(301, GETDATE()) +GO \ No newline at end of file diff --git a/MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_302_con_dati.sql b/MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_302_con_dati.sql new file mode 100644 index 00000000..ead935eb --- /dev/null +++ b/MapoDb/SqlUpdate/MoonPro/V2.0/MoonPro_302_con_dati.sql @@ -0,0 +1,17 @@ +set xact_abort on +go + +begin transaction +go + +UPDATE dbo.AnagraficaStati SET + ShowArticolo=1 + WHERE IdxStato=1 +go + +commit transaction +go + +-- registro versione... +INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(302, GETDATE()) +GO \ No newline at end of file diff --git a/MapoDb/SqlUpdate/MoonPro/V2.1/MoonPro_00353.sql b/MapoDb/SqlUpdate/MoonPro/V2.1/MoonPro_00353.sql new file mode 100644 index 00000000..75ac288a --- /dev/null +++ b/MapoDb/SqlUpdate/MoonPro/V2.1/MoonPro_00353.sql @@ -0,0 +1,356 @@ +set xact_abort on; +go + +begin transaction; +go + +alter table DatiMacchine add + insEnabled bit constraint DF_DatiMacchine_insEnabled default ((1)); +go + +exec sp_addextendedproperty 'MS_Description', 'definisce se l''INSERT sia abilitato per la macchina (disabilitato in fase di ricostruzione batch...)', 'SCHEMA', 'dbo', 'TABLE', 'DatiMacchine', 'COLUMN', 'insEnabled'; +go + +update DatiMacchine set insEnabled=((1)); +go + +set ANSI_NULLS on; +go + +/************************************* +* STORED PROCEDURE InsStatoBatch +* inserimento di uno stato nel db (tab DiarioDiBordo) +* inerimento in anagrafica a "nd" dell'operatore se matricola mancasse +* +* modif.: S.E.L. +* il: 2008.08.07 +**************************************/ +alter PROCEDURE stp_DDB_InsStatoBatch +( + @IdxMacchina varchar(50), + @InizioStato datetime, + @IdxStato int, + @MatricolaKanban varchar(50), + @Value varchar(50), + @MatrOpr int, + @pallet varchar(20) +) +AS + /************************************* + * verifico se esista operatore + **************************************/ + DECLARE @matrOut INT = @MatrOpr + 1 + SELECT @matrOut = ISNULL ( + ( + SELECT MatrOpr FROM AnagraficaOperatori + WHERE (MatrOpr = @MatrOpr) + ),-999999 + ) + IF (@matrOut <> @MatrOpr ) -- significa che la matricola NON C'E'... + BEGIN + /* inserisco nuovo record */ + INSERT INTO AnagraficaOperatori(MatrOpr, Cognome, Nome) + VALUES (@MatrOpr,'nd (cognome)','nd (nome)') + END + + -- controllo se input abilitato + DECLARE @insEnabled BIT + SET @insEnabled = ( SELECT insEnabled FROM DatiMacchine WHERE IdxMacchina = @IdxMacchina ) + + -- inserisco SOLO SE è abilitato input x quella macchina + IF(@insEnabled = 1) + BEGIN + /* inserisco valori */ + INSERT INTO DiarioDiBordo + (IdxMacchina, InizioStato, FineStato, IdxStato, MatricolaKanban, Value, MatrOpr, pallet) + VALUES (@IdxMacchina, @InizioStato, NULL, @IdxStato, @MatricolaKanban, @Value, @MatrOpr, @pallet) + END + + RETURN +go + +/************************************* +* STORED PROCEDURE InsStato +* inserimento di uno stato nel db (tab DiarioDiBordo) +* inerimento in anagrafica a "nd" dell'operatore se matricola mancasse +* +* modif.: S.E.L. +* il: 2008.08.07 +**************************************/ +alter PROCEDURE stp_DDB_InsStato +( + @IdxMacchina NVARCHAR(50), + @IdxStato INT, + @MatricolaKanban NVARCHAR(50), + @Value NVARCHAR(50), + @MatrOpr INT, + @pallet NVARCHAR(20) +) +AS + /************************************* + * verifico se esista operatore + **************************************/ + DECLARE @matrOut INT = @MatrOpr + 1 + SELECT @matrOut = ISNULL ( + ( + SELECT MatrOpr FROM AnagraficaOperatori + WHERE (MatrOpr = @MatrOpr) + ),-999999 + ) + IF (@matrOut <> @MatrOpr ) -- significa che la matricola NON C'E'... + BEGIN + /* inserisco nuovo record */ + INSERT INTO AnagraficaOperatori(MatrOpr, Cognome, Nome) + VALUES (@MatrOpr,'nd (cognome)','nd (nome)') + END + + -- controllo se input abilitato + DECLARE @insEnabled BIT + SET @insEnabled = ( SELECT insEnabled FROM DatiMacchine WHERE IdxMacchina = @IdxMacchina ) + + -- inserisco SOLO SE è abilitato input x quella macchina + IF(@insEnabled = 1) + BEGIN + /* inserisco valori */ + INSERT INTO DiarioDiBordo + (IdxMacchina, InizioStato, FineStato, IdxStato, MatricolaKanban, Value, MatrOpr, pallet) + VALUES (@IdxMacchina, GETDATE(), NULL, @IdxStato, @MatricolaKanban, @Value, @MatrOpr, @pallet) + END + + RETURN +go + +-- ================================================ +-- Author: Samuele E. Locatelli +-- Create date: 2012.11.23 +-- +-- Description: rigenerazioen del diario di bordo +-- a partire da macchina eventi/stati + EventList +-- ================================================ +create PROCEDURE stp_ZZZ_rigeneraDDB +( + @idxStatoStart INT = 1, + @idxMacchina NVARCHAR(50), + @inizio DATETIME, + @fine DATETIME +) +AS + +DBCC SHOWCONTIG(EventList) +DBCC SHOWCONTIG(DiarioDiBordo) + +EXEC USP_DisableEnableNonClusteredIndexes 'MoonPro',null, 1 --disabilito indici + +-- svuoto dati che vado a sostituire +PRINT 'svuoto DiarioDiBordo per periodo indicato...' +EXEC stp_DDB_deleteMacchinaPeriodo @idxMacchina, @inizio, @fine +PRINT 'svuoto TempiCicloRilevati per periodo indicato...' +DELETE FROM TempiCicloRilevati WHERE idxMacchina = @idxMacchina AND DataOraRif BETWEEN @inizio AND @fine + +PRINT 'processo EventList per periodo indicato...' +DECLARE @InizioStato DATETIME +DECLARE @IdxTipo INT +DECLARE @MatricolaKanban NVARCHAR(50) +DECLARE @Value NVARCHAR(50) +DECLARE @MatrOpr INT +DECLARE @pallet NVARCHAR(20) +DECLARE @nextIdxStato INT +DECLARE @currIdxStato INT +DECLARE @IdxFamiglia INT + +-- calcolo famiglia macchina! +SET @IdxFamiglia = ( SELECT IdxFamiglia FROM Macchine2FamiglieMacchine WHERE idxMacchina = @idxMacchina ) + +-- ipotizzo macchina inizialmente in stato richiesto (default: 1 = pronta) e quindi imposto stato current a quello iniziale richiesto... +SET @currIdxStato = @idxStatoStart + +-- DISATTIVO inserimento in DiarioDiBordo per la macchina indicata +UPDATE DatiMacchine +SET insEnabled = 0 +WHERE IdxMacchina = @IdxMacchina + +-- leggo la tabella degli eventi con cursore x percorrere i dati... +DECLARE event2proc CURSOR FOR +SELECT InizioStato, IdxTipo, MatricolaKanban, Value, MatrOpr, pallet +FROM EventList +WHERE IdxMacchina = @idxMacchina +AND InizioStato BETWEEN @inizio AND @fine +ORDER BY InizioStato; + +OPEN event2proc; + +FETCH NEXT FROM event2proc +INTO @InizioStato, @IdxTipo, @MatricolaKanban, @Value, @MatrOpr, @pallet; + +WHILE @@FETCH_STATUS = 0 + BEGIN + -- calcolo l'eventuale NUOVO idxStato + SET @nextIdxStato = ( SELECT ISNULL( (SELECT next_IdxStato FROM TransizioneStati WHERE IdxFamiglia = @IdxFamiglia AND IdxStato = @currIdxStato AND IdxTipo = @IdxTipo ), @currIdxStato) ) + + -- SE lo stato cambia registro nel DiarioDiBordo! + IF(@nextIdxStato <> @currIdxStato) + BEGIN + -- inserisco in DiarioDiBordo + INSERT INTO DiarioDiBordo + (IdxMacchina, InizioStato, FineStato, IdxStato, MatricolaKanban, Value, MatrOpr, pallet) + VALUES (@IdxMacchina, @InizioStato, NULL, @nextIdxStato, @MatricolaKanban, @Value, @MatrOpr, @pallet) + -- infine imposto il nuovo stato current... + SET @currIdxStato = @nextIdxStato + END + + -- Get the next values + FETCH NEXT FROM event2proc + INTO @InizioStato, @IdxTipo, @MatricolaKanban, @Value, @MatrOpr, @pallet; + END +CLOSE event2proc; +DEALLOCATE event2proc; + +-- RI-ATTIVO inserimento in DiarioDiBordo per la macchina indicata +UPDATE DatiMacchine +SET insEnabled = 1 +WHERE IdxMacchina = @IdxMacchina + +PRINT 'concluso UPDATE tabelle...' + + +DBCC SHOWCONTIG(EventList) +DBCC SHOWCONTIG(DiarioDiBordo) +EXEC USP_DisableEnableNonClusteredIndexes 'MoonPro',null, 2 --riattivo indici + + +--ricostruisco indici +PRINT 'ricostruisco indici...' +DBCC DBREINDEX(EventList) +DBCC DBREINDEX(DiarioDiBordo) +DBCC DBREINDEX(TransizioneIngressi) +DBCC DBREINDEX(Kanban2ins) +DBCC DBREINDEX(Kanban) +DBCC DBREINDEX(AnagraficaOperatori) +DBCC DBREINDEX(AnagraficaOperatori2ins) + +DBCC SHOWCONTIG(EventList) +DBCC SHOWCONTIG(DiarioDiBordo) + +/* +--shrink del db +PRINT 'compatto DB...' +DBCC SHRINKDATABASE (MoonPro) +*/ + +RETURN +go + +commit; +go + + + +set xact_abort on; +go + +begin transaction; +go + +set ANSI_NULLS on; +go + +/************************************* +* STORED PROCEDURE stp_TS_getByIdxMacchIdxTipoEv +* restituisce una riga transizione stati/eventi data macchina ed evento (confrontando lo stato attuale della macchina) +* +* modif.: S.E.L. - 2012.11.23 +**************************************/ +create PROCEDURE stp_TS_getByIdxMacchIdxTipoEv +( + @IdxMacchina NVARCHAR(50), + @IdxTipo INT +) +AS + + +SELECT TransizioneStati.IdxFamiglia, TransizioneStati.IdxStato, TransizioneStati.IdxTipo, TransizioneStati.next_IdxStato +FROM TransizioneStati INNER JOIN +Macchine2FamiglieMacchine ON TransizioneStati.IdxFamiglia = Macchine2FamiglieMacchine.IdxFamiglia INNER JOIN +Macchine ON Macchine2FamiglieMacchine.IdxMacchina = Macchine.IdxMacchina INNER JOIN +StatoMacchine ON Macchine.IdxMacchina = StatoMacchine.IdxMacchina AND TransizioneStati.IdxStato = StatoMacchine.IdxStato +WHERE (Macchine.IdxMacchina = @IdxMacchina) AND (TransizioneStati.IdxTipo = @IdxTipo) AND (TransizioneStati.IdxFamiglia <> 1) + +RETURN +go + +commit; +go + + + +set xact_abort on; +go + +begin transaction; +go + +set ANSI_NULLS on; +go + +/*************************************************** +* Trigger trg_EV_filtroIns +* +* filtro operazioni scrittura su tab EventList: +* - scrive un NUOVO recordo SOLO SE la chiave differisce per almeno 2 valori +* +* modificato: S.E.L. +* 2012.11.26 +* +***************************************************/ +create TRIGGER trg_EV_filtroIns +ON EventList +INSTEAD OF INSERT +AS + +IF (@@ROWCOUNT = 1) +BEGIN + DECLARE @IdxMacchina AS NVARCHAR(50) + DECLARE @InizioStato AS DATETIME + DECLARE @IdxTipo AS INT + DECLARE @numMin AS INT=4 + DECLARE @trovati AS INT=0 + + SELECT @IdxMacchina=IdxMacchina, @InizioStato=InizioStato, @IdxTipo=IdxTipo FROM INSERTED + + ;WITH myCTE AS + ( + SELECT TOP(@numMin) ev.* + FROM EventList ev + INNER JOIN INSERTED i ON ev.IdxMacchina=i.IdxMacchina + ORDER BY InizioStato DESC + ) + SELECT @trovati=COUNT(IdxTipo) FROM myCTE WHERE idxTipo = @IdxTipo + + -- se tutte le righe sono con stesso tipo... + + IF(@trovati < @numMin) + BEGIN + INSERT INTO EventList + SELECT * FROM INSERTED + END +END + +go + +alter table EventList disable trigger trg_doActions; +go + +commit; +go + + + + + + +-- registro versione... +INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(353, GETDATE()) +GO + +SELECT TOP 10 * FROM LogUpdateDb ORDER BY Versione DESC +GO \ No newline at end of file diff --git a/MapoDb/SqlUpdate/MoonPro/V3.2/MoonPro_00370.sql b/MapoDb/SqlUpdate/MoonPro/V3.2/MoonPro_00370.sql new file mode 100644 index 00000000..d94a5118 --- /dev/null +++ b/MapoDb/SqlUpdate/MoonPro/V3.2/MoonPro_00370.sql @@ -0,0 +1,1172 @@ +set xact_abort on; +go + +begin transaction; +go + +alter table AnagraficaOperatori add + authKey nvarchar(50) constraint DF_AnagraficaOperatori_authCode default ('12345'); +go + +update AnagraficaOperatori set authKey=('12345'); +go + +commit; +go + + +set xact_abort on +go + +begin transaction +go + +INSERT INTO dbo.AnagraficaOperatori + VALUES (-1, N'nd (cognome)', N'nd (nome)', NULL, N'12345') +UPDATE dbo.AnagraficaOperatori SET + isAdmin=1 + WHERE MatrOpr=0 +go + +commit transaction +go + + +create table LinkMenuJQM( + idxLink int not null identity constraint PK_linkMenuJQM primary key, + TipoLink nvarchar(50), + ordine int, + Testo nvarchar(50), + NavigateUrl nvarchar(50), + icona nvarchar(50) +); +go + + +set xact_abort on +go + +begin transaction +go + +set identity_insert dbo.LinkMenuJQM on +go + +INSERT INTO dbo.LinkMenuJQM + (idxLink, TipoLink, ordine, Testo, NavigateUrl, icona) + VALUES (1, N'DetMacc', 1, N'MappaStato', N'~/MappaStato.aspx', N'grid') +INSERT INTO dbo.LinkMenuJQM + (idxLink, TipoLink, ordine, Testo, NavigateUrl, icona) + VALUES (2, N'DetMacc', 2, N'ODL / Attrezzaggio', N'~/ODL.aspx', N'check') +INSERT INTO dbo.LinkMenuJQM + (idxLink, TipoLink, ordine, Testo, NavigateUrl, icona) + VALUES (3, N'DetMacc', 3, N'Gest Turni', N'~/Turni.aspx', N'gear') +INSERT INTO dbo.LinkMenuJQM + (idxLink, TipoLink, ordine, Testo, NavigateUrl, icona) + VALUES (4, N'DetMacc', 4, N'Dich Fermi', N'~/Dichiarazione.aspx', N'alert') +INSERT INTO dbo.LinkMenuJQM + (idxLink, TipoLink, ordine, Testo, NavigateUrl, icona) + VALUES (5, N'-', 1, N'MappaStato', N'~/MappaStato.aspx', N'grid') +INSERT INTO dbo.LinkMenuJQM + (idxLink, TipoLink, ordine, Testo, NavigateUrl, icona) + VALUES (6, N'-', 2, N'Logout', N'~/Logout.aspx', N'delete') +INSERT INTO dbo.LinkMenuJQM + (idxLink, TipoLink, ordine, Testo, NavigateUrl, icona) + VALUES (8, N'EditMacch', 1, N'Dettaglio', N'~/DettaglioMacchina.aspx', N'home') +INSERT INTO dbo.LinkMenuJQM + (idxLink, TipoLink, ordine, Testo, NavigateUrl, icona) + VALUES (9, N'EditMacch', 2, N'ODL / Attrezzaggio', N'~/ODL.aspx', N'check') +INSERT INTO dbo.LinkMenuJQM + (idxLink, TipoLink, ordine, Testo, NavigateUrl, icona) + VALUES (10, N'EditMacch', 3, N'Gest Turni', N'~/Turni.aspx', N'gear') +INSERT INTO dbo.LinkMenuJQM + (idxLink, TipoLink, ordine, Testo, NavigateUrl, icona) + VALUES (11, N'EditMacch', 4, N'Dich Fermi', N'~/Dichiarazione.aspx', N'alert') +go + +set identity_insert dbo.LinkMenuJQM off +go + +commit transaction +go + + +create table MappaStatoExpl( + RowNum int not null identity constraint PK_MappaStatoExpl primary key, + lastUpdate datetime, + IdxMacchina nvarchar(50), + CodMacchina nvarchar(50), + Nome nvarchar(50), + url nvarchar(250), + idxODL int, + CodArticolo nvarchar(50) constraint DF_MappaStatoExpl_CodArticolo default ('-'), + NumPezzi int, + TCAssegnato decimal(18,8) constraint DF_MappaStatoExpl_TCAssegnato default ((1)), + DataInizioODL datetime, + Semaforo nvarchar(50) constraint DF_MappaStatoExpl_Semaforo default (''), + idxStato int constraint DF_MappaStatoExpl_idxStato default ((0)), + DescrizioneStato nvarchar(50) constraint DF_MappaStatoExpl_DescrizioneStato default ('n.d.'), + durata float constraint DF_MappaStatoExpl_durata default ((0)), + PezziProd int constraint DF_MappaStatoExpl_PezziProd default ((0)), + PezziConf int constraint DF_MappaStatoExpl_PezziConf default ((0)), + TempoOn decimal(18,8) constraint DF_MappaStatoExpl_TempoOn default ((0)), + TempoAuto decimal(18,8) constraint DF_MappaStatoExpl_TempoAuto default ((0)), + TempoRun decimal(18,8) constraint DF_MappaStatoExpl_TempoRun default ((0)), + TCMedio decimal(18,8) constraint DF_MappaStatoExpl_TempoMedioRT1 default ((0)), + TCLav decimal(18,8) constraint DF_MappaStatoExpl_TempoLavRT1 default ((0)), + TCEff decimal(18,8) constraint DF_MappaStatoExpl_TempoEffRT1 default ((0)), + TCMedioRT decimal(18,8) constraint DF_MappaStatoExpl_TempoOnRT default ((0)), + TCLavRT decimal(18,8) constraint DF_MappaStatoExpl_TempoAutoRT default ((0)), + TCEffRT decimal(18,8) constraint DF_MappaStatoExpl_TempoRunRT default ((0)) +); +go + + +set xact_abort on; +go + +begin transaction; +go + +set ANSI_NULLS on; +go + +create VIEW v_selEventiBCode +AS +SELECT IdxTipo AS value, REPLACE(Nome, 'Barcode - ', '') AS label +FROM dbo.AnagraficaEventi +WHERE (Nome LIKE N'Barcode%') +go + +exec sp_addextendedproperty 'MS_DiagramPane1', '[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00] +Begin DesignProperties = + Begin PaneConfigurations = + Begin PaneConfiguration = 0 + NumPanes = 4 + Configuration = "(H (1[40] 4[20] 2[20] 3) )" + End + Begin PaneConfiguration = 1 + NumPanes = 3 + Configuration = "(H (1 [50] 4 [25] 3))" + End + Begin PaneConfiguration = 2 + NumPanes = 3 + Configuration = "(H (1 [50] 2 [25] 3))" + End + Begin PaneConfiguration = 3 + NumPanes = 3 + Configuration = "(H (4 [30] 2 [40] 3))" + End + Begin PaneConfiguration = 4 + NumPanes = 2 + Configuration = "(H (1 [56] 3))" + End + Begin PaneConfiguration = 5 + NumPanes = 2 + Configuration = "(H (2 [66] 3))" + End + Begin PaneConfiguration = 6 + NumPanes = 2 + Configuration = "(H (4 [50] 3))" + End + Begin PaneConfiguration = 7 + NumPanes = 1 + Configuration = "(V (3))" + End + Begin PaneConfiguration = 8 + NumPanes = 3 + Configuration = "(H (1[56] 4[18] 2) )" + End + Begin PaneConfiguration = 9 + NumPanes = 2 + Configuration = "(H (1 [75] 4))" + End + Begin PaneConfiguration = 10 + NumPanes = 2 + Configuration = "(H (1[66] 2) )" + End + Begin PaneConfiguration = 11 + NumPanes = 2 + Configuration = "(H (4 [60] 2))" + End + Begin PaneConfiguration = 12 + NumPanes = 1 + Configuration = "(H (1) )" + End + Begin PaneConfiguration = 13 + NumPanes = 1 + Configuration = "(V (4))" + End + Begin PaneConfiguration = 14 + NumPanes = 1 + Configuration = "(V (2))" + End + ActivePaneConfig = 0 + End + Begin DiagramPane = + Begin Origin = + Top = 0 + Left = 0 + End + Begin Tables = + Begin Table = "AnagraficaEventi" + Begin Extent = + Top = 6 + Left = 38 + Bottom = 136 + Right = 208 + End + DisplayFlags = 280 + TopColumn = 0 + End + End + End + Begin SQLPane = + End + Begin DataPane = + Begin ParameterDefaults = "" + End + Begin ColumnWidths = 9 + Width = 284 + Width = 1500 + Width = 3765 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + End + End + Begin CriteriaPane = + Begin ColumnWidths = 11 + Column = 1440 + Alias = 900 + Table = 1170 + Output = 720 + Append = 1400 + NewValue = 1170 + SortType = 1350 + SortOrder = 1410 + GroupBy = 1350 + Filter = 1350 + Or = 1350 + Or = 1350 + Or = 1350 + End + End +End +', 'SCHEMA', 'dbo', 'VIEW', 'v_selEventiBCode'; +go + +exec sp_addextendedproperty 'MS_DiagramPaneCount', 1, 'SCHEMA', 'dbo', 'VIEW', 'v_selEventiBCode'; +go + +create VIEW v_selODL +AS +SELECT IdxODL AS value, 'ODL ' + CAST(IdxODL AS NVARCHAR(50)) + ' - art.' + CodArticolo + ' (' + CAST(NumPezzi AS NVARCHAR(10)) + + ' pz, tempo ciclo: ' + CAST(CAST(TCAssegnato AS DECIMAL(9, 2)) AS NVARCHAR(10)) + ')' AS label, DataInizio AS conditio +FROM dbo.ODL +go + +exec sp_addextendedproperty 'MS_DiagramPane1', '[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00] +Begin DesignProperties = + Begin PaneConfigurations = + Begin PaneConfiguration = 0 + NumPanes = 4 + Configuration = "(H (1[40] 4[20] 2[20] 3) )" + End + Begin PaneConfiguration = 1 + NumPanes = 3 + Configuration = "(H (1 [50] 4 [25] 3))" + End + Begin PaneConfiguration = 2 + NumPanes = 3 + Configuration = "(H (1 [50] 2 [25] 3))" + End + Begin PaneConfiguration = 3 + NumPanes = 3 + Configuration = "(H (4 [30] 2 [40] 3))" + End + Begin PaneConfiguration = 4 + NumPanes = 2 + Configuration = "(H (1 [56] 3))" + End + Begin PaneConfiguration = 5 + NumPanes = 2 + Configuration = "(H (2 [66] 3))" + End + Begin PaneConfiguration = 6 + NumPanes = 2 + Configuration = "(H (4 [50] 3))" + End + Begin PaneConfiguration = 7 + NumPanes = 1 + Configuration = "(V (3))" + End + Begin PaneConfiguration = 8 + NumPanes = 3 + Configuration = "(H (1[56] 4[18] 2) )" + End + Begin PaneConfiguration = 9 + NumPanes = 2 + Configuration = "(H (1 [75] 4))" + End + Begin PaneConfiguration = 10 + NumPanes = 2 + Configuration = "(H (1[66] 2) )" + End + Begin PaneConfiguration = 11 + NumPanes = 2 + Configuration = "(H (4 [60] 2))" + End + Begin PaneConfiguration = 12 + NumPanes = 1 + Configuration = "(H (1) )" + End + Begin PaneConfiguration = 13 + NumPanes = 1 + Configuration = "(V (4))" + End + Begin PaneConfiguration = 14 + NumPanes = 1 + Configuration = "(V (2))" + End + ActivePaneConfig = 0 + End + Begin DiagramPane = + Begin Origin = + Top = 0 + Left = 0 + End + Begin Tables = + Begin Table = "ODL" + Begin Extent = + Top = 6 + Left = 38 + Bottom = 239 + Right = 208 + End + DisplayFlags = 280 + TopColumn = 0 + End + End + End + Begin SQLPane = + End + Begin DataPane = + Begin ParameterDefaults = "" + End + Begin ColumnWidths = 9 + Width = 284 + Width = 1500 + Width = 4635 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + End + End + Begin CriteriaPane = + Begin ColumnWidths = 11 + Column = 1440 + Alias = 900 + Table = 1170 + Output = 720 + Append = 1400 + NewValue = 1170 + SortType = 1350 + SortOrder = 1410 + GroupBy = 1350 + Filter = 1350 + Or = 1350 + Or = 1350 + Or = 1350 + End + End +End +', 'SCHEMA', 'dbo', 'VIEW', 'v_selODL'; +go + +exec sp_addextendedproperty 'MS_DiagramPaneCount', 1, 'SCHEMA', 'dbo', 'VIEW', 'v_selODL'; +go + +create VIEW v_selOperatori +AS +SELECT MatrOpr AS value, Cognome + ' ' + Nome AS label +FROM dbo.AnagraficaOperatori +WHERE (MatrOpr > 0) +go + +exec sp_addextendedproperty 'MS_DiagramPane1', '[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00] +Begin DesignProperties = + Begin PaneConfigurations = + Begin PaneConfiguration = 0 + NumPanes = 4 + Configuration = "(H (1[40] 4[20] 2[20] 3) )" + End + Begin PaneConfiguration = 1 + NumPanes = 3 + Configuration = "(H (1 [50] 4 [25] 3))" + End + Begin PaneConfiguration = 2 + NumPanes = 3 + Configuration = "(H (1 [50] 2 [25] 3))" + End + Begin PaneConfiguration = 3 + NumPanes = 3 + Configuration = "(H (4 [30] 2 [40] 3))" + End + Begin PaneConfiguration = 4 + NumPanes = 2 + Configuration = "(H (1 [56] 3))" + End + Begin PaneConfiguration = 5 + NumPanes = 2 + Configuration = "(H (2 [66] 3))" + End + Begin PaneConfiguration = 6 + NumPanes = 2 + Configuration = "(H (4 [50] 3))" + End + Begin PaneConfiguration = 7 + NumPanes = 1 + Configuration = "(V (3))" + End + Begin PaneConfiguration = 8 + NumPanes = 3 + Configuration = "(H (1[56] 4[18] 2) )" + End + Begin PaneConfiguration = 9 + NumPanes = 2 + Configuration = "(H (1 [75] 4))" + End + Begin PaneConfiguration = 10 + NumPanes = 2 + Configuration = "(H (1[66] 2) )" + End + Begin PaneConfiguration = 11 + NumPanes = 2 + Configuration = "(H (4 [60] 2))" + End + Begin PaneConfiguration = 12 + NumPanes = 1 + Configuration = "(H (1) )" + End + Begin PaneConfiguration = 13 + NumPanes = 1 + Configuration = "(V (4))" + End + Begin PaneConfiguration = 14 + NumPanes = 1 + Configuration = "(V (2))" + End + ActivePaneConfig = 0 + End + Begin DiagramPane = + Begin Origin = + Top = 0 + Left = 0 + End + Begin Tables = + Begin Table = "AnagraficaOperatori" + Begin Extent = + Top = 6 + Left = 38 + Bottom = 306 + Right = 208 + End + DisplayFlags = 280 + TopColumn = 0 + End + End + End + Begin SQLPane = + End + Begin DataPane = + Begin ParameterDefaults = "" + End + Begin ColumnWidths = 9 + Width = 284 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + End + End + Begin CriteriaPane = + Begin ColumnWidths = 11 + Column = 1440 + Alias = 900 + Table = 1170 + Output = 720 + Append = 1400 + NewValue = 1170 + SortType = 1350 + SortOrder = 1410 + GroupBy = 1350 + Filter = 1350 + Or = 1350 + Or = 1350 + Or = 1350 + End + End +End +', 'SCHEMA', 'dbo', 'VIEW', 'v_selOperatori'; +go + +exec sp_addextendedproperty 'MS_DiagramPaneCount', 1, 'SCHEMA', 'dbo', 'VIEW', 'v_selOperatori'; +go + +commit; +go + + +set xact_abort on; +go + +begin transaction; +go + +set ANSI_NULLS on; +go + +/************************************* +* STORED PROCEDURE stp_AO_getByMatr +* recupera operatore data matricola +* +* modif.: S.E.L. +* il: 2013.02.27 +**************************************/ +create PROCEDURE stp_AO_getByMatr +( + @MatrOpr INT = 0 +) +AS + + +SELECT * +FROM AnagraficaOperatori +WHERE MatrOpr = @MatrOpr + +RETURN +go + +/************************************* +* STORED PROCEDURE stp_AO_getByMatrAuthKey +* recupera operatore data matricola + AuthKey +* +* modif.: S.E.L. +* il: 2013.02.27 +**************************************/ +create PROCEDURE stp_AO_getByMatrAuthKey +( + @MatrOpr INT = 0, + @authKey NVARCHAR(50)='' +) +AS + + +SELECT * +FROM AnagraficaOperatori +WHERE MatrOpr = @MatrOpr +AND authKey = @authKey + +RETURN +go + +commit; +go + + +set xact_abort on; +go + +begin transaction; +go + +set ANSI_NULLS on; +go + +/************************************* +* STORED PROCEDURE stp_LMJ_getByTipo +* elenco link menù da tipo x JQM +* +* modif.: S.E.L. - 2013.02.27 +**************************************/ +create PROCEDURE stp_LMJ_getByTipo +( + @TipoLink nvarchar(50) +) +AS + SET NOCOUNT ON; +SELECT * +FROM dbo.LinkMenuJQM +WHERE TipoLink=@TipoLink +go + +/************************************* +* STORED PROCEDURE stp_MSE_getData +* tabella stato attuale macchine (da mostrare) +* +* modif.: S.E.L. - 2013.02.28 +**************************************/ +create PROCEDURE stp_MSE_getData +( + @maxAgeSec INT -- soglia di "vecchiaia" del dato massima accettabile dopo cui parte ricalcolo +) +AS + +-- cerco dato + recente +DECLARE @adesso DATETIME = GETDATE() +DECLARE @lastUpdate DATETIME + +SELECT TOP 1 @lastUpdate=ISNULL(lastUpdate, '1900/01/01') FROM MappaStatoExpl ORDER BY lastUpdate DESC + +-- dato vecchio! aggiorno! +IF(DATEDIFF(s,@lastUpdate,@adesso) > @maxAgeSec) + BEGIN + -- truncate table precedente + TRUNCATE TABLE MappaStatoExpl + + ;WITH cteODL AS + ( + SELECT * + FROM ODL + WHERE DataFine IS NULL + ) + -- inserisco di nuovo i dati + INSERT INTO MappaStatoExpl(lastUpdate, IdxMacchina, CodMacchina, Nome, url, IdxODL, CodArticolo, NumPezzi, TCAssegnato, DataInizioODL) + SELECT @adesso, ma.IdxMacchina, ma.CodMacchina, ma.Nome, url, ISNULL(o.IdxODL,0), ISNULL(o.CodArticolo,'-'), ISNULL(o.NumPezzi,0), ISNULL(o.TCAssegnato,0), ISNULL(o.DataInizio,'1900/01/01') + FROM Macchine ma LEFT OUTER JOIN cteODL o ON ma.IdxMacchina=o.IdxMacchina + WHERE NOT (locazione IS NULL) AND ( (ISNULL(o.IdxODL,0) = 0) OR ((o.DataFine IS NULL) AND NOT (o.DataInizio IS NULL)) ) + ORDER BY ma.locazione + + -- dichiaro le 2 table variables che userò x caricare i dati di stato + DECLARE @tvStato TABLE ( + IdxMacchina INT NULL, + idxStato INT NULL, + DescrizioneStato NVARCHAR(50), + Semaforo NVARCHAR(50), + Minuti INT NULL + ) + DECLARE @tvODL TABLE ( + IdxODL INT NULL, + CodArticolo NVARCHAR(50), + DescArticolo NVARCHAR(50), + IdxMacchina INT NULL, + CodMacchina NVARCHAR(50), + Nome NVARCHAR(50), + NumPezzi INT NULL, + TCAssegnato DECIMAL(18,8), + DataInizio DATETIME, + DataFine DATETIME + ) + DECLARE @tvProd TABLE ( + IdxMacchina INT NULL, + CodArticolo NVARCHAR(50), + PezziLanciati INT NULL, + PezziProd INT NULL, + PezziConf INT NULL, + TCAssegnato DECIMAL(18,8), + CodOperatore INT NULL, + TempoOn DECIMAL(18,8), + TempoAuto DECIMAL(18,8), + TempoRun DECIMAL(18,8), + TCMedio DECIMAL(18,8), + TCLav DECIMAL(18,8), + TCEff DECIMAL(18,8), + TCMedioRT DECIMAL(18,8), + TCLavRT DECIMAL(18,8), + TCEffRT DECIMAL(18,8) + ) + + DECLARE @numRows INT = 0 + DECLARE @currRow INT = 1 + DECLARE @IdxMacchina INT = 0 + + SET @numRows = ISNULL((SELECT COUNT(*) FROM MappaStatoExpl),0) + + -- carico altri dati con ciclo while + WHILE (@currRow <= @numRows) + BEGIN + -- macchina corrente! + SELECT @IdxMacchina = IdxMacchina FROM MappaStatoExpl WHERE RowNum = @currRow + + -- popolo tab stati + INSERT @tvStato(idxStato, Minuti) + EXEC stp_repDonati_getLastStatoDurataMacchina @IdxMacchina, 0.1 + -- fix dati mancanti + UPDATE tvs + SET tvs.IdxMacchina = @IdxMacchina + ,tvs.Semaforo = s.Semaforo + ,tvs.DescrizioneStato = s.Descrizione + FROM @tvStato tvs INNER JOIN AnagraficaStati s ON tvs.idxStato=s.IdxStato + WHERE tvs.IdxMacchina IS NULL + + -- popolo tab ODL + INSERT @tvODL + EXEC stp_ODL_getByMacchina @IdxMacchina + + -- popolo tab pezzi/tempi + INSERT @tvProd(CodArticolo,PezziLanciati,PezziProd,PezziConf,TCAssegnato,CodOperatore,TempoOn,TempoAuto,TempoRun,TCMedio,TCLav,TCEff,TCMedioRT,TCLavRT,TCEffRT ) + EXEC stp_repDonati_getDatiProdMacchina @IdxMacchina + -- fix dati mancanti + UPDATE tvp + SET tvp.IdxMacchina = @IdxMacchina + FROM @tvProd tvp + WHERE tvp.IdxMacchina IS NULL + + -- aggiorno contatore + SET @currRow = @currRow + 1 + END + -- aggiorno in blocco i valori x stato e pezzi prodotti + UPDATE mse + SET mse.idxStato = ISNULL(tvs.idxStato,0) + ,mse.durata = ISNULL(tvs.Minuti,0) + ,mse.Semaforo = ISNULL(tvs.Semaforo,'') + ,mse.DescrizioneStato = ISNULL(tvs.DescrizioneStato,'') + FROM MappaStatoExpl mse INNER JOIN @tvStato tvs ON mse.IdxMacchina=tvs.IdxMacchina + + -- aggiorno in blocco i valori x ODL + UPDATE mse + SET mse.TCAssegnato = ISNULL(tvo.TCAssegnato,0) + ,mse.NumPezzi = ISNULL(tvo.NumPezzi,0) + ,mse.DataInizioODL = ISNULL(tvo.DataInizio,'1900/01/01') + FROM MappaStatoExpl mse INNER JOIN @tvODL tvo ON mse.IdxMacchina=tvo.IdxMacchina + + -- aggiorno in blocco i valori x produzione + UPDATE mse + SET mse.PezziProd = ISNULL(tvp.PezziProd,0) + ,mse.PezziConf = ISNULL(tvp.PezziConf,0) + ,mse.TempoOn = ISNULL(tvp.TempoOn,0) + ,mse.TempoAuto = ISNULL(tvp.TempoAuto,0) + ,mse.TempoRun = ISNULL(tvp.TempoRun,0) + ,mse.TCMedio = ISNULL(tvp.TCMedio,0) + ,mse.TCLav = ISNULL(tvp.TCLav,0) + ,mse.TCEff = ISNULL(tvp.TCEff,0) + ,mse.TCMedioRT = ISNULL(tvp.TCMedioRT,0) + ,mse.TCLavRT = ISNULL(tvp.TCLavRT,0) + ,mse.TCEffRT = ISNULL(tvp.TCEffRT,0) + FROM MappaStatoExpl mse INNER JOIN @tvProd tvp ON mse.IdxMacchina=tvp.IdxMacchina + + END +-- restituisco la tabella finale +SELECT * +FROM MappaStatoExpl + +RETURN +go + +commit; +go + + +set xact_abort on; +go + +begin transaction; +go + +set ANSI_NULLS on; +go + +/************************************* +* STORED PROCEDURE stp_repDonati_getDatiProdMacchina +* restituisce i dati di produzione di una macchina per l'ULTIMO ODL +* +* modif.: S.E.L. - 2012.03.08 +**************************************/ +alter PROCEDURE stp_repDonati_getDatiProdMacchina +( + @idxMacchina NVARCHAR(50) +) +AS + + +-- calcolo codice articolo +DECLARE @CodArticolo NVARCHAR (50) +SET @CodArticolo = ISNULL(( + SELECT CodArticolo FROM Kanban k + INNER JOIN StatoMacchine sm ON k.MatricolaKanban=sm.MatricolaKanban + WHERE sm.IdxMacchina = @idxMacchina + ),'-') +-- calcolo il codice operatore +DECLARE @CodOperatore INT +SET @CodOperatore = ISNULL(( + SELECT MatrOpr FROM StatoMacchine + WHERE IdxMacchina = @idxMacchina + ),0) +-- calcolo il codice ODL +DECLARE @idxODL INT +SET @idxODL = ( + SELECT ISNULL(idxODL,'') FROM ODL + WHERE CodArticolo = @CodArticolo AND IdxMacchina = @idxMacchina AND (ISNULL(DataFine,DATEADD(hh,1,GETDATE())) > GETDATE()) + ) + + +DECLARE @PezziConf INT +SET @PezziConf = ( + SELECT ISNULL(SUM(TotPzProd),0) FROM DatiProduzione + WHERE idxODL = @idxOdl + ) + +DECLARE @PezziLanciati INT +SET @PezziLanciati =( + SELECT ISNULL(SUM(NumPezzi),0) FROM ODL + WHERE idxODL = @idxOdl + ) + +DECLARE @TCAss DECIMAL(18,8) +SET @TCAss = ( + SELECT ISNULL(SUM(TCAssegnato),0) FROM ODL + WHERE idxODL = @idxOdl + ) + +-- dato l'ODL calcolo il TC Medio ed i pezzi prodotti per l'ODL +DECLARE @inizioOdl DATETIME +SET @inizioOdl = ( + SELECT DataInizio FROM ODL + WHERE idxODL = @idxOdl + ) + +DECLARE @PezziProd INT +SET @PezziProd = ( + SELECT COUNT(*) FROM TempiCicloRilevati + WHERE DataOraRif >= @inizioOdl + AND idxMacchina = @idxMacchina + ) + + +/**************************************************** +* Calcolo tempi apertura confermati +****************************************************/ +-- calcolo i tempi di apertura: TempoON (Verde + giallo + rosso) +DECLARE @TempoOn DECIMAL(18,8) +SET @TempoOn = ( + SELECT ISNULL(SUM(Tempo),0) FROM DatiProduzione + WHERE ClasseTempo NOT IN ('T_OFF', 'T_OFF_ND') AND idxODL = @idxOdl + ) + +-- calcolo i tempi di apertura: TempoAuto (Verde + giallo) - precedente meno "T_FermoRosso" +DECLARE @TempoAuto DECIMAL(18,8) +SET @TempoAuto = ( + SELECT @TempoOn - ISNULL(SUM(Tempo),0) FROM DatiProduzione + WHERE ClasseTempo = 'T_FermoRosso' AND idxODL = @idxOdl + ) + +-- calcolo i tempi di apertura: TempoRun (Verde) +DECLARE @TempoRun DECIMAL(18,8) +SET @TempoRun = ( + SELECT ISNULL(SUM(Tempo),0) FROM DatiProduzione + WHERE ClasseTempo = 'T_AutoRun' AND idxODL = @idxOdl + ) + +/**************************************************** +* Calcolo tempi apertura realtime +****************************************************/ +-- calcolo i tempi di apertura: TempoON (Verde + giallo + rosso) +DECLARE @TempoOnRT DECIMAL(18,8) +SET @TempoOnRT = ( + SELECT ISNULL(SUM(DurataMinuti),0) + FROM DiarioDiBordo ddb INNER JOIN AnagraficaStati AnSt ON ddb.IdxStato= AnSt.IdxStato + WHERE AnSt.ClasseTempo NOT IN ('T_OFF', 'T_OFF_ND') AND InizioStato >= @inizioOdl + AND IdxMacchina = @idxMacchina + ) + +-- calcolo i tempi di apertura: TempoAuto (Verde + giallo) - precedente meno "T_FermoRosso" +DECLARE @TempoAutoRT DECIMAL(18,8) +SET @TempoAutoRT = ( + SELECT @TempoOnRT - ISNULL(SUM(DurataMinuti),0) + FROM DiarioDiBordo ddb INNER JOIN AnagraficaStati AnSt ON ddb.IdxStato= AnSt.IdxStato + WHERE AnSt.ClasseTempo = 'T_FermoRosso' AND InizioStato >= @inizioOdl + AND IdxMacchina = @idxMacchina + ) + +-- calcolo i tempi di apertura: TempoRun (Verde) +DECLARE @TempoRunRT DECIMAL(18,8) +SET @TempoRunRT = ( + SELECT ISNULL(SUM(DurataMinuti),0) + FROM DiarioDiBordo ddb INNER JOIN AnagraficaStati AnSt ON ddb.IdxStato= AnSt.IdxStato + WHERE AnSt.ClasseTempo = 'T_AutoRun' AND InizioStato >= @inizioOdl + AND IdxMacchina = @idxMacchina + ) + +DECLARE @numPezzi INT + +/**************************************************** +* Calcolo i TEMPI CICLO confermati +****************************************************/ + +-- DIVISIONE PER ZERO: controllo pezzi conf > 0 +SET @numPezzi = @PezziConf - 1 -- divido per n-1 per avere numIntervalli = numPezzi +IF(@numPezzi < 1) SET @numPezzi = 1 + +DECLARE @TCMed DECIMAL(18,8) +SET @TCMed = ( + SELECT @TempoOn * 60 / @numPezzi -- tempo in ore + ) +DECLARE @TCLav DECIMAL(18,8) +SET @TCLav = ( + SELECT @TempoAuto * 60 / @numPezzi -- tempo in ore + ) +DECLARE @TCEff DECIMAL(18,8) -- è la media degli ultimi 10 migliori tempi minimi nell'ultima giornata +SET @TCEff = ( + SELECT @TempoRun * 60 / @numPezzi -- tempo in ore + ) + +/**************************************************** +* Calcolo i TEMPI CICLO realtime (anche non confermati) +****************************************************/ + +-- DIVISIONE PER ZERO: controllo pezzi prod > 0... +SET @numPezzi = @PezziProd - 1 -- divido per n-1 per avere numIntervalli = numPezzi +IF(@numPezzi < 1) SET @numPezzi = 1 + +DECLARE @TCMedRT DECIMAL(18,8) +SET @TCMedRT = ( + SELECT @TempoOnRT / @numPezzi + ) +DECLARE @TCLavRT DECIMAL(18,8) +SET @TCLavRT = ( + SELECT @TempoAutoRT / @numPezzi + ) +DECLARE @TCEffRT DECIMAL(18,8) +SET @TCEffRT = ISNULL(( SELECT dbo.f_lastTempoTecnico(@idxMacchina, 2) ), -1) -- provo a calcolare ultimi tempi tecnici +IF (@TCEffRT =-1) +BEGIN + SET @TCEffRT = ( + SELECT @TempoRunRT / @numPezzi + ) +END + + +SELECT @CodArticolo as CodArticolo, @PezziLanciati as PezziLanciati, @PezziProd as PezziProd, @PezziConf as PezziConf, @TCAss AS TCAssegnato, @CodOperatore AS CodOperatore, @TempoOn AS TempoOn, @TempoAuto AS TempoAuto, @TempoRun AS TempoRun, @TCMed AS TCMedio, @TCLav AS TCLav, @TCEff AS TCEff, @TCMedRT AS TCMedioRT, @TCLavRT AS TCLavRT, @TCEffRT AS TCEffRT + + +RETURN +go + +commit; +go + + +set xact_abort on; +go + +begin transaction; +go + +set ANSI_NULLS on; +go + +/************************************* +* STORED PROCEDURE stp_vsODL_getUnused +* ottiene elenco ODL non ancora impiegati +* +* modif.: S.E.L. - 2013.03.01 +**************************************/ +create PROCEDURE stp_vsODL_getUnused +AS + +SELECT 0 as value, 'Selezionare ODL' as label, NULL as conditio + +UNION + +SELECT * +FROM v_selODL +WHERE conditio IS NULL + +RETURN +go + +commit; +go + + + +set xact_abort on; +go + +begin transaction; +go + +set ANSI_NULLS on; +go + +/************************************* +* STORED PROCEDURE stp_MSE_getData +* tabella stato attuale macchine (da mostrare) +* +* modif.: S.E.L. - 2013.02.28 +**************************************/ +alter PROCEDURE stp_MSE_getData +( + @maxAgeSec INT -- soglia di "vecchiaia" del dato massima accettabile dopo cui parte ricalcolo +) +AS + +-- cerco dato + recente +DECLARE @adesso DATETIME = GETDATE() +DECLARE @lastUpdate DATETIME + +SELECT TOP 1 @lastUpdate=ISNULL(lastUpdate, '2000/01/01') FROM MappaStatoExpl ORDER BY lastUpdate DESC +SELECT @lastUpdate= ISNULL(@lastUpdate, '2000/01/01') + +-- dato vecchio! aggiorno! +IF(DATEDIFF(s,@lastUpdate,@adesso) > @maxAgeSec) + BEGIN + -- truncate table precedente + TRUNCATE TABLE MappaStatoExpl + + ;WITH cteODL AS + ( + SELECT * + FROM ODL + WHERE DataFine IS NULL + ) + -- inserisco di nuovo i dati + INSERT INTO MappaStatoExpl(lastUpdate, IdxMacchina, CodMacchina, Nome, url, IdxODL, CodArticolo, NumPezzi, TCAssegnato, DataInizioODL) + SELECT @adesso, ma.IdxMacchina, ma.CodMacchina, ma.Nome, url, ISNULL(o.IdxODL,0), ISNULL(o.CodArticolo,'-'), ISNULL(o.NumPezzi,0), ISNULL(o.TCAssegnato,0), ISNULL(o.DataInizio,'1900/01/01') + FROM Macchine ma LEFT OUTER JOIN cteODL o ON ma.IdxMacchina=o.IdxMacchina + WHERE NOT (locazione IS NULL) AND ( (ISNULL(o.IdxODL,0) = 0) OR ((o.DataFine IS NULL) AND NOT (o.DataInizio IS NULL)) ) + ORDER BY ma.locazione + + -- dichiaro le 2 table variables che userò x caricare i dati di stato + DECLARE @tvStato TABLE ( + IdxMacchina INT NULL, + idxStato INT NULL, + DescrizioneStato NVARCHAR(50), + Semaforo NVARCHAR(50), + Minuti INT NULL + ) + DECLARE @tvODL TABLE ( + IdxODL INT NULL, + CodArticolo NVARCHAR(50), + DescArticolo NVARCHAR(50), + IdxMacchina INT NULL, + CodMacchina NVARCHAR(50), + Nome NVARCHAR(50), + NumPezzi INT NULL, + TCAssegnato DECIMAL(18,8), + DataInizio DATETIME, + DataFine DATETIME + ) + DECLARE @tvProd TABLE ( + IdxMacchina INT NULL, + CodArticolo NVARCHAR(50), + PezziLanciati INT NULL, + PezziProd INT NULL, + PezziConf INT NULL, + TCAssegnato DECIMAL(18,8), + CodOperatore INT NULL, + TempoOn DECIMAL(18,8), + TempoAuto DECIMAL(18,8), + TempoRun DECIMAL(18,8), + TCMedio DECIMAL(18,8), + TCLav DECIMAL(18,8), + TCEff DECIMAL(18,8), + TCMedioRT DECIMAL(18,8), + TCLavRT DECIMAL(18,8), + TCEffRT DECIMAL(18,8) + ) + + DECLARE @numRows INT = 0 + DECLARE @currRow INT = 1 + DECLARE @IdxMacchina INT = 0 + + SET @numRows = ISNULL((SELECT COUNT(*) FROM MappaStatoExpl),0) + + -- carico altri dati con ciclo while + WHILE (@currRow <= @numRows) + BEGIN + -- macchina corrente! + SELECT @IdxMacchina = IdxMacchina FROM MappaStatoExpl WHERE RowNum = @currRow + + -- popolo tab stati + INSERT @tvStato(idxStato, Minuti) + EXEC stp_repDonati_getLastStatoDurataMacchina @IdxMacchina, 0.1 + -- fix dati mancanti + UPDATE tvs + SET tvs.IdxMacchina = @IdxMacchina + ,tvs.Semaforo = s.Semaforo + ,tvs.DescrizioneStato = s.Descrizione + FROM @tvStato tvs INNER JOIN AnagraficaStati s ON tvs.idxStato=s.IdxStato + WHERE tvs.IdxMacchina IS NULL + + -- popolo tab ODL + INSERT @tvODL + EXEC stp_ODL_getByMacchina @IdxMacchina + + -- popolo tab pezzi/tempi + INSERT @tvProd(CodArticolo,PezziLanciati,PezziProd,PezziConf,TCAssegnato,CodOperatore,TempoOn,TempoAuto,TempoRun,TCMedio,TCLav,TCEff,TCMedioRT,TCLavRT,TCEffRT ) + EXEC stp_repDonati_getDatiProdMacchina @IdxMacchina + -- fix dati mancanti + UPDATE tvp + SET tvp.IdxMacchina = @IdxMacchina + FROM @tvProd tvp + WHERE tvp.IdxMacchina IS NULL + + -- aggiorno contatore + SET @currRow = @currRow + 1 + END + -- aggiorno in blocco i valori x stato e pezzi prodotti + UPDATE mse + SET mse.idxStato = ISNULL(tvs.idxStato,0) + ,mse.durata = ISNULL(tvs.Minuti,0) + ,mse.Semaforo = ISNULL(tvs.Semaforo,'') + ,mse.DescrizioneStato = ISNULL(tvs.DescrizioneStato,'') + FROM MappaStatoExpl mse INNER JOIN @tvStato tvs ON mse.IdxMacchina=tvs.IdxMacchina + + -- aggiorno in blocco i valori x ODL + UPDATE mse + SET mse.TCAssegnato = ISNULL(tvo.TCAssegnato,0) + ,mse.NumPezzi = ISNULL(tvo.NumPezzi,0) + ,mse.DataInizioODL = ISNULL(tvo.DataInizio,'1900/01/01') + FROM MappaStatoExpl mse INNER JOIN @tvODL tvo ON mse.IdxMacchina=tvo.IdxMacchina + + -- aggiorno in blocco i valori x produzione + UPDATE mse + SET mse.PezziProd = ISNULL(tvp.PezziProd,0) + ,mse.PezziConf = ISNULL(tvp.PezziConf,0) + ,mse.TempoOn = ISNULL(tvp.TempoOn,0) + ,mse.TempoAuto = ISNULL(tvp.TempoAuto,0) + ,mse.TempoRun = ISNULL(tvp.TempoRun,0) + ,mse.TCMedio = ISNULL(tvp.TCMedio,0) + ,mse.TCLav = ISNULL(tvp.TCLav,0) + ,mse.TCEff = ISNULL(tvp.TCEff,0) + ,mse.TCMedioRT = ISNULL(tvp.TCMedioRT,0) + ,mse.TCLavRT = ISNULL(tvp.TCLavRT,0) + ,mse.TCEffRT = ISNULL(tvp.TCEffRT,0) + FROM MappaStatoExpl mse INNER JOIN @tvProd tvp ON mse.IdxMacchina=tvp.IdxMacchina + + END +-- restituisco la tabella finale +SELECT * +FROM MappaStatoExpl + +RETURN +go + +commit; +go + + + + + + + + +-- registro versione... +INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(370, GETDATE()) +GO + +SELECT TOP 10 * FROM LogUpdateDb ORDER BY Versione DESC +GO \ No newline at end of file diff --git a/MapoDb/SqlUpdate/MoonPro/V3.2/MoonPro_00375.sql b/MapoDb/SqlUpdate/MoonPro/V3.2/MoonPro_00375.sql new file mode 100644 index 00000000..8ad373eb --- /dev/null +++ b/MapoDb/SqlUpdate/MoonPro/V3.2/MoonPro_00375.sql @@ -0,0 +1,605 @@ +set xact_abort on; +go + +begin transaction; +go + +set ANSI_NULLS on; +go + +/************************************* +* STORED PROCEDURE stp_MSE_refresh +* AGGIORNA tabella stato attuale macchine x macchina indicata +* +* modif.: S.E.L. - 2013.02.28 +**************************************/ +create PROCEDURE stp_MSE_refresh +( + @IdxMacchina NVARCHAR(50) -- macchina da aggiornare +) +AS + +--init variabili! +DECLARE @adesso DATETIME = GETDATE() +DECLARE @trovate INT = 0 +DECLARE @tvStato TABLE ( + idxStato INT NULL, + DescrizioneStato NVARCHAR(50), + Semaforo NVARCHAR(50), + Minuti INT NULL +) +DECLARE @tvODL TABLE ( + IdxODL INT NULL, + CodArticolo NVARCHAR(50), + DescArticolo NVARCHAR(50), + IdxMacchina INT NULL, + CodMacchina NVARCHAR(50), + Nome NVARCHAR(50), + NumPezzi INT NULL, + TCAssegnato DECIMAL(18,8), + DataInizio DATETIME, + DataFine DATETIME +) +DECLARE @tvProd TABLE ( + CodArticolo NVARCHAR(50), + PezziLanciati INT NULL, + PezziProd INT NULL, + PezziConf INT NULL, + TCAssegnato DECIMAL(18,8), + CodOperatore INT NULL, + TempoOn DECIMAL(18,8), + TempoAuto DECIMAL(18,8), + TempoRun DECIMAL(18,8), + TCMedio DECIMAL(18,8), + TCLav DECIMAL(18,8), + TCEff DECIMAL(18,8), + TCMedioRT DECIMAL(18,8), + TCLavRT DECIMAL(18,8), + TCEffRT DECIMAL(18,8) +) + +BEGIN + -- controllo: se c'è riga macchina richiesta... + SELECT @trovate=COUNT(*) FROM MappaStatoExpl WHERE IdxMacchina = @IdxMacchina + + -- se NON c'è la creo... + IF(@trovate = 0) + BEGIN + -- calcolo ODL + ;WITH cteODL AS + ( + SELECT * FROM ODL + WHERE IdxODL IN + ( + SELECT IdxODL + FROM ODL + WHERE DataFine IS NULL + AND (IdxMacchina = @IdxMacchina) + + UNION + + SELECT MAX(IdxODL) + FROM ODL + WHERE IdxMacchina = @IdxMacchina + ) + ) + -- inserisco i nuovi dati + INSERT INTO MappaStatoExpl(lastUpdate, IdxMacchina, CodMacchina, Nome, url, IdxODL, CodArticolo, NumPezzi, TCAssegnato, DataInizioODL) + SELECT @adesso, ma.IdxMacchina, ma.CodMacchina, ma.Nome, url, ISNULL(o.IdxODL,0), ISNULL(o.CodArticolo,'-'), ISNULL(o.NumPezzi,0), ISNULL(o.TCAssegnato,0), ISNULL(o.DataInizio,'2000/01/01') + FROM Macchine ma LEFT OUTER JOIN cteODL o ON ma.IdxMacchina=o.IdxMacchina + WHERE ma.IdxMacchina = @IdxMacchina + AND NOT (locazione IS NULL) + AND ( (ISNULL(o.IdxODL,0) = 0) OR ((o.DataFine IS NULL) AND NOT (o.DataInizio IS NULL)) ) + ORDER BY ma.locazione + END + + -- popolo tab stati + INSERT @tvStato(idxStato, Minuti) + EXEC stp_repDonati_getLastStatoDurataMacchina @IdxMacchina, 0.1 + -- fix dati mancanti + UPDATE tvs + SET tvs.Semaforo = s.Semaforo + ,tvs.DescrizioneStato = s.Descrizione + FROM @tvStato tvs INNER JOIN AnagraficaStati s ON tvs.idxStato=s.IdxStato + + -- popolo tab ODL + INSERT @tvODL + EXEC stp_ODL_getByMacchina @IdxMacchina + + -- popolo tab pezzi/tempi + INSERT @tvProd(CodArticolo,PezziLanciati,PezziProd,PezziConf,TCAssegnato,CodOperatore,TempoOn,TempoAuto,TempoRun,TCMedio,TCLav,TCEff,TCMedioRT,TCLavRT,TCEffRT ) + EXEC stp_repDonati_getDatiProdMacchina @IdxMacchina + + -- aggiorno in blocco i valori + UPDATE mse + SET mse.lastUpdate = @adesso + ,mse.idxStato = ISNULL(tvs.idxStato,0) + ,mse.durata = ISNULL(tvs.Minuti,0) + ,mse.Semaforo = ISNULL(tvs.Semaforo,'') + ,mse.DescrizioneStato = ISNULL(tvs.DescrizioneStato,'') + ,mse.TCAssegnato = ISNULL(tvo.TCAssegnato,0) + ,mse.NumPezzi = ISNULL(tvo.NumPezzi,0) + ,mse.DataInizioODL = ISNULL(tvo.DataInizio,'2000/01/01') + ,mse.PezziProd = ISNULL(tvp.PezziProd,0) + ,mse.PezziConf = ISNULL(tvp.PezziConf,0) + ,mse.TempoOn = ISNULL(tvp.TempoOn,0) + ,mse.TempoAuto = ISNULL(tvp.TempoAuto,0) + ,mse.TempoRun = ISNULL(tvp.TempoRun,0) + ,mse.TCMedio = ISNULL(tvp.TCMedio,0) + ,mse.TCLav = ISNULL(tvp.TCLav,0) + ,mse.TCEff = ISNULL(tvp.TCEff,0) + ,mse.TCMedioRT = ISNULL(tvp.TCMedioRT,0) + ,mse.TCLavRT = ISNULL(tvp.TCLavRT,0) + ,mse.TCEffRT = ISNULL(tvp.TCEffRT,0) + FROM MappaStatoExpl mse + CROSS JOIN @tvStato tvs + CROSS JOIN @tvODL tvo + CROSS JOIN @tvProd tvp + WHERE mse.Idxmacchina = @IdxMacchina + +END + +RETURN +go + +commit; +go + + +set xact_abort on; +go + +begin transaction; +go + +set ANSI_NULLS on; +go + +/************************************* +* STORED PROCEDURE InsEvento +* inserimento di un evento nel db (tab EventList) +* inerimento in anagrafica a "nd" dell'operatore se matricola mancasse +* +* modif.: S.E.L. +* il: 2008.08.07 +**************************************/ +alter PROCEDURE stp_EL_InsEvento +( + @IdxMacchina varchar(50), + @IdxTipo int, + @MatricolaKanban varchar(50), + @Value varchar(50), + @MatrOpr int, + @pallet varchar(20) +) +AS + /************************************* + * verifico se esista operatore + **************************************/ + SELECT * + FROM AnagraficaOperatori + WHERE (MatrOpr = @MatrOpr) + IF(@@ROWCOUNT = 0 ) + BEGIN + /* inserisco nuovo record */ + INSERT INTO AnagraficaOperatori(MatrOpr, Cognome, Nome, isAdmin, authKey) + VALUES (@MatrOpr,'nd (cognome)','nd (nome)', 0, '12345') + END + + /* inserisco evento*/ + INSERT INTO EventList + (IdxMacchina, InizioStato, IdxTipo, MatricolaKanban, Value, MatrOpr, pallet) + VALUES (@IdxMacchina, GETDATE(), @IdxTipo, @MatricolaKanban, @Value, @MatrOpr, @pallet) + + RETURN +go + +/************************************* +* STORED PROCEDURE stp_MSE_getData +* tabella stato attuale macchine (da mostrare) +* +* modif.: S.E.L. - 2013.02.28 +**************************************/ +alter PROCEDURE stp_MSE_getData +( + @maxAgeSec INT -- soglia di "vecchiaia" del dato massima accettabile dopo cui parte ricalcolo, in millisec, se < 1000 ignoro! +) +AS + +-- cerco dato + recente +DECLARE @adesso DATETIME = GETDATE() +DECLARE @lastUpdate DATETIME + +SELECT TOP 1 @lastUpdate=ISNULL(lastUpdate, '2000/01/01') FROM MappaStatoExpl ORDER BY lastUpdate DESC +SELECT @lastUpdate= ISNULL(@lastUpdate, '2000/01/01') + +-- solo se sup ai 1000 ms! oppure zero... +IF(@maxAgeSec > 1000 OR @maxAgeSec=0) + BEGIN + -- dato vecchio! aggiorno! + IF(DATEDIFF(s,@lastUpdate,@adesso)*1000 > @maxAgeSec) + BEGIN + -- truncate table precedente + TRUNCATE TABLE MappaStatoExpl + + ;WITH cteODL AS + ( + SELECT * FROM ODL + WHERE IdxODL IN + ( + SELECT IdxODL + FROM ODL + WHERE DataFine IS NULL + + UNION + + SELECT MAX(IdxODL) + FROM ODL + GROUP BY IdxMacchina + ) + ) + -- inserisco di nuovo i dati + INSERT INTO MappaStatoExpl(lastUpdate, IdxMacchina, CodMacchina, Nome, url, IdxODL, CodArticolo, NumPezzi, TCAssegnato, DataInizioODL) + SELECT @adesso, ma.IdxMacchina, ma.CodMacchina, ma.Nome, url, ISNULL(o.IdxODL,0), ISNULL(o.CodArticolo,'-'), ISNULL(o.NumPezzi,0), ISNULL(o.TCAssegnato,0), ISNULL(o.DataInizio,'2000/01/01') + FROM Macchine ma LEFT OUTER JOIN cteODL o ON ma.IdxMacchina=o.IdxMacchina + WHERE NOT (locazione IS NULL) AND ( (ISNULL(o.IdxODL,0) = 0) OR ((o.DataFine IS NULL) AND NOT (o.DataInizio IS NULL)) ) + ORDER BY ma.locazione + + -- dichiaro le 2 table variables che userò x caricare i dati di stato + DECLARE @tvStato TABLE ( + IdxMacchina INT NULL, + idxStato INT NULL, + DescrizioneStato NVARCHAR(50), + Semaforo NVARCHAR(50), + Minuti INT NULL + ) + DECLARE @tvODL TABLE ( + IdxODL INT NULL, + CodArticolo NVARCHAR(50), + DescArticolo NVARCHAR(50), + IdxMacchina INT NULL, + CodMacchina NVARCHAR(50), + Nome NVARCHAR(50), + NumPezzi INT NULL, + TCAssegnato DECIMAL(18,8), + DataInizio DATETIME, + DataFine DATETIME + ) + DECLARE @tvProd TABLE ( + IdxMacchina INT NULL, + CodArticolo NVARCHAR(50), + PezziLanciati INT NULL, + PezziProd INT NULL, + PezziConf INT NULL, + TCAssegnato DECIMAL(18,8), + CodOperatore INT NULL, + TempoOn DECIMAL(18,8), + TempoAuto DECIMAL(18,8), + TempoRun DECIMAL(18,8), + TCMedio DECIMAL(18,8), + TCLav DECIMAL(18,8), + TCEff DECIMAL(18,8), + TCMedioRT DECIMAL(18,8), + TCLavRT DECIMAL(18,8), + TCEffRT DECIMAL(18,8) + ) + + DECLARE @numRows INT = 0 + DECLARE @currRow INT = 1 + DECLARE @IdxMacchina INT = 0 + + SET @numRows = ISNULL((SELECT COUNT(*) FROM MappaStatoExpl),0) + + -- carico altri dati con ciclo while + WHILE (@currRow <= @numRows) + BEGIN + -- macchina corrente! + SELECT @IdxMacchina = IdxMacchina FROM MappaStatoExpl WHERE RowNum = @currRow + + -- popolo tab stati + INSERT @tvStato(idxStato, Minuti) + EXEC stp_repDonati_getLastStatoDurataMacchina @IdxMacchina, 0.1 + -- fix dati mancanti + UPDATE tvs + SET tvs.IdxMacchina = @IdxMacchina + ,tvs.Semaforo = s.Semaforo + ,tvs.DescrizioneStato = s.Descrizione + FROM @tvStato tvs INNER JOIN AnagraficaStati s ON tvs.idxStato=s.IdxStato + WHERE tvs.IdxMacchina IS NULL + + -- popolo tab ODL + INSERT @tvODL + EXEC stp_ODL_getByMacchina @IdxMacchina + + -- popolo tab pezzi/tempi + INSERT @tvProd(CodArticolo,PezziLanciati,PezziProd,PezziConf,TCAssegnato,CodOperatore,TempoOn,TempoAuto,TempoRun,TCMedio,TCLav,TCEff,TCMedioRT,TCLavRT,TCEffRT ) + EXEC stp_repDonati_getDatiProdMacchina @IdxMacchina + -- fix dati mancanti + UPDATE tvp + SET tvp.IdxMacchina = @IdxMacchina + FROM @tvProd tvp + WHERE tvp.IdxMacchina IS NULL + + -- aggiorno contatore + SET @currRow = @currRow + 1 + END + -- aggiorno in blocco i valori x stato e pezzi prodotti + UPDATE mse + SET mse.idxStato = ISNULL(tvs.idxStato,0) + ,mse.durata = ISNULL(tvs.Minuti,0) + ,mse.Semaforo = ISNULL(tvs.Semaforo,'') + ,mse.DescrizioneStato = ISNULL(tvs.DescrizioneStato,'') + FROM MappaStatoExpl mse INNER JOIN @tvStato tvs ON mse.IdxMacchina=tvs.IdxMacchina + + -- aggiorno in blocco i valori x ODL + UPDATE mse + SET mse.TCAssegnato = ISNULL(tvo.TCAssegnato,0) + ,mse.NumPezzi = ISNULL(tvo.NumPezzi,0) + ,mse.DataInizioODL = ISNULL(tvo.DataInizio,'2000/01/01') + FROM MappaStatoExpl mse INNER JOIN @tvODL tvo ON mse.IdxMacchina=tvo.IdxMacchina + + -- aggiorno in blocco i valori x produzione + UPDATE mse + SET mse.PezziProd = ISNULL(tvp.PezziProd,0) + ,mse.PezziConf = ISNULL(tvp.PezziConf,0) + ,mse.TempoOn = ISNULL(tvp.TempoOn,0) + ,mse.TempoAuto = ISNULL(tvp.TempoAuto,0) + ,mse.TempoRun = ISNULL(tvp.TempoRun,0) + ,mse.TCMedio = ISNULL(tvp.TCMedio,0) + ,mse.TCLav = ISNULL(tvp.TCLav,0) + ,mse.TCEff = ISNULL(tvp.TCEff,0) + ,mse.TCMedioRT = ISNULL(tvp.TCMedioRT,0) + ,mse.TCLavRT = ISNULL(tvp.TCLavRT,0) + ,mse.TCEffRT = ISNULL(tvp.TCEffRT,0) + FROM MappaStatoExpl mse INNER JOIN @tvProd tvp ON mse.IdxMacchina=tvp.IdxMacchina + + END + END +-- restituisco la tabella finale +SELECT * +FROM MappaStatoExpl + +RETURN +go + +commit; +go + + +set xact_abort on; +go + +begin transaction; +go + +set ANSI_NULLS on; +go + +/*************************************************** +* Trigger trg_ODL_updateMSE +* +* fa un refresh completo della MSE ad ogni intervento sull'ODL +* +* modificato: S.E.L. +* 2013.03.14 +* +***************************************************/ +create TRIGGER trg_ODL_updateMSE +ON ODL +FOR INSERT, UPDATE +AS + +-- eseguo RICALCOLO tabella stato expl + EXEC stp_MSE_getData 0 +go + +commit; +go + +set xact_abort on; +go + +begin transaction; +go + +set ANSI_NULLS on; +go + +/*************************************************** +* Trigger trg_doActions +* +* processa eventuali azioni legate ad un inserimento evento +* +* modificato: S.E.L. +* 2011.05.18 +* +***************************************************/ +alter TRIGGER trg_doActions +ON EventList +FOR INSERT +AS /* dichiarazione variabili */ + DECLARE @IdxTipo INT + DECLARE @TabAzione NVARCHAR(50) + DECLARE @Azione NVARCHAR(50) + DECLARE @IdxMacchina NVARCHAR(50) + DECLARE @MatricolaKanban NVARCHAR(50) + DECLARE @MatricolaKanbanOk NVARCHAR(50) + DECLARE @CodArticolo NVARCHAR(50) + DECLARE @TCMedio DECIMAL(18,8) + DECLARE @DataOra DATETIME + DECLARE @DataOraPrec DATETIME + DECLARE @NumPz INT + + /* recupero valori dell'INSERT */ + SET @IdxTipo = ( SELECT i.IdxTipo FROM inserted i ) + SET @IdxMacchina = ( SELECT i.IdxMacchina FROM inserted i ) + /* recupero altri valori */ + SET @TabAzione = ( SELECT ISNULL(TabAzione,'') FROM AnagraficaEventi WHERE IdxTipo = @IdxTipo ) + SET @Azione = ( SELECT ISNULL(Azione,'') FROM AnagraficaEventi WHERE IdxTipo = @IdxTipo ) + /* controllo se l'evento richieda azioni successive */ + IF(@TabAzione <> '' AND @Azione <> '') + BEGIN + /* azioni richieste: seconda dei casi eseguo... */ + + /****************************************** + * + * Calcolo tempo ciclo per INIZIO + * + ******************************************/ + IF(@TabAzione = 'TempiCicloRilevati' AND @Azione = 'Insert') + BEGIN + /* calcolo valori */ + SET @DataOra = ( SELECT i.InizioStato FROM inserted i ) + SET @MatricolaKanban = ( SELECT i.MatricolaKanban FROM inserted i ) + SET @NumPz = ( SELECT CASE WHEN (ISNUMERIC(value)=1) THEN value ELSE 1 END FROM inserted i ) + SET @CodArticolo = ( SELECT CodArticolo FROM Kanban WHERE MatricolaKanban = @MatricolaKanban ) + /* calcolo tempo tra gli ultimi 2 eventi "contapezzi" */ + SET @DataOraPrec = ( SELECT ISNULL((SELECT Top 1 InizioStato FROM EventList WHERE IdxMacchina = @IdxMacchina AND IdxTipo = @IdxTipo AND InizioStato < @DataOra ORDER BY InizioStato DESC), @DataOra ) ) + BEGIN TRY + /* è in millisecondi, divido per 60'000.00 x avere minuti centesimali*/ + SET @TCMedio = ( SELECT (DATEDIFF(ms, @DataOraPrec, @DataOra) / 60000.00 ) ) + END TRY + BEGIN CATCH + SET @TCMedio = ( SELECT (DATEDIFF(s, @DataOraPrec, @DataOra) / 60.00 ) ) --calcolo in secondi + END CATCH + /* inserisco riga di tempo ciclo */ + INSERT INTO TempiCicloRilevati + VALUES(@IdxMacchina, @CodArticolo, @DataOra, @TCMedio, @NumPz) + END + /****************************************** + * + * Calcolo tempo ciclo con logica stop/start + * + ******************************************/ + ELSE IF(@TabAzione = 'TempiCicloRilevati' AND @Azione = 'Stop2StartCiclo') + BEGIN + /* calcolo valori */ + SET @DataOra = ( SELECT i.InizioStato FROM inserted i ) + SET @MatricolaKanban = ( SELECT i.MatricolaKanban FROM inserted i ) + /* prendo la matricola dall'evento inizio (precedente) */ + SET @MatricolaKanbanOk = ( SELECT ISNULL((SELECT Top 1 MatricolaKanban FROM EventList WHERE IdxMacchina = @IdxMacchina AND IdxTipo = @IdxTipo - 1 AND InizioStato < @DataOra ORDER BY InizioStato DESC), @MatricolaKanban ) ) + + -- calcolare num pezzi da codice... + SET @NumPz = ( SELECT CASE WHEN (ISNUMERIC(value)=1) THEN value ELSE 1 END FROM inserted i ) + SET @CodArticolo = ( SELECT CodArticolo FROM Kanban WHERE MatricolaKanban = @MatricolaKanbanOk ) + /* calcolo tempo tra eventi "contapezzi" inizio - fine NB: idxEvento per fine è idxEvento inizio + 1 ... HARD CODED!!! */ + SET @DataOraPrec = ( SELECT ISNULL((SELECT Top 1 InizioStato FROM EventList WHERE IdxMacchina = @IdxMacchina AND IdxTipo = @IdxTipo - 1 AND InizioStato < @DataOra ORDER BY InizioStato DESC), @DataOra ) ) + BEGIN TRY + /* è in millisecondi, divido per 60'000.00 x avere minuti centesimali*/ + SET @TCMedio = ( SELECT (DATEDIFF(ms, @DataOraPrec, @DataOra) / 60000.00 ) ) + END TRY + BEGIN CATCH + SET @TCMedio = ( SELECT (DATEDIFF(s, @DataOraPrec, @DataOra) / 60.00 ) ) -- calcolo in secondi + END CATCH + /* inserisco riga di tempo ciclo */ + INSERT INTO TempiCicloRilevati + VALUES(@IdxMacchina, @CodArticolo, @DataOra, @TCMedio, @NumPz) + END + /****************************************** + * + * calcolo tempo ciclo con logica stop/stop + * + ******************************************/ + ELSE IF(@TabAzione = 'TempiCicloRilevati' AND @Azione = 'Stop2StopCiclo') + BEGIN + /* calcolo valori */ + SET @DataOra = ( SELECT i.InizioStato FROM inserted i ) + SET @MatricolaKanban = ( SELECT i.MatricolaKanban FROM inserted i ) + /* prendo la matricola dall'evento inizio (precedente) */ + SET @MatricolaKanbanOk = ( SELECT ISNULL((SELECT Top 1 MatricolaKanban FROM EventList WHERE IdxMacchina = @IdxMacchina AND IdxTipo = @IdxTipo AND InizioStato < @DataOra ORDER BY InizioStato DESC), @MatricolaKanban ) ) + + -- calcolare num pezzi da codice... + SET @NumPz = ( SELECT PzPallet FROM Kanban WHERE MatricolaKanban = @MatricolaKanbanOk ) + SET @CodArticolo = ( SELECT CodArticolo FROM Kanban WHERE MatricolaKanban = @MatricolaKanbanOk ) + /* calcolo tempo tra eventi "contapezzi" fine - fine NB: idxEvento per fine è idxEvento inizio + 1 ... HARD CODED!!! */ + SET @DataOraPrec = ( SELECT ISNULL((SELECT Top 1 InizioStato FROM EventList WHERE IdxMacchina = @IdxMacchina AND IdxTipo = @IdxTipo AND InizioStato < @DataOra ORDER BY InizioStato DESC), @DataOra ) ) + BEGIN TRY + /* è in millisecondi, divido per 60'000.00 x avere minuti centesimali*/ + SET @TCMedio = ( SELECT (DATEDIFF(ms, @DataOraPrec, @DataOra) / 60000.00 ) ) + END TRY + BEGIN CATCH + SET @TCMedio = ( SELECT (DATEDIFF(s, @DataOraPrec, @DataOra) / 60.00 ) ) -- calcolo in secondi + END CATCH + /* inserisco riga di tempo ciclo */ + BEGIN TRY + INSERT INTO TempiCicloRilevati + VALUES(@IdxMacchina, @CodArticolo, @DataOra, @TCMedio, @NumPz) + END TRY + BEGIN CATCH + -- dovrei loggare... + END CATCH + END + /****************************************** + * + * Aggiorno kanban in dati macchine per + * INIZIO ATTREZZAGGIO + * + ******************************************/ + ELSE IF(@TabAzione = 'DatiMacchine' AND @Azione = 'Inizio') + BEGIN + /* calcolo valori */ + SET @MatricolaKanban = ( SELECT i.MatricolaKanban FROM inserted i ) + /* aggiorno riga di dati macchina */ + UPDATE DatiMacchine + SET kanban_A = @MatricolaKanban, + kanban_B = @MatricolaKanban + WHERE idxMacchina = @IdxMacchina + /* aggiorno stato macchina */ + UPDATE StatoMacchine + SET MatricolaKanban = @MatricolaKanban + WHERE idxMacchina = @IdxMacchina + /* aggiorno dati kanban statoMacchine... */ + UPDATE StatoMacchine + SET KanbanCode = k.KanbanCode, TempoCicloBase = k.TempoCicloBase, PzPalletProd = k.PzPallet + FROM Kanban AS k INNER JOIN StatoMacchine ON k.MatricolaKanban = StatoMacchine.MatricolaKanban + WHERE (StatoMacchine.idxMacchina = @IdxMacchina) + END + /****************************************** + * + * Aggiorno kanban in dati macchine per + * FINE PRODUZIONE + * + ******************************************/ + ELSE IF(@TabAzione = 'DatiMacchine' AND @Azione = 'Fine') + BEGIN + /* calcolo valori */ + SET @MatricolaKanban = 'KAND' -- kanban non definito !!!HARD CODED!!! + /* aggiorno riga di dati macchina */ + UPDATE DatiMacchine + SET kanban_A = @MatricolaKanban, + kanban_B = @MatricolaKanban + WHERE idxMacchina = @IdxMacchina + /* aggiorno stato macchina */ + UPDATE StatoMacchine + SET MatricolaKanban = @MatricolaKanban + WHERE idxMacchina = @IdxMacchina + /* aggiorno dati kanban statoMacchine... */ + UPDATE StatoMacchine + SET KanbanCode = k.KanbanCode, TempoCicloBase = k.TempoCicloBase, PzPalletProd = k.PzPallet + FROM Kanban AS k INNER JOIN StatoMacchine ON k.MatricolaKanban = StatoMacchine.MatricolaKanban + WHERE (StatoMacchine.idxMacchina = @IdxMacchina) + + END + END + + -- INFINE CHIAMO REFRESH TAB STATO... + EXEC stp_MSE_refresh @IdxMacchina +go + +commit; +go + + + + + + + + + +-- registro versione... +INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(375, GETDATE()) +GO + +SELECT TOP 10 * FROM LogUpdateDb ORDER BY Versione DESC +GO \ No newline at end of file diff --git a/MapoDb/SqlUpdate/MoonPro/V3.2/MoonPro_00380.sql b/MapoDb/SqlUpdate/MoonPro/V3.2/MoonPro_00380.sql new file mode 100644 index 00000000..94304c89 --- /dev/null +++ b/MapoDb/SqlUpdate/MoonPro/V3.2/MoonPro_00380.sql @@ -0,0 +1,616 @@ +set xact_abort on; +go + +begin transaction; +go + +set ANSI_NULLS on; +go + +/************************************* +* STORED PROCEDURE stp_ODL_updateChild +* aggiorna le tabelle che dipendono dai dati dell'ODL +* +* modif.: S.E.L. +* il: 2013.03.15 +**************************************/ +create PROCEDURE stp_ODL_updateChild +( + @IdxMacchina NVARCHAR(50), + @IdxODL INT, + @CodArticoloOld NVARCHAR(50), + @DataInizioOld DATETIME, + @DataFineOld DATETIME, + @CodArticoloNew NVARCHAR(50), + @DataInizioNew DATETIME, + @DataFineNew DATETIME +) +AS + +BEGIN TRAN + + /***************************************************************************************************** + * AGGIORNO TUTTO! + * - DatiConfermati + * - DatiMacchine + * - DatiProduzione + * - DiarioDiBordo + * - EventList + * - StatoMacchine + * - TempiCicloRilevati + *****************************************************************************************************/ + + -- DatiConfermati + UPDATE DatiConfermati + SET CodArticolo = @CodArticoloNew + WHERE CodArticolo = @CodArticoloOld + AND ( DataRif >= @DataInizioNew AND DataRif <= ISNULL(@DataFineNew, GETDATE()) ) + + -- DatiMacchine + UPDATE DatiMacchine + SET kanban_A = CASE WHEN kanban_A = 'KA'+ @CodArticoloOLD THEN 'KA'+ @CodArticoloNew ELSE kanban_A END + ,kanban_B = CASE WHEN kanban_B = 'KA'+ @CodArticoloOLD THEN 'KA'+ @CodArticoloNew ELSE kanban_B END + WHERE IdxMacchina = @IdxMacchina + + -- DatiProduzione + UPDATE DatiProduzione + SET CodArticolo = @CodArticoloNew + ,IdxODL = @IdxODL + WHERE IdxMacchina = @IdxMacchina + AND ( DataRif >= @DataInizioNew AND DataRif <= ISNULL(@DataFineNew, GETDATE()) ) + + -- DiarioDiBordo + UPDATE DiarioDiBordo + SET KanbanCode = @CodArticoloNew + ,MatricolaKanban = 'KA'+@CodArticoloNew + WHERE IdxMacchina = @IdxMacchina + AND ( InizioStato >= @DataInizioNew AND InizioStato <= ISNULL(@DataFineNew, GETDATE()) ) + AND KanbanCode = @CodArticoloOld + + -- EventList + UPDATE EventList + SET MatricolaKanban = 'KA'+@CodArticoloNew + WHERE IdxMacchina = @IdxMacchina + AND ( InizioStato >= @DataInizioNew AND InizioStato <= ISNULL(@DataFineNew, GETDATE()) ) + AND MatricolaKanban = 'KA'+@CodArticoloOld + + -- StatoMacchine + UPDATE StatoMacchine + SET KanbanCode = @CodArticoloNew + ,MatricolaKanban = 'KA'+@CodArticoloNew + WHERE IdxMacchina = @IdxMacchina + AND ( InizioStato >= @DataInizioNew AND InizioStato <= ISNULL(@DataFineNew, GETDATE()) ) + AND KanbanCode = @CodArticoloOld + + -- TempiCicloRilevati + UPDATE TempiCicloRilevati + SET CodArticolo = @CodArticoloNew + WHERE IdxMacchina = @IdxMacchina + AND ( DataOraRif >= @DataInizioNew AND DataOraRif <= ISNULL(@DataFineNew, GETDATE()) ) + AND CodArticolo = @CodArticoloOld + +COMMIT TRAN + + +RETURN +go + +commit; +go + + +set xact_abort on; +go + +begin transaction; +go + +set ANSI_NULLS on; +go + +/*************************************************** +* Trigger trg_ODL_updateMSE +* +* fa un refresh completo della MSE ad ogni intervento sull'ODL +* +* modificato: S.E.L. +* 2013.03.14 +* +***************************************************/ +create TRIGGER trg_ODL_updateAllChild +ON ODL +FOR UPDATE +AS + +-- dichiarazione variabili +DECLARE @IdxMacchina NVARCHAR(50) +DECLARE @IdxODL INT +DECLARE @CodArtOld NVARCHAR(50) +DECLARE @CodArtNew NVARCHAR(50) +DECLARE @DataInizioOld DATETIME +DECLARE @DataInizioNew DATETIME +DECLARE @DataFineOld DATETIME +DECLARE @DataFineNew DATETIME + +-- calcolo valori articolo, date validità... +SELECT @CodArtOld=CodArticolo, @DataInizioOld=DataInizio, @DataFineOld=DataFine FROM deleted +SELECT @IdxODL=IdxODL, @IdxMacchina=IdxMacchina, @CodArtNew=CodArticolo, @DataInizioNew=DataInizio, @DataFineNew=DataFine FROM inserted + +-- PRIMA REGOLA: proseguo SOLO SE la data inizio è NOT NULL +IF(NOT (@DataInizioNew IS NULL)) + BEGIN + + /*************************************************************** + * Eseguo SOLO SE: + * - faccio un update del kanban e se il mio ODL ha un periodo di validità (inizio non nullo) + * - cambia inizio periodo validità + * - cambia fine validità (MA NON ERA NULL!!!) + ***************************************************************/ + IF( ( UPDATE(CodArticolo) AND @CodArtOld<>@CodArtNew ) OR ( UPDATE(DataInizio) AND @DataInizioOld<>@DataInizioNew ) OR ( UPDATE(DataFine) AND @DataFineOld<>@DataFineNew AND NOT (@DataFineOld IS NULL) ) ) + BEGIN + exec stp_ODL_updateChild @IdxMacchina, @IdxODL, @CodArtOld, @DataInizioOld, @DataFineOld, @CodArtNew, @DataInizioNew, @DataFineNew + END + + END +-- eseguo RICALCOLO tabella stato expl +EXEC stp_MSE_getData 0 +go + +/*************************************************** +* Trigger trg_ODL_updateMSE +* +* fa un refresh completo della MSE ad ogni insert di ODL +* +* modificato: S.E.L. +* 2013.03.14 +* +***************************************************/ +alter TRIGGER trg_ODL_updateMSE +ON ODL +FOR INSERT +AS + +-- eseguo RICALCOLO tabella stato expl + EXEC stp_MSE_getData 0 +go + +commit; +go + + +set xact_abort on; +go + +begin transaction; +go + +set ANSI_NULLS on; +go + +/************************************* +* STORED PROCEDURE stp_ODL_updateChild +* aggiorna le tabelle che dipendono dai dati dell'ODL +* +* modif.: S.E.L. +* il: 2013.03.15 +**************************************/ +alter PROCEDURE stp_ODL_updateChild +( + @IdxMacchina NVARCHAR(50), + @IdxODL INT, + @CodArticoloOld NVARCHAR(50), + @DataInizioOld DATETIME, + @DataFineOld DATETIME, + @CodArticoloNew NVARCHAR(50), + @DataInizioNew DATETIME, + @DataFineNew DATETIME +) +AS + +BEGIN TRAN + + /***************************************************************************************************** + * AGGIORNO TUTTO! + * - DatiConfermati + * - DatiMacchine + * - DatiProduzione + * - DiarioDiBordo + * - EventList + * - StatoMacchine + * - TempiCicloRilevati + *****************************************************************************************************/ + + -- DatiConfermati + UPDATE DatiConfermati + SET CodArticolo = @CodArticoloNew + WHERE CodArticolo = @CodArticoloOld + AND ( DataRif >= @DataInizioNew AND DataRif <= ISNULL(@DataFineNew, GETDATE()) ) + + -- DatiMacchine, SOLO SE è ODL corrente + IF(@DataFineNew IS NULL) + BEGIN + UPDATE DatiMacchine + SET kanban_A = CASE WHEN kanban_A = 'KA'+ @CodArticoloOLD THEN 'KA'+ @CodArticoloNew ELSE kanban_A END + ,kanban_B = CASE WHEN kanban_B = 'KA'+ @CodArticoloOLD THEN 'KA'+ @CodArticoloNew ELSE kanban_B END + WHERE IdxMacchina = @IdxMacchina + END + + -- DatiProduzione + UPDATE DatiProduzione + SET CodArticolo = @CodArticoloNew + ,IdxODL = @IdxODL + WHERE IdxMacchina = @IdxMacchina + AND ( DataRif >= @DataInizioNew AND DataRif <= ISNULL(@DataFineNew, GETDATE()) ) + + -- DiarioDiBordo + UPDATE DiarioDiBordo + SET KanbanCode = @CodArticoloNew + ,MatricolaKanban = 'KA'+@CodArticoloNew + WHERE IdxMacchina = @IdxMacchina + AND ( InizioStato >= @DataInizioNew AND InizioStato <= ISNULL(@DataFineNew, GETDATE()) ) + AND KanbanCode = @CodArticoloOld + + -- EventList + UPDATE EventList + SET MatricolaKanban = 'KA'+@CodArticoloNew + WHERE IdxMacchina = @IdxMacchina + AND ( InizioStato >= @DataInizioNew AND InizioStato <= ISNULL(@DataFineNew, GETDATE()) ) + AND MatricolaKanban = 'KA'+@CodArticoloOld + + -- StatoMacchine + UPDATE StatoMacchine + SET KanbanCode = @CodArticoloNew + ,MatricolaKanban = 'KA'+@CodArticoloNew + WHERE IdxMacchina = @IdxMacchina + AND ( InizioStato >= @DataInizioNew AND InizioStato <= ISNULL(@DataFineNew, GETDATE()) ) + AND KanbanCode = @CodArticoloOld + + -- TempiCicloRilevati + UPDATE TempiCicloRilevati + SET CodArticolo = @CodArticoloNew + WHERE IdxMacchina = @IdxMacchina + AND ( DataOraRif >= @DataInizioNew AND DataOraRif <= ISNULL(@DataFineNew, GETDATE()) ) + AND CodArticolo = @CodArticoloOld + +COMMIT TRAN + + +RETURN +go + +commit; +go + + +drop trigger trg_ODL_updateMSE; +go + +set xact_abort on; +go + +begin transaction; +go + +set ANSI_NULLS on; +go + +/************************************* +* STORED PROCEDURE stp_MSE_getData +* tabella stato attuale macchine (da mostrare) +* +* modif.: S.E.L. - 2013.02.28 +**************************************/ +alter PROCEDURE stp_MSE_getData +( + @maxAgeSec INT -- soglia di "vecchiaia" del dato massima accettabile dopo cui parte ricalcolo, in millisec, se < 1000 ignoro! +) +AS + +-- cerco dato + recente +DECLARE @adesso DATETIME = GETDATE() +DECLARE @lastUpdate DATETIME + +SELECT TOP 1 @lastUpdate=ISNULL(lastUpdate, '2000/01/01') FROM MappaStatoExpl ORDER BY lastUpdate DESC +SELECT @lastUpdate= ISNULL(@lastUpdate, '2000/01/01') + +-- solo se sup ai 1000 ms! oppure zero... +IF(@maxAgeSec > 1000 OR @maxAgeSec=0) + BEGIN + -- dato vecchio! aggiorno! + IF(DATEDIFF(s,@lastUpdate,@adesso)*1000 > @maxAgeSec) + BEGIN + -- truncate table precedente + TRUNCATE TABLE MappaStatoExpl + + ;WITH cteODL AS + ( + SELECT TOP 1 * FROM ODL + WHERE IdxODL IN + ( + SELECT IdxODL + FROM ODL + WHERE DataFine IS NULL + + UNION + + SELECT MAX(IdxODL) + FROM ODL + GROUP BY IdxMacchina + ) + ) + -- inserisco di nuovo i dati + INSERT INTO MappaStatoExpl(lastUpdate, IdxMacchina, CodMacchina, Nome, url, IdxODL, CodArticolo, NumPezzi, TCAssegnato, DataInizioODL) + SELECT @adesso, ma.IdxMacchina, ma.CodMacchina, ma.Nome, url, ISNULL(o.IdxODL,0), ISNULL(o.CodArticolo,'-'), ISNULL(o.NumPezzi,0), ISNULL(o.TCAssegnato,0), ISNULL(o.DataInizio,'2000/01/01') + FROM Macchine ma LEFT OUTER JOIN cteODL o ON ma.IdxMacchina=o.IdxMacchina + WHERE NOT (locazione IS NULL) + --AND ( (ISNULL(o.IdxODL,0) = 0) OR ((o.DataFine IS NULL) AND NOT (o.DataInizio IS NULL)) ) + ORDER BY ma.locazione + + -- dichiaro le 2 table variables che userò x caricare i dati di stato + DECLARE @tvStato TABLE ( + IdxMacchina INT NULL, + idxStato INT NULL, + DescrizioneStato NVARCHAR(50), + Semaforo NVARCHAR(50), + Minuti INT NULL + ) + DECLARE @tvODL TABLE ( + IdxODL INT NULL, + CodArticolo NVARCHAR(50), + DescArticolo NVARCHAR(50), + IdxMacchina INT NULL, + CodMacchina NVARCHAR(50), + Nome NVARCHAR(50), + NumPezzi INT NULL, + TCAssegnato DECIMAL(18,8), + DataInizio DATETIME, + DataFine DATETIME + ) + DECLARE @tvProd TABLE ( + IdxMacchina INT NULL, + CodArticolo NVARCHAR(50), + PezziLanciati INT NULL, + PezziProd INT NULL, + PezziConf INT NULL, + TCAssegnato DECIMAL(18,8), + CodOperatore INT NULL, + TempoOn DECIMAL(18,8), + TempoAuto DECIMAL(18,8), + TempoRun DECIMAL(18,8), + TCMedio DECIMAL(18,8), + TCLav DECIMAL(18,8), + TCEff DECIMAL(18,8), + TCMedioRT DECIMAL(18,8), + TCLavRT DECIMAL(18,8), + TCEffRT DECIMAL(18,8) + ) + + DECLARE @numRows INT = 0 + DECLARE @currRow INT = 1 + DECLARE @IdxMacchina INT = 0 + + SET @numRows = ISNULL((SELECT COUNT(*) FROM MappaStatoExpl),0) + + -- carico altri dati con ciclo while + WHILE (@currRow <= @numRows) + BEGIN + -- macchina corrente! + SELECT @IdxMacchina = IdxMacchina FROM MappaStatoExpl WHERE RowNum = @currRow + + -- popolo tab stati + INSERT @tvStato(idxStato, Minuti) + EXEC stp_repDonati_getLastStatoDurataMacchina @IdxMacchina, 0.1 + -- fix dati mancanti + UPDATE tvs + SET tvs.IdxMacchina = @IdxMacchina + ,tvs.Semaforo = s.Semaforo + ,tvs.DescrizioneStato = s.Descrizione + FROM @tvStato tvs INNER JOIN AnagraficaStati s ON tvs.idxStato=s.IdxStato + WHERE tvs.IdxMacchina IS NULL + + -- popolo tab ODL + INSERT @tvODL + EXEC stp_ODL_getByMacchina @IdxMacchina + + -- popolo tab pezzi/tempi + INSERT @tvProd(CodArticolo,PezziLanciati,PezziProd,PezziConf,TCAssegnato,CodOperatore,TempoOn,TempoAuto,TempoRun,TCMedio,TCLav,TCEff,TCMedioRT,TCLavRT,TCEffRT ) + EXEC stp_repDonati_getDatiProdMacchina @IdxMacchina + -- fix dati mancanti + UPDATE tvp + SET tvp.IdxMacchina = @IdxMacchina + FROM @tvProd tvp + WHERE tvp.IdxMacchina IS NULL + + -- aggiorno contatore + SET @currRow = @currRow + 1 + END + -- aggiorno in blocco i valori x stato e pezzi prodotti + UPDATE mse + SET mse.idxStato = ISNULL(tvs.idxStato,0) + ,mse.durata = ISNULL(tvs.Minuti,0) + ,mse.Semaforo = ISNULL(tvs.Semaforo,'') + ,mse.DescrizioneStato = ISNULL(tvs.DescrizioneStato,'') + FROM MappaStatoExpl mse INNER JOIN @tvStato tvs ON mse.IdxMacchina=tvs.IdxMacchina + + -- aggiorno in blocco i valori x ODL + UPDATE mse + SET mse.TCAssegnato = ISNULL(tvo.TCAssegnato,0) + ,mse.NumPezzi = ISNULL(tvo.NumPezzi,0) + ,mse.DataInizioODL = ISNULL(tvo.DataInizio,'2000/01/01') + FROM MappaStatoExpl mse INNER JOIN @tvODL tvo ON mse.IdxMacchina=tvo.IdxMacchina + + -- aggiorno in blocco i valori x produzione + UPDATE mse + SET mse.PezziProd = ISNULL(tvp.PezziProd,0) + ,mse.PezziConf = ISNULL(tvp.PezziConf,0) + ,mse.TempoOn = ISNULL(tvp.TempoOn,0) + ,mse.TempoAuto = ISNULL(tvp.TempoAuto,0) + ,mse.TempoRun = ISNULL(tvp.TempoRun,0) + ,mse.TCMedio = ISNULL(tvp.TCMedio,0) + ,mse.TCLav = ISNULL(tvp.TCLav,0) + ,mse.TCEff = ISNULL(tvp.TCEff,0) + ,mse.TCMedioRT = ISNULL(tvp.TCMedioRT,0) + ,mse.TCLavRT = ISNULL(tvp.TCLavRT,0) + ,mse.TCEffRT = ISNULL(tvp.TCEffRT,0) + FROM MappaStatoExpl mse INNER JOIN @tvProd tvp ON mse.IdxMacchina=tvp.IdxMacchina + + END + END +-- restituisco la tabella finale +SELECT * +FROM MappaStatoExpl + +RETURN +go + +/************************************* +* STORED PROCEDURE stp_MSE_refresh +* AGGIORNA tabella stato attuale macchine x macchina indicata +* +* modif.: S.E.L. - 2013.02.28 +**************************************/ +alter PROCEDURE stp_MSE_refresh +( + @IdxMacchina NVARCHAR(50) -- macchina da aggiornare +) +AS + +--init variabili! +DECLARE @adesso DATETIME = GETDATE() +DECLARE @trovate INT = 0 +DECLARE @tvStato TABLE ( + idxStato INT NULL, + DescrizioneStato NVARCHAR(50), + Semaforo NVARCHAR(50), + Minuti INT NULL +) +DECLARE @tvODL TABLE ( + IdxODL INT NULL, + CodArticolo NVARCHAR(50), + DescArticolo NVARCHAR(50), + IdxMacchina INT NULL, + CodMacchina NVARCHAR(50), + Nome NVARCHAR(50), + NumPezzi INT NULL, + TCAssegnato DECIMAL(18,8), + DataInizio DATETIME, + DataFine DATETIME +) +DECLARE @tvProd TABLE ( + CodArticolo NVARCHAR(50), + PezziLanciati INT NULL, + PezziProd INT NULL, + PezziConf INT NULL, + TCAssegnato DECIMAL(18,8), + CodOperatore INT NULL, + TempoOn DECIMAL(18,8), + TempoAuto DECIMAL(18,8), + TempoRun DECIMAL(18,8), + TCMedio DECIMAL(18,8), + TCLav DECIMAL(18,8), + TCEff DECIMAL(18,8), + TCMedioRT DECIMAL(18,8), + TCLavRT DECIMAL(18,8), + TCEffRT DECIMAL(18,8) +) + +BEGIN + -- controllo: se c'è riga macchina richiesta... + SELECT @trovate=COUNT(*) FROM MappaStatoExpl WHERE IdxMacchina = @IdxMacchina + + -- se NON c'è la creo... + IF(@trovate = 0) + BEGIN + -- calcolo ODL + ;WITH cteODL AS + ( + SELECT top 1 * FROM ODL + WHERE IdxODL IN + ( + SELECT IdxODL + FROM ODL + WHERE DataFine IS NULL + AND (IdxMacchina = @IdxMacchina) + + UNION + + SELECT MAX(IdxODL) + FROM ODL + WHERE IdxMacchina = @IdxMacchina + ) + ) + -- inserisco i nuovi dati + INSERT INTO MappaStatoExpl(lastUpdate, IdxMacchina, CodMacchina, Nome, url, IdxODL, CodArticolo, NumPezzi, TCAssegnato, DataInizioODL) + SELECT @adesso, ma.IdxMacchina, ma.CodMacchina, ma.Nome, url, ISNULL(o.IdxODL,0), ISNULL(o.CodArticolo,'-'), ISNULL(o.NumPezzi,0), ISNULL(o.TCAssegnato,0), ISNULL(o.DataInizio,'2000/01/01') + FROM Macchine ma LEFT OUTER JOIN cteODL o ON ma.IdxMacchina=o.IdxMacchina + WHERE ma.IdxMacchina = @IdxMacchina + AND NOT (locazione IS NULL) + --AND ( (ISNULL(o.IdxODL,0) = 0) OR ((o.DataFine IS NULL) AND NOT (o.DataInizio IS NULL)) ) + ORDER BY ma.locazione + END + + -- popolo tab stati + INSERT @tvStato(idxStato, Minuti) + EXEC stp_repDonati_getLastStatoDurataMacchina @IdxMacchina, 0.1 + -- fix dati mancanti + UPDATE tvs + SET tvs.Semaforo = s.Semaforo + ,tvs.DescrizioneStato = s.Descrizione + FROM @tvStato tvs INNER JOIN AnagraficaStati s ON tvs.idxStato=s.IdxStato + + -- popolo tab ODL + INSERT @tvODL + EXEC stp_ODL_getByMacchina @IdxMacchina + + -- popolo tab pezzi/tempi + INSERT @tvProd(CodArticolo,PezziLanciati,PezziProd,PezziConf,TCAssegnato,CodOperatore,TempoOn,TempoAuto,TempoRun,TCMedio,TCLav,TCEff,TCMedioRT,TCLavRT,TCEffRT ) + EXEC stp_repDonati_getDatiProdMacchina @IdxMacchina + + -- aggiorno in blocco i valori + UPDATE mse + SET mse.lastUpdate = @adesso + ,mse.idxStato = ISNULL(tvs.idxStato,0) + ,mse.durata = ISNULL(tvs.Minuti,0) + ,mse.Semaforo = ISNULL(tvs.Semaforo,'') + ,mse.DescrizioneStato = ISNULL(tvs.DescrizioneStato,'') + ,mse.TCAssegnato = ISNULL(tvo.TCAssegnato,0) + ,mse.NumPezzi = ISNULL(tvo.NumPezzi,0) + ,mse.DataInizioODL = ISNULL(tvo.DataInizio,'2000/01/01') + ,mse.PezziProd = ISNULL(tvp.PezziProd,0) + ,mse.PezziConf = ISNULL(tvp.PezziConf,0) + ,mse.TempoOn = ISNULL(tvp.TempoOn,0) + ,mse.TempoAuto = ISNULL(tvp.TempoAuto,0) + ,mse.TempoRun = ISNULL(tvp.TempoRun,0) + ,mse.TCMedio = ISNULL(tvp.TCMedio,0) + ,mse.TCLav = ISNULL(tvp.TCLav,0) + ,mse.TCEff = ISNULL(tvp.TCEff,0) + ,mse.TCMedioRT = ISNULL(tvp.TCMedioRT,0) + ,mse.TCLavRT = ISNULL(tvp.TCLavRT,0) + ,mse.TCEffRT = ISNULL(tvp.TCEffRT,0) + FROM MappaStatoExpl mse + CROSS JOIN @tvStato tvs + CROSS JOIN @tvODL tvo + CROSS JOIN @tvProd tvp + WHERE mse.Idxmacchina = @IdxMacchina + +END + +RETURN +go + +commit; +go + + + + + + + + +-- registro versione... +INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(380, GETDATE()) +GO + +SELECT TOP 10 * FROM LogUpdateDb ORDER BY Versione DESC +GO \ No newline at end of file diff --git a/MapoDb/SqlUpdate/MoonPro/V3.2/MoonPro_00385.sql b/MapoDb/SqlUpdate/MoonPro/V3.2/MoonPro_00385.sql new file mode 100644 index 00000000..eb09341a --- /dev/null +++ b/MapoDb/SqlUpdate/MoonPro/V3.2/MoonPro_00385.sql @@ -0,0 +1,194 @@ +set xact_abort on; +go + +begin transaction; +go + +set ANSI_NULLS on; +go + +/************************************* +* STORED PROCEDURE stp_MSE_getByIdxMacchina +* ottiene riga stato x macchina indicata +* +* modif.: S.E.L. - 2013.03.15 +**************************************/ +create PROCEDURE stp_MSE_getByIdxMacchina +( + @IdxMacchina nvarchar(50) +) +AS + SET NOCOUNT ON; +SELECT RowNum, lastUpdate, IdxMacchina, CodMacchina, Nome, url, idxODL, CodArticolo, NumPezzi, TCAssegnato, DataInizioODL, Semaforo, idxStato, DescrizioneStato, durata, PezziProd, PezziConf, TempoOn, TempoAuto, TempoRun, TCMedio, TCLav, TCEff, TCMedioRT, TCLavRT, TCEffRT +FROM dbo.MappaStatoExpl +WHERE IdxMacchina=@IdxMacchina +go + +commit; +go + + +set xact_abort on; +go + +begin transaction; +go + +set ANSI_NULLS on; +go + +/************************************* +* STORED PROCEDURE stp_MSE_refresh +* AGGIORNA tabella stato attuale macchine x macchina indicata +* +* modif.: S.E.L. - 2013.02.28 +**************************************/ +alter PROCEDURE stp_MSE_refresh +( + @IdxMacchina NVARCHAR(50) -- macchina da aggiornare +) +AS + +--init variabili! +DECLARE @adesso DATETIME = GETDATE() +DECLARE @trovate INT = 0 +DECLARE @tvStato TABLE ( + idxStato INT NULL, + DescrizioneStato NVARCHAR(50), + Semaforo NVARCHAR(50), + Minuti INT NULL +) +DECLARE @tvODL TABLE ( + IdxODL INT NULL, + CodArticolo NVARCHAR(50), + DescArticolo NVARCHAR(50), + IdxMacchina INT NULL, + CodMacchina NVARCHAR(50), + Nome NVARCHAR(50), + NumPezzi INT NULL, + TCAssegnato DECIMAL(18,8), + DataInizio DATETIME, + DataFine DATETIME +) +DECLARE @tvProd TABLE ( + CodArticolo NVARCHAR(50), + PezziLanciati INT NULL, + PezziProd INT NULL, + PezziConf INT NULL, + TCAssegnato DECIMAL(18,8), + CodOperatore INT NULL, + TempoOn DECIMAL(18,8), + TempoAuto DECIMAL(18,8), + TempoRun DECIMAL(18,8), + TCMedio DECIMAL(18,8), + TCLav DECIMAL(18,8), + TCEff DECIMAL(18,8), + TCMedioRT DECIMAL(18,8), + TCLavRT DECIMAL(18,8), + TCEffRT DECIMAL(18,8) +) + +BEGIN + -- controllo: se c'è riga macchina richiesta... + SELECT @trovate=COUNT(*) FROM MappaStatoExpl WHERE IdxMacchina = @IdxMacchina + + -- se NON c'è la creo... + IF(@trovate = 0) + BEGIN + -- calcolo ODL + ;WITH cteODL AS + ( + SELECT top 1 * FROM ODL + WHERE IdxODL IN + ( + SELECT IdxODL + FROM ODL + WHERE DataFine IS NULL + AND (IdxMacchina = @IdxMacchina) + + UNION + + SELECT MAX(IdxODL) + FROM ODL + WHERE IdxMacchina = @IdxMacchina + ) + ) + -- inserisco i nuovi dati + INSERT INTO MappaStatoExpl(lastUpdate, IdxMacchina, CodMacchina, Nome, url, IdxODL, CodArticolo, NumPezzi, TCAssegnato, DataInizioODL) + SELECT @adesso, ma.IdxMacchina, ma.CodMacchina, ma.Nome, url, ISNULL(o.IdxODL,0), ISNULL(o.CodArticolo,'-'), ISNULL(o.NumPezzi,0), ISNULL(o.TCAssegnato,0), ISNULL(o.DataInizio,'2000/01/01') + FROM Macchine ma LEFT OUTER JOIN cteODL o ON ma.IdxMacchina=o.IdxMacchina + WHERE ma.IdxMacchina = @IdxMacchina + AND NOT (locazione IS NULL) + --AND ( (ISNULL(o.IdxODL,0) = 0) OR ((o.DataFine IS NULL) AND NOT (o.DataInizio IS NULL)) ) + ORDER BY ma.locazione + END + + -- popolo tab stati + INSERT @tvStato(idxStato, Minuti) + EXEC stp_repDonati_getLastStatoDurataMacchina @IdxMacchina, 0.1 + -- fix dati mancanti + UPDATE tvs + SET tvs.Semaforo = s.Semaforo + ,tvs.DescrizioneStato = s.Descrizione + FROM @tvStato tvs INNER JOIN AnagraficaStati s ON tvs.idxStato=s.IdxStato + + -- popolo tab ODL + INSERT @tvODL + EXEC stp_ODL_getByMacchina @IdxMacchina + + -- popolo tab pezzi/tempi + INSERT @tvProd(CodArticolo,PezziLanciati,PezziProd,PezziConf,TCAssegnato,CodOperatore,TempoOn,TempoAuto,TempoRun,TCMedio,TCLav,TCEff,TCMedioRT,TCLavRT,TCEffRT ) + EXEC stp_repDonati_getDatiProdMacchina @IdxMacchina + + -- aggiorno in blocco i valori + UPDATE mse + SET mse.lastUpdate = @adesso + ,mse.idxStato = ISNULL(tvs.idxStato,0) + ,mse.durata = ISNULL(tvs.Minuti,0) + ,mse.Semaforo = ISNULL(tvs.Semaforo,'') + ,mse.DescrizioneStato = ISNULL(tvs.DescrizioneStato,'') + ,mse.IdxODL = ISNULL(tvo.IdxODL,0) + ,mse.CodArticolo = ISNULL(tvo.CodArticolo,0) + ,mse.TCAssegnato = ISNULL(tvo.TCAssegnato,0) + ,mse.NumPezzi = ISNULL(tvo.NumPezzi,0) + ,mse.DataInizioODL = ISNULL(tvo.DataInizio,'2000/01/01') + ,mse.PezziProd = ISNULL(tvp.PezziProd,0) + ,mse.PezziConf = ISNULL(tvp.PezziConf,0) + ,mse.TempoOn = ISNULL(tvp.TempoOn,0) + ,mse.TempoAuto = ISNULL(tvp.TempoAuto,0) + ,mse.TempoRun = ISNULL(tvp.TempoRun,0) + ,mse.TCMedio = ISNULL(tvp.TCMedio,0) + ,mse.TCLav = ISNULL(tvp.TCLav,0) + ,mse.TCEff = ISNULL(tvp.TCEff,0) + ,mse.TCMedioRT = ISNULL(tvp.TCMedioRT,0) + ,mse.TCLavRT = ISNULL(tvp.TCLavRT,0) + ,mse.TCEffRT = ISNULL(tvp.TCEffRT,0) + FROM MappaStatoExpl mse + CROSS JOIN @tvStato tvs + CROSS JOIN @tvODL tvo + CROSS JOIN @tvProd tvp + WHERE mse.Idxmacchina = @IdxMacchina + +END + +RETURN +go + +commit; +go + + + + + + + + + + +-- registro versione... +INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(385, GETDATE()) +GO + +SELECT TOP 10 * FROM LogUpdateDb ORDER BY Versione DESC +GO \ No newline at end of file diff --git a/MapoDb/SqlUpdate/MoonPro/V3.2/MoonPro_00390.sql b/MapoDb/SqlUpdate/MoonPro/V3.2/MoonPro_00390.sql new file mode 100644 index 00000000..edd203d6 --- /dev/null +++ b/MapoDb/SqlUpdate/MoonPro/V3.2/MoonPro_00390.sql @@ -0,0 +1,78 @@ +create table RemoteRebootLog( + idxReboot int not null identity constraint PK_RemoteRebootLog primary key, + IdxMacchina nvarchar(50) not null, + IPv4 nvarchar(50), + Agent nvarchar(250), + DataOraBoot datetime +); +go + + +set xact_abort on; +go + +begin transaction; +go + +set ANSI_NULLS on; +go + +/************************************* +* STORED PROCEDURE stp_TC_getByMacchinaPeriodo +* recupera tempi ciclo x macchina e periodo +* +* modif.: S.E.L. - 2010.12.15 +**************************************/ +alter PROCEDURE stp_TC_getByMacchinaPeriodo +( + @IdxMacchina NVARCHAR(50), + @Inizio DATETIME, + @Fine DATETIME +) +AS + +SELECT * FROM TempiCicloRilevati +WHERE IdxMacchina = @IdxMacchina AND + (DataOraRif >= @Inizio) AND (DataOraRif <= @Fine) +ORDER BY DataOraRif + +RETURN +go + +/************************************* +* STORED PROCEDURE stp_TRI_getByIdxMacchina +* recupera dati transizione ingressi da idx Macchina +* +* modif.: S.E.L. +* il: 2011.03.23 +**************************************/ +alter PROCEDURE stp_TRI_getByIdxMacchina +( + @IdxMacchina NVARCHAR(50) +) +AS + +SELECT * +FROM TransizioneIngressi +WHERE IdxFamigliaIngresso = (SELECT IdxFamigliaIngresso FROM Macchine2FamigliaIngressi WHERE IdxMacchina=@IdxMacchina) + + +RETURN +go + +commit; +go + + + + + + + + +-- registro versione... +INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(390, GETDATE()) +GO + +SELECT TOP 10 * FROM LogUpdateDb ORDER BY Versione DESC +GO \ No newline at end of file diff --git a/MapoDb/SqlUpdate/MoonPro/V3.4/MoonPro_00401.sql b/MapoDb/SqlUpdate/MoonPro/V3.4/MoonPro_00401.sql new file mode 100644 index 00000000..267d2198 --- /dev/null +++ b/MapoDb/SqlUpdate/MoonPro/V3.4/MoonPro_00401.sql @@ -0,0 +1,1491 @@ +-- schema +create schema man authorization dbo +go + +-- stored x trigger... +set xact_abort on +go + +begin transaction +go + +set ANSI_NULLS on +go + +/************************************* +* STORED PROCEDURE stp_EL_processaEvento +* Processa un singolo evento +* +* Note : richiamata anche nel trigger della tabella EventList +* +* modif.: +**************************************/ +create PROCEDURE stp_EL_processaEvento +( + @IdxTipo INT, + @IdxMacchina NVARCHAR(50), + @MatricolaKanban NVARCHAR(50), + @DataOra DATETIME, + @NumPz INT, + @FlgAggStato CHAR(1) = 'Y' -- Y/N = elabora o meno aggiornamento StatiMacchine e DatiMacchine +) +AS + + ---- parametri x test + --DECLARE @IdxTipo INT = 0 + --DECLARE @IdxMacchina NVARCHAR(50) + --DECLARE @DataOra DATETIME + --DECLARE @MatricolaKanban NVARCHAR(50) + --DECLARE @TCMedio DECIMAL(18,8) + --DECLARE @NumPz INT + + --SET @IdxTipo = ( SELECT i.IdxTipo FROM inserted i ) + --SET @IdxMacchina = ( SELECT i.IdxMacchina FROM inserted i ) + --SET @DataOra = ( SELECT i.InizioStato FROM inserted i ) + --SET @MatricolaKanban = ( SELECT i.MatricolaKanban FROM inserted i ) + --SET @NumPz = ( SELECT CASE WHEN (ISNUMERIC(value)=1) THEN value ELSE 1 END FROM inserted i ) + + -- INIZIO DICHIARAZIONI + DECLARE @TabAzione NVARCHAR(50) = ''; + DECLARE @Azione NVARCHAR(50) = ''; + DECLARE @CodArticolo NVARCHAR(50) = '' + DECLARE @MatricolaKanbanOk NVARCHAR(50); + DECLARE @DataOraPrec DATETIME; + DECLARE @TCMedio DECIMAL(18,8) = 0; + + /* recupero altri valori ( se non trova record lascia il valore invariato cioè = '' )*/ + SELECT @TabAzione = ISNULL(TabAzione,'') + , @Azione = ISNULL(Azione,'') + FROM AnagraficaEventi WHERE IdxTipo = @IdxTipo + + --SELECT @TabAzione , @Azione + + IF (@TabAzione <> '' AND @Azione <> '') + BEGIN + /* azioni richieste: seconda dei casi eseguo... */ + + /****************************************** + * + * Calcolo tempo ciclo per INIZIO + * + ******************************************/ + IF(@TabAzione = 'TempiCicloRilevati' AND @Azione = 'Insert') + BEGIN + -- recupero codice articolo + SET @CodArticolo = ( SELECT CodArticolo FROM Kanban WHERE MatricolaKanban = @MatricolaKanban ) + /* calcolo tempo tra gli ultimi 2 eventi "contapezzi" */ + SET @DataOraPrec = ISNULL((SELECT Top 1 InizioStato FROM EventList WHERE IdxMacchina = @IdxMacchina AND IdxTipo = @IdxTipo AND InizioStato < @DataOra ORDER BY InizioStato DESC), @DataOra ) + + -- se è oltre 10 gg calcolo in secondi... 2013.8.30 + IF (DATEDIFF(DD, @DataOraPrec, @DataOra) > 10) + SET @TCMedio = ( SELECT (DATEDIFF(s, @DataOraPrec, @DataOra) / 60.00 ) ) --calcolo in secondi + ELSE + SET @TCMedio = ( SELECT (DATEDIFF(ms, @DataOraPrec, @DataOra) / 60000.00 ) ) + + /* inserisco riga di tempo ciclo */ + INSERT INTO TempiCicloRilevati + VALUES(@IdxMacchina, @CodArticolo, @DataOra, @TCMedio, @NumPz) + END + /****************************************** + * + * Calcolo tempo ciclo con logica stop/start + * + ******************************************/ + ELSE IF(@TabAzione = 'TempiCicloRilevati' AND @Azione = 'Stop2StartCiclo') + BEGIN + /* prendo la matricola dall'evento inizio (precedente) */ + SET @MatricolaKanbanOk = ISNULL((SELECT Top 1 MatricolaKanban FROM EventList WHERE IdxMacchina = @IdxMacchina AND IdxTipo = @IdxTipo - 1 AND InizioStato < @DataOra ORDER BY InizioStato DESC), @MatricolaKanban ) + + -- calcolare num pezzi da codice... + SET @CodArticolo = ( SELECT CodArticolo FROM Kanban WHERE MatricolaKanban = @MatricolaKanbanOk ) + /* calcolo tempo tra eventi "contapezzi" inizio - fine NB: idxEvento per fine è idxEvento inizio + 1 ... HARD CODED!!! */ + SET @DataOraPrec = ISNULL((SELECT Top 1 InizioStato FROM EventList WHERE IdxMacchina = @IdxMacchina AND IdxTipo = @IdxTipo - 1 AND InizioStato < @DataOra ORDER BY InizioStato DESC), @DataOra ) + + -- se è oltre 10 gg calcolo in secondi... 2013.8.30 + IF (DATEDIFF(DD, @DataOraPrec, @DataOra) > 10) + SET @TCMedio = ( DATEDIFF(s, @DataOraPrec, @DataOra) / 60.00 ) --calcolo in secondi + ELSE + SET @TCMedio = ( DATEDIFF(ms, @DataOraPrec, @DataOra) / 60000.00 ) + + /* inserisco riga di tempo ciclo */ + INSERT INTO TempiCicloRilevati + VALUES(@IdxMacchina, @CodArticolo, @DataOra, @TCMedio, @NumPz) + END + /****************************************** + * + * calcolo tempo ciclo con logica stop/stop + * + ******************************************/ + ELSE IF(@TabAzione = 'TempiCicloRilevati' AND @Azione = 'Stop2StopCiclo') + BEGIN + /* prendo la matricola dall'evento inizio (precedente) */ + SET @MatricolaKanbanOk = ISNULL((SELECT Top 1 MatricolaKanban FROM EventList WHERE IdxMacchina = @IdxMacchina AND IdxTipo = @IdxTipo AND InizioStato < @DataOra ORDER BY InizioStato DESC), @MatricolaKanban ) + + -- calcolare num pezzi da codice... + SET @NumPz = ( SELECT PzPallet FROM Kanban WHERE MatricolaKanban = @MatricolaKanbanOk ) + SET @CodArticolo = ( SELECT CodArticolo FROM Kanban WHERE MatricolaKanban = @MatricolaKanbanOk ) + /* calcolo tempo tra eventi "contapezzi" fine - fine NB: idxEvento per fine è idxEvento inizio + 1 ... HARD CODED!!! */ + SET @DataOraPrec = ISNULL( (SELECT Top 1 InizioStato FROM EventList WHERE IdxMacchina = @IdxMacchina AND IdxTipo = @IdxTipo AND InizioStato < @DataOra ORDER BY InizioStato DESC), @DataOra ) + + -- se è oltre 10 gg calcolo in secondi... 2013.8.30 + IF (DATEDIFF(DD, @DataOraPrec, @DataOra) > 10) + SET @TCMedio = ( DATEDIFF(s, @DataOraPrec, @DataOra) / 60.00 ) --calcolo in secondi + ELSE + SET @TCMedio = ( DATEDIFF(ms, @DataOraPrec, @DataOra) / 60000.00 ) + + /* inserisco riga di tempo ciclo */ + INSERT INTO TempiCicloRilevati + VALUES(@IdxMacchina, @CodArticolo, @DataOra, @TCMedio, @NumPz) + END + + /****************************************** + * + * Aggiorno kanban in dati macchine per + * INIZIO ATTREZZAGGIO + * + ******************************************/ + ELSE IF(@TabAzione = 'DatiMacchine' AND @Azione = 'Inizio' AND @FlgAggStato = 'Y') + BEGIN + /* aggiorno riga di dati macchina */ + UPDATE DatiMacchine + SET kanban_A = @MatricolaKanban, + kanban_B = @MatricolaKanban + WHERE idxMacchina = @IdxMacchina + /* aggiorno stato macchina */ + UPDATE StatoMacchine + SET MatricolaKanban = @MatricolaKanban + WHERE idxMacchina = @IdxMacchina + /* aggiorno dati kanban statoMacchine... */ + UPDATE StatoMacchine + SET KanbanCode = k.KanbanCode, TempoCicloBase = k.TempoCicloBase, PzPalletProd = k.PzPallet + FROM Kanban AS k + INNER JOIN StatoMacchine ON k.MatricolaKanban = StatoMacchine.MatricolaKanban + WHERE (StatoMacchine.idxMacchina = @IdxMacchina) + END + /****************************************** + * + * Aggiorno kanban in dati macchine per + * FINE PRODUZIONE + * + ******************************************/ + ELSE IF(@TabAzione = 'DatiMacchine' AND @Azione = 'Fine' AND @FlgAggStato = 'Y') + BEGIN + /* calcolo valori */ + SET @MatricolaKanban = 'KAND' -- kanban non definito !!!HARD CODED!!! + /* aggiorno riga di dati macchina */ + UPDATE DatiMacchine + SET kanban_A = @MatricolaKanban, + kanban_B = @MatricolaKanban + WHERE idxMacchina = @IdxMacchina + /* aggiorno stato macchina */ + UPDATE StatoMacchine + SET MatricolaKanban = @MatricolaKanban + WHERE idxMacchina = @IdxMacchina + /* aggiorno dati kanban statoMacchine... */ + UPDATE StatoMacchine + SET KanbanCode = k.KanbanCode, TempoCicloBase = k.TempoCicloBase, PzPalletProd = k.PzPallet + FROM Kanban AS k INNER JOIN StatoMacchine ON k.MatricolaKanban = StatoMacchine.MatricolaKanban + WHERE (StatoMacchine.idxMacchina = @IdxMacchina) + + END + END + +RETURN +go + +commit +go + + +-- indici DDB +create index idx_TempoCicloBase on DiarioDiBordo(TempoCicloBase) + include(IdxMacchina,InizioStato,MatricolaKanban,KanbanCode) +go + + +-- trigger EL +set xact_abort on +go + +begin transaction +go + +set ANSI_NULLS on +go + +/*************************************************** +* Trigger trg_doActions +* +* processa eventuali azioni legate ad un inserimento evento +* +* modificato: S.E.L. +* 2011.05.18 +* +***************************************************/ +alter TRIGGER trg_doActions +ON EventList +FOR INSERT +AS + /* dichiarazione variabili */ + DECLARE @IdxTipo INT + DECLARE @TabAzione NVARCHAR(50) + DECLARE @Azione NVARCHAR(50) + DECLARE @IdxMacchina NVARCHAR(50) + DECLARE @MatricolaKanban NVARCHAR(50) + DECLARE @MatricolaKanbanOk NVARCHAR(50) + DECLARE @CodArticolo NVARCHAR(50) + DECLARE @TCMedio DECIMAL(18,8) + DECLARE @DataOra DATETIME + DECLARE @DataOraPrec DATETIME + DECLARE @NumPz INT + + /* recupero valori dell'INSERT */ + SET @IdxTipo = ( SELECT i.IdxTipo FROM inserted i ) + SET @IdxMacchina = ( SELECT i.IdxMacchina FROM inserted i ) + SET @MatricolaKanban = ( SELECT i.MatricolaKanban FROM inserted i ) + SET @DataOra = ( SELECT i.InizioStato FROM inserted i ) + SET @NumPz = ( SELECT CASE WHEN (ISNUMERIC(value)=1) THEN value ELSE 1 END FROM inserted i ) + + EXECUTE dbo.stp_EL_processaEvento @IdxTipo, @IdxMacchina, @MatricolaKanban, @DataOra, @NumPz, 'Y' + +/* SOSTITUITA CON STORED + + /* controllo se l'evento richieda azioni successive */ + IF(@TabAzione <> '' AND @Azione <> '') + BEGIN + /* azioni richieste: seconda dei casi eseguo... */ + + /****************************************** + * + * Calcolo tempo ciclo per INIZIO + * + ******************************************/ + IF(@TabAzione = 'TempiCicloRilevati' AND @Azione = 'Insert') + BEGIN + /* calcolo valori */ + SET @DataOra = ( SELECT i.InizioStato FROM inserted i ) + SET @MatricolaKanban = ( SELECT i.MatricolaKanban FROM inserted i ) + SET @NumPz = ( SELECT CASE WHEN (ISNUMERIC(value)=1) THEN value ELSE 1 END FROM inserted i ) + SET @CodArticolo = ( SELECT CodArticolo FROM Kanban WHERE MatricolaKanban = @MatricolaKanban ) + /* calcolo tempo tra gli ultimi 2 eventi "contapezzi" */ + SET @DataOraPrec = ( SELECT ISNULL((SELECT Top 1 InizioStato FROM EventList WHERE IdxMacchina = @IdxMacchina AND IdxTipo = @IdxTipo AND InizioStato < @DataOra ORDER BY InizioStato DESC), @DataOra ) ) + -- se è oltre 10 gg calcolo in secondi... 2013.8.30 + IF (DATEDIFF(DD, @DataOraPrec, @DataOra) > 10) + BEGIN + SET @TCMedio = ( SELECT (DATEDIFF(s, @DataOraPrec, @DataOra) / 60.00 ) ) --calcolo in secondi + END + ELSE + BEGIN + SET @TCMedio = ( SELECT (DATEDIFF(ms, @DataOraPrec, @DataOra) / 60000.00 ) ) + END + -- versione vecchia (blocco se oltre 24 gg di fermo...) + --BEGIN TRY + -- /* è in millisecondi, divido per 60'000.00 x avere minuti centesimali*/ + -- SET @TCMedio = ( SELECT (DATEDIFF(ms, @DataOraPrec, @DataOra) / 60000.00 ) ) + --END TRY + --BEGIN CATCH + -- SET @TCMedio = ( SELECT (DATEDIFF(s, @DataOraPrec, @DataOra) / 60.00 ) ) --calcolo in secondi + --END CATCH + /* inserisco riga di tempo ciclo */ + INSERT INTO TempiCicloRilevati + VALUES(@IdxMacchina, @CodArticolo, @DataOra, @TCMedio, @NumPz) + END + /****************************************** + * + * Calcolo tempo ciclo con logica stop/start + * + ******************************************/ + ELSE IF(@TabAzione = 'TempiCicloRilevati' AND @Azione = 'Stop2StartCiclo') + BEGIN + /* calcolo valori */ + SET @DataOra = ( SELECT i.InizioStato FROM inserted i ) + SET @MatricolaKanban = ( SELECT i.MatricolaKanban FROM inserted i ) + /* prendo la matricola dall'evento inizio (precedente) */ + SET @MatricolaKanbanOk = ( SELECT ISNULL((SELECT Top 1 MatricolaKanban FROM EventList WHERE IdxMacchina = @IdxMacchina AND IdxTipo = @IdxTipo - 1 AND InizioStato < @DataOra ORDER BY InizioStato DESC), @MatricolaKanban ) ) + + -- calcolare num pezzi da codice... + SET @NumPz = ( SELECT CASE WHEN (ISNUMERIC(value)=1) THEN value ELSE 1 END FROM inserted i ) + SET @CodArticolo = ( SELECT CodArticolo FROM Kanban WHERE MatricolaKanban = @MatricolaKanbanOk ) + /* calcolo tempo tra eventi "contapezzi" inizio - fine NB: idxEvento per fine è idxEvento inizio + 1 ... HARD CODED!!! */ + SET @DataOraPrec = ( SELECT ISNULL((SELECT Top 1 InizioStato FROM EventList WHERE IdxMacchina = @IdxMacchina AND IdxTipo = @IdxTipo - 1 AND InizioStato < @DataOra ORDER BY InizioStato DESC), @DataOra ) ) + -- se è oltre 10 gg calcolo in secondi... 2013.8.30 + IF (DATEDIFF(DD, @DataOraPrec, @DataOra) > 10) + BEGIN + SET @TCMedio = ( SELECT (DATEDIFF(s, @DataOraPrec, @DataOra) / 60.00 ) ) --calcolo in secondi + END + ELSE + BEGIN + SET @TCMedio = ( SELECT (DATEDIFF(ms, @DataOraPrec, @DataOra) / 60000.00 ) ) + END + -- versione vecchia (blocco se oltre 24 gg di fermo...) + --BEGIN TRY + -- /* è in millisecondi, divido per 60'000.00 x avere minuti centesimali*/ + -- SET @TCMedio = ( SELECT (DATEDIFF(ms, @DataOraPrec, @DataOra) / 60000.00 ) ) + --END TRY + --BEGIN CATCH + -- SET @TCMedio = ( SELECT (DATEDIFF(s, @DataOraPrec, @DataOra) / 60.00 ) ) --calcolo in secondi + --END CATCH + /* inserisco riga di tempo ciclo */ + INSERT INTO TempiCicloRilevati + VALUES(@IdxMacchina, @CodArticolo, @DataOra, @TCMedio, @NumPz) + END + /****************************************** + * + * calcolo tempo ciclo con logica stop/stop + * + ******************************************/ + ELSE IF(@TabAzione = 'TempiCicloRilevati' AND @Azione = 'Stop2StopCiclo') + BEGIN + /* calcolo valori */ + SET @DataOra = ( SELECT i.InizioStato FROM inserted i ) + SET @MatricolaKanban = ( SELECT i.MatricolaKanban FROM inserted i ) + /* prendo la matricola dall'evento inizio (precedente) */ + SET @MatricolaKanbanOk = ( SELECT ISNULL((SELECT Top 1 MatricolaKanban FROM EventList WHERE IdxMacchina = @IdxMacchina AND IdxTipo = @IdxTipo AND InizioStato < @DataOra ORDER BY InizioStato DESC), @MatricolaKanban ) ) + + -- calcolare num pezzi da codice... + SET @NumPz = ( SELECT PzPallet FROM Kanban WHERE MatricolaKanban = @MatricolaKanbanOk ) + SET @CodArticolo = ( SELECT CodArticolo FROM Kanban WHERE MatricolaKanban = @MatricolaKanbanOk ) + /* calcolo tempo tra eventi "contapezzi" fine - fine NB: idxEvento per fine è idxEvento inizio + 1 ... HARD CODED!!! */ + SET @DataOraPrec = ( SELECT ISNULL((SELECT Top 1 InizioStato FROM EventList WHERE IdxMacchina = @IdxMacchina AND IdxTipo = @IdxTipo AND InizioStato < @DataOra ORDER BY InizioStato DESC), @DataOra ) ) + -- se è oltre 10 gg calcolo in secondi... 2013.8.30 + IF (DATEDIFF(DD, @DataOraPrec, @DataOra) > 10) + BEGIN + SET @TCMedio = ( SELECT (DATEDIFF(s, @DataOraPrec, @DataOra) / 60.00 ) ) --calcolo in secondi + END + ELSE + BEGIN + SET @TCMedio = ( SELECT (DATEDIFF(ms, @DataOraPrec, @DataOra) / 60000.00 ) ) + END + -- versione vecchia (blocco se oltre 24 gg di fermo...) + --BEGIN TRY + -- /* è in millisecondi, divido per 60'000.00 x avere minuti centesimali*/ + -- SET @TCMedio = ( SELECT (DATEDIFF(ms, @DataOraPrec, @DataOra) / 60000.00 ) ) + --END TRY + --BEGIN CATCH + -- SET @TCMedio = ( SELECT (DATEDIFF(s, @DataOraPrec, @DataOra) / 60.00 ) ) --calcolo in secondi + --END CATCH + /* inserisco riga di tempo ciclo */ + BEGIN TRY + INSERT INTO TempiCicloRilevati + VALUES(@IdxMacchina, @CodArticolo, @DataOra, @TCMedio, @NumPz) + END TRY + BEGIN CATCH + -- dovrei loggare... + END CATCH + END + /****************************************** + * + * Aggiorno kanban in dati macchine per + * INIZIO ATTREZZAGGIO + * + ******************************************/ + ELSE IF(@TabAzione = 'DatiMacchine' AND @Azione = 'Inizio') + BEGIN + /* calcolo valori */ + SET @MatricolaKanban = ( SELECT i.MatricolaKanban FROM inserted i ) + /* aggiorno riga di dati macchina */ + UPDATE DatiMacchine + SET kanban_A = @MatricolaKanban, + kanban_B = @MatricolaKanban + WHERE idxMacchina = @IdxMacchina + /* aggiorno stato macchina */ + UPDATE StatoMacchine + SET MatricolaKanban = @MatricolaKanban + WHERE idxMacchina = @IdxMacchina + /* aggiorno dati kanban statoMacchine... */ + UPDATE StatoMacchine + SET KanbanCode = k.KanbanCode, TempoCicloBase = k.TempoCicloBase, PzPalletProd = k.PzPallet + FROM Kanban AS k INNER JOIN StatoMacchine ON k.MatricolaKanban = StatoMacchine.MatricolaKanban + WHERE (StatoMacchine.idxMacchina = @IdxMacchina) + END + /****************************************** + * + * Aggiorno kanban in dati macchine per + * FINE PRODUZIONE + * + ******************************************/ + ELSE IF(@TabAzione = 'DatiMacchine' AND @Azione = 'Fine') + BEGIN + /* calcolo valori */ + SET @MatricolaKanban = 'KAND' -- kanban non definito !!!HARD CODED!!! + /* aggiorno riga di dati macchina */ + UPDATE DatiMacchine + SET kanban_A = @MatricolaKanban, + kanban_B = @MatricolaKanban + WHERE idxMacchina = @IdxMacchina + /* aggiorno stato macchina */ + UPDATE StatoMacchine + SET MatricolaKanban = @MatricolaKanban + WHERE idxMacchina = @IdxMacchina + /* aggiorno dati kanban statoMacchine... */ + UPDATE StatoMacchine + SET KanbanCode = k.KanbanCode, TempoCicloBase = k.TempoCicloBase, PzPalletProd = k.PzPallet + FROM Kanban AS k INNER JOIN StatoMacchine ON k.MatricolaKanban = StatoMacchine.MatricolaKanban + WHERE (StatoMacchine.idxMacchina = @IdxMacchina) + + END + END +*/ + + -- INFINE CHIAMO REFRESH TAB STATO... + EXEC stp_MSE_refresh @IdxMacchina +go + +commit +go + + +-- viste +set xact_abort on +go + +begin transaction +go + +set ANSI_NULLS on +go + +create VIEW v_Eventi_To_StatiMacchina +AS +/* mostra gli eventi macchina ed eventualmenti gli stati macchina che hanno provocato + EVENTI -> STATI DIARIO DI BORDO + + FARE FILTRO X MACCHINA E ORDER BY INIZIO STATO + + SELECT * FROM dbo.v_Eventi_To_StatiMacchina + WHERE IdxMacchina = 1010 + AND InizioStato < '20131009 19:00.000' + ORDER BY InizioStato DESC; +*/ +WITH cteDiario AS +( + SELECT d.IdxMacchina, d.InizioStato, d.FineStato, d.IdxStato, d.DurataMinuti, d.[Value], d.MatricolaKanban, d.KanbanCode + ,d.TempoCicloBase, d.PzPalletProd, d.MatrOpr, d.pallet + ,a.Descrizione AS DescStato + FROM DiarioDiBordo AS d + INNER JOIN dbo.AnagraficaStati AS a ON d.IdxStato = a.IdxStato +) +SELECT e.IdxMacchina, e.InizioStato AS InizioEvento, e.IdxTipo AS IdxTipoEvento, e.MatricolaKanban, e.[Value], e.MatrOpr, e.pallet, + ae.Nome AS NomeEvento,ae.TabAzione,ae.Azione, + di.FineStato AS FineStatoPrec, di.InizioStato AS InizioStatoPrec, di.IdxStato AS IdxStatoIniz, di.DescStato AS DescStatoIniziale, + df.InizioStato AS FineStato, df.IdxStato AS idxStatoFine, df.DescStato AS DescStatoFine +FROM EventList AS e +INNER JOIN dbo.AnagraficaEventi AS ae ON e.IdxTipo = ae.IdxTipo +--LEFT JOIN cteDiario AS di ON e.IdxMacchina = di.IdxMacchina AND e.InizioStato = di.FineStato +--LEFT JOIN cteDiario AS df ON e.IdxMacchina = df.IdxMacchina AND e.InizioStato = df.InizioStato +LEFT JOIN cteDiario AS di ON e.IdxMacchina = di.IdxMacchina AND ( e.InizioStato >= DATEADD( ms , -80, di.FineStato ) AND e.InizioStato <= di.FineStato ) +LEFT JOIN cteDiario AS df ON e.IdxMacchina = df.IdxMacchina AND ( e.InizioStato >= DATEADD( ms , -80, df.InizioStato ) AND e.InizioStato <= df.InizioStato ) +-- LEFT JOIN cteDiario AS df ON e.IdxMacchina = df.IdxMacchina AND e.InizioStato = df.InizioStato +--WHERE e.IdxMacchina = 1010 +--AND e.InizioStato < '20131009 19:00.000' +--ORDER BY e.InizioStato DESC; +go + +create VIEW v_StatiMacchina_From_Eventi +AS +/* + mostra gli stati macchina e gli eventi che li hanno generati + STATI DIARIO DI BORDO -> EVENTI + + FARE FILTRO X MACCHINA E ORDER BY INIZIO STATO + + SELECT * FROM dbo.v_StatiMacchina_From_Eventi + WHERE IdxMacchina = 1010 + AND InizioStato < '20131009 19:00.000' + ORDER BY InizioStato DESC; +*/ +WITH cteDiario AS +( + SELECT d.IdxMacchina, d.InizioStato, d.FineStato, d.IdxStato, d.DurataMinuti, d.[Value], d.MatricolaKanban, d.KanbanCode + ,d.TempoCicloBase, d.PzPalletProd, d.MatrOpr, d.pallet + ,a.Descrizione AS DescStato + FROM DiarioDiBordo AS d + INNER JOIN dbo.AnagraficaStati AS a ON d.IdxStato = a.IdxStato +) +SELECT e.IdxMacchina, e.InizioStato AS InizioEvento, e.IdxTipo AS IdxTipoEvento, e.MatricolaKanban, e.[Value], e.MatrOpr, e.pallet, + ae.Nome AS NomeEvento,ae.TabAzione,ae.Azione, + di.InizioStato,di.IdxStato AS IdxStatoIniz, di.DescStato AS DescStatoIniziale, + df.InizioStato AS FineStato, df.IdxStato AS idxStatoFine, df.DescStato AS DescStatoFine +FROM EventList AS e +INNER JOIN dbo.AnagraficaEventi AS ae ON e.IdxTipo = ae.IdxTipo +LEFT JOIN cteDiario AS di ON e.IdxMacchina = di.IdxMacchina AND e.InizioStato = di.FineStato +LEFT JOIN cteDiario AS df ON e.IdxMacchina = df.IdxMacchina AND e.InizioStato = df.InizioStato +--WHERE e.IdxMacchina = 1010 +--AND e.InizioStato < '20131009 19:00.000' +--ORDER BY e.InizioStato DESC; +go + +commit +go + + +-- stored: nuove!!! +set xact_abort on +go + +begin transaction +go + +set ANSI_NULLS on +go + +/************************************* +* STORED PROCEDURE stp_Comm_getLastByMacchina +* ottiene l'elenco degli ultimi N commenti per una macchina specificata +* +* modif.: S.E.L. - 2013.10.16 +**************************************/ +create PROCEDURE stp_Comm_getLastByMacchina +( + @IdxMacchina NVARCHAR(50) = '0', + @showMax INT = 10 +) +AS + +SELECT TOP (@showMax) o.idxODL, o.CodArticolo, el.IdxMacchina, el.InizioStato, el.Value, + ISNULL(ao.Cognome,'cognome') + ' ' + ISNULL(ao.Nome,'') AS Operatore +FROM EventList el INNER JOIN ODL o ON el.IdxMacchina = o.IdxMacchina AND el.InizioStato BETWEEN o.DataInizio AND ISNULL(o.DataFine, GETDATE()) + LEFT OUTER JOIN AnagraficaOperatori ao ON el.MatrOpr = ao.MatrOpr +WHERE el.IdxMacchina = CASE WHEN @IdxMacchina = 0 THEN el.IdxMacchina ELSE @IdxMacchina END + AND el.IdxTipo = 999 -- 999 = commento! HARD CODED!!! +ORDER BY el.InizioStato DESC + +RETURN +go + +/************************************* +* STORED PROCEDURE stp_DDB_getNextByMacchinaFrom +* ottiene i dati dell'evento successivo una macchina ed un istante specificati +* +* modif.: S.E.L. - 2013.10.24 +**************************************/ +create PROCEDURE stp_DDB_getNextByMacchinaFrom +( + @IdxMacchina NVARCHAR(50), + @dataRif DATETIME +) +AS + +SELECT TOP 1 * +FROM DiarioDiBordo +WHERE (IdxMacchina = @IdxMacchina) AND + (InizioStato > @dataRif) +ORDER BY InizioStato + +RETURN +go + +/************************************* +* STORED PROCEDURE stp_FNQ_getFilt +* ottiene elenco FERMI NON QUALIFICATI filtrati x macchina, gg da guardare a ritroso e durata +* +* modif.: S.E.L. - 2013.10.23 +**************************************/ +create PROCEDURE stp_FNQ_getFilt +( + @IdxMacchina NVARCHAR(50) = 0, + @gg INT = 3, -- num gg da mostrare a ritroso (da ADESSO) + @durataMin FLOAT = 30 -- min 30 min +) +AS + +-- imposto inizio/fine +DECLARE @Inizio DATETIME +DECLARE @Fine DATETIME + +SELECT @Fine = GETDATE(), @Inizio = DATEADD(DAY, -@gg, GETDATE()) + +SELECT m.IdxMacchina, InizioStato, m.Nome as Macchina, ddb.IdxStato, Ans.Descrizione AS Stato, Ans.Semaforo, + ISNULL(DurataMinuti, DATEDIFF(s, InizioStato, @Fine) / 60) AS DurataMinuti, Value, KanbanCode as CodArticolo +FROM DiarioDiBordo AS ddb INNER JOIN AnagraficaStati AnS ON ddb.IdxStato = AnS.IdxStato INNER JOIN MAcchine m ON ddb.IdxMacchina = m.IdxMacchina +WHERE Ans.Semaforo IN ('G','R') + AND m.IdxMacchina = CASE WHEN @IdxMacchina = 0 THEN m.IdxMacchina ELSE @IdxMacchina END + AND ((InizioStato BETWEEN @Inizio AND @Fine) OR (FineStato BETWEEN @Inizio AND @Fine)) + AND ISNULL(DurataMinuti, DATEDIFF(s, InizioStato, @Fine) / 60) >= @durataMin +ORDER BY InizioStato DESC + +RETURN +go + +commit +go + + +set xact_abort on +go + +begin transaction +go + +set ANSI_NULLS on +go + +-- ============================================= +-- Author: Samuele E. Locatelli +-- Create date: 2009-03-04 +-- mod date: +-- +-- Description: riallineamento con update massivo dati db +-- aggiorna i dati nel db per portarli ad essere "odierni" ovvero ultimo evento appena successo +-- ============================================= +create PROCEDURE man.stp_riallineaDateDb +AS + +DECLARE @Database AS SYSNAME; +DECLARE @lastData AS DATETIME +DECLARE @diff_min as INT +DECLARE @idxMacchina AS NVARCHAR(50) +DECLARE @idxMacchinaTest AS NVARCHAR(50) = '1008' + +DBCC SHOWCONTIG(EventList) +DBCC SHOWCONTIG(DiarioDiBordo) + +SET @Database = DB_NAME() +EXEC USP_DisableEnableNonClusteredIndexes @Database ,null, 1 -- disabilito indici + +PRINT 'inizio UPDATE tabelle...' + +/* ELIMINO MACCHINA 99 */ +/* +-- elimino tutti gli eventi della macchina test +DELETE FROM EventList WHERE IdxMacchina = @idxMacchinaTest +-- elimino da diario di bordo della macchina test +DELETE FROM DiarioDiBordo WHERE IdxMacchina = @idxMacchinaTest +-- elimino da tempi ciclo teorici della macchina test +DELETE FROM TempiCicloTeorici WHERE IdxMacchina = @idxMacchinaTest +-- elimino da tempi ciclo rilevati della macchina test +DELETE FROM TempiCicloRilevati WHERE IdxMacchina = @idxMacchinaTest + +DELETE dbo.KeepAlive WHERE IdxMacchina = @idxMacchinaTest +DELETE DatiMacchine WHERE IdxMacchina = @idxMacchinaTest +DELETE StatoMacchine WHERE IdxMacchina = @idxMacchinaTest +DELETE Macchine WHERE IdxMacchina = @idxMacchinaTest +*/ + +-- calcolo l'ultima data degli eventi esclusa macchina test +SET @lastData = ( SELECT MAX(InizioStato) AS inizio FROM DiarioDiBordo WHERE IdxMacchina <> @idxMacchinaTest ) +SET @idxMacchina = ( SELECT TOP 1 IdxMacchina FROM DiarioDiBordo WHERE InizioStato = @lastData ) + +-- SELECT @idxMacchina, @idxMacchinaTest + +-- ora calcolo la differenza tra quello e la data/ora odierna +SET @diff_min = (SELECT DATEDIFF(n, @lastData, getdate())) + +/* TRASLO GLI EVENTI DELLE MACCHINE A DATA-ORA ATTUALI */ + +-- aggiorno EventList +UPDATE EventList SET InizioStato = DATEADD(n, @diff_min, InizioStato) +-- aggiorno DiarioDiBordo +UPDATE DiarioDiBordo SET InizioStato = DATEADD(n, @diff_min, InizioStato),FineStato = DATEADD(n, @diff_min, FineStato) +-- aggiorno StatoMacchine +UPDATE StatoMacchine SET InizioStato = DATEADD(n, @diff_min, InizioStato) +-- aggiorno KeepAlive +UPDATE KeepAlive SET DataOraServer = DATEADD(n, @diff_min, DataOraServer), DataOraMacchina = DATEADD(n, @diff_min, DataOraMacchina), DataOraStart = DATEADD(n, @diff_min, DataOraStart) +-- aggiorno TC teorici +UPDATE TempiCicloTeorici SET DataOraFrom = DATEADD(n, @diff_min, DataOraFrom), DataOraTo = DATEADD(n, @diff_min, DataOraTo) +-- aggiorno TC rilevati +UPDATE TempiCicloRilevati SET DataOraRif = DATEADD(n, @diff_min, DataOraRif) +-- aggiorno Dati confermati +UPDATE DatiConfermati SET DataOraApp = DATEADD(n, @diff_min, DataOraApp), DataRif = DATEADD(n, @diff_min, DataRif), DataOraFrom = DATEADD(n, @diff_min, DataOraFrom), DataOraTo = DATEADD(n, @diff_min, DataOraTo) + +-- elimino tutti gli eventi della macchina test superiori a @lastData ( sono i dati di prova ) +DELETE FROM EventList WHERE IdxMacchina = @idxMacchinaTest AND InizioStato > DATEADD(n, @diff_min, @lastData ) +DELETE FROM DiarioDiBordo WHERE IdxMacchina = @idxMacchinaTest AND InizioStato > DATEADD(n, @diff_min, @lastData ) +DELETE FROM TempiCicloRilevati WHERE IdxMacchina = @idxMacchinaTest AND DataOraRif > DATEADD(n, @diff_min, @lastData ) + +-- aggiorno lo stato macchine +UPDATE StatoMacchine + SET IdxStato = Diario.IdxStato +FROM StatoMacchine AS s +INNER JOIN ( + SELECT d.IdxMacchina, d.IdxStato,d.InizioStato + FROM DiarioDiBordo AS d + INNER JOIN + ( + SELECT idxMacchina, MAX(InizioStato) As InizioStato + FROM DiarioDiBordo + GROUP BY idxMacchina + ) AS a ON a.IdxMacchina = d.IdxMacchina AND a.InizioStato = d.InizioStato +) AS Diario +ON s.IdxMacchina = Diario.IdxMacchina + +-- aggiornamento x tablet +EXEC [dbo].[stp_MSE_getData] 0 + +PRINT 'concluso UPDATE tabelle...' + +-- --shrink del db +PRINT 'compatto DB...' +DBCC SHRINKDATABASE (@Database) + +--ricostruisco indici DOPO shrink +PRINT 'ricostruisco indici...' + +-- riabilito tutti gli indici non-cluster ( fa una reindex ) +EXEC USP_DisableEnableNonClusteredIndexes @Database ,null, 2 --riattivo indici + +-- ricostruisco i cluster +ALTER INDEX PK_EventList ON dbo.EventList REBUILD + WITH (FILLFACTOR = 98, SORT_IN_TEMPDB = ON ); +ALTER INDEX PK_DiarioDiBordo ON dbo.DiarioDiBordo REBUILD + WITH (FILLFACTOR = 98, SORT_IN_TEMPDB = ON ); + +--DBCC DBREINDEX(EventList) +--DBCC DBREINDEX(DiarioDiBordo) +--DBCC DBREINDEX(TransizioneIngressi) +--DBCC DBREINDEX(Kanban2ins) +--DBCC DBREINDEX(Kanban) +--DBCC DBREINDEX(AnagraficaOperatori) +--DBCC DBREINDEX(AnagraficaOperatori2ins) + +DBCC SHOWCONTIG(EventList) +DBCC SHOWCONTIG(DiarioDiBordo) + +/* + +-- ****************************************************** +-- *** PROCEDURE VARIE PER CREAZIONE DB DEMO *** +-- ****************************************************** + +-- FARE il restore del DB + +-- Poi faccio pulizia dei vecchi DATI del DB +USE MoonPro_DEMO; + +DECLARE @Database AS SYSNAME; +SET @Database = DB_NAME() +EXEC USP_DisableEnableNonClusteredIndexes @Database ,null, 1 -- disabilito indici + +DECLARE @lastData AS datetime +SET @lastData = '20130920' + +DELETE FROM EventList WHERE InizioStato < @lastData +DELETE FROM DiarioDiBordo WHERE InizioStato < @lastData +DELETE FROM TempiCicloRilevati WHERE DataOraRif < @lastData + +-- riallineo dati a GETDATE() +EXEC [man].[stp_riallineaDateDb] + +-- ****************************************************** +-- *** CANCELLAZIONE DELLE ultime tre ORE di EVENTI *** +-- ****************************************************** + +-- riallineo alla data/ora attuale prima della cancellazione +EXEC [man].[stp_riallineaDateDb] + +DELETE FROM EventList WHERE InizioStato > DATEADD(n, -720, GETDATE() ) +DELETE FROM DiarioDiBordo WHERE InizioStato > DATEADD(n, -720, GETDATE() ) +DELETE FROM TempiCicloRilevati WHERE DataOraRif > DATEADD(n, -720, GETDATE() ) +DELETE FROM DatiConfermati WHERE DataRif > DATEADD(n, -720, GETDATE() ) + +UPDATE KeepAlive +SET DataOraServer = DATEADD(n, -720, DataOraServer ) , + DataOraMacchina = DATEADD(n, -720, DataOraMacchina ) , + DataOraStart = DATEADD(n, -720, DataOraStart ) + +-- riallineo alla data/ora attuale +EXEC [man].[stp_riallineaDateDb] + +*/ + +RETURN +go + +-- ================================================ +-- Author: Samuele E. Locatelli +-- Create date: 2012.11.23 +-- +-- Description: rigenerazione del diario di bordo +-- a partire da macchina eventi/stati + EventList +-- ================================================ +create PROCEDURE man.stp_ricalcolaDatiMacchinaFromDate +( + @idxMacchina NVARCHAR(50), + @inizio DATETIME, + @idxStatoStart INT = 1 +) +AS + +SET NOCOUNT ON; + +DECLARE @fine DATETIME + +--DBCC SHOWCONTIG(EventList) +--DBCC SHOWCONTIG(DiarioDiBordo) + +/* DA USARE ? Verificare */ +--DECLARE @Database AS SYSNAME; +--SET @Database = DB_NAME() +--EXEC USP_DisableEnableNonClusteredIndexes @Database ,null, 1 -- disabilito indici + + +-- update SAM 2013.10.24: "torno indietro" di 2 eventi rispetto alal data ora indicata come start, SE CI SONO +SELECT @inizio = ISNULL(MIN(InizioStato),@inizio) FROM +( +SELECT TOP 3 InizioStato +FROM DiarioDiBordo +WHERE IdxMacchina = @idxMacchina AND InizioStato < @inizio +ORDER BY InizioStato DESC +) AS tbl + + +-- DISATTIVO inserimento in DiarioDiBordo per la macchina indicata +-- DEVE disattivare anche il caricamento degli eventi +UPDATE DatiMacchine + SET insEnabled = 0 +WHERE IdxMacchina = @IdxMacchina + +-- devo sempre rielaborare tutti gli eventi fino a dataora odierna +SET @fine = ( SELECT MAX(InizioStato) FROM EventList + WHERE idxMacchina = @idxMacchina ) + +-- svuoto dati che vado a sostituire +PRINT 'svuoto TempiCicloRilevati per periodo indicato...' +DELETE FROM TempiCicloRilevati WHERE idxMacchina = @idxMacchina AND DataOraRif BETWEEN @inizio AND @fine + +PRINT 'svuoto DiarioDiBordo per periodo indicato...' +EXEC stp_DDB_deleteMacchinaPeriodo @idxMacchina, @inizio, @fine -- cancella diario di bordo + +PRINT 'processo EventList per periodo indicato...' +DECLARE @InizioStato DATETIME +DECLARE @IdxTipo INT +DECLARE @MatricolaKanban NVARCHAR(50) +DECLARE @Value NVARCHAR(50) +DECLARE @MatrOpr INT +DECLARE @pallet NVARCHAR(20) +DECLARE @nextIdxStato INT +DECLARE @currIdxStato INT +DECLARE @IdxFamiglia INT +DECLARE @TabAzione NVARCHAR(50) = ''; +DECLARE @Azione NVARCHAR(50) = ''; + +-- calcolo famiglia macchina! +SET @IdxFamiglia = ( SELECT IdxFamiglia FROM Macchine2FamiglieMacchine WHERE idxMacchina = @idxMacchina ) + +-- Recupero stato precedente, altrimenti ipotizzo macchina inizialmente in stato richiesto (default: 1 = pronta) e quindi imposto stato current a quello iniziale richiesto... +SET @currIdxStato = ISNULL( ( SELECT TOP 1 IdxStato FROM DiarioDiBordo WHERE IdxMacchina = @idxMacchina AND InizioStato < @inizio + ORDER BY InizioStato DESC ) , @idxStatoStart) + +-- verifico i record elaborati +SELECT COUNT(*) +FROM EventList AS e +LEFT JOIN dbo.AnagraficaEventi AS a ON e.idxTipo = a.IdxTipo +WHERE e.IdxMacchina = @idxMacchina +AND e.InizioStato BETWEEN @inizio AND @fine + +-- leggo la tabella degli eventi con cursore x percorrere i dati... +DECLARE event2proc CURSOR FOR + SELECT e.InizioStato, e.IdxTipo, e.MatricolaKanban, e.Value, e.MatrOpr, e.pallet, + a.TabAzione, a.Azione + FROM EventList AS e + LEFT JOIN dbo.AnagraficaEventi AS a ON e.idxTipo = a.IdxTipo + WHERE e.IdxMacchina = @idxMacchina + AND e.InizioStato BETWEEN @inizio AND @fine + ORDER BY e.InizioStato; +/* + SELECT InizioStato, IdxTipo, MatricolaKanban, Value, MatrOpr, pallet + FROM EventList + WHERE IdxMacchina = @idxMacchina + AND InizioStato BETWEEN @inizio AND @fine + ORDER BY InizioStato; +*/ +OPEN event2proc; + +FETCH NEXT FROM event2proc +INTO @InizioStato, @IdxTipo, @MatricolaKanban, @Value, @MatrOpr, @pallet, @TabAzione, @Azione; + +DECLARE @NumPz INT = 1; +DECLARE @ContaInsert INT = 0; + +WHILE @@FETCH_STATUS = 0 + BEGIN + + IF ( ISNULL(@TabAzione,'') <> '' AND ISNULL(@Azione,'') <> '') + BEGIN + SET @NumPz = CASE WHEN (ISNUMERIC(@Value)=1) THEN @Value ELSE 1 END + EXEC dbo.stp_EL_processaEvento @IdxTipo, @idxMacchina, @MatricolaKanban, @InizioStato, @NumPz , 'N' + END + + -- calcolo l'eventuale NUOVO idxStato + SET @nextIdxStato = ISNULL( (SELECT next_IdxStato FROM TransizioneStati + WHERE IdxFamiglia = @IdxFamiglia AND IdxStato = @currIdxStato AND IdxTipo = @IdxTipo ), @currIdxStato ) + + -- SE lo stato cambia registro nel DiarioDiBordo! + IF (@nextIdxStato <> @currIdxStato) + BEGIN + -- inserisco in DiarioDiBordo + INSERT INTO DiarioDiBordo + (IdxMacchina, InizioStato, FineStato, IdxStato, MatricolaKanban, Value, MatrOpr, pallet) + VALUES (@IdxMacchina, @InizioStato, NULL, @nextIdxStato, @MatricolaKanban, @Value, @MatrOpr, @pallet) + + -- infine imposto il nuovo stato current... + SET @currIdxStato = @nextIdxStato + SET @ContaInsert = @ContaInsert + 1 + END + + -- Get the next values + FETCH NEXT FROM event2proc + INTO @InizioStato, @IdxTipo, @MatricolaKanban, @Value, @MatrOpr, @pallet, @TabAzione, @Azione; + + END +CLOSE event2proc; +DEALLOCATE event2proc; + +-- resetto microStato a 1 +UPDATE dbo.MicroStatoMacchina + SET IdxMicroStato = 1, + InizioStato = @InizioStato, + Value = '0' +WHERE IdxMacchina = @idxMacchina + + +-- fa un controllo: elimina eventuali dichairazioni in DDB SE durata < 0... +DELETE FROM DiarioDiBordo WHERE DurataMinuti < 0 AND IdxMacchina = @idxMacchina + +-- RI-ATTIVO inserimento in DiarioDiBordo per la macchina indicata +UPDATE DatiMacchine +SET insEnabled = 1 +WHERE IdxMacchina = @IdxMacchina + +PRINT 'concluso UPDATE tabelle...' + 'INSERT DiarioBordo : ' + CONVERT(VARCHAR(30),@ContaInsert) + +--DBCC SHOWCONTIG(EventList) +--DBCC SHOWCONTIG(DiarioDiBordo) +--EXEC USP_DisableEnableNonClusteredIndexes @Database,null, 2 --riattivo indici + +--ricostruisco indici X QUESTE TABELLE DOPPIA RICOSTRUZIONE INDICI NON NECESSARIA +--PRINT 'ricostruisco indici...' +--DBCC DBREINDEX(EventList) +--DBCC DBREINDEX(DiarioDiBordo) +--DBCC DBREINDEX(TransizioneIngressi) +--DBCC DBREINDEX(Kanban2ins) +--DBCC DBREINDEX(Kanban) +--DBCC DBREINDEX(AnagraficaOperatori) +--DBCC DBREINDEX(AnagraficaOperatori2ins) + +--DBCC SHOWCONTIG(EventList) +--DBCC SHOWCONTIG(DiarioDiBordo) + +RETURN +go + +commit +go + + +-- stored update! +set xact_abort on +go + +begin transaction +go + +set ANSI_NULLS on +go + +/************************************* +* STORED PROCEDURE stp_ODL_getByMacchinaPeriodo +* ottiene l'elenco degli ODL in lavorazione su una macchina in un dato periodo +* +* modif.: S.E.L. - 2012.04.02 +**************************************/ +alter PROCEDURE stp_ODL_getByMacchinaPeriodo +( + @IdxMacchina NVARCHAR(50), + @dataFrom DATETIME, + @dataTo DATETIME +) +AS + +BEGIN + SELECT * + FROM v_ODL_exp + WHERE IdxMacchina = @IdxMacchina + AND ((DataInizio BETWEEN @dataFrom AND @dataTo) OR (DataFine BETWEEN @dataFrom AND @dataTo) OR (DataInizio <= @dataFrom AND ISNULL(DataFine,GETDATE()) >= @dataTo)) +END + +RETURN +go + +/************************************* +* STORED PROCEDURE stp_repDonati_getDatiProdMacchina +* restituisce i dati di produzione di una macchina per PERIODO +* +* modif.: S.E.L. - 2012.03.21 +**************************************/ +alter PROCEDURE stp_repDonati_getDatiProdMacchinaPeriodo +( + @idxMacchina NVARCHAR(50), + @dataFrom DATETIME, + @dataTo DATETIME +) +AS + +-- calcolo pezzi CONTATI, non quelli poi confermati... +DECLARE @PezziProd INT +SET @PezziProd = ISNULL(( + SELECT COUNT(*)FROM TempiCicloRilevati + WHERE idxMacchina = @idxMacchina + AND DataOraRif BETWEEN @dataFrom AND @dataTo + ), 0) + +-- calcolo TEMPO MEDIO ponderato in base al num di pezzi per tipo... +DECLARE @TCAss DECIMAL(18,8) + +;WITH cte_tabMinProd as +( + SELECT ISNULL(COUNT(tcr.DataOraRif), 0) * ISNULL(o.TCAssegnato, 0) AS MinProd + FROM TempiCicloRilevati tcr INNER JOIN ODL o + ON o.IdxMacchina=tcr.IdxMacchina AND o.CodArticolo = tcr.CodArticolo + WHERE tcr.DataOraRif BETWEEN o.DataInizio AND ISNULL(o.DataFine, GETDATE()) + AND tcr.DataOraRif BETWEEN @dataFrom AND @dataTo + AND ((o.DataInizio <= @dataTo) AND (ISNULL(o.DataFine, GETDATE()) >= @dataFrom)) + GROUP BY o.TCAssegnato +) +SELECT @TCAss = ISNULL(SUM(MinProd) / CASE WHEN @PezziProd > 0 THEN @PezziProd ELSE 1 END, 0) +FROM cte_tabMinProd + + +/**************************************************** +* Calcolo tempi apertura realtime +****************************************************/ +-- calcolo i tempi di apertura: TempoON (Verde + giallo + rosso) +DECLARE @TempoOnRT DECIMAL(18,8) +SET @TempoOnRT = ( + SELECT ISNULL(SUM(DurataMinuti),0) + FROM DiarioDiBordo ddb INNER JOIN AnagraficaStati AnSt ON ddb.IdxStato= AnSt.IdxStato + WHERE AnSt.ClasseTempo NOT IN ('T_OFF', 'T_OFF_ND') AND InizioStato BETWEEN @dataFrom AND @dataTo + AND IdxMacchina = @idxMacchina + ) + +-- calcolo i tempi di apertura: TempoAuto (Verde + giallo) - precedente meno "T_FermoRosso" +DECLARE @TempoAutoRT DECIMAL(18,8) +SET @TempoAutoRT = ( + SELECT @TempoOnRT - ISNULL(SUM(DurataMinuti),0) + FROM DiarioDiBordo ddb INNER JOIN AnagraficaStati AnSt ON ddb.IdxStato= AnSt.IdxStato + WHERE AnSt.ClasseTempo = 'T_FermoRosso' AND InizioStato BETWEEN @dataFrom AND @dataTo + AND IdxMacchina = @idxMacchina + ) + +-- calcolo i tempi di apertura: TempoRun (Verde) +DECLARE @TempoRunRT DECIMAL(18,8) +SET @TempoRunRT = ( + SELECT ISNULL(SUM(DurataMinuti),0) + FROM DiarioDiBordo ddb INNER JOIN AnagraficaStati AnSt ON ddb.IdxStato= AnSt.IdxStato + WHERE AnSt.ClasseTempo = 'T_AutoRun' AND InizioStato BETWEEN @dataFrom AND @dataTo + AND IdxMacchina = @idxMacchina + ) + + + +/**************************************************** +* Calcolo i TEMPI CICLO realtime (anche non confermati) +****************************************************/ + +-- DIVISIONE PER ZERO: controllo pezzi prod > 0... +DECLARE @numPezzi INT +SET @numPezzi = @PezziProd - 1 -- divido per n-1 per avere numIntervalli = numPezzi +IF(@numPezzi < 1) SET @numPezzi = 1 + +DECLARE @TCMedRT DECIMAL(18,8) +SET @TCMedRT = ( + SELECT @TempoOnRT / @numPezzi + ) +DECLARE @TCLavRT DECIMAL(18,8) +SET @TCLavRT = ( + SELECT @TempoAutoRT / @numPezzi + ) +DECLARE @TCEffRT DECIMAL(18,8) +SET @TCEffRT = ISNULL(( SELECT dbo.f_lastTempoTecnico(@idxMacchina, 2) ), -1) -- provo a calcolare ultimi tempi tecnici +IF (@TCEffRT =-1) +BEGIN + SET @TCEffRT = ( + SELECT @TempoRunRT / @numPezzi + ) +END + + +SELECT @PezziProd as PezziProd, @TCAss AS TCAssegnato, @TCMedRT AS TCMedioRT, @TCLavRT AS TCLavRT, @TCEffRT AS TCEffRT + + +RETURN +go + +commit +go + + +-- dati eventi/stati/transizioni... +set xact_abort on +go + +begin transaction +go + +UPDATE dbo.AnagraficaEventi SET + Nome=N'Bcode - Cambio Pallet (unused)' + WHERE IdxTipo=11 +UPDATE dbo.AnagraficaEventi SET + Nome=N'Barcode - Fermo Organizzativo', TabAzione=N'DatiMacchine', Azione=N'Fine' + WHERE IdxTipo=19 +INSERT INTO dbo.AnagraficaEventi + VALUES (999, N'Commento', N'', N'') +go + +commit transaction +go + + +set xact_abort on +go + +begin transaction +go + +UPDATE dbo.AnagraficaStati SET + Semaforo=N'S', ClasseTempo=N'T_OFF' + WHERE IdxStato=27 +INSERT INTO dbo.AnagraficaStati + VALUES (30, N'Fermo Organizzativo', N'S', 1, N'T_OFF', 0) +go + +commit transaction +go + + +-- tab transizioni! +set xact_abort on +go + +begin transaction +go + +DELETE FROM dbo.TransizioneStati WHERE IdxFamiglia=1 and IdxStato=1 and IdxTipo=1 +DELETE FROM dbo.TransizioneStati WHERE IdxFamiglia=4 and IdxStato=1 and IdxTipo=1 +go + +commit transaction +go + + +set xact_abort on +go + +begin transaction +go + +INSERT INTO dbo.TransizioneStati + VALUES (2, 1, 12, 11) +INSERT INTO dbo.TransizioneStati + VALUES (2, 2, 12, 11) +INSERT INTO dbo.TransizioneStati + VALUES (2, 3, 12, 11) +INSERT INTO dbo.TransizioneStati + VALUES (2, 4, 12, 11) +INSERT INTO dbo.TransizioneStati + VALUES (2, 5, 12, 11) +INSERT INTO dbo.TransizioneStati + VALUES (2, 6, 12, 11) +INSERT INTO dbo.TransizioneStati + VALUES (2, 7, 12, 11) +INSERT INTO dbo.TransizioneStati + VALUES (2, 8, 12, 11) +INSERT INTO dbo.TransizioneStati + VALUES (2, 9, 12, 11) +INSERT INTO dbo.TransizioneStati + VALUES (2, 10, 12, 11) +INSERT INTO dbo.TransizioneStati + VALUES (2, 12, 12, 11) +INSERT INTO dbo.TransizioneStati + VALUES (2, 13, 12, 11) +INSERT INTO dbo.TransizioneStati + VALUES (2, 14, 12, 11) +INSERT INTO dbo.TransizioneStati + VALUES (2, 15, 12, 11) +INSERT INTO dbo.TransizioneStati + VALUES (10, 1, 2, 2) +INSERT INTO dbo.TransizioneStati + VALUES (10, 1, 3, 3) +INSERT INTO dbo.TransizioneStati + VALUES (10, 1, 4, 4) +INSERT INTO dbo.TransizioneStati + VALUES (10, 1, 5, 5) +INSERT INTO dbo.TransizioneStati + VALUES (10, 1, 6, 6) +INSERT INTO dbo.TransizioneStati + VALUES (10, 1, 7, 7) +INSERT INTO dbo.TransizioneStati + VALUES (10, 1, 8, 8) +INSERT INTO dbo.TransizioneStati + VALUES (10, 1, 9, 9) +INSERT INTO dbo.TransizioneStati + VALUES (10, 1, 10, 10) +INSERT INTO dbo.TransizioneStati + VALUES (10, 1, 12, 11) +INSERT INTO dbo.TransizioneStati + VALUES (10, 1, 19, 30) +INSERT INTO dbo.TransizioneStati + VALUES (10, 1, 29, 28) +INSERT INTO dbo.TransizioneStati + VALUES (10, 1, 30, 29) +INSERT INTO dbo.TransizioneStati + VALUES (10, 2, 1, 1) +INSERT INTO dbo.TransizioneStati + VALUES (10, 3, 1, 1) +INSERT INTO dbo.TransizioneStati + VALUES (10, 3, 12, 11) +INSERT INTO dbo.TransizioneStati + VALUES (10, 4, 1, 1) +INSERT INTO dbo.TransizioneStati + VALUES (10, 4, 12, 11) +INSERT INTO dbo.TransizioneStati + VALUES (10, 5, 1, 1) +INSERT INTO dbo.TransizioneStati + VALUES (10, 5, 12, 11) +INSERT INTO dbo.TransizioneStati + VALUES (10, 5, 19, 30) +INSERT INTO dbo.TransizioneStati + VALUES (10, 6, 1, 1) +INSERT INTO dbo.TransizioneStati + VALUES (10, 6, 12, 11) +INSERT INTO dbo.TransizioneStati + VALUES (10, 6, 19, 30) +INSERT INTO dbo.TransizioneStati + VALUES (10, 7, 1, 1) +INSERT INTO dbo.TransizioneStati + VALUES (10, 7, 12, 11) +INSERT INTO dbo.TransizioneStati + VALUES (10, 7, 19, 30) +INSERT INTO dbo.TransizioneStati + VALUES (10, 8, 1, 1) +INSERT INTO dbo.TransizioneStati + VALUES (10, 8, 12, 11) +INSERT INTO dbo.TransizioneStati + VALUES (10, 8, 19, 30) +INSERT INTO dbo.TransizioneStati + VALUES (10, 9, 1, 1) +INSERT INTO dbo.TransizioneStati + VALUES (10, 9, 12, 11) +INSERT INTO dbo.TransizioneStati + VALUES (10, 9, 19, 30) +INSERT INTO dbo.TransizioneStati + VALUES (10, 10, 1, 1) +INSERT INTO dbo.TransizioneStati + VALUES (10, 10, 12, 11) +INSERT INTO dbo.TransizioneStati + VALUES (10, 10, 19, 30) +INSERT INTO dbo.TransizioneStati + VALUES (10, 11, 1, 1) +INSERT INTO dbo.TransizioneStati + VALUES (10, 11, 19, 30) +INSERT INTO dbo.TransizioneStati + VALUES (10, 11, 29, 28) +INSERT INTO dbo.TransizioneStati + VALUES (10, 11, 30, 29) +INSERT INTO dbo.TransizioneStati + VALUES (10, 12, 1, 1) +INSERT INTO dbo.TransizioneStati + VALUES (10, 12, 2, 2) +INSERT INTO dbo.TransizioneStati + VALUES (10, 12, 3, 3) +INSERT INTO dbo.TransizioneStati + VALUES (10, 12, 4, 4) +INSERT INTO dbo.TransizioneStati + VALUES (10, 12, 5, 5) +INSERT INTO dbo.TransizioneStati + VALUES (10, 12, 6, 6) +INSERT INTO dbo.TransizioneStati + VALUES (10, 12, 7, 7) +INSERT INTO dbo.TransizioneStati + VALUES (10, 12, 8, 8) +INSERT INTO dbo.TransizioneStati + VALUES (10, 12, 9, 9) +INSERT INTO dbo.TransizioneStati + VALUES (10, 12, 10, 10) +INSERT INTO dbo.TransizioneStati + VALUES (10, 12, 12, 11) +INSERT INTO dbo.TransizioneStati + VALUES (10, 12, 19, 30) +INSERT INTO dbo.TransizioneStati + VALUES (10, 12, 29, 28) +INSERT INTO dbo.TransizioneStati + VALUES (10, 12, 30, 29) +INSERT INTO dbo.TransizioneStati + VALUES (10, 13, 1, 1) +INSERT INTO dbo.TransizioneStati + VALUES (10, 13, 29, 28) +INSERT INTO dbo.TransizioneStati + VALUES (10, 13, 30, 29) +INSERT INTO dbo.TransizioneStati + VALUES (10, 14, 1, 1) +INSERT INTO dbo.TransizioneStati + VALUES (10, 14, 29, 28) +INSERT INTO dbo.TransizioneStati + VALUES (10, 14, 30, 29) +INSERT INTO dbo.TransizioneStati + VALUES (10, 15, 1, 1) +INSERT INTO dbo.TransizioneStati + VALUES (10, 15, 2, 2) +INSERT INTO dbo.TransizioneStati + VALUES (10, 15, 3, 3) +INSERT INTO dbo.TransizioneStati + VALUES (10, 15, 4, 4) +INSERT INTO dbo.TransizioneStati + VALUES (10, 15, 5, 5) +INSERT INTO dbo.TransizioneStati + VALUES (10, 15, 6, 6) +INSERT INTO dbo.TransizioneStati + VALUES (10, 15, 7, 7) +INSERT INTO dbo.TransizioneStati + VALUES (10, 15, 8, 8) +INSERT INTO dbo.TransizioneStati + VALUES (10, 15, 9, 9) +INSERT INTO dbo.TransizioneStati + VALUES (10, 15, 10, 10) +INSERT INTO dbo.TransizioneStati + VALUES (10, 15, 12, 11) +INSERT INTO dbo.TransizioneStati + VALUES (10, 15, 19, 30) +INSERT INTO dbo.TransizioneStati + VALUES (10, 15, 29, 28) +INSERT INTO dbo.TransizioneStati + VALUES (10, 15, 30, 29) +INSERT INTO dbo.TransizioneStati + VALUES (10, 23, 1, 1) +INSERT INTO dbo.TransizioneStati + VALUES (10, 23, 29, 28) +INSERT INTO dbo.TransizioneStati + VALUES (10, 23, 30, 29) +INSERT INTO dbo.TransizioneStati + VALUES (10, 24, 1, 1) +INSERT INTO dbo.TransizioneStati + VALUES (10, 24, 29, 28) +INSERT INTO dbo.TransizioneStati + VALUES (10, 24, 30, 29) +INSERT INTO dbo.TransizioneStati + VALUES (10, 25, 1, 1) +INSERT INTO dbo.TransizioneStati + VALUES (10, 25, 2, 2) +INSERT INTO dbo.TransizioneStati + VALUES (10, 25, 3, 3) +INSERT INTO dbo.TransizioneStati + VALUES (10, 25, 4, 4) +INSERT INTO dbo.TransizioneStati + VALUES (10, 25, 5, 5) +INSERT INTO dbo.TransizioneStati + VALUES (10, 25, 6, 6) +INSERT INTO dbo.TransizioneStati + VALUES (10, 25, 7, 7) +INSERT INTO dbo.TransizioneStati + VALUES (10, 25, 8, 8) +INSERT INTO dbo.TransizioneStati + VALUES (10, 25, 9, 9) +INSERT INTO dbo.TransizioneStati + VALUES (10, 25, 10, 10) +INSERT INTO dbo.TransizioneStati + VALUES (10, 25, 12, 11) +INSERT INTO dbo.TransizioneStati + VALUES (10, 25, 19, 30) +INSERT INTO dbo.TransizioneStati + VALUES (10, 25, 26, 27) +INSERT INTO dbo.TransizioneStati + VALUES (10, 25, 29, 28) +INSERT INTO dbo.TransizioneStati + VALUES (10, 25, 30, 29) +INSERT INTO dbo.TransizioneStati + VALUES (10, 26, 1, 1) +INSERT INTO dbo.TransizioneStati + VALUES (10, 26, 12, 11) +INSERT INTO dbo.TransizioneStati + VALUES (10, 26, 19, 30) +INSERT INTO dbo.TransizioneStati + VALUES (10, 26, 29, 28) +INSERT INTO dbo.TransizioneStati + VALUES (10, 26, 30, 29) +INSERT INTO dbo.TransizioneStati + VALUES (10, 27, 1, 1) +INSERT INTO dbo.TransizioneStati + VALUES (10, 27, 12, 11) +INSERT INTO dbo.TransizioneStati + VALUES (10, 27, 19, 30) +INSERT INTO dbo.TransizioneStati + VALUES (10, 28, 1, 1) +INSERT INTO dbo.TransizioneStati + VALUES (10, 28, 14, 11) +INSERT INTO dbo.TransizioneStati + VALUES (10, 29, 1, 1) +INSERT INTO dbo.TransizioneStati + VALUES (10, 29, 14, 11) +INSERT INTO dbo.TransizioneStati + VALUES (10, 30, 1, 1) +INSERT INTO dbo.TransizioneStati + VALUES (10, 30, 12, 11) +INSERT INTO dbo.TransizioneStati + VALUES (10, 30, 14, 11) +INSERT INTO dbo.TransizioneStati + VALUES (10, 30, 26, 27) +go + +commit transaction +go + + +set xact_abort on +go + +begin transaction +go + +DELETE FROM dbo.TransizioneStati WHERE IdxFamiglia=10 and IdxStato=12 and IdxTipo=15 +DELETE FROM dbo.TransizioneStati WHERE IdxFamiglia=10 and IdxStato=13 and IdxTipo=16 +DELETE FROM dbo.TransizioneStati WHERE IdxFamiglia=10 and IdxStato=13 and IdxTipo=21 +DELETE FROM dbo.TransizioneStati WHERE IdxFamiglia=10 and IdxStato=14 and IdxTipo=17 +DELETE FROM dbo.TransizioneStati WHERE IdxFamiglia=10 and IdxStato=14 and IdxTipo=20 +DELETE FROM dbo.TransizioneStati WHERE IdxFamiglia=10 and IdxStato=14 and IdxTipo=22 +DELETE FROM dbo.TransizioneStati WHERE IdxFamiglia=10 and IdxStato=15 and IdxTipo=18 +DELETE FROM dbo.TransizioneStati WHERE IdxFamiglia=10 and IdxStato=23 and IdxTipo=23 +DELETE FROM dbo.TransizioneStati WHERE IdxFamiglia=10 and IdxStato=24 and IdxTipo=24 +DELETE FROM dbo.TransizioneStati WHERE IdxFamiglia=10 and IdxStato=25 and IdxTipo=15 +DELETE FROM dbo.TransizioneStati WHERE IdxFamiglia=10 and IdxStato=25 and IdxTipo=25 +go + +commit transaction +go + + +set xact_abort on +go + +begin transaction +go + +set identity_insert dbo.LinkMenuJQM on +go + +INSERT INTO dbo.LinkMenuJQM + (idxLink, TipoLink, ordine, Testo, NavigateUrl, icona) + VALUES (12, N'DetMacc', 5, N'Commenti', N'~/Commenti.aspx', N'star') +INSERT INTO dbo.LinkMenuJQM + (idxLink, TipoLink, ordine, Testo, NavigateUrl, icona) + VALUES (13, N'EditMacch', 5, N'Commenti', N'~/Commenti.aspx', N'star') +go + +set identity_insert dbo.LinkMenuJQM off +go + +commit transaction +go + + + + + + +-- registro versione... +INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(401, GETDATE()) +GO + +SELECT TOP 10 * FROM LogUpdateDb ORDER BY Versione DESC +GO + +-- 5 sec su db SteamWare \ No newline at end of file diff --git a/MapoDb/SqlUpdate/MoonPro/V3.4/MoonPro_00409.sql b/MapoDb/SqlUpdate/MoonPro/V3.4/MoonPro_00409.sql new file mode 100644 index 00000000..366d894d --- /dev/null +++ b/MapoDb/SqlUpdate/MoonPro/V3.4/MoonPro_00409.sql @@ -0,0 +1,839 @@ +set xact_abort on; +go + +begin transaction; +go + +set ANSI_NULLS on; +go + +-- ================================================ +-- Author: Samuele E. Locatelli +-- Create date: 2012.11.23 +-- +-- Description: rigenerazione del diario di bordo +-- a partire da macchina eventi/stati + EventList +-- ================================================ +alter PROCEDURE man.stp_ricalcolaDatiMacchinaFromDate +( + @idxMacchina NVARCHAR(50), + @inizio DATETIME, + @idxStatoStart INT = 1 +) +AS + +SET NOCOUNT ON; + +DECLARE @fine DATETIME + +--DBCC SHOWCONTIG(EventList) +--DBCC SHOWCONTIG(DiarioDiBordo) + +/* DA USARE ? Verificare */ +--DECLARE @Database AS SYSNAME; +--SET @Database = DB_NAME() +--EXEC USP_DisableEnableNonClusteredIndexes @Database ,null, 1 -- disabilito indici + +-- update SAM 2013.10.24: "torno indietro" di 2 eventi rispetto alal data ora indicata come start, SE CI SONO +SELECT @inizio = ISNULL(MIN(InizioStato),@inizio) FROM +( + SELECT TOP 3 InizioStato + FROM DiarioDiBordo + WHERE IdxMacchina = @idxMacchina AND InizioStato < @inizio + ORDER BY InizioStato DESC +) AS tbl + + +-- DISATTIVO inserimento in DiarioDiBordo per la macchina indicata +-- DEVE disattivare anche il caricamento degli eventi +UPDATE DatiMacchine + SET insEnabled = 0 +WHERE IdxMacchina = @IdxMacchina + +-- devo sempre rielaborare tutti gli eventi fino a dataora odierna +SET @fine = ( SELECT MAX(InizioStato) FROM EventList + WHERE idxMacchina = @idxMacchina ) + +-- svuoto dati che vado a sostituire +PRINT 'svuoto TempiCicloRilevati per periodo indicato...' +DELETE FROM TempiCicloRilevati WHERE idxMacchina = @idxMacchina AND DataOraRif BETWEEN @inizio AND @fine + +PRINT 'svuoto DiarioDiBordo per periodo indicato...' +EXEC stp_DDB_deleteMacchinaPeriodo @idxMacchina, @inizio, @fine -- cancella diario di bordo + +PRINT 'processo EventList per periodo indicato...' +DECLARE @InizioStato DATETIME +DECLARE @IdxTipo INT +DECLARE @MatricolaKanban NVARCHAR(50) +DECLARE @Value NVARCHAR(50) +DECLARE @MatrOpr INT +DECLARE @pallet NVARCHAR(20) +DECLARE @nextIdxStato INT +DECLARE @currIdxStato INT +DECLARE @IdxFamiglia INT +DECLARE @TabAzione NVARCHAR(50) = ''; +DECLARE @Azione NVARCHAR(50) = ''; +DECLARE @FlgAggTempiC CHAR(1) = 'N'; -- Y/N = elabora o meno i tempi ciclo + +-- calcolo famiglia macchina! +SET @IdxFamiglia = ( SELECT IdxFamiglia FROM Macchine2FamiglieMacchine WHERE idxMacchina = @idxMacchina ) + +-- Recupero stato precedente, altrimenti ipotizzo macchina inizialmente in stato richiesto (default: 1 = pronta) e quindi imposto stato current a quello iniziale richiesto... +SET @currIdxStato = ISNULL( ( SELECT TOP 1 IdxStato FROM DiarioDiBordo WHERE IdxMacchina = @idxMacchina AND InizioStato < @inizio + ORDER BY InizioStato DESC ) , @idxStatoStart) + +-- verifico i record elaborati +SELECT COUNT(*) +FROM EventList AS e +LEFT JOIN dbo.AnagraficaEventi AS a ON e.idxTipo = a.IdxTipo +WHERE e.IdxMacchina = @idxMacchina +AND e.InizioStato BETWEEN @inizio AND @fine + +-- leggo la tabella degli eventi con cursore x percorrere i dati... +DECLARE event2proc CURSOR FOR + SELECT e.InizioStato, e.IdxTipo, e.MatricolaKanban, e.Value, e.MatrOpr, e.pallet, + a.TabAzione, a.Azione + FROM EventList AS e + LEFT JOIN dbo.AnagraficaEventi AS a ON e.idxTipo = a.IdxTipo + WHERE e.IdxMacchina = @idxMacchina + AND e.InizioStato BETWEEN @inizio AND @fine + ORDER BY e.InizioStato; +/* + SELECT InizioStato, IdxTipo, MatricolaKanban, Value, MatrOpr, pallet + FROM EventList + WHERE IdxMacchina = @idxMacchina + AND InizioStato BETWEEN @inizio AND @fine + ORDER BY InizioStato; +*/ +OPEN event2proc; + +FETCH NEXT FROM event2proc +INTO @InizioStato, @IdxTipo, @MatricolaKanban, @Value, @MatrOpr, @pallet, @TabAzione, @Azione; + +DECLARE @NumPz INT = 1; +DECLARE @ContaInsert INT = 0; + +WHILE @@FETCH_STATUS = 0 + BEGIN + + IF ( ISNULL(@TabAzione,'') <> '' AND ISNULL(@Azione,'') <> '') + BEGIN + SET @NumPz = CASE WHEN (ISNUMERIC(@Value)=1) THEN @Value ELSE 1 END + -- controllo se devo aggiornare i Tempi ciclo in base allo stato macchina ( se null resta precedente ) + SELECT @FlgAggTempiC = ( CASE Semaforo WHEN 'V' THEN 'Y' ELSE 'N' END ) FROM dbo.AnagraficaStati + WHERE IdxStato = @currIdxStato + EXEC dbo.stp_EL_processaEvento @IdxTipo, @idxMacchina, @MatricolaKanban, @InizioStato, @NumPz, 'N', @FlgAggTempiC + END + + -- calcolo l'eventuale NUOVO idxStato + SET @nextIdxStato = ISNULL( (SELECT next_IdxStato FROM TransizioneStati + WHERE IdxFamiglia = @IdxFamiglia AND IdxStato = @currIdxStato AND IdxTipo = @IdxTipo ), @currIdxStato ) + + -- SE lo stato cambia registro nel DiarioDiBordo! + IF (@nextIdxStato <> @currIdxStato) + BEGIN + -- inserisco in DiarioDiBordo + INSERT INTO DiarioDiBordo + (IdxMacchina, InizioStato, FineStato, IdxStato, MatricolaKanban, Value, MatrOpr, pallet) + VALUES (@IdxMacchina, @InizioStato, NULL, @nextIdxStato, @MatricolaKanban, @Value, @MatrOpr, @pallet) + + -- infine imposto il nuovo stato current... + SET @currIdxStato = @nextIdxStato + SET @ContaInsert = @ContaInsert + 1 + END + + -- Get the next values + FETCH NEXT FROM event2proc + INTO @InizioStato, @IdxTipo, @MatricolaKanban, @Value, @MatrOpr, @pallet, @TabAzione, @Azione; + + END +CLOSE event2proc; +DEALLOCATE event2proc; + +-- resetto microStato a 1 +UPDATE dbo.MicroStatoMacchina + SET IdxMicroStato = 1, + InizioStato = @InizioStato, + Value = '0' +WHERE IdxMacchina = @idxMacchina + +-- fa un controllo: elimina eventuali dichairazioni in DDB SE durata < 0... +DELETE FROM DiarioDiBordo WHERE DurataMinuti < 0 AND IdxMacchina = @idxMacchina + +-- RI-ATTIVO inserimento in DiarioDiBordo per la macchina indicata +UPDATE DatiMacchine +SET insEnabled = 1 +WHERE IdxMacchina = @IdxMacchina + +PRINT 'concluso UPDATE tabelle...' + 'INSERT DiarioBordo : ' + CONVERT(VARCHAR(30),@ContaInsert) + +--DBCC SHOWCONTIG(EventList) +--DBCC SHOWCONTIG(DiarioDiBordo) +--EXEC USP_DisableEnableNonClusteredIndexes @Database,null, 2 --riattivo indici + +--ricostruisco indici X QUESTE TABELLE DOPPIA RICOSTRUZIONE INDICI NON NECESSARIA +--PRINT 'ricostruisco indici...' +--DBCC DBREINDEX(EventList) +--DBCC DBREINDEX(DiarioDiBordo) +--DBCC DBREINDEX(TransizioneIngressi) +--DBCC DBREINDEX(Kanban2ins) +--DBCC DBREINDEX(Kanban) +--DBCC DBREINDEX(AnagraficaOperatori) +--DBCC DBREINDEX(AnagraficaOperatori2ins) + +--DBCC SHOWCONTIG(EventList) +--DBCC SHOWCONTIG(DiarioDiBordo) + +RETURN +go + +commit; +go + + +set xact_abort on; +go + +begin transaction; +go + +set ANSI_NULLS on; +go + +/************************************* +* STORED PROCEDURE stp_EL_processaEvento +* Processa un singolo evento +* +* Note : richiamata anche nel trigger della tabella EventList +* +* modif.: +**************************************/ +alter PROCEDURE stp_EL_processaEvento +( + @IdxTipo INT, + @IdxMacchina NVARCHAR(50), + @MatricolaKanban NVARCHAR(50), + @DataOra DATETIME, + @NumPz INT, + @FlgAggStato CHAR(1) = 'Y', -- Y/N = elabora o meno aggiornamento StatiMacchine e DatiMacchine + @FlgAggTempiC CHAR(1) = 'N' -- Y/N = elabora o meno i tempi ciclo +) +AS + + ---- parametri x test + --DECLARE @IdxTipo INT = 0 + --DECLARE @IdxMacchina NVARCHAR(50) + --DECLARE @DataOra DATETIME + --DECLARE @MatricolaKanban NVARCHAR(50) + --DECLARE @TCMedio DECIMAL(18,8) + --DECLARE @NumPz INT + + --SET @IdxTipo = ( SELECT i.IdxTipo FROM inserted i ) + --SET @IdxMacchina = ( SELECT i.IdxMacchina FROM inserted i ) + --SET @DataOra = ( SELECT i.InizioStato FROM inserted i ) + --SET @MatricolaKanban = ( SELECT i.MatricolaKanban FROM inserted i ) + --SET @NumPz = ( SELECT CASE WHEN (ISNUMERIC(value)=1) THEN value ELSE 1 END FROM inserted i ) + + -- INIZIO DICHIARAZIONI + DECLARE @TabAzione NVARCHAR(50) = ''; + DECLARE @Azione NVARCHAR(50) = ''; + DECLARE @CodArticolo NVARCHAR(50) = '' + DECLARE @MatricolaKanbanOk NVARCHAR(50); + DECLARE @DataOraPrec DATETIME; + DECLARE @TCMedio DECIMAL(18,8) = 0; + + /* recupero altri valori ( se non trova record lascia il valore invariato cioè = '' )*/ + SELECT @TabAzione = ISNULL(TabAzione,'') + , @Azione = ISNULL(Azione,'') + FROM AnagraficaEventi WHERE IdxTipo = @IdxTipo + + --SELECT @TabAzione , @Azione + + ---- SOLO se lo stato della macchina è VERDE ( lavora ) devo aggiornare i tempi ciclo + ---- NON VA BENE QUANDO FA RICALCOLO NON C'é NULL + --IF EXISTS ( SELECT D.IdxStato FROM dbo.DiarioDiBordo AS D + -- INNER JOIN dbo.AnagraficaStati AS S ON d.idxStato = S.IdxStato + -- WHERE d.IdxMacchina = @IdxMacchina AND d.FineStato IS NULL AND s.Semaforo = 'V' ) + -- SET @FlgAggTempiC = 'Y' + + IF (@TabAzione <> '' AND @Azione <> '') + BEGIN + /* azioni richieste: seconda dei casi eseguo... */ + + /****************************************** + * + * Calcolo tempo ciclo per INIZIO + * + ******************************************/ + IF(@TabAzione = 'TempiCicloRilevati' AND @Azione = 'Insert' AND @FlgAggTempiC = 'Y' ) + BEGIN + -- recupero codice articolo + SET @CodArticolo = ( SELECT CodArticolo FROM Kanban WHERE MatricolaKanban = @MatricolaKanban ) + /* calcolo tempo tra gli ultimi 2 eventi "contapezzi" */ + SET @DataOraPrec = ISNULL((SELECT Top 1 InizioStato FROM EventList WHERE IdxMacchina = @IdxMacchina + AND IdxTipo = @IdxTipo AND InizioStato < @DataOra ORDER BY InizioStato DESC), @DataOra ) + + -- se è oltre 10 gg calcolo in secondi... 2013.8.30 + IF (DATEDIFF(DD, @DataOraPrec, @DataOra) > 10) + SET @TCMedio = ( SELECT (DATEDIFF(s, @DataOraPrec, @DataOra) / 60.00 ) ) --calcolo in secondi + ELSE + SET @TCMedio = ( SELECT (DATEDIFF(ms, @DataOraPrec, @DataOra) / 60000.00 ) ) + + /* inserisco riga di tempo ciclo */ + INSERT INTO TempiCicloRilevati + VALUES(@IdxMacchina, @CodArticolo, @DataOra, @TCMedio, @NumPz) + END + /****************************************** + * + * Calcolo tempo ciclo con logica stop/start + * + ******************************************/ + ELSE IF(@TabAzione = 'TempiCicloRilevati' AND @Azione = 'Stop2StartCiclo' AND @FlgAggTempiC = 'Y' ) + BEGIN + /* prendo la matricola dall'evento inizio (precedente) */ + SET @MatricolaKanbanOk = ISNULL((SELECT Top 1 MatricolaKanban FROM EventList WHERE IdxMacchina = @IdxMacchina AND IdxTipo = @IdxTipo - 1 AND InizioStato < @DataOra ORDER BY InizioStato DESC), @MatricolaKanban ) + + -- calcolare num pezzi da codice... + SET @CodArticolo = ( SELECT CodArticolo FROM Kanban WHERE MatricolaKanban = @MatricolaKanbanOk ) + /* calcolo tempo tra eventi "contapezzi" inizio - fine NB: idxEvento per fine è idxEvento inizio + 1 ... HARD CODED!!! */ + SET @DataOraPrec = ISNULL((SELECT Top 1 InizioStato FROM EventList WHERE IdxMacchina = @IdxMacchina AND IdxTipo = @IdxTipo - 1 AND InizioStato < @DataOra ORDER BY InizioStato DESC), @DataOra ) + + -- se è oltre 10 gg calcolo in secondi... 2013.8.30 + IF (DATEDIFF(DD, @DataOraPrec, @DataOra) > 10) + SET @TCMedio = ( DATEDIFF(s, @DataOraPrec, @DataOra) / 60.00 ) --calcolo in secondi + ELSE + SET @TCMedio = ( DATEDIFF(ms, @DataOraPrec, @DataOra) / 60000.00 ) + + /* inserisco riga di tempo ciclo */ + INSERT INTO TempiCicloRilevati + VALUES(@IdxMacchina, @CodArticolo, @DataOra, @TCMedio, @NumPz) + END + /****************************************** + * + * calcolo tempo ciclo con logica stop/stop + * + ******************************************/ + ELSE IF(@TabAzione = 'TempiCicloRilevati' AND @Azione = 'Stop2StopCiclo' AND @FlgAggTempiC = 'Y' ) + BEGIN + /* prendo la matricola dall'evento inizio (precedente) */ + SET @MatricolaKanbanOk = ISNULL((SELECT Top 1 MatricolaKanban FROM EventList WHERE IdxMacchina = @IdxMacchina AND IdxTipo = @IdxTipo AND InizioStato < @DataOra ORDER BY InizioStato DESC), @MatricolaKanban ) + + -- calcolare num pezzi da codice... + SET @NumPz = ( SELECT PzPallet FROM Kanban WHERE MatricolaKanban = @MatricolaKanbanOk ) + SET @CodArticolo = ( SELECT CodArticolo FROM Kanban WHERE MatricolaKanban = @MatricolaKanbanOk ) + /* calcolo tempo tra eventi "contapezzi" fine - fine NB: idxEvento per fine è idxEvento inizio + 1 ... HARD CODED!!! */ + SET @DataOraPrec = ISNULL( (SELECT Top 1 InizioStato FROM EventList WHERE IdxMacchina = @IdxMacchina AND IdxTipo = @IdxTipo AND InizioStato < @DataOra ORDER BY InizioStato DESC), @DataOra ) + + -- se è oltre 10 gg calcolo in secondi... 2013.8.30 + IF (DATEDIFF(DD, @DataOraPrec, @DataOra) > 10) + SET @TCMedio = ( DATEDIFF(s, @DataOraPrec, @DataOra) / 60.00 ) --calcolo in secondi + ELSE + SET @TCMedio = ( DATEDIFF(ms, @DataOraPrec, @DataOra) / 60000.00 ) + + /* inserisco riga di tempo ciclo */ + INSERT INTO TempiCicloRilevati + VALUES(@IdxMacchina, @CodArticolo, @DataOra, @TCMedio, @NumPz) + END + + /****************************************** + * + * Aggiorno kanban in dati macchine per + * INIZIO ATTREZZAGGIO + * + ******************************************/ + ELSE IF(@TabAzione = 'DatiMacchine' AND @Azione = 'Inizio' AND @FlgAggStato = 'Y') + BEGIN + /* aggiorno riga di dati macchina */ + UPDATE DatiMacchine + SET kanban_A = @MatricolaKanban, + kanban_B = @MatricolaKanban + WHERE idxMacchina = @IdxMacchina + /* aggiorno stato macchina */ + UPDATE StatoMacchine + SET MatricolaKanban = @MatricolaKanban + WHERE idxMacchina = @IdxMacchina + /* aggiorno dati kanban statoMacchine... */ + UPDATE StatoMacchine + SET KanbanCode = k.KanbanCode, TempoCicloBase = k.TempoCicloBase, PzPalletProd = k.PzPallet + FROM Kanban AS k + INNER JOIN StatoMacchine ON k.MatricolaKanban = StatoMacchine.MatricolaKanban + WHERE (StatoMacchine.idxMacchina = @IdxMacchina) + END + /****************************************** + * + * Aggiorno kanban in dati macchine per + * FINE PRODUZIONE + * + ******************************************/ + ELSE IF(@TabAzione = 'DatiMacchine' AND @Azione = 'Fine' AND @FlgAggStato = 'Y') + BEGIN + /* calcolo valori */ + SET @MatricolaKanban = 'KAND' -- kanban non definito !!!HARD CODED!!! + /* aggiorno riga di dati macchina */ + UPDATE DatiMacchine + SET kanban_A = @MatricolaKanban, + kanban_B = @MatricolaKanban + WHERE idxMacchina = @IdxMacchina + /* aggiorno stato macchina */ + UPDATE StatoMacchine + SET MatricolaKanban = @MatricolaKanban + WHERE idxMacchina = @IdxMacchina + /* aggiorno dati kanban statoMacchine... */ + UPDATE StatoMacchine + SET KanbanCode = k.KanbanCode, TempoCicloBase = k.TempoCicloBase, PzPalletProd = k.PzPallet + FROM Kanban AS k INNER JOIN StatoMacchine ON k.MatricolaKanban = StatoMacchine.MatricolaKanban + WHERE (StatoMacchine.idxMacchina = @IdxMacchina) + + END + END + +RETURN +go + +commit; +go + + +set xact_abort on; +go + +begin transaction; +go + +set ANSI_NULLS on; +go + +/*************************************************** +* Trigger trg_doActions +* +* processa eventuali azioni legate ad un inserimento evento +* +* modificato: S.E.L. +* 2011.05.18 +* +***************************************************/ +alter TRIGGER trg_doActions +ON EventList +FOR INSERT +AS + /* dichiarazione variabili */ + DECLARE @IdxTipo INT + DECLARE @TabAzione NVARCHAR(50) + DECLARE @Azione NVARCHAR(50) + DECLARE @IdxMacchina NVARCHAR(50) + DECLARE @MatricolaKanban NVARCHAR(50) + DECLARE @MatricolaKanbanOk NVARCHAR(50) + DECLARE @CodArticolo NVARCHAR(50) + DECLARE @TCMedio DECIMAL(18,8) + DECLARE @DataOra DATETIME + DECLARE @DataOraPrec DATETIME + DECLARE @NumPz INT + DECLARE @FlgAggTempiC CHAR(1) = 'N' -- Y/N = elabora o meno i tempi ciclo + + + /* recupero valori dell'INSERT */ + SET @IdxTipo = ( SELECT i.IdxTipo FROM inserted i ) + SET @IdxMacchina = ( SELECT i.IdxMacchina FROM inserted i ) + SET @MatricolaKanban = ( SELECT i.MatricolaKanban FROM inserted i ) + SET @DataOra = ( SELECT i.InizioStato FROM inserted i ) + SET @NumPz = ( SELECT CASE WHEN (ISNUMERIC(value)=1) THEN value ELSE 1 END FROM inserted i ) + + -- SOLO SE lo stato della macchina è VERDE ( lavora ) devo aggiornare i tempi ciclo + IF EXISTS ( SELECT M.IdxStato FROM dbo.StatoMacchine AS M + INNER JOIN dbo.AnagraficaStati AS S ON M.idxStato = S.IdxStato + WHERE M.IdxMacchina = @IdxMacchina AND s.Semaforo = 'V' ) + SET @FlgAggTempiC = 'Y' + + EXECUTE dbo.stp_EL_processaEvento @IdxTipo, @IdxMacchina, @MatricolaKanban, @DataOra, @NumPz, 'Y', @FlgAggTempiC + +/* SOSTITUITA CON STORED + + /* controllo se l'evento richieda azioni successive */ + IF(@TabAzione <> '' AND @Azione <> '') + BEGIN + /* azioni richieste: seconda dei casi eseguo... */ + + /****************************************** + * + * Calcolo tempo ciclo per INIZIO + * + ******************************************/ + IF(@TabAzione = 'TempiCicloRilevati' AND @Azione = 'Insert') + BEGIN + /* calcolo valori */ + SET @DataOra = ( SELECT i.InizioStato FROM inserted i ) + SET @MatricolaKanban = ( SELECT i.MatricolaKanban FROM inserted i ) + SET @NumPz = ( SELECT CASE WHEN (ISNUMERIC(value)=1) THEN value ELSE 1 END FROM inserted i ) + SET @CodArticolo = ( SELECT CodArticolo FROM Kanban WHERE MatricolaKanban = @MatricolaKanban ) + /* calcolo tempo tra gli ultimi 2 eventi "contapezzi" */ + SET @DataOraPrec = ( SELECT ISNULL((SELECT Top 1 InizioStato FROM EventList WHERE IdxMacchina = @IdxMacchina AND IdxTipo = @IdxTipo AND InizioStato < @DataOra ORDER BY InizioStato DESC), @DataOra ) ) + -- se è oltre 10 gg calcolo in secondi... 2013.8.30 + IF (DATEDIFF(DD, @DataOraPrec, @DataOra) > 10) + BEGIN + SET @TCMedio = ( SELECT (DATEDIFF(s, @DataOraPrec, @DataOra) / 60.00 ) ) --calcolo in secondi + END + ELSE + BEGIN + SET @TCMedio = ( SELECT (DATEDIFF(ms, @DataOraPrec, @DataOra) / 60000.00 ) ) + END + -- versione vecchia (blocco se oltre 24 gg di fermo...) + --BEGIN TRY + -- /* è in millisecondi, divido per 60'000.00 x avere minuti centesimali*/ + -- SET @TCMedio = ( SELECT (DATEDIFF(ms, @DataOraPrec, @DataOra) / 60000.00 ) ) + --END TRY + --BEGIN CATCH + -- SET @TCMedio = ( SELECT (DATEDIFF(s, @DataOraPrec, @DataOra) / 60.00 ) ) --calcolo in secondi + --END CATCH + /* inserisco riga di tempo ciclo */ + INSERT INTO TempiCicloRilevati + VALUES(@IdxMacchina, @CodArticolo, @DataOra, @TCMedio, @NumPz) + END + /****************************************** + * + * Calcolo tempo ciclo con logica stop/start + * + ******************************************/ + ELSE IF(@TabAzione = 'TempiCicloRilevati' AND @Azione = 'Stop2StartCiclo') + BEGIN + /* calcolo valori */ + SET @DataOra = ( SELECT i.InizioStato FROM inserted i ) + SET @MatricolaKanban = ( SELECT i.MatricolaKanban FROM inserted i ) + /* prendo la matricola dall'evento inizio (precedente) */ + SET @MatricolaKanbanOk = ( SELECT ISNULL((SELECT Top 1 MatricolaKanban FROM EventList WHERE IdxMacchina = @IdxMacchina AND IdxTipo = @IdxTipo - 1 AND InizioStato < @DataOra ORDER BY InizioStato DESC), @MatricolaKanban ) ) + + -- calcolare num pezzi da codice... + SET @NumPz = ( SELECT CASE WHEN (ISNUMERIC(value)=1) THEN value ELSE 1 END FROM inserted i ) + SET @CodArticolo = ( SELECT CodArticolo FROM Kanban WHERE MatricolaKanban = @MatricolaKanbanOk ) + /* calcolo tempo tra eventi "contapezzi" inizio - fine NB: idxEvento per fine è idxEvento inizio + 1 ... HARD CODED!!! */ + SET @DataOraPrec = ( SELECT ISNULL((SELECT Top 1 InizioStato FROM EventList WHERE IdxMacchina = @IdxMacchina AND IdxTipo = @IdxTipo - 1 AND InizioStato < @DataOra ORDER BY InizioStato DESC), @DataOra ) ) + -- se è oltre 10 gg calcolo in secondi... 2013.8.30 + IF (DATEDIFF(DD, @DataOraPrec, @DataOra) > 10) + BEGIN + SET @TCMedio = ( SELECT (DATEDIFF(s, @DataOraPrec, @DataOra) / 60.00 ) ) --calcolo in secondi + END + ELSE + BEGIN + SET @TCMedio = ( SELECT (DATEDIFF(ms, @DataOraPrec, @DataOra) / 60000.00 ) ) + END + -- versione vecchia (blocco se oltre 24 gg di fermo...) + --BEGIN TRY + -- /* è in millisecondi, divido per 60'000.00 x avere minuti centesimali*/ + -- SET @TCMedio = ( SELECT (DATEDIFF(ms, @DataOraPrec, @DataOra) / 60000.00 ) ) + --END TRY + --BEGIN CATCH + -- SET @TCMedio = ( SELECT (DATEDIFF(s, @DataOraPrec, @DataOra) / 60.00 ) ) --calcolo in secondi + --END CATCH + /* inserisco riga di tempo ciclo */ + INSERT INTO TempiCicloRilevati + VALUES(@IdxMacchina, @CodArticolo, @DataOra, @TCMedio, @NumPz) + END + /****************************************** + * + * calcolo tempo ciclo con logica stop/stop + * + ******************************************/ + ELSE IF(@TabAzione = 'TempiCicloRilevati' AND @Azione = 'Stop2StopCiclo') + BEGIN + /* calcolo valori */ + SET @DataOra = ( SELECT i.InizioStato FROM inserted i ) + SET @MatricolaKanban = ( SELECT i.MatricolaKanban FROM inserted i ) + /* prendo la matricola dall'evento inizio (precedente) */ + SET @MatricolaKanbanOk = ( SELECT ISNULL((SELECT Top 1 MatricolaKanban FROM EventList WHERE IdxMacchina = @IdxMacchina AND IdxTipo = @IdxTipo AND InizioStato < @DataOra ORDER BY InizioStato DESC), @MatricolaKanban ) ) + + -- calcolare num pezzi da codice... + SET @NumPz = ( SELECT PzPallet FROM Kanban WHERE MatricolaKanban = @MatricolaKanbanOk ) + SET @CodArticolo = ( SELECT CodArticolo FROM Kanban WHERE MatricolaKanban = @MatricolaKanbanOk ) + /* calcolo tempo tra eventi "contapezzi" fine - fine NB: idxEvento per fine è idxEvento inizio + 1 ... HARD CODED!!! */ + SET @DataOraPrec = ( SELECT ISNULL((SELECT Top 1 InizioStato FROM EventList WHERE IdxMacchina = @IdxMacchina AND IdxTipo = @IdxTipo AND InizioStato < @DataOra ORDER BY InizioStato DESC), @DataOra ) ) + -- se è oltre 10 gg calcolo in secondi... 2013.8.30 + IF (DATEDIFF(DD, @DataOraPrec, @DataOra) > 10) + BEGIN + SET @TCMedio = ( SELECT (DATEDIFF(s, @DataOraPrec, @DataOra) / 60.00 ) ) --calcolo in secondi + END + ELSE + BEGIN + SET @TCMedio = ( SELECT (DATEDIFF(ms, @DataOraPrec, @DataOra) / 60000.00 ) ) + END + -- versione vecchia (blocco se oltre 24 gg di fermo...) + --BEGIN TRY + -- /* è in millisecondi, divido per 60'000.00 x avere minuti centesimali*/ + -- SET @TCMedio = ( SELECT (DATEDIFF(ms, @DataOraPrec, @DataOra) / 60000.00 ) ) + --END TRY + --BEGIN CATCH + -- SET @TCMedio = ( SELECT (DATEDIFF(s, @DataOraPrec, @DataOra) / 60.00 ) ) --calcolo in secondi + --END CATCH + /* inserisco riga di tempo ciclo */ + BEGIN TRY + INSERT INTO TempiCicloRilevati + VALUES(@IdxMacchina, @CodArticolo, @DataOra, @TCMedio, @NumPz) + END TRY + BEGIN CATCH + -- dovrei loggare... + END CATCH + END + /****************************************** + * + * Aggiorno kanban in dati macchine per + * INIZIO ATTREZZAGGIO + * + ******************************************/ + ELSE IF(@TabAzione = 'DatiMacchine' AND @Azione = 'Inizio') + BEGIN + /* calcolo valori */ + SET @MatricolaKanban = ( SELECT i.MatricolaKanban FROM inserted i ) + /* aggiorno riga di dati macchina */ + UPDATE DatiMacchine + SET kanban_A = @MatricolaKanban, + kanban_B = @MatricolaKanban + WHERE idxMacchina = @IdxMacchina + /* aggiorno stato macchina */ + UPDATE StatoMacchine + SET MatricolaKanban = @MatricolaKanban + WHERE idxMacchina = @IdxMacchina + /* aggiorno dati kanban statoMacchine... */ + UPDATE StatoMacchine + SET KanbanCode = k.KanbanCode, TempoCicloBase = k.TempoCicloBase, PzPalletProd = k.PzPallet + FROM Kanban AS k INNER JOIN StatoMacchine ON k.MatricolaKanban = StatoMacchine.MatricolaKanban + WHERE (StatoMacchine.idxMacchina = @IdxMacchina) + END + /****************************************** + * + * Aggiorno kanban in dati macchine per + * FINE PRODUZIONE + * + ******************************************/ + ELSE IF(@TabAzione = 'DatiMacchine' AND @Azione = 'Fine') + BEGIN + /* calcolo valori */ + SET @MatricolaKanban = 'KAND' -- kanban non definito !!!HARD CODED!!! + /* aggiorno riga di dati macchina */ + UPDATE DatiMacchine + SET kanban_A = @MatricolaKanban, + kanban_B = @MatricolaKanban + WHERE idxMacchina = @IdxMacchina + /* aggiorno stato macchina */ + UPDATE StatoMacchine + SET MatricolaKanban = @MatricolaKanban + WHERE idxMacchina = @IdxMacchina + /* aggiorno dati kanban statoMacchine... */ + UPDATE StatoMacchine + SET KanbanCode = k.KanbanCode, TempoCicloBase = k.TempoCicloBase, PzPalletProd = k.PzPallet + FROM Kanban AS k INNER JOIN StatoMacchine ON k.MatricolaKanban = StatoMacchine.MatricolaKanban + WHERE (StatoMacchine.idxMacchina = @IdxMacchina) + + END + END +*/ + + -- INFINE CHIAMO REFRESH TAB STATO... + EXEC stp_MSE_refresh @IdxMacchina +go + +commit; +go + +set xact_abort on; +go + +begin transaction; +go + +set ANSI_NULLS on; +go + +-- ================================================ +-- Author: Samuele E. Locatelli +-- Create date: 2012.11.23 +-- +-- Description: rigenerazione del diario di bordo +-- a partire da macchina eventi/stati + EventList +-- ================================================ +alter PROCEDURE man.stp_ricalcolaDatiMacchinaFromDate +( + @idxMacchina NVARCHAR(50), + @inizio DATETIME, + @idxStatoStart INT = 1 +) +AS + +SET NOCOUNT ON; + +DECLARE @fine DATETIME + +--DBCC SHOWCONTIG(EventList) +--DBCC SHOWCONTIG(DiarioDiBordo) + +/* DA USARE ? Verificare */ +--DECLARE @Database AS SYSNAME; +--SET @Database = DB_NAME() +--EXEC USP_DisableEnableNonClusteredIndexes @Database ,null, 1 -- disabilito indici + +-- update SAM 2013.10.24: "torno indietro" di 2 eventi rispetto alal data ora indicata come start, SE CI SONO +SELECT @inizio = ISNULL(MIN(InizioStato),@inizio) FROM +( + SELECT TOP 3 InizioStato + FROM DiarioDiBordo + WHERE IdxMacchina = @idxMacchina AND InizioStato < @inizio + ORDER BY InizioStato DESC +) AS tbl + + +-- DISATTIVO inserimento in DiarioDiBordo per la macchina indicata +-- DEVE disattivare anche il caricamento degli eventi +UPDATE DatiMacchine + SET insEnabled = 0 +WHERE IdxMacchina = @IdxMacchina + +-- devo sempre rielaborare tutti gli eventi fino a dataora odierna o a ultimo evento in diario di bordo +SET @fine = ( SELECT MAX(InizioStato) FROM DiarioDiBordo + WHERE idxMacchina = @idxMacchina ) + +-- svuoto dati che vado a sostituire +PRINT 'svuoto TempiCicloRilevati per periodo indicato...' +DELETE FROM TempiCicloRilevati WHERE idxMacchina = @idxMacchina AND DataOraRif BETWEEN @inizio AND @fine + +PRINT 'svuoto DiarioDiBordo per periodo indicato...' +EXEC stp_DDB_deleteMacchinaPeriodo @idxMacchina, @inizio, @fine -- cancella diario di bordo + +PRINT 'processo EventList per periodo indicato...' +DECLARE @InizioStato DATETIME +DECLARE @IdxTipo INT +DECLARE @MatricolaKanban NVARCHAR(50) +DECLARE @Value NVARCHAR(50) +DECLARE @MatrOpr INT +DECLARE @pallet NVARCHAR(20) +DECLARE @nextIdxStato INT +DECLARE @currIdxStato INT +DECLARE @IdxFamiglia INT +DECLARE @TabAzione NVARCHAR(50) = ''; +DECLARE @Azione NVARCHAR(50) = ''; +DECLARE @FlgAggTempiC CHAR(1) = 'N'; -- Y/N = elabora o meno i tempi ciclo + +-- calcolo famiglia macchina! +SET @IdxFamiglia = ( SELECT IdxFamiglia FROM Macchine2FamiglieMacchine WHERE idxMacchina = @idxMacchina ) + +-- Recupero stato precedente, altrimenti ipotizzo macchina inizialmente in stato richiesto (default: 1 = pronta) e quindi imposto stato current a quello iniziale richiesto... +SET @currIdxStato = ISNULL( ( SELECT TOP 1 IdxStato FROM DiarioDiBordo WHERE IdxMacchina = @idxMacchina AND InizioStato < @inizio + ORDER BY InizioStato DESC ) , @idxStatoStart) + +-- verifico i record elaborati +SELECT COUNT(*) +FROM EventList AS e +LEFT JOIN dbo.AnagraficaEventi AS a ON e.idxTipo = a.IdxTipo +WHERE e.IdxMacchina = @idxMacchina +AND e.InizioStato BETWEEN @inizio AND @fine + +-- leggo la tabella degli eventi con cursore x percorrere i dati... +DECLARE event2proc CURSOR FOR + SELECT e.InizioStato, e.IdxTipo, e.MatricolaKanban, e.Value, e.MatrOpr, e.pallet, + a.TabAzione, a.Azione + FROM EventList AS e + LEFT JOIN dbo.AnagraficaEventi AS a ON e.idxTipo = a.IdxTipo + WHERE e.IdxMacchina = @idxMacchina + AND e.InizioStato BETWEEN @inizio AND @fine + ORDER BY e.InizioStato; +/* + SELECT InizioStato, IdxTipo, MatricolaKanban, Value, MatrOpr, pallet + FROM EventList + WHERE IdxMacchina = @idxMacchina + AND InizioStato BETWEEN @inizio AND @fine + ORDER BY InizioStato; +*/ +OPEN event2proc; + +FETCH NEXT FROM event2proc +INTO @InizioStato, @IdxTipo, @MatricolaKanban, @Value, @MatrOpr, @pallet, @TabAzione, @Azione; + +DECLARE @NumPz INT = 1; +DECLARE @ContaInsert INT = 0; + +WHILE @@FETCH_STATUS = 0 + BEGIN + + IF ( ISNULL(@TabAzione,'') <> '' AND ISNULL(@Azione,'') <> '') + BEGIN + SET @NumPz = CASE WHEN (ISNUMERIC(@Value)=1) THEN @Value ELSE 1 END + -- controllo se devo aggiornare i Tempi ciclo in base allo stato macchina ( se null resta precedente ) + SELECT @FlgAggTempiC = ( CASE Semaforo WHEN 'V' THEN 'Y' ELSE 'N' END ) FROM dbo.AnagraficaStati + WHERE IdxStato = @currIdxStato + EXEC dbo.stp_EL_processaEvento @IdxTipo, @idxMacchina, @MatricolaKanban, @InizioStato, @NumPz, 'N', @FlgAggTempiC + END + + -- calcolo l'eventuale NUOVO idxStato + SET @nextIdxStato = ISNULL( (SELECT next_IdxStato FROM TransizioneStati + WHERE IdxFamiglia = @IdxFamiglia AND IdxStato = @currIdxStato AND IdxTipo = @IdxTipo ), @currIdxStato ) + + -- SE lo stato cambia registro nel DiarioDiBordo! + IF (@nextIdxStato <> @currIdxStato) + BEGIN + -- inserisco in DiarioDiBordo + INSERT INTO DiarioDiBordo + (IdxMacchina, InizioStato, FineStato, IdxStato, MatricolaKanban, Value, MatrOpr, pallet) + VALUES (@IdxMacchina, @InizioStato, NULL, @nextIdxStato, @MatricolaKanban, @Value, @MatrOpr, @pallet) + + -- infine imposto il nuovo stato current... + SET @currIdxStato = @nextIdxStato + SET @ContaInsert = @ContaInsert + 1 + END + + -- Get the next values + FETCH NEXT FROM event2proc + INTO @InizioStato, @IdxTipo, @MatricolaKanban, @Value, @MatrOpr, @pallet, @TabAzione, @Azione; + + END +CLOSE event2proc; +DEALLOCATE event2proc; + +-- resetto microStato a 1 +UPDATE dbo.MicroStatoMacchina + SET IdxMicroStato = 1, + InizioStato = @InizioStato, + Value = '0' +WHERE IdxMacchina = @idxMacchina + +-- fa un controllo: elimina eventuali dichairazioni in DDB SE durata < 0... +DELETE FROM DiarioDiBordo WHERE DurataMinuti < 0 AND IdxMacchina = @idxMacchina + +-- RI-ATTIVO inserimento in DiarioDiBordo per la macchina indicata +UPDATE DatiMacchine +SET insEnabled = 1 +WHERE IdxMacchina = @IdxMacchina + +PRINT 'concluso UPDATE tabelle...' + 'INSERT DiarioBordo : ' + CONVERT(VARCHAR(30),@ContaInsert) + +--DBCC SHOWCONTIG(EventList) +--DBCC SHOWCONTIG(DiarioDiBordo) +--EXEC USP_DisableEnableNonClusteredIndexes @Database,null, 2 --riattivo indici + +--ricostruisco indici X QUESTE TABELLE DOPPIA RICOSTRUZIONE INDICI NON NECESSARIA +--PRINT 'ricostruisco indici...' +--DBCC DBREINDEX(EventList) +--DBCC DBREINDEX(DiarioDiBordo) +--DBCC DBREINDEX(TransizioneIngressi) +--DBCC DBREINDEX(Kanban2ins) +--DBCC DBREINDEX(Kanban) +--DBCC DBREINDEX(AnagraficaOperatori) +--DBCC DBREINDEX(AnagraficaOperatori2ins) + +--DBCC SHOWCONTIG(EventList) +--DBCC SHOWCONTIG(DiarioDiBordo) + +RETURN +go + +commit; +go + + + + + + + + +-- registro versione... +INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(409, GETDATE()) +GO + +SELECT TOP 10 * FROM LogUpdateDb ORDER BY Versione DESC +GO diff --git a/MapoDb/SqlUpdate/MoonPro/V3.4/MoonPro_00414.sql b/MapoDb/SqlUpdate/MoonPro/V3.4/MoonPro_00414.sql new file mode 100644 index 00000000..0b6cf5f6 --- /dev/null +++ b/MapoDb/SqlUpdate/MoonPro/V3.4/MoonPro_00414.sql @@ -0,0 +1,44 @@ +set xact_abort on +go + +begin transaction +go + +set ANSI_NULLS on +go + +/************************************* +* STORED PROCEDURE stp_STM_setInsEnabled +* imposta stato amcchian x permettere o meno caricamento +* +* modif.: S.E.L. +* il: 2014.01.10 +**************************************/ +create PROCEDURE stp_STM_setInsEnabled +( + @idxMacchina NVARCHAR(50), + @insEnabled BIT +) +AS + +-- ATTIVO/DISATTIVO il caricamento degli eventi +UPDATE DatiMacchine + SET insEnabled = @insEnabled +WHERE IdxMacchina = @IdxMacchina + +RETURN +go + +commit +go + + + + + +-- registro versione... +INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(414, GETDATE()) +GO + +SELECT TOP 10 * FROM LogUpdateDb ORDER BY Versione DESC +GO diff --git a/MapoDb/app.config b/MapoDb/app.config new file mode 100644 index 00000000..79e7b174 --- /dev/null +++ b/MapoDb/app.config @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + diff --git a/MapoDb/reportExporter.cs b/MapoDb/reportExporter.cs new file mode 100644 index 00000000..662b03ff --- /dev/null +++ b/MapoDb/reportExporter.cs @@ -0,0 +1,230 @@ +using System; +using System.Data; +using SteamWare; +using Microsoft.Reporting.WinForms; + +/// +/// Classe che restituisce uno stream ed i dati accessori per reinviare un report in pdf +/// +public class reportExporter +{ + /// + /// mimeType del report + /// + public string mimeType; + /// + /// encoding dei dati + /// + public string encoding; + /// + /// nome estensione + /// + public string fileNameExtension; + /// + /// steam di bytes del report + /// + public byte[] renderedBytes; + /// + /// metodo protected + /// + public reportExporter() + { + } + /// + /// carica i dati richiesti dal report dalla StoredProcedure (filtrando quindi...) + /// + /// report ammessi: RichiestaIntervento + /// num int mtz + /// tabella dati + private DataTable caricaDati(reportRichiesto tipoReport, string idxObj) + { + // calcolo idxODL + int idxOdl = 0; + try + { + idxOdl = Convert.ToInt32(idxObj); + } + catch + { } + DataTable tab = new DataTable(); + switch (tipoReport) + { + case reportRichiesto.SchedaODL: + tab = (DataTable)MapoDb.DataLayer.obj.taODL.getByIdx(idxOdl, false); + break; + //case reportRichiesto.RichiestaIntervento: + // tab = (DataTable)TA_app.obj.taInterventiMtz.getByIdx(Convert.ToInt32(idxObj)); + // break; + //default: + // break; + } + return tab; + } +#if false + /// + /// carica i dati richiesti dal report dalla StoredProcedure (filtrando quindi...) + /// + /// report ammessi: ElencoMacchine + /// tabella dati + private DataTable caricaDati(reportRichiesto tipoReport) + { + DataTable tab = new DataTable(); + switch (tipoReport) + { + case reportRichiesto.SchedaODL: + tab = (DataTable)TA_app.obj.taElencoImpMacch.GetData(); + break; + default: + break; + } + return tab; + } +#endif +#if false + /// + /// carica i dati richiesti dal report dalla StoredProcedure (filtrando quindi...) + /// + /// report ammessi: ElencoInterventi / MTBF_MTTR + /// oggetto che contiene data inizio e data fine dell'analisi richiesta per il report + /// username (per caricare i suoi filtraggi... + /// se si devono includere SOLO i dati di macchina ferma + /// se si deve includere anche nel report le fermate di mtz preventiva + /// tabella dati + private DataTable caricaDati(reportRichiesto tipoReport, intervalloDate periodoAnalizzato, string username, bool soloMacchinaFerma, bool includiMtzPrev) + { + DataTable tab = new DataTable(); + switch (tipoReport) + { + case reportRichiesto.ElencoInterventi: + // controllo: se include mtz prev e non solo ferma + if (!soloMacchinaFerma && includiMtzPrev) + { + // ...uso metodo std + tab = (DataTable)TA_app.obj.taElencoIntFilt.getByIntervDateUsernameFilt(periodoAnalizzato.inizio, periodoAnalizzato.fine, username); + } + else + { + // altrimenti stored compelta (e + lenta) + tab = (DataTable)TA_app.obj.taElencoIntFilt.getByIntervDateUsernameFilt_fermaPrev(periodoAnalizzato.inizio, periodoAnalizzato.fine, username, soloMacchinaFerma, includiMtzPrev); + } + break; + case reportRichiesto.MTBF_MTTR: + // controllo: se include mtz prev e non solo ferma + if (!soloMacchinaFerma && includiMtzPrev) + { + // ...uso metodo std + tab = (DataTable)TA_app.obj.taElenco_MTBF_MTTR.GetData(periodoAnalizzato.inizio, periodoAnalizzato.fine, username); + } + else + { + // altrimenti stored compelta (e + lenta) + tab = (DataTable)TA_app.obj.taElenco_MTBF_MTTR.getByFermaPrev(periodoAnalizzato.inizio, periodoAnalizzato.fine, username, soloMacchinaFerma, includiMtzPrev); + } + break; + default: + break; + } + return tab; + } +#endif +#if false + /// + /// renderizza il report in pdf + /// + /// report ammessi: ElencoMacchine + /// + public void popolaPdfStream(reportRichiesto tipoReport) + { + LocalReport report = new LocalReport(); + devInfoParam deviceInfo = new devInfoParam("PDF", "21cm", "29.7cm", "0.2cm", "0.2cm", "0.2cm", "0.2cm"); + switch (tipoReport) + { + case reportRichiesto.SchedaODL: + report.ReportPath = @".\Reports\Donati_ODL.rdlc"; + report.DataSources.Add(new ReportDataSource("MoonPro", caricaDati(tipoReport))); + deviceInfo = new devInfoParam("PDF", "21cm", "29.7cm", "0.2cm", "0.2cm", "0.2cm", "0.2cm"); + break; + default: + break; + } + createPdfStream(report, deviceInfo.xmlParam); + } +#endif + /// + /// renderizza il report in pdf + /// + /// report ammessi: RichiestaIntervento + /// idx della richiesta (numIntMtz) + /// + public void popolaPdfStream(reportRichiesto tipoReport, string parametro) + { + LocalReport report = new LocalReport(); + devInfoParam deviceInfo = new devInfoParam("PDF", "21cm", "29.7cm", "0.2cm", "0.2cm", "0.2cm", "0.2cm"); + switch (tipoReport) + { + case reportRichiesto.SchedaODL: + report.ReportPath = @".\Reports\Donati_ODL.rdlc"; + report.DataSources.Add(new ReportDataSource("MoonPro", caricaDati(tipoReport, parametro))); // OCCHIO!!! va messa sorgente dati CORRETTA + deviceInfo = new devInfoParam("PDF", "29.7cm", "21cm", "0.2cm", "0.2cm", "0.2cm", "0.2cm"); + break; + default: + break; + } + createPdfStream(report, deviceInfo.xmlParam); + } +#if false + /// + /// renderizza il report in pdf + /// + /// report ammessi: ElencoInterventi / MTBF_MTTR + /// oggetto che contiene data inizio e data fine dell'analisi richiesta per il report + /// username (per caricare i suoi filtraggi... + /// se si devono includere SOLO i dati di macchina ferma + /// se si deve includere anche nel report le fermate di mtz preventiva + public void popolaPdfStream(reportRichiesto tipoReport, intervalloDate periodoAnalizzato, string username, bool soloMacchinaFerma, bool includiMtzPrev) + { + LocalReport report = new LocalReport(); + devInfoParam deviceInfo = new devInfoParam("PDF", "21cm", "29.7cm", "0.2cm", "0.2cm", "0.2cm", "0.2cm"); + switch (tipoReport) + { + case reportRichiesto.ElencoInterventi: + report.ReportPath = @".\Reports\ReportInterventi.rdlc"; + report.DataSources.Add(new ReportDataSource("WebGim", caricaDati(tipoReport, periodoAnalizzato, username, soloMacchinaFerma, includiMtzPrev))); + deviceInfo = new devInfoParam("PDF", "29.7cm", "21cm", "0.2cm", "0.2cm", "0.2cm", "0.2cm"); + break; + case reportRichiesto.MTBF_MTTR: + report.ReportPath = @".\Reports\Report_MTBF_MTTR.rdlc"; + report.DataSources.Add(new ReportDataSource("WebGim", caricaDati(tipoReport, periodoAnalizzato, username, soloMacchinaFerma, includiMtzPrev))); + deviceInfo = new devInfoParam("PDF", "29.7cm", "21cm", "0.2cm", "0.2cm", "0.2cm", "0.2cm"); + // calcolo le ore totali equivalenti... + ReportParameter[] OreTotali = { new ReportParameter("OreTotali", WebGimUtils.obj.oreEquivalenti(periodoAnalizzato).ToString()) }; + report.SetParameters(OreTotali); + break; + default: + break; + } + createPdfStream(report, deviceInfo.xmlParam); + } +#endif + /// + /// crea il vero e proprio stream pdf + /// + /// + /// + private void createPdfStream(LocalReport report, string deviceInfo) + { + // export in PDF + string reportType = "PDF"; + Warning[] warnings; + string[] streams; + renderedBytes = report.Render( + reportType, + deviceInfo, + out mimeType, + out encoding, + out fileNameExtension, + out streams, + out warnings); + } + +} diff --git a/MapoDb/reportPrinter.cs b/MapoDb/reportPrinter.cs new file mode 100644 index 00000000..9db18463 --- /dev/null +++ b/MapoDb/reportPrinter.cs @@ -0,0 +1,245 @@ +using System; +using System.Collections.Generic; +using System.Data; +using System.Drawing.Imaging; +using System.Drawing.Printing; +using System.IO; +using System.Text; +using SteamWare; +using Microsoft.Reporting.WinForms; + +/// +/// Classe che si occupa di stampare report da reportViewer via printer remota +/// +public class reportPrinter +{ + + #region area codice da non modificare + + private int m_currentPageIndex; + private IList m_streams; + /// + /// ciclo da fornire al renderizzatore dei report, per salvare 1 immagine da ogni pagina del report + /// + /// + /// + /// + /// + /// + /// + private Stream CreateStream(string name, string fileNameExtension, Encoding encoding, string mimeType, bool willSeek) + { + Stream stream = new FileStream(SteamWare.SteamwareStrings.getFilePath(@".\temp\" + name + "." + fileNameExtension), FileMode.Create); + m_streams.Add(stream); + return stream; + } + /// + /// Handler per PrintPageEvents + /// + /// + /// + private void PrintPage(object sender, PrintPageEventArgs ev) + { + Metafile pageImage = new Metafile(m_streams[m_currentPageIndex]); + ev.Graphics.DrawImage(pageImage, ev.PageBounds); + m_currentPageIndex++; + ev.HasMorePages = (m_currentPageIndex < m_streams.Count); + } + /// + /// funzione di stampa... + /// + private void Print(string printerName) + { + //const string printerName = "Microsoft Office Document Image Writer"; + //const string printerName = "Brother HL-2170W series"; + if (m_streams == null || m_streams.Count == 0) + return; + PrintDocument printDoc = new PrintDocument(); + printDoc.PrinterSettings.PrinterName = printerName; + if (!printDoc.PrinterSettings.IsValid) + { + logger.lg.scriviLog(String.Format("Can't find printer \"{0}\".", printerName), tipoLog.ERROR); + return; + } + printDoc.PrintPage += new PrintPageEventHandler(PrintPage); + printDoc.Print(); + } + /// + /// Export del report come EMF (Enhanced Metafile) file. + /// + /// + private void Export(LocalReport report, string deviceInfo) + { + Warning[] warnings; + m_streams = new List(); + report.Render("Image", deviceInfo, CreateStream, out warnings); + foreach (Stream stream in m_streams) stream.Position = 0; + } + /// + /// dispone l'applicazione e rilascia le risorse + /// + public void Dispose() + { + if (m_streams != null) + { + foreach (Stream stream in m_streams) + stream.Close(); + m_streams = null; + } + } + + #endregion + + #region area codice da modificare + + /// + /// carica i dati richiesti dal report dalla StoredProcedure (filtrando quindi...) + /// + /// report ammessi: ElencoMacchine / RichiestaIntervento + /// oggetto che contiene data inizio e data fine dell'analisi richiesta per il report + /// tabella dati + private DataTable caricaDati(reportRichiesto tipoReport, string idxObj) + { + // calcolo idxODL + int idxOdl = 0; + try + { + idxOdl = Convert.ToInt32(idxObj); + } + catch + { } + DataTable tab = new DataTable(); + switch (tipoReport) + { + case reportRichiesto.SchedaODL: + tab = (DataTable)MapoDb.DataLayer.obj.taODL.getByIdx(idxOdl, false); + break; + //case reportRichiesto.RichiestaIntervento: + // tab = (DataTable)TA_app.obj.taInterventiMtz.getByIdx(Convert.ToInt32(idxObj)); + // break; + //default: + // break; + } + return tab; + } +#if false + /// + /// carica i dati richiesti dal report dalla StoredProcedure (filtrando quindi...) + /// + /// report ammessi: ElencoInterventi / MTBF_MTTR + /// oggetto che contiene data inizio e data fine dell'analisi richiesta per il report + /// tabella dati + private DataTable caricaDati(reportRichiesto tipoReport, intervalloDate periodoAnalizzato, string username) + { + DataTable tab = new DataTable(); + switch (tipoReport) + { + case reportRichiesto.ElencoInterventi: + tab = (DataTable)TA_app.obj.taElencoIntFilt.getByIntervDateUsernameFilt(periodoAnalizzato.inizio, periodoAnalizzato.fine, username); + break; + case reportRichiesto.MTBF_MTTR: + tab = (DataTable)TA_app.obj.taElenco_MTBF_MTTR.GetData(periodoAnalizzato.inizio, periodoAnalizzato.fine, username); + break; + default: + break; + } + return tab; + } +#endif + /// + /// Crea un report locale da file rdlc, carica i dati, esporta report come EMF file e quindi lo invia alla stampante + /// + /// report ammessi: ElencoMacchine / RichiestaIntervento + /// nome completo stampante (rispetto al server) + /// numIntMtz (codice numero richiesta) + public void printReport(reportRichiesto tipoReport, string printerName, string parametro) + { + LocalReport report = new LocalReport(); + devInfoParam deviceInfo = new devInfoParam("EMF", "21cm", "29.7cm", "0.2cm", "0.2cm", "0.2cm", "0.2cm"); + switch (tipoReport) + { + case reportRichiesto.SchedaODL: + report.ReportPath = @".\Reports\Donati_ODL.rdlc"; + report.DataSources.Add(new ReportDataSource("MoonPro", caricaDati(tipoReport, parametro))); + deviceInfo = new devInfoParam("EMF", "21cm", "29.7cm", "0.2cm", "0.2cm", "0.2cm", "0.2cm"); + break; + //case reportRichiesto.RichiestaIntervento: + // report.ReportPath = @".\Reports\RichiestaIntervento.rdlc"; + // report.DataSources.Add(new ReportDataSource("WebGim", caricaDati(tipoReport, parametro))); + // deviceInfo = new devInfoParam("EMF", "29.7cm", "21cm", "0.2cm", "0.2cm", "0.2cm", "0.2cm"); + // break; + //default: + // break; + } + doEmfPrint(printerName, report, deviceInfo.xmlParam); + } +#if false + /// + /// Crea un report locale da file rdlc, carica i dati, esporta report come EMF file e quindi lo invia alla stampante + /// + /// report ammessi: ElencoInterventi / MTBF_MTTR + /// nome completo stampante (rispetto al server) + /// oggetto che contiene data inizio e data fine dell'analisi richiesta per il report + public void printReport(reportRichiesto tipoReport, string printerName, intervalloDate periodoAnalizzato, string username) + { + LocalReport report = new LocalReport(); + devInfoParam deviceInfo = new devInfoParam("EMF", "21cm", "29.7cm", "0.2cm", "0.2cm", "0.2cm", "0.2cm"); + switch (tipoReport) + { + case reportRichiesto.ElencoInterventi: + report.ReportPath = @".\Reports\ReportInterventi.rdlc"; + report.DataSources.Add(new ReportDataSource("WebGim", caricaDati(tipoReport, periodoAnalizzato, username))); + deviceInfo = new devInfoParam("EMF", "29.7cm", "21cm", "0.2cm", "0.2cm", "0.2cm", "0.2cm"); + break; + case reportRichiesto.MTBF_MTTR: + report.ReportPath = @".\Reports\Report_MTBF_MTTR.rdlc"; + report.DataSources.Add(new ReportDataSource("WebGim", caricaDati(tipoReport, periodoAnalizzato, username))); + deviceInfo = new devInfoParam("EMF", "29.7cm", "21cm", "0.2cm", "0.2cm", "0.2cm", "0.2cm"); + // calcolo le ore totali equivalenti... + ReportParameter[] OreTotali = { new ReportParameter("OreTotali", WebGimUtils.obj.oreEquivalenti(periodoAnalizzato).ToString()) }; + report.SetParameters(OreTotali); + break; + default: + break; + } + doEmfPrint(printerName, report, deviceInfo.xmlParam); + } +#endif + /// + /// esegue print vero e proprio + /// + /// + /// + /// + private void doEmfPrint(string printerName, LocalReport report, string deviceInfo) + { + // export in EMF + Export(report, deviceInfo); + m_currentPageIndex = 0; + // stampo + Print(printerName); + // do dispose? + Dispose(); + } + + /// + /// oggetto protected + /// + /// + protected reportPrinter() + { + } + /// + /// singleton pubblico + /// + public static reportPrinter obj = new reportPrinter(); + + #endregion +} +/// +/// tipologia di report ammessi alla stampa... +/// +public enum reportRichiesto +{ + SchedaODL +} diff --git a/MapoDb/resoconti.cs b/MapoDb/resoconti.cs new file mode 100644 index 00000000..bbece6cc --- /dev/null +++ b/MapoDb/resoconti.cs @@ -0,0 +1,545 @@ +using System; +using SteamWare; + +/// +/// Summary description for resoconti +/// +public enum statoMacchina +{ + Run = 1, + Setup, + Guasto, + Campionatura, + Disposizione, + Varie +} +/// +/// oggetto dati per grafico sequencer +/// +public struct objSequencer +{ + public intervalloDate intervallo; + /// + /// serie dei dati da plottare + /// + public DataLayer_generic.serieDatiDataTable serieDati; +} + +/// +/// oggetto dati per grafico TempiCiclo +/// +public struct objTempiCiclo +{ + public intervalloDate intervallo; + public decimal minVal; + public decimal maxVal; + public decimal targetVal; + public bool palletChange; + /// + /// serie dei dati da plottare + /// + public DataLayer_generic.serieTimeValDataTable serieDati; +} +//public struct intervallo +//{ +// public DateTime inizio; +// public DateTime fine; +//} +public class resoconti +{ + #region area protected + + protected MapoDb.DS_applicazioneTableAdapters.MacchineTableAdapter taMacchine; + protected MapoDb.DS_ProdTempiTableAdapters.TempiCicloRilevatiTableAdapter taTempiCiclo; + protected MapoDb.DS_applicazione.MacchineDataTable _Macchine; + protected MapoDb.DS_applicazione.MacchineDataTable Macchine + { + get + { + if (!memLayer.ML.isInCacheObject("Macchine")) + //if (HttpContext.Current.Cache["Macchine"] == null) + { + _Macchine = taMacchine.GetData(); + SteamWare.memLayer.ML.setCacheVal("Macchine", _Macchine, true); + //HttpContext.Current.Cache["Macchine"] = _Macchine; + } + else + { + _Macchine = (MapoDb.DS_applicazione.MacchineDataTable)SteamWare.memLayer.ML.objCacheObj("Macchine"); + //_Macchine = (MapoDb.DS_applicazione.MacchineDataTable)HttpContext.Current.Cache["Macchine"]; + } + return _Macchine; + } + } + protected MapoDb.DS_applicazioneTableAdapters.StatoMacchineTableAdapter taStatoMacchine; + protected MapoDb.DS_applicazione.StatoMacchineDataTable _StatoMacchine; + protected MapoDb.DS_applicazione.StatoMacchineDataTable StatoMacchine + { + get + { + //if (_StatoMacchine == null) + //{ + // _StatoMacchine = taStatoMacchine.GetData(); + //} + if (!memLayer.ML.isInCacheObject("StatoMacchine")) + { + _StatoMacchine = taStatoMacchine.GetData(); + SteamWare.memLayer.ML.setCacheVal("StatoMacchine", _StatoMacchine, true); + } + else + { + _StatoMacchine = (MapoDb.DS_applicazione.StatoMacchineDataTable)SteamWare.memLayer.ML.objCacheObj("StatoMacchine"); + } + return _StatoMacchine; + } + } + protected MapoDb.DS_applicazioneTableAdapters.AnagraficaStatiTableAdapter taStati; + protected MapoDb.DS_applicazione.AnagraficaStatiDataTable _Stati; + protected MapoDb.DS_applicazione.AnagraficaStatiDataTable Stati + { + get + { + //if (HttpContext.Current.Cache["Stati"] == null) + if (!memLayer.ML.isInCacheObject("Stati")) + { + _Stati = taStati.GetData(); + SteamWare.memLayer.ML.setCacheVal("Stati", _Stati, true); + //HttpContext.Current.Cache["Stati"] = _Stati; + } + else + { + _Stati = (MapoDb.DS_applicazione.AnagraficaStatiDataTable)SteamWare.memLayer.ML.objCacheObj("Stati"); + //_Stati = (MapoDb.DS_applicazione.AnagraficaStatiDataTable)HttpContext.Current.Cache["Stati"]; + } + return _Stati; + } + } + protected MapoDb.DS_applicazioneTableAdapters.DiarioDiBordoTableAdapter taDiarioDiBordo; + protected MapoDb.DS_applicazione.DiarioDiBordoDataTable _DiarioDiBordo; + protected MapoDb.DS_applicazione.DiarioDiBordoDataTable DiarioDiBordo + { + get + { + if (_DiarioDiBordo == null) + { + _DiarioDiBordo = taDiarioDiBordo.GetData(); + } + return _DiarioDiBordo; + } + } + protected MapoDb.DS_applicazioneTableAdapters.ParetoDurateTableAdapter taParetoDurate; +#if false + protected MapoDb.DS_applicazione.ParetoDurateDataTable _ParetoDurate; + protected MapoDb.DS_applicazione.ParetoDurateDataTable ParetoDurate + { + get + { + if (_ParetoDurate == null) + { + // set vuoto... + _ParetoDurate = taParetoDurate.GetParetoDurateFilt("", 100, DateTime.Now, DateTime.Now); + } + return _ParetoDurate; + } + } +#endif + protected MapoDb.DS_applicazioneTableAdapters.AnagraficaEventiTableAdapter taAnagraficaEventi; + protected MapoDb.DS_applicazione.AnagraficaEventiDataTable _AnagraficaEventi; + protected MapoDb.DS_applicazione.AnagraficaEventiDataTable AnagraficaEventi + { + get + { + if (!memLayer.ML.isInCacheObject("AnagraficaEventi")) + //if (HttpContext.Current.Cache["AnagraficaEventi"] == null) + { + _AnagraficaEventi = taAnagraficaEventi.GetData(); + SteamWare.memLayer.ML.setCacheVal("AnagraficaEventi", _AnagraficaEventi, true); + //HttpContext.Current.Cache["AnagraficaEventi"] = _AnagraficaEventi; + } + else + { + _AnagraficaEventi = (MapoDb.DS_applicazione.AnagraficaEventiDataTable)SteamWare.memLayer.ML.objCacheObj("AnagraficaEventi"); + //_AnagraficaEventi = (MapoDb.DS_applicazione.AnagraficaEventiDataTable)HttpContext.Current.Cache["AnagraficaEventi"]; + } + return _AnagraficaEventi; + } + } + protected MapoDb.DS_applicazioneTableAdapters.KanbanTableAdapter taKanban; + protected MapoDb.DS_applicazione.KanbanDataTable _Kanban; + protected MapoDb.DS_applicazione.KanbanDataTable Kanban + { + get + { + if (!memLayer.ML.isInCacheObject("Kanban")) + //if (HttpContext.Current.Cache["Kanban"] == null) + { + _Kanban = taKanban.GetData(); + SteamWare.memLayer.ML.setCacheVal("Kanban", _Kanban, true); + //HttpContext.Current.Cache["Kanban"] = _Kanban; + } + else + { + _Kanban = (MapoDb.DS_applicazione.KanbanDataTable)SteamWare.memLayer.ML.objCacheObj("Kanban"); + //_Kanban = (MapoDb.DS_applicazione.KanbanDataTable)HttpContext.Current.Cache["Kanban"]; + } + return _Kanban; + } + } + protected MapoDb.DS_applicazioneTableAdapters.AnagraficaOperatoriTableAdapter taAnagOpr; + protected MapoDb.DS_applicazione.AnagraficaOperatoriDataTable _AnagOpr; + protected MapoDb.DS_applicazione.AnagraficaOperatoriDataTable AnagOpr + { + get + { + if (!memLayer.ML.isInCacheObject("AnagOpr")) + //if (HttpContext.Current.Cache["AnagOpr"] == null) + { + _AnagOpr = taAnagOpr.GetData(); + SteamWare.memLayer.ML.setCacheVal("AnagOpr", _AnagOpr, true); + //HttpContext.Current.Cache["AnagOpr"] = _AnagOpr; + } + else + { + _AnagOpr = (MapoDb.DS_applicazione.AnagraficaOperatoriDataTable)SteamWare.memLayer.ML.objCacheObj("AnagOpr"); + //_AnagOpr = (MapoDb.DS_applicazione.AnagraficaOperatoriDataTable)HttpContext.Current.Cache["AnagOpr"]; + } + return _AnagOpr; + } + } + + #endregion + + #region area public + + public resoconti() + { + AvviaTabAdapt(); + setConnString(); + } + /// + /// singleton accesso resoconti + /// + public static resoconti mngr = new resoconti(); + + /// + /// avvio i table adapter della classe + /// + private void AvviaTabAdapt() + { + taMacchine = new MapoDb.DS_applicazioneTableAdapters.MacchineTableAdapter(); + taStatoMacchine = new MapoDb.DS_applicazioneTableAdapters.StatoMacchineTableAdapter(); + taStati = new MapoDb.DS_applicazioneTableAdapters.AnagraficaStatiTableAdapter(); + taDiarioDiBordo = new MapoDb.DS_applicazioneTableAdapters.DiarioDiBordoTableAdapter(); + taParetoDurate = new MapoDb.DS_applicazioneTableAdapters.ParetoDurateTableAdapter(); + taAnagraficaEventi = new MapoDb.DS_applicazioneTableAdapters.AnagraficaEventiTableAdapter(); + taKanban = new MapoDb.DS_applicazioneTableAdapters.KanbanTableAdapter(); + taAnagOpr = new MapoDb.DS_applicazioneTableAdapters.AnagraficaOperatoriTableAdapter(); + taTempiCiclo = new MapoDb.DS_ProdTempiTableAdapters.TempiCicloRilevatiTableAdapter(); + } + /// + /// forza la connString x i vari table adapters + /// + private void setConnString() + { + string _connectionString = SteamWare.memLayer.ML.confReadString("MoonProConnectionString"); + taMacchine.Connection.ConnectionString = _connectionString; + taStatoMacchine.Connection.ConnectionString = _connectionString; + taStati.Connection.ConnectionString = _connectionString; + taDiarioDiBordo.Connection.ConnectionString = _connectionString; + taParetoDurate.Connection.ConnectionString = _connectionString; + taAnagraficaEventi.Connection.ConnectionString = _connectionString; + taKanban.Connection.ConnectionString = _connectionString; + taAnagOpr.Connection.ConnectionString = _connectionString; + taTempiCiclo.Connection.ConnectionString = _connectionString; + } + + public string locazioneDaIdx(string idx) + { + MapoDb.DS_applicazione.MacchineRow riga = Macchine.FindByIdxMacchina(idx); + return string.Format("{0}", riga.locazione); + } + public string idxDaLocazione(string locazione) + { + MapoDb.DS_applicazione.MacchineRow riga = (MapoDb.DS_applicazione.MacchineRow)Macchine.Select(string.Format("locazione = '{0}'", locazione))[0]; + return string.Format("{0}", riga.IdxMacchina); + } + public string nomeMacchina(string idx) + { + string answ = ""; + MapoDb.DS_applicazione.MacchineRow riga = Macchine.FindByIdxMacchina(idx); + try + { + answ = string.Format("{0} ({1} - {2})", riga.Nome, riga.CodMacchina, riga.Descrizione); + } + catch + { } + return answ; + } + public string macchinaDaIdx(string idx) + { + MapoDb.DS_applicazione.MacchineRow riga = Macchine.FindByIdxMacchina(idx); + return string.Format("{0}", riga.CodMacchina); + } + public string urlMacchina(string idx) + { + MapoDb.DS_applicazione.MacchineRow riga = Macchine.FindByIdxMacchina(idx); + return string.Format("{0}", riga.url); + } + /// + /// fornisce idxStato della macchina indicata + /// + /// + /// + public int statoMacchina(string idx) + { + int answ = 0; + try + { + MapoDb.DS_ProdTempi.stp_repDonati_getLastStatoDurataMacchinaRow riga = (MapoDb.DS_ProdTempi.stp_repDonati_getLastStatoDurataMacchinaRow)(MapoDb.DataLayer.obj.taDatiStatoMacch.GetData(idx, 0)[0]); + answ = riga.idxStato; + } + catch + { } + return answ; + } + /// + /// fornisce descrizione stato da IdxStato + /// + /// + /// + public string statoDaIdx(int idx) + { + return Stati.FindByIdxStato(idx).Descrizione; + } + /// + /// fornisce cod operatore data matricola + /// + /// + /// + public string oprDaMatr(int matr) + { + string answ = "nd"; + try + { + MapoDb.DS_applicazione.AnagraficaOperatoriRow riga = AnagOpr.FindByMatrOpr(matr); + answ = string.Format("{0} {1}", riga.Cognome, riga.Nome); + } + catch + { } + return answ; + } + /// + /// Restituisce colore da IdxStato + /// + /// + /// + public string coloreDaIdx(int idx) + { + string _answ = ""; + switch (Stati.FindByIdxStato(idx).Semaforo) + { + case "G": // giallo + _answ = "#ffec00"; + break; + case "R": // rosso + _answ = "#e2001a"; + break; + case "S": // grigio - spenta + _answ = "#bcbcbc"; + break; + case "V": // verde + _answ = "#009036"; + break; + default: + break; + } + return _answ; + } + /// + /// restituisce cod semaforo dato IdxStato + /// + /// + /// + public string semaforoDaIdxStato(int idx) + { + return Stati.FindByIdxStato(idx).Semaforo; + } + /// + /// restituisce cod CSS dato IdxStato + /// + /// + /// + public string cssDaCodColore(string codColore) + { + string cssClass = ""; + switch (codColore) + { + case "V": + cssClass = "semaforoVerde"; + break; + case "G": + cssClass = "semaforoGiallo"; + break; + case "R": + cssClass = "semaforoRosso"; + break; + case "S": + cssClass = "semaforoSpento"; + break; + default: + cssClass = "semaforoSpento"; + break; + } + return cssClass; + } + /// + /// fornisce una torta stati + /// + /// + /// + /// + /// + /// + public DataLayer_generic.serieDatiDataTable tortaStati(string idx, intervalloDate _intervallo, int minDurata, bool hideSpenta) + { + // leggo i dati e costituisco una collezione... + DataLayer_generic.serieDatiDataTable punti = new DataLayer_generic.serieDatiDataTable(); + // seleziono i dati... + MapoDb.DS_applicazione.ParetoDurateDataTable tabPareto; + if (hideSpenta) + { + tabPareto = taParetoDurate.GetParetoDurateHideSpenta(idx, minDurata, _intervallo.fine, _intervallo.inizio); + } + else + { + tabPareto = taParetoDurate.GetParetoDurateFilt(idx, minDurata, _intervallo.fine, _intervallo.inizio); + } + double totale = 1; + try + { + totale = (double)tabPareto.Compute("SUM(DurataMinuti)", ""); + } + catch + { + } + foreach (MapoDb.DS_applicazione.ParetoDurateRow riga in tabPareto.Rows) + { + punti.AddserieDatiRow((float)((Math.Round(((float)riga.DurataMinuti) / totale * 1000)) / 1000), coloreDaIdx(riga.IdxStato), statoDaIdx(riga.IdxStato), riga.InizioStato); + } + return punti; + } + /// + /// tipo evento da Idx + /// + /// + /// + public string tipoDaIdx(int idx) + { + return AnagraficaEventi.FindByIdxTipo(idx).Nome; + } + /// + /// Kanban da Idx + /// + /// + /// + public MapoDb.DS_applicazione.KanbanRow kanbanDaIdx(string idx) + { + return Kanban.FindByMatricolaKanban(idx); + } + /// + /// oggetto sequenza dati x sequencer + /// + /// IdxMacchina + /// + /// + public objSequencer sequenzaDati(string idxMacchina, intervalloDate _intervallo) + { + // leggo i dati e costituisco una collezione... + objSequencer _sequenza = new objSequencer(); + _sequenza.serieDati = new DataLayer_generic.serieDatiDataTable(); + // seleziono i dati... + MapoDb.DS_applicazione.DiarioDiBordoDataTable tabSeq = taDiarioDiBordo.GetSequenza(idxMacchina, _intervallo.inizio, _intervallo.fine); + foreach (MapoDb.DS_applicazione.DiarioDiBordoRow riga in tabSeq.Rows) + { + _sequenza.serieDati.AddserieDatiRow(riga.DurataMinuti, semaforoDaIdxStato(riga.IdxStato), string.Format("{0} {1}", riga.KanbanCode, riga.MatricolaKanban), riga.InizioStato); + } + // faccio trim x primo evento... + if (_sequenza.serieDati[0].timeData < _intervallo.inizio) + { + _sequenza.serieDati[0].valore -= _intervallo.inizio.Subtract(_sequenza.serieDati[0].timeData).TotalMinutes; + _sequenza.serieDati[0].timeData = _intervallo.inizio; + } + //...e ultimo evento... + int numValori = _sequenza.serieDati.Count - 1; + _sequenza.serieDati[numValori].valore = _intervallo.fine.Subtract(_sequenza.serieDati[numValori].timeData).TotalMinutes; + // salvo intervallo + _sequenza.intervallo = _intervallo; + return _sequenza; + } + /// + /// oggetto sequenza tempi ciclo x visualizzatore + /// + /// + /// + /// tempo target di riferimento (se zero calcola la media...) + /// + public objTempiCiclo tempiCiclo(string idxMacchina, intervalloDate _intervallo, decimal targetVal) + { + // inizializzo + objTempiCiclo _serie = new objTempiCiclo(); + _serie.serieDati = new DataLayer_generic.serieTimeValDataTable(); + // seleziono i dati + if (targetVal > 0) + { + _serie.targetVal = targetVal; + } + else + { + try + { + _serie.targetVal = taTempiCiclo.getMedByMacchinaPeriodo(idxMacchina, _intervallo.inizio, _intervallo.fine)[0].TCMedio; + } + catch + { } + } + int TcMaxFactor = memLayer.ML.confReadInt("TcMaxFactor"); + MapoDb.DS_ProdTempi.TempiCicloRilevatiDataTable tabTempi = taTempiCiclo.getByMacchinaPeriodoFiltMax(idxMacchina, _intervallo.inizio, _intervallo.fine, _serie.targetVal * TcMaxFactor); + // converto! + DateTime inizio; + foreach (MapoDb.DS_ProdTempi.TempiCicloRilevatiRow riga in tabTempi.Rows) + { + inizio = riga.DataOraRif.AddMinutes(Convert.ToDouble(-riga.TCMedio * riga.PzProd)); // tolgo il tempo necessario a produrre i pezzi indicati come inizio + _serie.serieDati.AddserieTimeValRow(inizio, riga.DataOraRif, riga.TCMedio, string.Format("Art: {0} - T.C. {1}'", riga.CodArticolo, riga.TCMedio), riga.CodArticolo); + } + // sistemo estremi x date e valori + try + { + _serie.maxVal = taTempiCiclo.getMaxByMacchinaPeriodo(idxMacchina, _intervallo.inizio, _intervallo.fine)[0].TCMedio; + if (_serie.maxVal > _serie.targetVal * TcMaxFactor) + { + _serie.maxVal = _serie.targetVal * TcMaxFactor; + } + } + catch + { } + try + { + _serie.minVal = taTempiCiclo.getMinByMacchinaPeriodo(idxMacchina, _intervallo.inizio, _intervallo.fine)[0].TCMedio; + } + catch + { } + _serie.intervallo = _intervallo; + + // imposto se abbia cambio pallet + _serie.palletChange = false; + try + { + _serie.palletChange = MapoDb.DataLayer.obj.taDatiMacchine.getByIdx(Convert.ToInt32(idxMacchina))[0].palletChange; + } + catch + { } + return _serie; + } + + #endregion +} diff --git a/MapoDb/selData.cs b/MapoDb/selData.cs new file mode 100644 index 00000000..61662dc0 --- /dev/null +++ b/MapoDb/selData.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using System.Text; +using SteamWare; + + +public class selData +{ + /// + /// classe accesso tabelle selettori + /// + public selData() + { + } + + /// + /// tabella elenco Articoli + /// + /// + /// + public MapoDb.DS_ProdTempi.AnagArticoliDataTable getSelAllArticoli() + { + return MapoDb.DataLayer.obj.taAnagArt.GetData(); + } + +} + diff --git a/MapoDb/utility.cs b/MapoDb/utility.cs new file mode 100644 index 00000000..ac471c3a --- /dev/null +++ b/MapoDb/utility.cs @@ -0,0 +1,274 @@ +using System; +using MapoDb; +using SteamWare; + +/// +/// Summary description for utility +/// +public class utility +{ + MapoDb.DS_applicazioneTableAdapters.DiarioDiBordoTableAdapter taStati; + MapoDb.DS_applicazioneTableAdapters.EventListTableAdapter taEventi; + MapoDb.DS_UtilityTableAdapters.StatoMacchineTableAdapter taSM; + + + /// + /// effettua primo step + /// * se 13,4,17 --> (da lavora a cambioPallet) pulizia righe tab elenco stati x caber 1 e 2 (cambio pallet "instabile" su lavorazione) + /// + /// + /// + /// + /// + public void ripulisciStepOne(string idxMacchina, int idxStatoFrom, int idxStatoTo, int idxEventoTo) + { + // recupero SOLO le righe delle caber,1 alla volta... + DS_applicazione.DiarioDiBordoDataTable tabella = taStati.GetShortChanging(idxMacchina, (float)1, idxStatoFrom); // prendo solo le lavorazioni... + foreach (DS_applicazione.DiarioDiBordoRow riga in tabella) + { + // modifico lavorazione in cambiopallet... + taStati.UpdateStato(idxStatoTo, riga.IdxMacchina, riga.InizioStato); + taEventi.UpdateTipo(idxEventoTo, riga.IdxMacchina, riga.InizioStato); + } + } + + /// + /// effettua secondo step (eliminazione e ricalcolo durate) pulizia righe tab elenco stati + /// * 14 --> x caber 1 e 2 (cambio pallet "instabile" su lavorazione) + /// + /// + /// + public void ripulisciStepTwo(string idxMacchina, int idxStato2reduce) + { + DS_applicazione.DiarioDiBordoDataTable tabella = taStati.GetData(); + // inizializzo riga... + DS_applicazione.DiarioDiBordoRow rigaCumulo = (DS_applicazione.DiarioDiBordoRow)tabella.Rows[0]; + // controllo ogni riga, salvo i valori cumsum e start dalla prima, cancello corrente ed infine inserisco riga di sunto delle contigue... + double durata; + foreach (DS_applicazione.DiarioDiBordoRow riga in tabella) + { + // verifico se sia identica alla precedente... + if (rigaCumulo.IdxStato == idxStato2reduce && riga.IdxStato == idxStato2reduce && rigaCumulo.KanbanCode == riga.KanbanCode && rigaCumulo.MatricolaKanban == riga.MatricolaKanban) + { + if (riga.InizioStato != rigaCumulo.InizioStato) + { + + durata = ((TimeSpan)riga.FineStato.Subtract(rigaCumulo.InizioStato)).TotalMinutes; + taStati.UpdateFineDurata(riga.FineStato, (float)durata, rigaCumulo.IdxMacchina, rigaCumulo.InizioStato); + // cancello riga duplicata + taStati.DeleteQuery(riga.IdxMacchina, riga.InizioStato); + } + } + else + { + rigaCumulo = riga; + } + } + } + + /// + /// effettua terzo step (eliminazione e ricalcolo durate) pulizia righe tab elenco eventi + /// * 17 --> x caber 1 e 2 (cambio pallet "instabile" su lavorazione) + /// + /// + /// + public void ripulisciStepThree(string idxMacchina, int idxEvento2del) + { + // adesso svuoto i duplicati dalla tab eventi... + DS_applicazione.EventListRow[] righe = (DS_applicazione.EventListRow[])taEventi.GetDataFiltered(idxMacchina, new DateTime(1999, 1, 1), new DateTime(9999, 1, 1)).Select("", "InizioStato ASC"); + DS_applicazione.EventListRow rigaEvPrev = (DS_applicazione.EventListRow)righe[0]; + foreach (DS_applicazione.EventListRow riga in righe) + { + if (riga.IdxTipo == idxEvento2del && rigaEvPrev.IdxTipo == idxEvento2del && riga.MatricolaKanban == rigaEvPrev.MatricolaKanban) + { + if (riga.InizioStato != rigaEvPrev.InizioStato) + { + taEventi.DeleteQuery(riga.IdxMacchina, riga.InizioStato); + } + } + else + { + rigaEvPrev = riga; + } + } + } + + /// + /// effettua terzo step (eliminazione e ricalcolo durate) pulizia righe tab elenco eventi + /// * 16/17 --> x caber 1 e 2 (cambio pallet "instabile" su lavorazione) + /// + /// + /// + public void ripulisciStepFour(string idxMacchina, int idxEventoPre, int idxEvento2del) + { + // adesso svuoto i duplicati dalla tab eventi... + DS_applicazione.EventListRow[] righe = (DS_applicazione.EventListRow[])taEventi.GetDataFiltered(idxMacchina, new DateTime(1999, 1, 1), new DateTime(9999, 1, 1)).Select("", "InizioStato ASC"); + DS_applicazione.EventListRow rigaEvPrev = (DS_applicazione.EventListRow)righe[0]; + foreach (DS_applicazione.EventListRow riga in righe) + { + if (riga.IdxTipo == idxEvento2del && rigaEvPrev.IdxTipo == idxEventoPre && riga.MatricolaKanban == rigaEvPrev.MatricolaKanban) + { + if (riga.InizioStato != rigaEvPrev.InizioStato) + { + taEventi.DeleteQuery(riga.IdxMacchina, riga.InizioStato); + } + } + else + { + rigaEvPrev = riga; + } + } + } + + /// + /// effettua ultimo step (eliminazione eventi) * 16/15 --> x Syntesy L11 + /// (HW - machining / HW - power on) + /// elimino se è (15/16) ed i 2 prec sono 15+16... + /// + /// + /// + /// + public void ripulisciStepFive(string idxMacchina, int idxEvento1, int idxEvento2) + { + // adesso svuoto i duplicati dalla tab eventi... + DS_applicazione.EventListRow[] righe = (DS_applicazione.EventListRow[])taEventi.GetDataFiltered(idxMacchina, new DateTime(1999, 1, 1), new DateTime(9999, 1, 1)).Select("", "InizioStato ASC"); + DS_applicazione.EventListRow rigaMenoUno = (DS_applicazione.EventListRow)righe[0]; + DS_applicazione.EventListRow rigaMenoDue = (DS_applicazione.EventListRow)righe[1]; + foreach (DS_applicazione.EventListRow riga in righe) + { + if (riga.InizioStato > rigaMenoDue.InizioStato) + { + if (riga.IdxTipo == idxEvento1 || riga.IdxTipo == idxEvento2) + { + if ((rigaMenoUno.IdxTipo == idxEvento1 && rigaMenoDue.IdxTipo == idxEvento2) || (rigaMenoUno.IdxTipo == idxEvento2 && rigaMenoDue.IdxTipo == idxEvento1)) + { + taEventi.DeleteQuery(riga.IdxMacchina, riga.InizioStato); + } + } + rigaMenoDue = rigaMenoUno; + rigaMenoUno = riga; + } + } + } + /// + /// effettua reset del db + /// + public void resetDb() + { + taSM.stp_ZZZ_riallineaDateDb(); + } + + /// + /// restituisce stringa formattata in HH:mm:ss + /// + /// + /// + public static string durataEventoHMS(double durataMinuti) + { + string durataFormattata = ""; + try + { + DateTime tempo = new DateTime(); + tempo = tempo.AddMinutes((double)durataMinuti); + durataFormattata = string.Format("{0:00}:{1:00}:{2:00}", tempo.Hour, tempo.Minute, tempo.Second); + } + catch + { + logger.lg.scriviLog(string.Format("errore calcolo durata: durataMinuti {0}", durataMinuti), tipoLog.EXCEPTION); + } + return durataFormattata; + } + + #region Inizializzazione + + + /// + /// init dei table adapters + /// + protected void initTA() + { + // istanzio oggetto + taStati = new MapoDb.DS_applicazioneTableAdapters.DiarioDiBordoTableAdapter(); + taEventi = new MapoDb.DS_applicazioneTableAdapters.EventListTableAdapter(); + taSM = new MapoDb.DS_UtilityTableAdapters.StatoMacchineTableAdapter(); + } + /// + /// effettua setup dei connection strings da web.config delal singola applicazione + /// + protected virtual void setupConnectionStringBase() + { + // connections del db + taStati.Connection.ConnectionString = memLayer.ML.confReadString("MoonProConnectionString"); + taEventi.Connection.ConnectionString = memLayer.ML.confReadString("MoonProConnectionString"); + taSM.Connection.ConnectionString = memLayer.ML.confReadString("MoonProConnectionString"); + } + + + protected utility() + { + initTA(); + setupConnectionStringBase(); + } + + /// + /// oggetto static per fare chiamate sul magazzino + /// + public static utility obj = new utility(); + + #endregion + +} +public enum tipoBarcode +{ + /// + /// tipo non riconosciuto + /// + nd, + /// + /// identifica una matricola operatore nel formato OPxxxxx (xxxxx è un intero che rappresenta la matricola, std fino a 8 cifre) + /// + matrOperatore, + /// + /// identifica un cartellino di tipo KANBAN + /// + kanban, + /// + /// identifica un codice per le attività di inizio/fine attrezzaggio e inizio/fine produzione + /// + attrezzaggio, + /// + /// identifica un codice per le attività di conferma produzione/fermi + /// + confermaProduzione, + /// + /// identifica un cartellino di dichiarazione fermata nel formato FExxxx dove xxxx è idxEvento dichiarato... + /// + dichiaraFermata, + /// + /// indentifica un codice di modifica turno + /// + modificaTurno +} + +/// +/// tipologia di evento (generico) segnalato +/// +public enum tipoEvento +{ + /// + /// evento di reset + /// + reset, + /// + /// richiesta editing + /// + edit, + /// + /// nuova selezione + /// + selection, + /// + /// eliminazione record(s) + /// + delete +} \ No newline at end of file