Merge branch 'develop'
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,196 @@
|
||||
integrazione OpAuth + num keyb
|
||||
0) nuova string...
|
||||
|
||||
/// <summary>
|
||||
/// dati x verifica CodSoggetto / matricola
|
||||
/// </summary>
|
||||
protected string preCodSogg = memLayer.ML.confReadString("prefCodSogg");
|
||||
|
||||
1) integrazione di
|
||||
PageLoad
|
||||
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
...
|
||||
checkNumKeyIn();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// verifico se ci sia in sessione un input da NumKeyb e nel caso lometto in barcodeIn e processo...
|
||||
/// </summary>
|
||||
private void checkNumKeyIn()
|
||||
{
|
||||
if (memLayer.ML.isInSessionObject("numKeyIn"))
|
||||
{
|
||||
barcodeIn = memLayer.ML.StringSessionObj("numKeyIn");
|
||||
// svuoto valore in sessione...
|
||||
memLayer.ML.emptySessionVal("numKeyIn");
|
||||
// controllo barcode...
|
||||
checkBarcode();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
2) integrazione di
|
||||
public tipoCodiceBarcode tipoBCode
|
||||
|
||||
int matricola = -1;
|
||||
// provo a convertire in intero barcode x verifica eventuale matricola...
|
||||
try
|
||||
{
|
||||
matricola = Convert.ToInt32(barcodeIn);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
|
||||
....
|
||||
|
||||
else if (barcodeIn.StartsWith(preCodSogg))
|
||||
{
|
||||
// cerco cod soggetto...
|
||||
if (DataProxy.obj.taTrascSogg.getByKey(barcodeIn, 0).Rows.Count == 1)
|
||||
{
|
||||
answ = tipoCodiceBarcode.Operatore;
|
||||
}
|
||||
}
|
||||
else if (matricola >= 0)
|
||||
{
|
||||
if (DataProxy.obj.taTrascSogg.getByKey("", matricola).Rows.Count == 1)
|
||||
{
|
||||
answ = tipoCodiceBarcode.Operatore;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
3) modifica di
|
||||
checkBarcode
|
||||
|
||||
case tipoCodiceBarcode.Operatore:
|
||||
// calcolo matricola utente
|
||||
int MatrUtente = -1;
|
||||
string preCodSogg = memLayer.ML.confReadString("prefCodSogg");
|
||||
if (barcodeIn.StartsWith(preCodSogg))
|
||||
{
|
||||
MatrUtente = DataProxy.obj.taTrascSogg.getByKey(barcodeIn, 0)[0].CodMatricola;
|
||||
}
|
||||
else
|
||||
{
|
||||
MatrUtente = Convert.ToInt32(barcodeIn);
|
||||
}
|
||||
if (MatrUtente >= 0)
|
||||
{
|
||||
// salvo in sessione operatore con AUTH
|
||||
OpAuth.startOpAuth(MatrUtente);
|
||||
// mostro che ho autorizzato...
|
||||
Postazione.messaggiText += traduci("userAuthRec");
|
||||
Postazione.CssClass = "stileComandoOk";
|
||||
Response.Redirect(user_std.pagCorrente);
|
||||
}
|
||||
else
|
||||
{
|
||||
Postazione.messaggiText += " - codice <b>non riconosciuto</b>!";
|
||||
Postazione.CssClass = "stileComandoND";
|
||||
}
|
||||
break;
|
||||
default:
|
||||
// cerco se sia "0" = reset utente...
|
||||
if (barcodeIn == memLayer.ML.CRS("resetCodSogg"))
|
||||
{
|
||||
// salvo in sessione operatore con AUTH
|
||||
OpAuth.stopAuth();
|
||||
// mostro che ho autorizzato...
|
||||
Postazione.messaggiText += traduci("userAuthRem");
|
||||
Postazione.CssClass = "stileComandoOk";
|
||||
Response.Redirect(user_std.pagCorrente);
|
||||
}
|
||||
...
|
||||
break;
|
||||
}
|
||||
...
|
||||
}
|
||||
#if false
|
||||
else
|
||||
{
|
||||
Postazione.messaggiText = traduci("AttesaBCode");
|
||||
Postazione.CssClass = "stileAttesa";
|
||||
}
|
||||
#endif
|
||||
doUpdate();
|
||||
|
||||
4) modifica procedure di stampa
|
||||
|
||||
protected void lbtStampaUDC_Click(object sender, EventArgs e)
|
||||
{
|
||||
bool needsRedirect = false;
|
||||
// verifico postazione x procedere...
|
||||
if (Postazione.printer != "n.d.")
|
||||
{
|
||||
// verifico auth utente OPPURE se NON sia richiesta...
|
||||
if (OpAuth.isAuth || !OpAuth.opAuthReq)
|
||||
{
|
||||
...
|
||||
try
|
||||
{
|
||||
// creo nuovo UDC del trattamento liquidi
|
||||
...
|
||||
|
||||
if (OpAuth.isAuth)
|
||||
{
|
||||
// salvo attributo dell'OpAuth...
|
||||
MagClass.magazzino.taAtt2UDC.Insert(newUdcChild, memLayer.ML.CRS("attrOpAuth"), OpAuth.currAuth.CodSoggetto, DateTime.Now, codSogg);
|
||||
// consumo una auth...
|
||||
OpAuth.currAuth.remAuth--;
|
||||
if (OpAuth.currAuth.remAuth == 0)
|
||||
{
|
||||
OpAuth.stopAuth();
|
||||
needsRedirect = true;
|
||||
}
|
||||
}
|
||||
|
||||
// registro creazione nuovo UDC
|
||||
...
|
||||
}
|
||||
...
|
||||
}
|
||||
else
|
||||
{
|
||||
Postazione.messaggiText = traduci("noOpAuth");
|
||||
Postazione.CssClass = "stileComandoKo";
|
||||
httpLog(string.Format("Errore manca OpAuth x UDC anime"), tipoLog.ERROR);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Response.Redirect("~/menu.aspx");
|
||||
}
|
||||
...
|
||||
|
||||
// raise dell'evento
|
||||
if (eh_reqUpdate != null)
|
||||
{
|
||||
eh_reqUpdate(this, new EventArgs());
|
||||
}
|
||||
if(needsRedirect)
|
||||
{
|
||||
Response.Redirect(user_std.pagCorrente);
|
||||
}
|
||||
}
|
||||
|
||||
5) svuoto note con reset..
|
||||
/// <summary>
|
||||
/// svuoto le note
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnEmptyNote_Click(object sender, EventArgs e)
|
||||
{
|
||||
txtNote.Text = "";
|
||||
Postazione.messaggiText = traduci("AttesaBCode");
|
||||
Postazione.CssClass = "stileAttesa";
|
||||
// raise dell'evento
|
||||
if (eh_reqUpdate != null)
|
||||
{
|
||||
eh_reqUpdate(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
+82
-21
@@ -1,4 +1,4 @@
|
||||
.warnRed {
|
||||
.warnRed {
|
||||
color: red;
|
||||
}
|
||||
.warnOrange {
|
||||
@@ -11,6 +11,35 @@
|
||||
padding: 0 !important;
|
||||
margin: 0 !important;
|
||||
}
|
||||
.noShadows {
|
||||
text-shadow: none;
|
||||
}
|
||||
.checkOk {
|
||||
color: #99FF99;
|
||||
}
|
||||
.checkKo {
|
||||
color: #5f2121;
|
||||
}
|
||||
.divNumKeyb {
|
||||
float: right;
|
||||
/*margin: 2px;*/
|
||||
padding: 4px;
|
||||
border: 4px solid rgba(120, 120, 185, 0.6);
|
||||
background-color: rgba(190, 190, 255, 0.4);
|
||||
width: 20%;
|
||||
min-width: 100px;
|
||||
min-height: 280px;
|
||||
}
|
||||
.divMain {
|
||||
float: none;
|
||||
}
|
||||
.divMainKeyb {
|
||||
float: right;
|
||||
width: 80%;
|
||||
}
|
||||
.img-thumbnail {
|
||||
max-width: 70%;
|
||||
}
|
||||
/*------------------------------------------------------------------
|
||||
[ navbar / .navbar ]
|
||||
*/
|
||||
@@ -34,6 +63,34 @@
|
||||
.navbar.navbar-inverse .navbar-form .search-query::-moz-placeholder {
|
||||
color: #666;
|
||||
}
|
||||
.nav > li > a {
|
||||
padding: 4px 8px;
|
||||
font-size: 1em;
|
||||
line-height: 1em;
|
||||
}
|
||||
.navbar-nav {
|
||||
margin: 5px 2px;
|
||||
}
|
||||
.navbar-brand {
|
||||
font-size: 1.2em;
|
||||
line-height: 1.3em;
|
||||
height: 30px;
|
||||
}
|
||||
.navbar-header {
|
||||
/*float: none;*/
|
||||
}
|
||||
.navbarSep {
|
||||
border-right: 1px solid #999;
|
||||
}
|
||||
.navbar > .container .navbar-brand,
|
||||
.navbar > .container-fluid .navbar-brand {
|
||||
margin-left: 0px;
|
||||
}
|
||||
.navbar-inverse .navbar-nav > .active > a {
|
||||
background: #333;
|
||||
color: #F90;
|
||||
margin: -5px;
|
||||
}
|
||||
/*------------------------------------------------------------------
|
||||
[ Subnavbar / .subnavbar ]
|
||||
*/
|
||||
@@ -539,7 +596,7 @@
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.navbar .btn-navbar {
|
||||
font-size: 18px;
|
||||
font-size: 16px;
|
||||
background: none;
|
||||
filter: none;
|
||||
border: none;
|
||||
@@ -556,24 +613,23 @@
|
||||
/* Extra small devices (phones, up to 480px) */
|
||||
/* No media query since this is the default in Bootstrap */
|
||||
@media (max-width: 768px) {
|
||||
.navbar {
|
||||
padding-left: 10px;
|
||||
padding-right: 10px;
|
||||
margin-right: -20px;
|
||||
margin-left: -20px;
|
||||
body {
|
||||
font-size: 12px;
|
||||
}
|
||||
.navbar .navbar-nav > li > .dropdown-menu::before,
|
||||
.navbar .navbar-nav > li > .dropdown-menu::after {
|
||||
display: none;
|
||||
.navbar .mainnav > li > a {
|
||||
padding: 0 10px;
|
||||
font-size: 1em;
|
||||
line-height: 1em;
|
||||
}
|
||||
.navbar-nav > li > a {
|
||||
padding-top: 10px;
|
||||
padding-bottom: 10px;
|
||||
font-size: 1em;
|
||||
line-height: 1em;
|
||||
}
|
||||
.subnavbar .subnav-toggle {
|
||||
display: block;
|
||||
}
|
||||
#main {
|
||||
padding: 0 10px;
|
||||
margin-right: -20px;
|
||||
margin-left: -20px;
|
||||
}
|
||||
.extra {
|
||||
margin-right: -20px;
|
||||
margin-left: -20px;
|
||||
@@ -647,12 +703,12 @@
|
||||
}
|
||||
.subnavbar .mainnav > li > a {
|
||||
display: block;
|
||||
padding-top: 5px;
|
||||
padding-bottom: 5px;
|
||||
margin-right: .5em;
|
||||
color: #CCC;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
padding: 0 10px;
|
||||
font-size: 1em;
|
||||
line-height: 1em;
|
||||
}
|
||||
.subnavbar .mainnav > li > a > span {
|
||||
display: inline;
|
||||
@@ -710,15 +766,20 @@
|
||||
/* Small devices (tablets, 768px and up) */
|
||||
@media (min-width: 768px) {
|
||||
.subnav-collapse.collapse {
|
||||
display: block!important;
|
||||
height: auto!important;
|
||||
display: block !important;
|
||||
height: auto !important;
|
||||
padding-bottom: 0;
|
||||
overflow: visible!important;
|
||||
overflow: visible !important;
|
||||
}
|
||||
}
|
||||
/* Medium devices (desktops, 992px and up) */
|
||||
/* Large devices (large desktops, 1200px and up) */
|
||||
@media (min-width: 1200px) {
|
||||
.nav > li > a {
|
||||
padding: 4px 8px;
|
||||
font-size: 1.2em;
|
||||
line-height: 1.2em;
|
||||
}
|
||||
.navbar .container,
|
||||
.subnavbar .container {
|
||||
padding-right: 0;
|
||||
|
||||
+583
-505
File diff suppressed because it is too large
Load Diff
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+11
-2
@@ -1,5 +1,8 @@
|
||||
<%@ Master Language="C#" MasterPageFile="~/Bootstrap.Master" AutoEventWireup="true" CodeBehind="FullPage.master.cs" Inherits="GMW.FullPage" %>
|
||||
|
||||
<%@ Register Src="~/WebUserControls/mod_numKey.ascx" TagPrefix="uc1" TagName="mod_numKey" %>
|
||||
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="server">
|
||||
<asp:ContentPlaceHolder runat="server" ID="HeadContent">
|
||||
</asp:ContentPlaceHolder>
|
||||
@@ -9,6 +12,12 @@
|
||||
</asp:ContentPlaceHolder>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="Main" runat="server">
|
||||
<asp:ContentPlaceHolder runat="server" ID="MCon">
|
||||
</asp:ContentPlaceHolder>
|
||||
<div runat="server" id="divNumKeyb" class="divNumKeyb">
|
||||
NUMERIC KEYPAD
|
||||
<uc1:mod_numKey runat="server" id="mod_numKey" />
|
||||
</div>
|
||||
<div runat="server" id="divMain" class="divMain">
|
||||
<asp:ContentPlaceHolder runat="server" ID="MCon">
|
||||
</asp:ContentPlaceHolder>
|
||||
</div>
|
||||
</asp:Content>
|
||||
|
||||
+31
-2
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using SteamWare;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
@@ -11,7 +12,35 @@ namespace GMW
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
if(!Page.IsPostBack)
|
||||
{
|
||||
// se è richiesto mostro calcolatrice e di conseguenza imposto DIV... altrimenti
|
||||
if(showCalc)
|
||||
{
|
||||
divMain.Attributes.Remove("class");
|
||||
divMain.Attributes.Add("class", "divMainKeyb");
|
||||
}
|
||||
divNumKeyb.Visible = showCalc;
|
||||
}
|
||||
}
|
||||
|
||||
protected bool showCalc
|
||||
{
|
||||
get
|
||||
{
|
||||
bool answ = false;
|
||||
// cerco da sessione SE C'E'...
|
||||
if(memLayer.ML.isInSessionObject("showNumKey"))
|
||||
{
|
||||
answ = memLayer.ML.BoolSessionObj("showNumKey");
|
||||
}
|
||||
else
|
||||
{
|
||||
// cerco da web.config
|
||||
answ = memLayer.ML.CRB("showNumKey");
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Generated
+27
@@ -30,6 +30,33 @@ namespace GMW {
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ContentPlaceHolder FeaturedContent;
|
||||
|
||||
/// <summary>
|
||||
/// divNumKeyb control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divNumKeyb;
|
||||
|
||||
/// <summary>
|
||||
/// mod_numKey control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::GMW.WebUserControls.mod_numKey mod_numKey;
|
||||
|
||||
/// <summary>
|
||||
/// divMain control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divMain;
|
||||
|
||||
/// <summary>
|
||||
/// MCon control.
|
||||
/// </summary>
|
||||
|
||||
+13
-1
@@ -250,6 +250,7 @@
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="App_Readme\AppuntiFixAuth.txt" />
|
||||
<Content Include="App_Readme\Elmah.txt" />
|
||||
<Content Include="AssegnaNC.aspx" />
|
||||
<Content Include="consumoAnime.aspx" />
|
||||
@@ -446,8 +447,11 @@
|
||||
<Content Include="fonts\glyphicons-halflings-regular.eot" />
|
||||
<Content Include="Content\bootstrap-theme.less" />
|
||||
<Content Include="Content\bootstrap.less" />
|
||||
<None Include="compilerconfig.json" />
|
||||
<Content Include="compilerconfig.json.defaults">
|
||||
<DependentUpon>compilerconfig.json</DependentUpon>
|
||||
</Content>
|
||||
<None Include="Properties\PublishProfiles\IIS02_SP.pubxml" />
|
||||
<None Include="Properties\PublishProfiles\Test218.pubxml" />
|
||||
<Content Include="Post_SterrTaglio.aspx" />
|
||||
<Content Include="Post_SterrTaglioFC.aspx" />
|
||||
<Content Include="RimuoviNC.aspx" />
|
||||
@@ -477,6 +481,7 @@
|
||||
<Content Include="WebUserControls\mod_LiqDtAnom.ascx" />
|
||||
<Content Include="WebUserControls\mod_listAL.ascx" />
|
||||
<Content Include="WebUserControls\mod_listDtx.ascx" />
|
||||
<Content Include="WebUserControls\mod_numKey.ascx" />
|
||||
<Content Include="WebUserControls\mod_PostFusioni.ascx" />
|
||||
<Content Include="WebUserControls\mod_postFusioniBCode.ascx" />
|
||||
<Content Include="WebUserControls\mod_PostLiq_DT.ascx" />
|
||||
@@ -1522,6 +1527,13 @@
|
||||
<Compile Include="WebUserControls\mod_metodiNoSearch.ascx.designer.cs">
|
||||
<DependentUpon>mod_metodiNoSearch.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_numKey.ascx.cs">
|
||||
<DependentUpon>mod_numKey.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_numKey.ascx.designer.cs">
|
||||
<DependentUpon>mod_numKey.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_nuovaListaPrelievo.ascx.cs">
|
||||
<DependentUpon>mod_nuovaListaPrelievo.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
|
||||
<PropertyGroup>
|
||||
<ProjectView>ShowAllFiles</ProjectView>
|
||||
<NameOfLastUsedPublishProfile>TK_test</NameOfLastUsedPublishProfile>
|
||||
<NameOfLastUsedPublishProfile>IIS02_TK</NameOfLastUsedPublishProfile>
|
||||
</PropertyGroup>
|
||||
<ProjectExtensions>
|
||||
<VisualStudio>
|
||||
|
||||
@@ -18,11 +18,11 @@ by editing this MSBuild file. In order to learn more about this please visit htt
|
||||
<ObjectGroup Name="GMW_data.Properties.Settings.GMWConnectionString" Order="1" Enabled="False">
|
||||
<Destination Path="" />
|
||||
<Object Type="DbDacFx">
|
||||
<PreSource Path="Data Source=10.74.82.217\sql2008r2;InitialCatalog=TK_GMW;Persist Security Info=True;User ID=sa;Password=keyhammer" includeData="False" />
|
||||
<PreSource Path="Data Source=10.74.82.217\sql2008r2;Initial Catalog=TK_GMW;Persist Security Info=True;User ID=sa;Password=keyhammer" includeData="False" />
|
||||
<Source Path="$(IntermediateOutputPath)AutoScripts\GMW_data.Properties.Settings.GMWConnectionString_IncrementalSchemaOnly.dacpac" dacpacAction="Deploy" />
|
||||
</Object>
|
||||
<UpdateFrom Type="Web.Config">
|
||||
<Source MatchValue="Data Source=10.74.82.217\sql2008r2;InitialCatalog=TK_GMW;Persist Security Info=True;User ID=sa;Password=keyhammer" MatchAttributes="$(UpdateFromConnectionStringAttributes)" />
|
||||
<Source MatchValue="Data Source=10.74.82.217\sql2008r2;Initial Catalog=TK_GMW;Persist Security Info=True;User ID=sa;Password=keyhammer" MatchAttributes="$(UpdateFromConnectionStringAttributes)" />
|
||||
</UpdateFrom>
|
||||
</ObjectGroup>
|
||||
</Objects>
|
||||
|
||||
@@ -1,23 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
|
||||
by editing this MSBuild file. In order to learn more about this please visit http://go.microsoft.com/fwlink/?LinkID=208121.
|
||||
-->
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<WebPublishMethod>MSDeploy</WebPublishMethod>
|
||||
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
|
||||
<LastUsedPlatform>Any CPU</LastUsedPlatform>
|
||||
<SiteUrlToLaunchAfterPublish />
|
||||
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
|
||||
<ExcludeApp_Data>False</ExcludeApp_Data>
|
||||
<MSDeployServiceURL>https://10.74.82.218:8172/MsDeploy.axd</MSDeployServiceURL>
|
||||
<DeployIisAppPath>Default Web Site/GMW</DeployIisAppPath>
|
||||
<RemoteSitePhysicalPath />
|
||||
<SkipExtraFilesOnServer>True</SkipExtraFilesOnServer>
|
||||
<MSDeployPublishMethod>WMSVC</MSDeployPublishMethod>
|
||||
<EnableMSDeployBackup>True</EnableMSDeployBackup>
|
||||
<UserName>Administrator</UserName>
|
||||
<_SavePWD>True</_SavePWD>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
@@ -1,11 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
|
||||
by editing this MSBuild file. In order to learn more about this please visit http://go.microsoft.com/fwlink/?LinkID=208121.
|
||||
-->
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<TimeStampOfAssociatedLegacyPublishXmlFile>2014-10-23T19:00:49.9701048+02:00</TimeStampOfAssociatedLegacyPublishXmlFile>
|
||||
<EncryptedPassword>AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAADfdPkbM5mUeaV6YvQx8NEwAAAAACAAAAAAADZgAAwAAAABAAAABretqmeAwoN8dwwUym0l6uAAAAAASAAACgAAAAEAAAANS9Yunkzc8Nyn9LraBErMgQAAAArKgvGhTAwNnTbdGD8tmWohQAAAC/UZP/r9BIjbarE1TjmEMK+wszYw==</EncryptedPassword>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
@@ -25,6 +25,9 @@
|
||||
<add key="_logLevel" value="5" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!--Default values vari-->
|
||||
<add key="numGgToReloadRQ" value="120" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!--OpAuth e NumKey-->
|
||||
<add key="showNumKey" value="false" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="enableOpAuth" value="false" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!--Datamatrix-->
|
||||
<add key="showReloadDataMatrix" value="true" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!--Imballi-->
|
||||
|
||||
@@ -24,6 +24,9 @@
|
||||
<add key="updateTablet" value="true" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!--Default values vari-->
|
||||
<add key="numGgToReloadRQ" value="60" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!--OpAuth e NumKey-->
|
||||
<add key="showNumKey" value="false" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="enableOpAuth" value="false" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!--Datamatrix-->
|
||||
<add key="showReloadDataMatrix" value="true" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!--Imballi-->
|
||||
|
||||
@@ -22,6 +22,9 @@
|
||||
<add key="urlWebServer" value="http://SRV-PRODTK01/GMW/" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="urlRT" value="http://SRV-PRODTK01/GMW-RT/" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="_logLevel" value="5" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!--OpAuth e NumKey-->
|
||||
<add key="showNumKey" value="false" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="enableOpAuth" value="true" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!--Datamatrix-->
|
||||
<add key="showReloadDataMatrix" value="false" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!--Imballi-->
|
||||
|
||||
@@ -21,6 +21,9 @@
|
||||
<add key="SiteName" value="Tekal" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="urlWebServer" value="http://SRV-PRODTK01/GMW_Test/" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="urlRT" value="http://SRV-PRODTK01/GMW-RT_Test/" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!--OpAuth e NumKey-->
|
||||
<add key="showNumKey" value="false" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="enableOpAuth" value="true" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!--Datamatrix-->
|
||||
<add key="showReloadDataMatrix" value="false" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!--Imballi-->
|
||||
@@ -46,7 +49,7 @@
|
||||
<add key="IdxPosizioneOdette" value="24" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="IdxPosizioneLiquidi" value="24" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="IdxPosizioneTrattamenti" value="8484" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="IdxPosizioneFusi" value="" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="IdxPosizioneFusi" value="7" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="IdxPosizioneSterrati" value="9" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="IdxPosizioneSterratiTemp" value="1009" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="IdxPosizioneTrattati" value="11" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
|
||||
@@ -70,6 +70,15 @@
|
||||
<!--gestione clock-->
|
||||
<add key="intUpdateClock_ms" value="1000" />
|
||||
<add key="maxRefreshToReload" value="60" />
|
||||
<!--gestione numKey-->
|
||||
<add key="showNumKey" value="false" />
|
||||
<!--setup gestione OpAuth-->
|
||||
<add key="enableOpAuth" value="true" />
|
||||
<add key="prefCodSogg" value="O" />
|
||||
<add key="resetCodSogg" value="000" />
|
||||
<add key="defRemAuth" value="1" />
|
||||
<add key="defMinScad" value="15" />
|
||||
<add key="attrOpAuth" value="OC" />
|
||||
<!--area temp-->
|
||||
<add key="maxAgeTempAreaHours" value="24" />
|
||||
<!--area logger-->
|
||||
|
||||
@@ -28,6 +28,10 @@ namespace GMW.WebUserControls
|
||||
/// tipo di evento associato alla modifica qta dell'UDC
|
||||
/// </summary>
|
||||
protected string eventoUDC_qta = "UDC_QTY";
|
||||
/// <summary>
|
||||
/// dati x verifica CodSoggetto / matricola
|
||||
/// </summary>
|
||||
protected string preCodSogg = memLayer.ML.confReadString("prefCodSogg");
|
||||
public event EventHandler eh_reqUpdate;
|
||||
/// <summary>
|
||||
/// stringa UID univoca
|
||||
@@ -53,11 +57,26 @@ namespace GMW.WebUserControls
|
||||
destAL = AlByCella;
|
||||
traduciObj();
|
||||
idxCella = Postazione.currIdxCella;
|
||||
checkNumKeyIn();
|
||||
}
|
||||
setVisibility();
|
||||
doChecks();
|
||||
}
|
||||
/// <summary>
|
||||
/// verifico se ci sia in sessione un input da NumKeyb e nel caso lometto in barcodeIn e processo...
|
||||
/// </summary>
|
||||
private void checkNumKeyIn()
|
||||
{
|
||||
if (memLayer.ML.isInSessionObject("numKeyIn"))
|
||||
{
|
||||
barcodeIn = memLayer.ML.StringSessionObj("numKeyIn");
|
||||
// svuoto valore in sessione...
|
||||
memLayer.ML.emptySessionVal("numKeyIn");
|
||||
// controllo barcode...
|
||||
checkBarcode();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// IDX cella associata alla linea corrente
|
||||
/// </summary>
|
||||
protected int idxCella
|
||||
@@ -295,6 +314,14 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
tipoCodiceBarcode answ = tipoCodiceBarcode.ND;
|
||||
int trovati = 0;
|
||||
int matricola = -1;
|
||||
// provo a convertire in intero barcode x verifica eventuale matricola...
|
||||
try
|
||||
{
|
||||
matricola = Convert.ToInt32(barcodeIn);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
// controllo non si tratti di un comando...
|
||||
string preCmd = memLayer.ML.confReadString("prefComandi");
|
||||
if (barcodeIn.StartsWith(preCmd))
|
||||
@@ -305,6 +332,21 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
answ = tipoCodiceBarcode.Particolare;
|
||||
}
|
||||
else if (barcodeIn.StartsWith(preCodSogg))
|
||||
{
|
||||
// cerco cod soggetto...
|
||||
if (DataProxy.obj.taTrascSogg.getByKey(barcodeIn, 0).Rows.Count == 1)
|
||||
{
|
||||
answ = tipoCodiceBarcode.Operatore;
|
||||
}
|
||||
}
|
||||
else if (matricola >= 0)
|
||||
{
|
||||
if (DataProxy.obj.taTrascSogg.getByKey("", matricola).Rows.Count == 1)
|
||||
{
|
||||
answ = tipoCodiceBarcode.Operatore;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
try
|
||||
@@ -378,18 +420,50 @@ namespace GMW.WebUserControls
|
||||
case tipoCodiceBarcode.UDC:
|
||||
// non fa nulla
|
||||
break;
|
||||
case tipoCodiceBarcode.Operatore:
|
||||
// calcolo matricola utente
|
||||
int MatrUtente = -1;
|
||||
string preCodSogg = memLayer.ML.confReadString("prefCodSogg");
|
||||
if (barcodeIn.StartsWith(preCodSogg))
|
||||
{
|
||||
MatrUtente = DataProxy.obj.taTrascSogg.getByKey(barcodeIn, 0)[0].CodMatricola;
|
||||
}
|
||||
else
|
||||
{
|
||||
MatrUtente = Convert.ToInt32(barcodeIn);
|
||||
}
|
||||
if (MatrUtente >= 0)
|
||||
{
|
||||
// salvo in sessione operatore con AUTH
|
||||
OpAuth.startOpAuth(MatrUtente);
|
||||
// mostro che ho autorizzato...
|
||||
Postazione.messaggiText += traduci("userAuthRec");
|
||||
Postazione.CssClass = "stileComandoOk";
|
||||
Response.Redirect(user_std.pagCorrente);
|
||||
}
|
||||
else
|
||||
{
|
||||
Postazione.messaggiText += " - codice <b>non riconosciuto</b>!";
|
||||
Postazione.CssClass = "stileComandoND";
|
||||
}
|
||||
break;
|
||||
default:
|
||||
// cerco se sia "0" = reset utente...
|
||||
if (barcodeIn == memLayer.ML.CRS("resetCodSogg"))
|
||||
{
|
||||
// salvo in sessione operatore con AUTH
|
||||
OpAuth.stopAuth();
|
||||
// mostro che ho autorizzato...
|
||||
Postazione.messaggiText += traduci("userAuthRem");
|
||||
Postazione.CssClass = "stileComandoOk";
|
||||
Response.Redirect(user_std.pagCorrente);
|
||||
}
|
||||
Postazione.messaggiText += " - codice <b>non riconosciuto</b>!";
|
||||
Postazione.CssClass = "stileComandoND";
|
||||
break;
|
||||
}
|
||||
barcodeIn = "";
|
||||
}
|
||||
else
|
||||
{
|
||||
Postazione.messaggiText = traduci("AttesaBCode");
|
||||
Postazione.CssClass = "stileAttesa";
|
||||
}
|
||||
txtBarcode.Focus();
|
||||
}
|
||||
|
||||
@@ -489,42 +563,67 @@ namespace GMW.WebUserControls
|
||||
/// <param name="e"></param>
|
||||
protected void btnStampa_Click(object sender, EventArgs e)
|
||||
{
|
||||
bool needsRedirect = false;
|
||||
string[] stringSeparators = new string[] { "#" };
|
||||
// verifico postazione x procedere...
|
||||
if (Postazione.printer != "n.d.")
|
||||
{
|
||||
DateTime adesso = DateTime.Now;
|
||||
string noteTrim = txtNote.Text.Trim();
|
||||
string lineaCesta = string.Format("{0} | cesta: {1}", Postazione.currNomeLinea, numCesta);
|
||||
noteTrim = string.Format("{0}{1}{2}", lineaCesta, Environment.NewLine, noteTrim);
|
||||
|
||||
// effettuo controlli che cod_soggetto, cod particolare e destAL siano disponibili...
|
||||
if (MagClass.magazzino.CodSoggCurrUser != "" && currParticolare != "" && destAL != "ALS00")
|
||||
// verifico auth utente OPPURE se NON sia richiesta...
|
||||
if (OpAuth.isAuth || !OpAuth.opAuthReq)
|
||||
{
|
||||
// aggiorno note e posizione da temp a definitiva x UDC...
|
||||
MagClass.magazzino.updateNotePosizioneUDC(currUDC, noteTrim, memLayer.ML.confReadInt("IdxPosizioneSterrati"));
|
||||
// registro creazione nuovo UDC
|
||||
MagClass.magazzino.taSAO.insertQuery(adesso, MagClass.magazzino.CodSoggCurrUser, Postazione.name, Postazione.IP, currUDC, currParticolare, "creaUDC", string.Format("Creato nuovo UDC Fusi Sterr Taglio, qta: {0} {1}", qta, ""));
|
||||
// metto attributo FC
|
||||
MagClass.magazzino.taAtt2UDC.Insert(currUDC, "FS", "", DateTime.Now, MagClass.magazzino.CodSoggCurrUser);
|
||||
// tolgo UDC da AL corrente...
|
||||
MagClass.magazzino.taAL2UDC.deleteQuery(destAL, currUDC);
|
||||
DateTime adesso = DateTime.Now;
|
||||
string noteTrim = txtNote.Text.Trim();
|
||||
string lineaCesta = string.Format("{0} | cesta: {1}", Postazione.currNomeLinea, numCesta);
|
||||
noteTrim = string.Format("{0}{1}{2}", lineaCesta, Environment.NewLine, noteTrim);
|
||||
|
||||
// ora stampo il nuovo cartellino!!!
|
||||
MagClass.magazzino.stampaUdc(currUDC, Postazione.printer, tipoCartellino.cartSterr, Request.UserHostName);
|
||||
// incremento timing...
|
||||
adesso = adesso.AddSeconds(2);
|
||||
// registro stampa nuovo UDC
|
||||
MagClass.magazzino.taSAO.insertQuery(adesso, MagClass.magazzino.CodSoggCurrUser, Postazione.name, Postazione.IP, currUDC, currParticolare, "stampaUDC", "Stampato UDC Fusione-Sterratura-Taglio");
|
||||
// svuoto campo cesta...
|
||||
numCesta = "";
|
||||
// resetto
|
||||
doResetData();
|
||||
// effettuo controlli che cod_soggetto, cod particolare e destAL siano disponibili...
|
||||
if (MagClass.magazzino.CodSoggCurrUser != "" && currParticolare != "" && destAL != "ALS00")
|
||||
{
|
||||
// aggiorno note e posizione da temp a definitiva x UDC...
|
||||
MagClass.magazzino.updateNotePosizioneUDC(currUDC, noteTrim, memLayer.ML.confReadInt("IdxPosizioneSterrati"));
|
||||
|
||||
if (OpAuth.isAuth)
|
||||
{
|
||||
// salvo attributo dell'OpAuth...
|
||||
MagClass.magazzino.taAtt2UDC.Insert(currUDC, memLayer.ML.CRS("attrOpAuth"), OpAuth.currAuth.CodSoggetto, DateTime.Now, MagClass.magazzino.CodSoggCurrUser);
|
||||
// consumo una auth...
|
||||
OpAuth.currAuth.remAuth--;
|
||||
if (OpAuth.currAuth.remAuth == 0)
|
||||
{
|
||||
OpAuth.stopAuth();
|
||||
needsRedirect = true;
|
||||
}
|
||||
}
|
||||
|
||||
// registro creazione nuovo UDC
|
||||
MagClass.magazzino.taSAO.insertQuery(adesso, MagClass.magazzino.CodSoggCurrUser, Postazione.name, Postazione.IP, currUDC, currParticolare, "creaUDC", string.Format("Creato nuovo UDC Fusi Sterr Taglio, qta: {0} {1}", qta, ""));
|
||||
// metto attributo FC
|
||||
MagClass.magazzino.taAtt2UDC.Insert(currUDC, "FS", "", DateTime.Now, MagClass.magazzino.CodSoggCurrUser);
|
||||
// tolgo UDC da AL corrente...
|
||||
MagClass.magazzino.taAL2UDC.deleteQuery(destAL, currUDC);
|
||||
|
||||
// ora stampo il nuovo cartellino!!!
|
||||
MagClass.magazzino.stampaUdc(currUDC, Postazione.printer, tipoCartellino.cartSterr, Request.UserHostName);
|
||||
// incremento timing...
|
||||
adesso = adesso.AddSeconds(2);
|
||||
// registro stampa nuovo UDC
|
||||
MagClass.magazzino.taSAO.insertQuery(adesso, MagClass.magazzino.CodSoggCurrUser, Postazione.name, Postazione.IP, currUDC, currParticolare, "stampaUDC", "Stampato UDC Fusione-Sterratura-Taglio");
|
||||
// svuoto campo cesta...
|
||||
numCesta = "";
|
||||
// resetto
|
||||
doResetData();
|
||||
}
|
||||
else
|
||||
{
|
||||
httpLog(string.Format("FST, Errore persi utente/particolare, ricarico!"), tipoLog.ERROR);
|
||||
Response.Redirect("~/login.aspx");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
httpLog(string.Format("FST, Errore persi utente/particolare, ricarico!"), tipoLog.ERROR);
|
||||
Response.Redirect("~/login.aspx");
|
||||
Postazione.messaggiText = traduci("noOpAuth");
|
||||
Postazione.CssClass = "stileComandoKo";
|
||||
httpLog(string.Format("Errore manca OpAuth x UDC anime"), tipoLog.ERROR);
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -537,6 +636,10 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
eh_reqUpdate(this, new EventArgs());
|
||||
}
|
||||
if (needsRedirect)
|
||||
{
|
||||
Response.Redirect(user_std.pagCorrente);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -581,6 +684,13 @@ namespace GMW.WebUserControls
|
||||
protected void btnEmptyNote_Click(object sender, EventArgs e)
|
||||
{
|
||||
txtNote.Text = "";
|
||||
Postazione.messaggiText = traduci("AttesaBCode");
|
||||
Postazione.CssClass = "stileAttesa";
|
||||
// raise dell'evento
|
||||
if (eh_reqUpdate != null)
|
||||
{
|
||||
eh_reqUpdate(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -20,6 +20,10 @@ namespace GMW.WebUserControls
|
||||
/// stato associato (hard coded) a ANIME
|
||||
/// </summary>
|
||||
protected string statoUDC = "Anim";
|
||||
/// <summary>
|
||||
/// dati x verifica CodSoggetto / matricola
|
||||
/// </summary>
|
||||
protected string preCodSogg = memLayer.ML.confReadString("prefCodSogg");
|
||||
public event EventHandler eh_reqUpdate;
|
||||
/// <summary>
|
||||
/// stringa UID univoca
|
||||
@@ -41,6 +45,7 @@ namespace GMW.WebUserControls
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
traduciObj();
|
||||
checkNumKeyIn();
|
||||
}
|
||||
doChecks();
|
||||
if (currParticolare != "")
|
||||
@@ -67,6 +72,21 @@ namespace GMW.WebUserControls
|
||||
lblDisegno.Text = "";
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// verifico se ci sia in sessione un input da NumKeyb e nel caso lometto in barcodeIn e processo...
|
||||
/// </summary>
|
||||
private void checkNumKeyIn()
|
||||
{
|
||||
if (memLayer.ML.isInSessionObject("numKeyIn"))
|
||||
{
|
||||
barcodeIn = memLayer.ML.StringSessionObj("numKeyIn");
|
||||
// svuoto valore in sessione...
|
||||
memLayer.ML.emptySessionVal("numKeyIn");
|
||||
// controllo barcode...
|
||||
checkBarcode();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// richiesta (ri)stampa UDC
|
||||
/// </summary>
|
||||
@@ -207,6 +227,15 @@ namespace GMW.WebUserControls
|
||||
int trovati = 0;
|
||||
// controllo non si tratti di un comando...
|
||||
string preCmd = memLayer.ML.confReadString("prefComandi");
|
||||
int matricola = -1;
|
||||
// provo a convertire in intero barcode x verifica eventuale matricola...
|
||||
try
|
||||
{
|
||||
matricola = Convert.ToInt32(barcodeIn);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
// decodifico!
|
||||
if (barcodeIn.StartsWith(preCmd))
|
||||
{
|
||||
answ = tipoCodiceBarcode.Comando;
|
||||
@@ -215,6 +244,21 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
answ = tipoCodiceBarcode.Particolare;
|
||||
}
|
||||
else if (barcodeIn.StartsWith(preCodSogg))
|
||||
{
|
||||
// cerco cod soggetto...
|
||||
if (DataProxy.obj.taTrascSogg.getByKey(barcodeIn, 0).Rows.Count == 1)
|
||||
{
|
||||
answ = tipoCodiceBarcode.Operatore;
|
||||
}
|
||||
}
|
||||
else if (matricola >= 0)
|
||||
{
|
||||
if (DataProxy.obj.taTrascSogg.getByKey("", matricola).Rows.Count == 1)
|
||||
{
|
||||
answ = tipoCodiceBarcode.Operatore;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
try
|
||||
@@ -287,12 +331,12 @@ namespace GMW.WebUserControls
|
||||
if (DataProxy.obj.taAnagParticolari.getByParticolare(currParticolare).Rows.Count == 0)
|
||||
{
|
||||
currParticolare = "";
|
||||
Postazione.messaggiText += " - codice particolare non valido / non trovato in RILPRO.";
|
||||
Postazione.messaggiText += traduci("ERR-ANM-001");
|
||||
Postazione.CssClass = "stileComandoKo";
|
||||
}
|
||||
else
|
||||
{
|
||||
Postazione.messaggiText += " - impostato particolare!";
|
||||
Postazione.messaggiText += traduci("partSelected");
|
||||
Postazione.CssClass = "stileComandoOk";
|
||||
}
|
||||
// leggo la qta dell'ultimo UDC del particolare, SE C'E', e la imposto...
|
||||
@@ -311,33 +355,68 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
// recupero il particolare dai dati del cartellino preesistente
|
||||
currParticolare = DataProxy.obj.taCartellini.stp_getByUdc(barcodeIn)[0].Particolare;
|
||||
// controllo esista il particolare
|
||||
if (DataProxy.obj.taAnagParticolari.getByParticolare(currParticolare).Rows.Count == 0)
|
||||
// controllo esista!!!
|
||||
bool partExists = DataProxy.obj.taAnagParticolari.getByParticolare(currParticolare).Rows.Count != 0;
|
||||
// controllo sia anima!!!
|
||||
bool isAnima = TermClass.Ter.isAnima(currParticolare);
|
||||
// controllo esista il particolare e sia anima
|
||||
if(partExists && isAnima)
|
||||
{
|
||||
currParticolare = "";
|
||||
Postazione.messaggiText += " - codice particolare da UDC non valido / non trovato in RILPRO.";
|
||||
Postazione.CssClass = "stileComandoKo";
|
||||
Postazione.messaggiText += traduci("partSelected");
|
||||
Postazione.CssClass = "stileComandoOk";
|
||||
}
|
||||
else
|
||||
{
|
||||
Postazione.messaggiText += " - impostato particolare!";
|
||||
Postazione.CssClass = "stileComandoOk";
|
||||
currParticolare = "";
|
||||
Postazione.messaggiText += traduci("ERR-ANM-001");
|
||||
Postazione.CssClass = "stileComandoKo";
|
||||
}
|
||||
}
|
||||
|
||||
break;
|
||||
case tipoCodiceBarcode.Operatore:
|
||||
// calcolo matricola utente
|
||||
int MatrUtente = -1;
|
||||
if (barcodeIn.StartsWith(preCodSogg))
|
||||
{
|
||||
MatrUtente = DataProxy.obj.taTrascSogg.getByKey(barcodeIn, 0)[0].CodMatricola;
|
||||
}
|
||||
else
|
||||
{
|
||||
MatrUtente = Convert.ToInt32(barcodeIn);
|
||||
}
|
||||
if (MatrUtente >= 0)
|
||||
{
|
||||
// salvo in sessione operatore con AUTH
|
||||
OpAuth.startOpAuth(MatrUtente);
|
||||
// mostro che ho autorizzato...
|
||||
Postazione.messaggiText += traduci("userAuthRec");
|
||||
Postazione.CssClass = "stileComandoOk";
|
||||
Response.Redirect(user_std.pagCorrente);
|
||||
}
|
||||
else
|
||||
{
|
||||
Postazione.messaggiText += traduci("ERR-BCD-001");
|
||||
Postazione.CssClass = "stileComandoND";
|
||||
}
|
||||
break;
|
||||
default:
|
||||
Postazione.messaggiText += " - codice <b>non riconosciuto</b>!";
|
||||
// cerco se sia "0" = reset utente...
|
||||
if (barcodeIn == memLayer.ML.CRS("resetCodSogg"))
|
||||
{
|
||||
// salvo in sessione operatore con AUTH
|
||||
OpAuth.stopAuth();
|
||||
// mostro che ho autorizzato...
|
||||
Postazione.messaggiText += traduci("userAuthRem");
|
||||
Postazione.CssClass = "stileComandoOk";
|
||||
Response.Redirect(user_std.pagCorrente);
|
||||
}
|
||||
Postazione.messaggiText += traduci("ERR-BCD-001");
|
||||
Postazione.CssClass = "stileComandoND";
|
||||
break;
|
||||
}
|
||||
barcodeIn = "";
|
||||
}
|
||||
else
|
||||
{
|
||||
Postazione.messaggiText = traduci("AttesaBCode");
|
||||
Postazione.CssClass = "stileAttesa";
|
||||
}
|
||||
doUpdate();
|
||||
}
|
||||
/// <summary>
|
||||
@@ -407,53 +486,79 @@ namespace GMW.WebUserControls
|
||||
/// <param name="e"></param>
|
||||
protected void lbtStampaUDC_Click(object sender, EventArgs e)
|
||||
{
|
||||
bool needsRedirect = false;
|
||||
// verifico postazione x procedere...
|
||||
if (Postazione.printer != "n.d.")
|
||||
{
|
||||
string newUdcChild = "";
|
||||
string noteTrim = txtNote.Text.Trim();
|
||||
// effettuo controlli che cod_soggetto e cod particolare siano disponibili...
|
||||
string codSogg = "";
|
||||
string particolare = "";
|
||||
try
|
||||
// verifico auth utente OPPURE se NON sia richiesta...
|
||||
if (OpAuth.isAuth || !OpAuth.opAuthReq)
|
||||
{
|
||||
codSogg = MagClass.magazzino.CodSoggCurrUser;
|
||||
particolare = currParticolare;
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
if (codSogg != "" && particolare != "")
|
||||
{
|
||||
// genero cartellino liquidi
|
||||
DateTime adesso = DateTime.Now;
|
||||
string newUdcChild = "";
|
||||
string noteTrim = txtNote.Text.Trim();
|
||||
// effettuo controlli che cod_soggetto e cod particolare siano disponibili...
|
||||
string codSogg = "";
|
||||
string particolare = "";
|
||||
try
|
||||
{
|
||||
// creo nuovo UDC del trattamento liquidi
|
||||
newUdcChild = MagClass.magazzino.creaUdc(flusso, "", particolare, "", "", "", "", "", 0, memLayer.ML.confReadString("CodImballoAnime"), "U", codSogg, qta, 0, 0, adesso, 0, statoUDC, memLayer.ML.confReadInt("IdxPosizioneAnime"), "IdxPosizioneAnime", "UDC_ANIMA", noteTrim, "", adesso.Year, Request.UserHostName);
|
||||
// registro creazione nuovo UDC
|
||||
MagClass.magazzino.taSAO.insertQuery(adesso, codSogg, Postazione.name, Postazione.IP, newUdcChild, particolare, "creaUDC", string.Format("Creato nuovo UDC Anime - qta:{0} {1}", qta, noteTrim));
|
||||
codSogg = MagClass.magazzino.CodSoggCurrUser;
|
||||
particolare = currParticolare;
|
||||
}
|
||||
catch (Exception exc)
|
||||
catch
|
||||
{
|
||||
httpLog(string.Format("Errore creazione UDC anime: {0}", exc), tipoLog.EXCEPTION);
|
||||
}
|
||||
// se ho cart stampo!
|
||||
if (newUdcChild != "")
|
||||
if (codSogg != "" && particolare != "")
|
||||
{
|
||||
// ora stampo il nuovo cartellino!!!
|
||||
MagClass.magazzino.stampaUdc(newUdcChild, Postazione.printer, tipoCartellino.cartAnime, Request.UserHostName);
|
||||
// incremento timing...
|
||||
adesso = DateTime.Now;
|
||||
adesso = adesso.AddSeconds(1);
|
||||
// registro stampa nuovo UDC
|
||||
MagClass.magazzino.taSAO.insertQuery(adesso, codSogg, Postazione.name, Postazione.IP, newUdcChild, particolare, "stampaUDC", "Stampato UDC Anime");
|
||||
// genero cartellino liquidi
|
||||
DateTime adesso = DateTime.Now;
|
||||
try
|
||||
{
|
||||
// creo nuovo UDC del trattamento liquidi
|
||||
newUdcChild = MagClass.magazzino.creaUdc(flusso, "", particolare, "", "", "", "", "", 0, memLayer.ML.confReadString("CodImballoAnime"), "U", codSogg, qta, 0, 0, adesso, 0, statoUDC, memLayer.ML.confReadInt("IdxPosizioneAnime"), "IdxPosizioneAnime", "UDC_ANIMA", noteTrim, "", adesso.Year, Request.UserHostName);
|
||||
|
||||
if (OpAuth.isAuth)
|
||||
{
|
||||
// salvo attributo dell'OpAuth...
|
||||
MagClass.magazzino.taAtt2UDC.Insert(newUdcChild, memLayer.ML.CRS("attrOpAuth"), OpAuth.currAuth.CodSoggetto, DateTime.Now, codSogg);
|
||||
// consumo una auth...
|
||||
OpAuth.currAuth.remAuth--;
|
||||
if (OpAuth.currAuth.remAuth == 0)
|
||||
{
|
||||
OpAuth.stopAuth();
|
||||
needsRedirect = true;
|
||||
}
|
||||
}
|
||||
|
||||
// registro creazione nuovo UDC
|
||||
MagClass.magazzino.taSAO.insertQuery(adesso, codSogg, Postazione.name, Postazione.IP, newUdcChild, particolare, "creaUDC", string.Format("Creato nuovo UDC Anime - qta:{0} {1}", qta, noteTrim));
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
httpLog(string.Format("Errore creazione UDC anime: {0}", exc), tipoLog.EXCEPTION);
|
||||
}
|
||||
// se ho cart stampo!
|
||||
if (newUdcChild != "")
|
||||
{
|
||||
// ora stampo il nuovo cartellino!!!
|
||||
MagClass.magazzino.stampaUdc(newUdcChild, Postazione.printer, tipoCartellino.cartAnime, Request.UserHostName);
|
||||
// incremento timing...
|
||||
adesso = DateTime.Now;
|
||||
adesso = adesso.AddSeconds(1);
|
||||
// registro stampa nuovo UDC
|
||||
MagClass.magazzino.taSAO.insertQuery(adesso, codSogg, Postazione.name, Postazione.IP, newUdcChild, particolare, "stampaUDC", "Stampato UDC Anime");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
httpLog(string.Format("Errore persi utente/particolare, ricarico!"), tipoLog.ERROR);
|
||||
Response.Redirect("~/login.aspx");
|
||||
}
|
||||
//
|
||||
}
|
||||
else
|
||||
{
|
||||
httpLog(string.Format("Errore persi utente/particolare, ricarico!"), tipoLog.ERROR);
|
||||
Response.Redirect("~/login.aspx");
|
||||
Postazione.messaggiText = traduci("noOpAuth");
|
||||
Postazione.CssClass = "stileComandoKo";
|
||||
httpLog(string.Format("Errore manca OpAuth x UDC anime"), tipoLog.ERROR);
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -465,6 +570,10 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
eh_reqUpdate(this, new EventArgs());
|
||||
}
|
||||
if(needsRedirect)
|
||||
{
|
||||
Response.Redirect(user_std.pagCorrente);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// wrapper per log con salvataggio dell'IP del chiamante
|
||||
@@ -510,6 +619,13 @@ namespace GMW.WebUserControls
|
||||
protected void btnEmptyNote_Click(object sender, EventArgs e)
|
||||
{
|
||||
txtNote.Text = "";
|
||||
Postazione.messaggiText = traduci("AttesaBCode");
|
||||
Postazione.CssClass = "stileAttesa";
|
||||
// raise dell'evento
|
||||
if (eh_reqUpdate != null)
|
||||
{
|
||||
eh_reqUpdate(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -20,6 +20,10 @@ namespace GMW.WebUserControls
|
||||
/// stato associato (hard coded) a Anime EXT
|
||||
/// </summary>
|
||||
protected string statoUDC = "AnimExt";
|
||||
/// <summary>
|
||||
/// dati x verifica CodSoggetto / matricola
|
||||
/// </summary>
|
||||
protected string preCodSogg = memLayer.ML.confReadString("prefCodSogg");
|
||||
public event EventHandler eh_reqUpdate;
|
||||
/// <summary>
|
||||
/// stringa UID univoca
|
||||
@@ -41,10 +45,25 @@ namespace GMW.WebUserControls
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
traduciObj();
|
||||
checkNumKeyIn();
|
||||
}
|
||||
doChecks();
|
||||
}
|
||||
/// <summary>
|
||||
/// verifico se ci sia in sessione un input da NumKeyb e nel caso lometto in barcodeIn e processo...
|
||||
/// </summary>
|
||||
private void checkNumKeyIn()
|
||||
{
|
||||
if (memLayer.ML.isInSessionObject("numKeyIn"))
|
||||
{
|
||||
barcodeIn = memLayer.ML.StringSessionObj("numKeyIn");
|
||||
// svuoto valore in sessione...
|
||||
memLayer.ML.emptySessionVal("numKeyIn");
|
||||
// controllo barcode...
|
||||
checkBarcode();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// richiesta (ri)stampa UDC
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
@@ -189,6 +208,14 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
tipoCodiceBarcode answ = tipoCodiceBarcode.ND;
|
||||
int trovati = 0;
|
||||
int matricola = -1;
|
||||
// provo a convertire in intero barcode x verifica eventuale matricola...
|
||||
try
|
||||
{
|
||||
matricola = Convert.ToInt32(barcodeIn);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
// controllo non si tratti di un comando...
|
||||
string preCmd = memLayer.ML.confReadString("prefComandi");
|
||||
if (barcodeIn.StartsWith(preCmd))
|
||||
@@ -199,6 +226,21 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
answ = tipoCodiceBarcode.Particolare;
|
||||
}
|
||||
else if (barcodeIn.StartsWith(preCodSogg))
|
||||
{
|
||||
// cerco cod soggetto...
|
||||
if (DataProxy.obj.taTrascSogg.getByKey(barcodeIn, 0).Rows.Count == 1)
|
||||
{
|
||||
answ = tipoCodiceBarcode.Operatore;
|
||||
}
|
||||
}
|
||||
else if (matricola >= 0)
|
||||
{
|
||||
if (DataProxy.obj.taTrascSogg.getByKey("", matricola).Rows.Count == 1)
|
||||
{
|
||||
answ = tipoCodiceBarcode.Operatore;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
try
|
||||
@@ -311,12 +353,12 @@ namespace GMW.WebUserControls
|
||||
if (DataProxy.obj.taAnagParticolari.getByParticolare(currParticolare).Rows.Count == 0)
|
||||
{
|
||||
currParticolare = "";
|
||||
Postazione.messaggiText += " - codice particolare non valido / non trovato in RILPRO.";
|
||||
Postazione.messaggiText += traduci("ERR-ANM-001");
|
||||
Postazione.CssClass = "stileComandoKo";
|
||||
}
|
||||
else
|
||||
{
|
||||
Postazione.messaggiText += " - impostato particolare!";
|
||||
Postazione.messaggiText += traduci("partSelected");
|
||||
Postazione.CssClass = "stileComandoOk";
|
||||
}
|
||||
// leggo la qta dell'ultimo UDC del particolare, SE C'E', e la imposto...
|
||||
@@ -335,33 +377,69 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
// recupero il particolare dai dati del cartellino preesistente
|
||||
currParticolare = DataProxy.obj.taCartellini.stp_getByUdc(barcodeIn)[0].Particolare;
|
||||
// controllo esista il particolare
|
||||
if (DataProxy.obj.taAnagParticolari.getByParticolare(currParticolare).Rows.Count == 0)
|
||||
// controllo esista!!!
|
||||
bool partExists = DataProxy.obj.taAnagParticolari.getByParticolare(currParticolare).Rows.Count != 0;
|
||||
// controllo sia anima!!!
|
||||
bool isAnima = TermClass.Ter.isAnima(currParticolare);
|
||||
// controllo esista il particolare e sia anima
|
||||
if (partExists && isAnima)
|
||||
{
|
||||
currParticolare = "";
|
||||
Postazione.messaggiText += " - codice particolare da UDC non valido / non trovato in RILPRO.";
|
||||
Postazione.CssClass = "stileComandoKo";
|
||||
Postazione.messaggiText += traduci("partSelected");
|
||||
Postazione.CssClass = "stileComandoOk";
|
||||
}
|
||||
else
|
||||
{
|
||||
Postazione.messaggiText += " - impostato particolare!";
|
||||
Postazione.CssClass = "stileComandoOk";
|
||||
currParticolare = "";
|
||||
Postazione.messaggiText += traduci("ERR-ANM-001");
|
||||
Postazione.CssClass = "stileComandoKo";
|
||||
}
|
||||
}
|
||||
|
||||
break;
|
||||
case tipoCodiceBarcode.Operatore:
|
||||
// calcolo matricola utente
|
||||
int MatrUtente = -1;
|
||||
string preCodSogg = memLayer.ML.confReadString("prefCodSogg");
|
||||
if (barcodeIn.StartsWith(preCodSogg))
|
||||
{
|
||||
MatrUtente = DataProxy.obj.taTrascSogg.getByKey(barcodeIn, 0)[0].CodMatricola;
|
||||
}
|
||||
else
|
||||
{
|
||||
MatrUtente = Convert.ToInt32(barcodeIn);
|
||||
}
|
||||
if (MatrUtente >= 0)
|
||||
{
|
||||
// salvo in sessione operatore con AUTH
|
||||
OpAuth.startOpAuth(MatrUtente);
|
||||
// mostro che ho autorizzato...
|
||||
Postazione.messaggiText += traduci("userAuthRec");
|
||||
Postazione.CssClass = "stileComandoOk";
|
||||
Response.Redirect(user_std.pagCorrente);
|
||||
}
|
||||
else
|
||||
{
|
||||
Postazione.messaggiText += traduci("ERR-BCD-001");
|
||||
Postazione.CssClass = "stileComandoND";
|
||||
}
|
||||
break;
|
||||
default:
|
||||
Postazione.messaggiText += " - codice <b>non riconosciuto</b>!";
|
||||
// cerco se sia "0" = reset utente...
|
||||
if (barcodeIn == memLayer.ML.CRS("resetCodSogg"))
|
||||
{
|
||||
// salvo in sessione operatore con AUTH
|
||||
OpAuth.stopAuth();
|
||||
// mostro che ho autorizzato...
|
||||
Postazione.messaggiText += traduci("userAuthRem");
|
||||
Postazione.CssClass = "stileComandoOk";
|
||||
Response.Redirect(user_std.pagCorrente);
|
||||
}
|
||||
Postazione.messaggiText += traduci("ERR-BCD-001");
|
||||
Postazione.CssClass = "stileComandoND";
|
||||
break;
|
||||
}
|
||||
barcodeIn = "";
|
||||
}
|
||||
else
|
||||
{
|
||||
Postazione.messaggiText = traduci("AttesaBCode");
|
||||
Postazione.CssClass = "stileAttesa";
|
||||
}
|
||||
doUpdate();
|
||||
}
|
||||
/// <summary>
|
||||
@@ -438,94 +516,129 @@ namespace GMW.WebUserControls
|
||||
/// <param name="e"></param>
|
||||
protected void lbtStampaUDC_Click(object sender, EventArgs e)
|
||||
{
|
||||
bool needsRedirect = false;
|
||||
// verifico postazione x procedere...
|
||||
if (Postazione.printer != "n.d.")
|
||||
{
|
||||
string newUdcChild = "";
|
||||
int qta = memLayer.ML.confReadInt("QtaImballoAnime");
|
||||
string noteTrim = txtNote.Text.Trim();
|
||||
try
|
||||
// verifico auth utente OPPURE se NON sia richiesta...
|
||||
if (OpAuth.isAuth || !OpAuth.opAuthReq)
|
||||
{
|
||||
qta = Convert.ToInt32(txtQtaUDC.Text);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
// effettuo controlli che cod_soggetto e cod particolare siano disponibili...
|
||||
string codSogg = "";
|
||||
string particolare = "";
|
||||
try
|
||||
{
|
||||
codSogg = MagClass.magazzino.CodSoggCurrUser;
|
||||
particolare = currParticolare;
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
if (codSogg != "" && particolare != "")
|
||||
{
|
||||
for (int i = 0; i < numUDC; i++)
|
||||
string newUdcChild = "";
|
||||
int qta = memLayer.ML.confReadInt("QtaImballoAnime");
|
||||
string noteTrim = txtNote.Text.Trim();
|
||||
try
|
||||
{
|
||||
// genero cartellino anima
|
||||
DateTime adesso = DateTime.Now;
|
||||
try
|
||||
qta = Convert.ToInt32(txtQtaUDC.Text);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
// effettuo controlli che cod_soggetto e cod particolare siano disponibili...
|
||||
string codSogg = "";
|
||||
string particolare = "";
|
||||
try
|
||||
{
|
||||
codSogg = MagClass.magazzino.CodSoggCurrUser;
|
||||
particolare = currParticolare;
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
if (codSogg != "" && particolare != "")
|
||||
{
|
||||
for (int i = 0; i < numUDC; i++)
|
||||
{
|
||||
// creo nuovo UDC anime multiple
|
||||
newUdcChild = MagClass.magazzino.creaUdc(flusso, "", currParticolare, "", "", "", "", "", 0, memLayer.ML.confReadString("CodImballoAnime"), "U", MagClass.magazzino.CodSoggCurrUser, qta, 0, 0, adesso, 0, statoUDC, memLayer.ML.confReadInt("IdxPosizioneAnimeExt"), "IdxPosizioneAnimeExt", "UDC_ANIMA", noteTrim, "", adesso.Year, Request.UserHostName);
|
||||
// registro creazione nuovo UDC
|
||||
MagClass.magazzino.taSAO.insertQuery(adesso, codSogg, Postazione.name, Postazione.IP, newUdcChild, particolare, "creaUDC", string.Format("Creato nuovo UDC Anime EX, qta: {0} {1}", qta, noteTrim));
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
httpLog(string.Format("Errore creazione UDC anime mult: {0}", exc), tipoLog.EXCEPTION);
|
||||
}
|
||||
// se ho cart liquidi genero (se non ci sono) cart trattamenti
|
||||
if (newUdcChild != "")
|
||||
{
|
||||
/***************************************************************************************
|
||||
* dopo che l'ho creato lo sposto da post anime ext a post anime int (NO UPDATE AS400...)
|
||||
* IdxPosizioneAnimeExt --> IdxPosizioneAnime
|
||||
* !!! DEVO CALCOLARE LA CELLA !!! parto dal blocco calcolato da tab transizioni
|
||||
***************************************************************************************/
|
||||
int idxBloccoTo = StateMachine.SM.getIdxBloccoTo("UDC_ANIMA", memLayer.ML.confReadInt("IdxPosizioneAnimeExt"));
|
||||
int idxCellaTo = 0;
|
||||
// genero cartellino anima
|
||||
DateTime adesso = DateTime.Now;
|
||||
try
|
||||
{
|
||||
idxCellaTo = MagClass.magazzino.taCelle.getByIdxBlocco(idxBloccoTo)[0].IdxCella;
|
||||
// creo nuovo UDC anime multiple
|
||||
newUdcChild = MagClass.magazzino.creaUdc(flusso, "", currParticolare, "", "", "", "", "", 0, memLayer.ML.confReadString("CodImballoAnime"), "U", MagClass.magazzino.CodSoggCurrUser, qta, 0, 0, adesso, 0, statoUDC, memLayer.ML.confReadInt("IdxPosizioneAnimeExt"), "IdxPosizioneAnimeExt", "UDC_ANIMA", noteTrim, "", adesso.Year, Request.UserHostName);
|
||||
|
||||
if (OpAuth.isAuth)
|
||||
{
|
||||
// salvo attributo dell'OpAuth...
|
||||
MagClass.magazzino.taAtt2UDC.Insert(newUdcChild, memLayer.ML.CRS("attrOpAuth"), OpAuth.currAuth.CodSoggetto, DateTime.Now, codSogg);
|
||||
}
|
||||
|
||||
// registro creazione nuovo UDC
|
||||
MagClass.magazzino.taSAO.insertQuery(adesso, codSogg, Postazione.name, Postazione.IP, newUdcChild, particolare, "creaUDC", string.Format("Creato nuovo UDC Anime EX, qta: {0} {1}", qta, noteTrim));
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
if (idxCellaTo != 0)
|
||||
catch (Exception exc)
|
||||
{
|
||||
MagClass.magazzino.spostaUDC(memLayer.ML.StringSessionObj("CodCS"), newUdcChild, idxCellaTo, memLayer.ML.confReadBool("spostaUdcResettaLdp"), Request.UserHostName);
|
||||
httpLog(string.Format("Errore creazione UDC anime mult: {0}", exc), tipoLog.EXCEPTION);
|
||||
}
|
||||
// se ho cart liquidi genero (se non ci sono) cart trattamenti
|
||||
if (newUdcChild != "")
|
||||
{
|
||||
/***************************************************************************************
|
||||
* dopo che l'ho creato lo sposto da post anime ext a post anime int (NO UPDATE AS400...)
|
||||
* IdxPosizioneAnimeExt --> IdxPosizioneAnime
|
||||
* !!! DEVO CALCOLARE LA CELLA !!! parto dal blocco calcolato da tab transizioni
|
||||
***************************************************************************************/
|
||||
int idxBloccoTo = StateMachine.SM.getIdxBloccoTo("UDC_ANIMA", memLayer.ML.confReadInt("IdxPosizioneAnimeExt"));
|
||||
int idxCellaTo = 0;
|
||||
try
|
||||
{
|
||||
idxCellaTo = MagClass.magazzino.taCelle.getByIdxBlocco(idxBloccoTo)[0].IdxCella;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
if (idxCellaTo != 0)
|
||||
{
|
||||
MagClass.magazzino.spostaUDC(memLayer.ML.StringSessionObj("CodCS"), newUdcChild, idxCellaTo, memLayer.ML.confReadBool("spostaUdcResettaLdp"), Request.UserHostName);
|
||||
// incremento timing...
|
||||
adesso = DateTime.Now;
|
||||
adesso = adesso.AddSeconds(1);
|
||||
// registro creazione nuovo UDC
|
||||
MagClass.magazzino.taSAO.insertQuery(adesso, codSogg, Postazione.name, Postazione.IP, newUdcChild, particolare, "spostaUDC", "Sposta UDC Anime EXT in Int");
|
||||
|
||||
}
|
||||
// ora stampo il nuovo cartellino!!!
|
||||
MagClass.magazzino.stampaUdc(newUdcChild, Postazione.printer, tipoCartellino.cartAnime, Request.UserHostName);
|
||||
// incremento timing...
|
||||
adesso = DateTime.Now;
|
||||
adesso = adesso.AddSeconds(1);
|
||||
// registro creazione nuovo UDC
|
||||
MagClass.magazzino.taSAO.insertQuery(adesso, codSogg, Postazione.name, Postazione.IP, newUdcChild, particolare, "spostaUDC", "Sposta UDC Anime EXT in Int");
|
||||
|
||||
adesso = adesso.AddSeconds(2);
|
||||
// registro stampa nuovo UDC
|
||||
MagClass.magazzino.taSAO.insertQuery(adesso, codSogg, Postazione.name, Postazione.IP, newUdcChild, particolare, "stampaUDC", "Stampato UDC Anime EXT");
|
||||
}
|
||||
// ora stampo il nuovo cartellino!!!
|
||||
MagClass.magazzino.stampaUdc(newUdcChild, Postazione.printer, tipoCartellino.cartAnime, Request.UserHostName);
|
||||
// incremento timing...
|
||||
adesso = DateTime.Now;
|
||||
adesso = adesso.AddSeconds(2);
|
||||
// registro stampa nuovo UDC
|
||||
MagClass.magazzino.taSAO.insertQuery(adesso, codSogg, Postazione.name, Postazione.IP, newUdcChild, particolare, "stampaUDC", "Stampato UDC Anime EXT");
|
||||
}
|
||||
// consumo una auth...
|
||||
OpAuth.currAuth.remAuth--;
|
||||
if (OpAuth.currAuth.remAuth == 0)
|
||||
{
|
||||
OpAuth.stopAuth();
|
||||
needsRedirect = true;
|
||||
}
|
||||
// resetto
|
||||
doResetData();
|
||||
}
|
||||
else
|
||||
{
|
||||
httpLog(string.Format("ANIME MULTIPLE, Errore persi utente/particolare, ricarico!"), tipoLog.ERROR);
|
||||
Response.Redirect("~/login.aspx");
|
||||
}
|
||||
// resetto
|
||||
doResetData();
|
||||
}
|
||||
else
|
||||
{
|
||||
httpLog(string.Format("ANIME MULTIPLE, Errore persi utente/particolare, ricarico!"), tipoLog.ERROR);
|
||||
Response.Redirect("~/login.aspx");
|
||||
Postazione.messaggiText = traduci("noOpAuth");
|
||||
Postazione.CssClass = "stileComandoKo";
|
||||
httpLog(string.Format("Errore manca OpAuth x UDC anime"), tipoLog.ERROR);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Response.Redirect("~/menu.aspx");
|
||||
}
|
||||
|
||||
// raise dell'evento
|
||||
if (eh_reqUpdate != null)
|
||||
{
|
||||
eh_reqUpdate(this, new EventArgs());
|
||||
}
|
||||
if (needsRedirect)
|
||||
{
|
||||
Response.Redirect(user_std.pagCorrente);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// wrapper per log con salvataggio dell'IP del chiamante
|
||||
@@ -568,6 +681,13 @@ namespace GMW.WebUserControls
|
||||
protected void btnEmptyNote_Click(object sender, EventArgs e)
|
||||
{
|
||||
txtNote.Text = "";
|
||||
Postazione.messaggiText = traduci("AttesaBCode");
|
||||
Postazione.CssClass = "stileAttesa";
|
||||
// raise dell'evento
|
||||
if (eh_reqUpdate != null)
|
||||
{
|
||||
eh_reqUpdate(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -23,6 +23,10 @@ namespace GMW.WebUserControls
|
||||
/// attributo per Fuoriciclo
|
||||
/// </summary>
|
||||
protected string attrFC = "FC";
|
||||
/// <summary>
|
||||
/// dati x verifica CodSoggetto / matricola
|
||||
/// </summary>
|
||||
protected string preCodSogg = memLayer.ML.confReadString("prefCodSogg");
|
||||
public event EventHandler eh_reqUpdate;
|
||||
/// <summary>
|
||||
/// stringa UID univoca
|
||||
@@ -46,10 +50,25 @@ namespace GMW.WebUserControls
|
||||
Postazione.messaggiText = "";
|
||||
Postazione.warningText = "";
|
||||
traduciObj();
|
||||
checkNumKeyIn();
|
||||
}
|
||||
doChecks();
|
||||
}
|
||||
/// <summary>
|
||||
/// verifico se ci sia in sessione un input da NumKeyb e nel caso lometto in barcodeIn e processo...
|
||||
/// </summary>
|
||||
private void checkNumKeyIn()
|
||||
{
|
||||
if (memLayer.ML.isInSessionObject("numKeyIn"))
|
||||
{
|
||||
barcodeIn = memLayer.ML.StringSessionObj("numKeyIn");
|
||||
// svuoto valore in sessione...
|
||||
memLayer.ML.emptySessionVal("numKeyIn");
|
||||
// controllo barcode...
|
||||
checkBarcode();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// richiesta (ri)stampa UDC
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
@@ -232,6 +251,14 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
tipoCodiceBarcode answ = tipoCodiceBarcode.ND;
|
||||
int trovati = 0;
|
||||
int matricola = -1;
|
||||
// provo a convertire in intero barcode x verifica eventuale matricola...
|
||||
try
|
||||
{
|
||||
matricola = Convert.ToInt32(barcodeIn);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
// controllo non si tratti di un comando...
|
||||
string preCmd = memLayer.ML.confReadString("prefComandi");
|
||||
if (barcodeIn.StartsWith(preCmd))
|
||||
@@ -249,6 +276,21 @@ namespace GMW.WebUserControls
|
||||
// è imballo!
|
||||
answ = tipoCodiceBarcode.Imballo;
|
||||
}
|
||||
else if (barcodeIn.StartsWith(preCodSogg))
|
||||
{
|
||||
// cerco cod soggetto...
|
||||
if (DataProxy.obj.taTrascSogg.getByKey(barcodeIn, 0).Rows.Count == 1)
|
||||
{
|
||||
answ = tipoCodiceBarcode.Operatore;
|
||||
}
|
||||
}
|
||||
else if (matricola >= 0)
|
||||
{
|
||||
if (DataProxy.obj.taTrascSogg.getByKey("", matricola).Rows.Count == 1)
|
||||
{
|
||||
answ = tipoCodiceBarcode.Operatore;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
try
|
||||
@@ -371,12 +413,12 @@ namespace GMW.WebUserControls
|
||||
if (DataProxy.obj.taAnagParticolari.getByParticolare(currParticolare).Rows.Count == 0)
|
||||
{
|
||||
currParticolare = "";
|
||||
Postazione.messaggiText += " - codice particolare non valido / non trovato in RILPRO.";
|
||||
Postazione.messaggiText += traduci("ERR-FIN-001");
|
||||
Postazione.CssClass = "stileComandoKo";
|
||||
}
|
||||
else
|
||||
{
|
||||
Postazione.messaggiText += " - impostato particolare!";
|
||||
Postazione.messaggiText += traduci("partSelected");
|
||||
Postazione.CssClass = "stileComandoOk";
|
||||
}
|
||||
// leggo la qta dell'ultimo UDC del particolare, SE C'E', e la imposto...
|
||||
@@ -399,32 +441,75 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
// recupero il particolare dai dati del cartellino preesistente
|
||||
currParticolare = DataProxy.obj.taCartellini.stp_getByUdc(barcodeIn)[0].Particolare;
|
||||
// controllo esista il particolare
|
||||
if (DataProxy.obj.taAnagParticolari.getByParticolare(currParticolare).Rows.Count == 0)
|
||||
// controllo esista!!!
|
||||
bool partExists = DataProxy.obj.taAnagParticolari.getByParticolare(currParticolare).Rows.Count != 0;
|
||||
// controllo sia anima!!!
|
||||
bool isAnima = TermClass.Ter.isAnima(currParticolare);
|
||||
// controllo esista il particolare e sia anima
|
||||
if (partExists && isAnima)
|
||||
{
|
||||
currParticolare = "";
|
||||
Postazione.messaggiText += " - codice particolare da UDC non valido / non trovato in RILPRO.";
|
||||
Postazione.CssClass = "stileComandoKo";
|
||||
Postazione.messaggiText += traduci("partSelected");
|
||||
Postazione.CssClass = "stileComandoOk";
|
||||
}
|
||||
else
|
||||
{
|
||||
Postazione.messaggiText += " - impostato particolare!";
|
||||
Postazione.CssClass = "stileComandoOk";
|
||||
currParticolare = "";
|
||||
Postazione.messaggiText += traduci("ERR-FIN-001");
|
||||
Postazione.CssClass = "stileComandoKo";
|
||||
}
|
||||
}
|
||||
break;
|
||||
case tipoCodiceBarcode.Operatore:
|
||||
// calcolo matricola utente
|
||||
int MatrUtente = -1;
|
||||
string preCodSogg = memLayer.ML.confReadString("prefCodSogg");
|
||||
if (barcodeIn.StartsWith(preCodSogg))
|
||||
{
|
||||
MatrUtente = DataProxy.obj.taTrascSogg.getByKey(barcodeIn, 0)[0].CodMatricola;
|
||||
}
|
||||
else
|
||||
{
|
||||
MatrUtente = Convert.ToInt32(barcodeIn);
|
||||
}
|
||||
if (MatrUtente >= 0)
|
||||
{
|
||||
// salvo in sessione operatore con AUTH
|
||||
OpAuth.startOpAuth(MatrUtente);
|
||||
// mostro che ho autorizzato...
|
||||
Postazione.messaggiText += traduci("userAuthRec");
|
||||
Postazione.CssClass = "stileComandoOk";
|
||||
Response.Redirect(user_std.pagCorrente);
|
||||
}
|
||||
else
|
||||
{
|
||||
Postazione.messaggiText += traduci("ERR-BCD-001");
|
||||
Postazione.CssClass = "stileComandoND";
|
||||
}
|
||||
break;
|
||||
default:
|
||||
Postazione.messaggiText += " - codice <b>non riconosciuto</b>!";
|
||||
// cerco se sia "0" = reset utente...
|
||||
if (barcodeIn == memLayer.ML.CRS("resetCodSogg"))
|
||||
{
|
||||
// salvo in sessione operatore con AUTH
|
||||
OpAuth.stopAuth();
|
||||
// mostro che ho autorizzato...
|
||||
Postazione.messaggiText += traduci("userAuthRem");
|
||||
Postazione.CssClass = "stileComandoOk";
|
||||
Response.Redirect(user_std.pagCorrente);
|
||||
}
|
||||
Postazione.messaggiText += traduci("ERR-BCD-001");
|
||||
Postazione.CssClass = "stileComandoND";
|
||||
break;
|
||||
}
|
||||
barcodeIn = "";
|
||||
}
|
||||
#if false
|
||||
else
|
||||
{
|
||||
Postazione.messaggiText = traduci("AttesaBCode");
|
||||
Postazione.CssClass = "stileAttesa";
|
||||
}
|
||||
}
|
||||
#endif
|
||||
doUpdate();
|
||||
}
|
||||
/// <summary>
|
||||
@@ -501,74 +586,99 @@ namespace GMW.WebUserControls
|
||||
/// <param name="e"></param>
|
||||
protected void lbtStampaUDC_Click(object sender, EventArgs e)
|
||||
{
|
||||
bool needsRedirect = false;
|
||||
// verifico postazione x procedere...
|
||||
if (Postazione.printer != "n.d.")
|
||||
{
|
||||
string newUdcChild = "";
|
||||
string noteTrim = string.Format("{0}{1}{2}", traduci("fuoriciclo"), Environment.NewLine, txtNote.Text.Trim());
|
||||
// effettuo controlli che cod_soggetto e cod particolare siano disponibili...
|
||||
string codSogg = "";
|
||||
string particolare = "";
|
||||
try
|
||||
// verifico auth utente OPPURE se NON sia richiesta...
|
||||
if (OpAuth.isAuth || !OpAuth.opAuthReq)
|
||||
{
|
||||
codSogg = MagClass.magazzino.CodSoggCurrUser;
|
||||
particolare = currParticolare;
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
if (codSogg != "" && particolare != "")
|
||||
{
|
||||
for (int i = 0; i < numUDC; i++)
|
||||
string newUdcChild = "";
|
||||
string noteTrim = string.Format("{0}{1}{2}", traduci("fuoriciclo"), Environment.NewLine, txtNote.Text.Trim());
|
||||
// effettuo controlli che cod_soggetto e cod particolare siano disponibili...
|
||||
string codSogg = "";
|
||||
string particolare = "";
|
||||
try
|
||||
{
|
||||
// genero cartellino liquidi
|
||||
DateTime adesso = DateTime.Now;
|
||||
try
|
||||
codSogg = MagClass.magazzino.CodSoggCurrUser;
|
||||
particolare = currParticolare;
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
if (codSogg != "" && particolare != "")
|
||||
{
|
||||
for (int i = 0; i < numUDC; i++)
|
||||
{
|
||||
string codImballo = "";
|
||||
// genero cartellino liquidi
|
||||
DateTime adesso = DateTime.Now;
|
||||
try
|
||||
{
|
||||
codImballo = ddlImballi.SelectedValue;
|
||||
string codImballo = "";
|
||||
try
|
||||
{
|
||||
codImballo = ddlImballi.SelectedValue;
|
||||
}
|
||||
catch
|
||||
{
|
||||
codImballo = memLayer.ML.confReadString("CodImballoFiniti");
|
||||
}
|
||||
// se NON HA selezionato prendo default...
|
||||
if (codImballo == "" || codImballo == "-")
|
||||
{
|
||||
codImballo = memLayer.ML.confReadString("CodImballoFiniti");
|
||||
}
|
||||
// creo nuovo UDC del trattamento liquidi
|
||||
newUdcChild = MagClass.magazzino.creaUdc(flusso, "", currParticolare, "", "", "", "", "", 0, codImballo, "U", MagClass.magazzino.CodSoggCurrUser, qtaUDC, 0, 0, adesso, 0, statoUDC, memLayer.ML.confReadInt("IdxPosizioneFiniti"), "IdxPosizioneFiniti", "UDC_FINITO", noteTrim, "", adesso.Year, Request.UserHostName);
|
||||
|
||||
if (OpAuth.isAuth)
|
||||
{
|
||||
// salvo attributo dell'OpAuth...
|
||||
MagClass.magazzino.taAtt2UDC.Insert(newUdcChild, memLayer.ML.CRS("attrOpAuth"), OpAuth.currAuth.CodSoggetto, DateTime.Now, codSogg);
|
||||
// consumo una auth...
|
||||
OpAuth.currAuth.remAuth--;
|
||||
if (OpAuth.currAuth.remAuth == 0)
|
||||
{
|
||||
OpAuth.stopAuth();
|
||||
needsRedirect = true;
|
||||
}
|
||||
}
|
||||
|
||||
// registro creazione nuovo UDC
|
||||
MagClass.magazzino.taSAO.insertQuery(adesso, codSogg, Postazione.name, Postazione.IP, newUdcChild, particolare, "creaUDC", string.Format("Creato nuovo UDC Finiti, qta: {0} {1}", qtaUDC, noteTrim));
|
||||
// inserisco attributo fuoriciclo
|
||||
MagClass.magazzino.taAtt2UDC.Insert(newUdcChild, attrFC, "", DateTime.Now, codSogg);
|
||||
}
|
||||
catch
|
||||
catch (Exception exc)
|
||||
{
|
||||
codImballo = memLayer.ML.confReadString("CodImballoFiniti");
|
||||
httpLog(string.Format("Errore creazione UDC finiti: {0}", exc), tipoLog.EXCEPTION);
|
||||
}
|
||||
// se NON HA selezionato prendo default...
|
||||
if (codImballo == "" || codImballo == "-")
|
||||
// se ho cart stampo!
|
||||
if (newUdcChild != "")
|
||||
{
|
||||
codImballo = memLayer.ML.confReadString("CodImballoFiniti");
|
||||
// ora stampo il nuovo cartellino!!!
|
||||
MagClass.magazzino.stampaUdc(newUdcChild, Postazione.printer, tipoCartellino.cartFiniti, Request.UserHostName);
|
||||
// incremento timing...
|
||||
adesso = DateTime.Now;
|
||||
adesso = adesso.AddSeconds(1);
|
||||
// registro stampa nuovo UDC
|
||||
MagClass.magazzino.taSAO.insertQuery(adesso, codSogg, Postazione.name, Postazione.IP, newUdcChild, particolare, "stampaUDC", "Stampato UDC Finiti");
|
||||
}
|
||||
// creo nuovo UDC del trattamento liquidi
|
||||
newUdcChild = MagClass.magazzino.creaUdc(flusso, "", currParticolare, "", "", "", "", "", 0, codImballo, "U", MagClass.magazzino.CodSoggCurrUser, qtaUDC, 0, 0, adesso, 0, statoUDC, memLayer.ML.confReadInt("IdxPosizioneFiniti"), "IdxPosizioneFiniti", "UDC_FINITO", noteTrim, "", adesso.Year, Request.UserHostName);
|
||||
// registro creazione nuovo UDC
|
||||
MagClass.magazzino.taSAO.insertQuery(adesso, codSogg, Postazione.name, Postazione.IP, newUdcChild, particolare, "creaUDC", string.Format("Creato nuovo UDC Finiti, qta: {0} {1}", qtaUDC, noteTrim));
|
||||
// inserisco attributo fuoriciclo
|
||||
MagClass.magazzino.taAtt2UDC.Insert(newUdcChild, attrFC, "", DateTime.Now, codSogg);
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
httpLog(string.Format("Errore creazione UDC finiti: {0}", exc), tipoLog.EXCEPTION);
|
||||
}
|
||||
// se ho cart stampo!
|
||||
if (newUdcChild != "")
|
||||
{
|
||||
// ora stampo il nuovo cartellino!!!
|
||||
MagClass.magazzino.stampaUdc(newUdcChild, Postazione.printer, tipoCartellino.cartFiniti, Request.UserHostName);
|
||||
// incremento timing...
|
||||
adesso = DateTime.Now;
|
||||
adesso = adesso.AddSeconds(1);
|
||||
// registro stampa nuovo UDC
|
||||
MagClass.magazzino.taSAO.insertQuery(adesso, codSogg, Postazione.name, Postazione.IP, newUdcChild, particolare, "stampaUDC", "Stampato UDC Finiti");
|
||||
}
|
||||
// resetto
|
||||
doResetData();
|
||||
}
|
||||
else
|
||||
{
|
||||
httpLog(string.Format("FINITI, Errore persi utente/particolare, ricarico!"), tipoLog.ERROR);
|
||||
Response.Redirect("~/login.aspx");
|
||||
}
|
||||
// resetto
|
||||
doResetData();
|
||||
}
|
||||
else
|
||||
{
|
||||
httpLog(string.Format("FINITI, Errore persi utente/particolare, ricarico!"), tipoLog.ERROR);
|
||||
Response.Redirect("~/login.aspx");
|
||||
Postazione.messaggiText = traduci("noOpAuth");
|
||||
Postazione.CssClass = "stileComandoKo";
|
||||
httpLog(string.Format("Errore manca OpAuth x UDC anime"), tipoLog.ERROR);
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -576,6 +686,15 @@ namespace GMW.WebUserControls
|
||||
Response.Redirect("~/menu.aspx");
|
||||
}
|
||||
doUpdate();
|
||||
// raise dell'evento
|
||||
if (eh_reqUpdate != null)
|
||||
{
|
||||
eh_reqUpdate(this, new EventArgs());
|
||||
}
|
||||
if (needsRedirect)
|
||||
{
|
||||
Response.Redirect(user_std.pagCorrente);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// wrapper per log con salvataggio dell'IP del chiamante
|
||||
@@ -619,6 +738,13 @@ namespace GMW.WebUserControls
|
||||
protected void btnEmptyNote_Click(object sender, EventArgs e)
|
||||
{
|
||||
txtNote.Text = "";
|
||||
Postazione.messaggiText = traduci("AttesaBCode");
|
||||
Postazione.CssClass = "stileAttesa";
|
||||
// raise dell'evento
|
||||
if (eh_reqUpdate != null)
|
||||
{
|
||||
eh_reqUpdate(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// aggiornata qta UDC: aggiorno totale!
|
||||
|
||||
@@ -24,6 +24,10 @@ namespace GMW.WebUserControls
|
||||
/// attributo per indicazione LINEA di produzione/consumo
|
||||
/// </summary>
|
||||
protected string attrLINEA = "LI";
|
||||
/// <summary>
|
||||
/// dati x verifica CodSoggetto / matricola
|
||||
/// </summary>
|
||||
protected string preCodSogg = memLayer.ML.confReadString("prefCodSogg");
|
||||
public event EventHandler eh_reqUpdate;
|
||||
/// <summary>
|
||||
/// stringa UID univoca
|
||||
@@ -45,6 +49,7 @@ namespace GMW.WebUserControls
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
traduciObj();
|
||||
checkNumKeyIn();
|
||||
}
|
||||
doChecks();
|
||||
if (currParticolare != "")
|
||||
@@ -63,6 +68,19 @@ namespace GMW.WebUserControls
|
||||
{ }
|
||||
lblDescrAttivo.Text = descr;
|
||||
lblDisegno.Text = disegno;
|
||||
// default: qta a zero
|
||||
decimal qtaPart = 0;
|
||||
// leggo la qta dell'ultimo UDC del particolare, SE C'E', e la imposto...
|
||||
try
|
||||
{
|
||||
qtaPart = MagClass.magazzino.taCartellini.getLastByParticolareStato(memLayer.ML.StringSessionObj("CodCS"), currParticolare, statoUDC)[0].Qta;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
if (qtaPart > 0)
|
||||
{
|
||||
qta = Convert.ToInt32(qtaPart);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -72,6 +90,20 @@ namespace GMW.WebUserControls
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// verifico se ci sia in sessione un input da NumKeyb e nel caso lometto in barcodeIn e processo...
|
||||
/// </summary>
|
||||
private void checkNumKeyIn()
|
||||
{
|
||||
if (memLayer.ML.isInSessionObject("numKeyIn"))
|
||||
{
|
||||
barcodeIn = memLayer.ML.StringSessionObj("numKeyIn");
|
||||
// svuoto valore in sessione...
|
||||
memLayer.ML.emptySessionVal("numKeyIn");
|
||||
// controllo barcode...
|
||||
checkBarcode();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// richiesta (ri)stampa UDC
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
@@ -185,6 +217,14 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
tipoCodiceBarcode answ = tipoCodiceBarcode.ND;
|
||||
int trovati = 0;
|
||||
int matricola = -1;
|
||||
// provo a convertire in intero barcode x verifica eventuale matricola...
|
||||
try
|
||||
{
|
||||
matricola = Convert.ToInt32(barcodeIn);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
// controllo non si tratti di un comando...
|
||||
string preCmd = memLayer.ML.confReadString("prefComandi");
|
||||
if (barcodeIn.StartsWith(preCmd))
|
||||
@@ -196,6 +236,21 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
answ = tipoCodiceBarcode.Particolare;
|
||||
}
|
||||
else if (barcodeIn.StartsWith(preCodSogg))
|
||||
{
|
||||
// cerco cod soggetto...
|
||||
if (DataProxy.obj.taTrascSogg.getByKey(barcodeIn, 0).Rows.Count == 1)
|
||||
{
|
||||
answ = tipoCodiceBarcode.Operatore;
|
||||
}
|
||||
}
|
||||
else if (matricola >= 0)
|
||||
{
|
||||
if (DataProxy.obj.taTrascSogg.getByKey("", matricola).Rows.Count == 1)
|
||||
{
|
||||
answ = tipoCodiceBarcode.Operatore;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
try
|
||||
@@ -266,12 +321,12 @@ namespace GMW.WebUserControls
|
||||
if (DataProxy.obj.taAnagParticolari.getByParticolare(currParticolare).Rows.Count == 0)
|
||||
{
|
||||
currParticolare = "";
|
||||
Postazione.messaggiText += " - codice particolare non valido / non trovato in RILPRO.";
|
||||
Postazione.messaggiText += traduci("ERR-FUS-001");
|
||||
Postazione.CssClass = "stileComandoKo";
|
||||
}
|
||||
else
|
||||
{
|
||||
Postazione.messaggiText += " - impostato particolare!";
|
||||
Postazione.messaggiText += traduci("partSelected");
|
||||
Postazione.CssClass = "stileComandoOk";
|
||||
}
|
||||
// default: qta a zero
|
||||
@@ -298,33 +353,69 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
// recupero il particolare dai dati del cartellino preesistente
|
||||
currParticolare = DataProxy.obj.taCartellini.stp_getByUdc(barcodeIn)[0].Particolare;
|
||||
// controllo esista il particolare
|
||||
if (DataProxy.obj.taAnagParticolari.getByParticolare(currParticolare).Rows.Count == 0)
|
||||
// controllo esista!!!
|
||||
bool partExists = DataProxy.obj.taAnagParticolari.getByParticolare(currParticolare).Rows.Count != 0;
|
||||
// controllo sia anima!!!
|
||||
bool isPart = TermClass.Ter.isParticolare(currParticolare);
|
||||
// controllo esista il particolare e sia anima
|
||||
if (partExists && isPart)
|
||||
{
|
||||
currParticolare = "";
|
||||
Postazione.messaggiText += " - codice particolare da UDC non valido / non trovato in RILPRO.";
|
||||
Postazione.CssClass = "stileComandoKo";
|
||||
Postazione.messaggiText += traduci("partSelected");
|
||||
Postazione.CssClass = "stileComandoOk";
|
||||
}
|
||||
else
|
||||
{
|
||||
Postazione.messaggiText += " - impostato particolare!";
|
||||
Postazione.CssClass = "stileComandoOk";
|
||||
currParticolare = "";
|
||||
Postazione.messaggiText += traduci("ERR-FUS-001");
|
||||
Postazione.CssClass = "stileComandoKo";
|
||||
}
|
||||
}
|
||||
|
||||
break;
|
||||
case tipoCodiceBarcode.Operatore:
|
||||
// calcolo matricola utente
|
||||
int MatrUtente = -1;
|
||||
string preCodSogg = memLayer.ML.confReadString("prefCodSogg");
|
||||
if (barcodeIn.StartsWith(preCodSogg))
|
||||
{
|
||||
MatrUtente = DataProxy.obj.taTrascSogg.getByKey(barcodeIn, 0)[0].CodMatricola;
|
||||
}
|
||||
else
|
||||
{
|
||||
MatrUtente = Convert.ToInt32(barcodeIn);
|
||||
}
|
||||
if (MatrUtente >= 0)
|
||||
{
|
||||
// salvo in sessione operatore con AUTH
|
||||
OpAuth.startOpAuth(MatrUtente);
|
||||
// mostro che ho autorizzato...
|
||||
Postazione.messaggiText += traduci("userAuthRec");
|
||||
Postazione.CssClass = "stileComandoOk";
|
||||
Response.Redirect(user_std.pagCorrente);
|
||||
}
|
||||
else
|
||||
{
|
||||
Postazione.messaggiText += traduci("ERR-BCD-001");
|
||||
Postazione.CssClass = "stileComandoND";
|
||||
}
|
||||
break;
|
||||
default:
|
||||
Postazione.messaggiText += " - codice <b>non riconosciuto</b>!";
|
||||
// cerco se sia "0" = reset utente...
|
||||
if (barcodeIn == memLayer.ML.CRS("resetCodSogg"))
|
||||
{
|
||||
// salvo in sessione operatore con AUTH
|
||||
OpAuth.stopAuth();
|
||||
// mostro che ho autorizzato...
|
||||
Postazione.messaggiText += traduci("userAuthRem");
|
||||
Postazione.CssClass = "stileComandoOk";
|
||||
Response.Redirect(user_std.pagCorrente);
|
||||
}
|
||||
Postazione.messaggiText += traduci("ERR-BCD-001");
|
||||
Postazione.CssClass = "stileComandoND";
|
||||
break;
|
||||
}
|
||||
barcodeIn = "";
|
||||
}
|
||||
else
|
||||
{
|
||||
Postazione.messaggiText = traduci("AttesaBCode");
|
||||
Postazione.CssClass = "stileAttesa";
|
||||
}
|
||||
doUpdate();
|
||||
}
|
||||
/// <summary>
|
||||
@@ -395,75 +486,110 @@ namespace GMW.WebUserControls
|
||||
/// <param name="e"></param>
|
||||
protected void lbtStampaUDC_Click(object sender, EventArgs e)
|
||||
{
|
||||
bool needsRedirect = false;
|
||||
// verifico postazione x procedere...
|
||||
if (Postazione.printer != "n.d.")
|
||||
{
|
||||
// se linea non selezionata ERRORE!!!
|
||||
if (Postazione.currCodLinea == "W3000" || Postazione.currCodLinea == "")
|
||||
// verifico auth utente OPPURE se NON sia richiesta...
|
||||
if (OpAuth.isAuth || !OpAuth.opAuthReq)
|
||||
{
|
||||
Postazione.messaggiText += " - Attenzione, IMPOSTARE LINEA!";
|
||||
Postazione.CssClass = "stileComandoKo";
|
||||
}
|
||||
else
|
||||
{
|
||||
string newUdcChild = "";
|
||||
string noteTrim = txtNote.Text.Trim();
|
||||
// effettuo controlli che cod_soggetto e cod particolare siano disponibili...
|
||||
string codSogg = "";
|
||||
string particolare = "";
|
||||
try
|
||||
// se linea non selezionata ERRORE!!!
|
||||
if (Postazione.currCodLinea == "W3000" || Postazione.currCodLinea == "")
|
||||
{
|
||||
codSogg = MagClass.magazzino.CodSoggCurrUser;
|
||||
particolare = currParticolare;
|
||||
Postazione.messaggiText += " - Attenzione, IMPOSTARE LINEA!";
|
||||
Postazione.CssClass = "stileComandoKo";
|
||||
}
|
||||
catch
|
||||
else
|
||||
{
|
||||
}
|
||||
if (codSogg != "" && particolare != "")
|
||||
{
|
||||
// genero cartellino liquidi
|
||||
DateTime adesso = DateTime.Now;
|
||||
string newUdcChild = "";
|
||||
string noteTrim = txtNote.Text.Trim();
|
||||
// effettuo controlli che cod_soggetto e cod particolare siano disponibili...
|
||||
string codSogg = "";
|
||||
string particolare = "";
|
||||
try
|
||||
{
|
||||
// aggiungo codice linea alle note
|
||||
noteTrim = string.Format("{0}{1}{2}", Postazione.currNomeLinea, Environment.NewLine, noteTrim);
|
||||
// creo nuovo UDC del trattamento liquidi
|
||||
newUdcChild = MagClass.magazzino.creaUdc(flusso, "", particolare, "", "", "", "", "", 0, memLayer.ML.confReadString("CodImballoFusi"), "U", codSogg, qta, 0, 0, adesso, 0, statoUDC, memLayer.ML.confReadInt("IdxPosizioneFusi"), "IdxPosizioneFusi", "UDC_FUSI", noteTrim, "", adesso.Year, Request.UserHostName);
|
||||
// registro creazione nuovo UDC
|
||||
MagClass.magazzino.taSAO.insertQuery(adesso, codSogg, Postazione.name, Postazione.IP, newUdcChild, particolare, "creaUDC", string.Format("Creato nuovo UDC Fusi - qta:{0} {1}", qta, noteTrim));
|
||||
// per ora attributo linea tolto, messo nelle note...
|
||||
codSogg = MagClass.magazzino.CodSoggCurrUser;
|
||||
particolare = currParticolare;
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
if (codSogg != "" && particolare != "")
|
||||
{
|
||||
// genero cartellino liquidi
|
||||
DateTime adesso = DateTime.Now;
|
||||
try
|
||||
{
|
||||
// aggiungo codice linea alle note
|
||||
noteTrim = string.Format("{0}{1}{2}", Postazione.currNomeLinea, Environment.NewLine, noteTrim);
|
||||
// creo nuovo UDC del trattamento liquidi
|
||||
newUdcChild = MagClass.magazzino.creaUdc(flusso, "", particolare, "", "", "", "", "", 0, memLayer.ML.confReadString("CodImballoFusi"), "U", codSogg, qta, 0, 0, adesso, 0, statoUDC, memLayer.ML.confReadInt("IdxPosizioneFusi"), "IdxPosizioneFusi", "UDC_FUSI", noteTrim, "", adesso.Year, Request.UserHostName);
|
||||
|
||||
if (OpAuth.isAuth)
|
||||
{
|
||||
// salvo attributo dell'OpAuth...
|
||||
MagClass.magazzino.taAtt2UDC.Insert(newUdcChild, memLayer.ML.CRS("attrOpAuth"), OpAuth.currAuth.CodSoggetto, DateTime.Now, codSogg);
|
||||
// consumo una auth...
|
||||
OpAuth.currAuth.remAuth--;
|
||||
if (OpAuth.currAuth.remAuth == 0)
|
||||
{
|
||||
OpAuth.stopAuth();
|
||||
needsRedirect = true;
|
||||
}
|
||||
}
|
||||
|
||||
// registro creazione nuovo UDC
|
||||
MagClass.magazzino.taSAO.insertQuery(adesso, codSogg, Postazione.name, Postazione.IP, newUdcChild, particolare, "creaUDC", string.Format("Creato nuovo UDC Fusi - qta:{0} {1}", qta, noteTrim));
|
||||
// per ora attributo linea tolto, messo nelle note...
|
||||
#if false
|
||||
// salvo attributo linea con UDC
|
||||
MagClass.magazzino.taAtt2UDC.Insert(newUdcChild, attrLINEA, Postazione.currCodLinea, DateTime.Now, codSogg);
|
||||
#endif
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
httpLog(string.Format("Errore creazione UDC Fusi: {0}", exc), tipoLog.EXCEPTION);
|
||||
}
|
||||
// se ho cart stampo!
|
||||
if (newUdcChild != "")
|
||||
{
|
||||
// ora stampo il nuovo cartellino!!!
|
||||
MagClass.magazzino.stampaUdc(newUdcChild, Postazione.printer, tipoCartellino.cartFusi, Request.UserHostName);
|
||||
// incremento timing...
|
||||
adesso = DateTime.Now;
|
||||
adesso = adesso.AddSeconds(1);
|
||||
// registro stampa nuovo UDC
|
||||
MagClass.magazzino.taSAO.insertQuery(adesso, codSogg, Postazione.name, Postazione.IP, newUdcChild, particolare, "stampaUDC", "Stampato UDC Fusi");
|
||||
}
|
||||
}
|
||||
catch (Exception exc)
|
||||
else
|
||||
{
|
||||
httpLog(string.Format("Errore creazione UDC Fusi: {0}", exc), tipoLog.EXCEPTION);
|
||||
}
|
||||
// se ho cart stampo!
|
||||
if (newUdcChild != "")
|
||||
{
|
||||
// ora stampo il nuovo cartellino!!!
|
||||
MagClass.magazzino.stampaUdc(newUdcChild, Postazione.printer, tipoCartellino.cartFusi, Request.UserHostName);
|
||||
// incremento timing...
|
||||
adesso = DateTime.Now;
|
||||
adesso = adesso.AddSeconds(1);
|
||||
// registro stampa nuovo UDC
|
||||
MagClass.magazzino.taSAO.insertQuery(adesso, codSogg, Postazione.name, Postazione.IP, newUdcChild, particolare, "stampaUDC", "Stampato UDC Fusi");
|
||||
httpLog(string.Format("Errore persi utente/particolare, ricarico!"), tipoLog.ERROR);
|
||||
Response.Redirect("~/login.aspx");
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
httpLog(string.Format("Errore persi utente/particolare, ricarico!"), tipoLog.ERROR);
|
||||
Response.Redirect("~/login.aspx");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Postazione.messaggiText = traduci("noOpAuth");
|
||||
Postazione.CssClass = "stileComandoKo";
|
||||
httpLog(string.Format("Errore manca OpAuth x UDC anime"), tipoLog.ERROR);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Response.Redirect("~/menu.aspx");
|
||||
}
|
||||
// raise dell'evento
|
||||
if (eh_reqUpdate != null)
|
||||
{
|
||||
eh_reqUpdate(this, new EventArgs());
|
||||
}
|
||||
if (needsRedirect)
|
||||
{
|
||||
Response.Redirect(user_std.pagCorrente);
|
||||
}
|
||||
doUpdate();
|
||||
}
|
||||
/// <summary>
|
||||
@@ -496,6 +622,13 @@ namespace GMW.WebUserControls
|
||||
protected void btnEmptyNote_Click(object sender, EventArgs e)
|
||||
{
|
||||
txtNote.Text = "";
|
||||
Postazione.messaggiText = traduci("AttesaBCode");
|
||||
Postazione.CssClass = "stileAttesa";
|
||||
// raise dell'evento
|
||||
if (eh_reqUpdate != null)
|
||||
{
|
||||
eh_reqUpdate(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -21,6 +21,10 @@ namespace GMW.WebUserControls
|
||||
/// </summary>
|
||||
protected string eventoUDC = "UDC_FINITO";
|
||||
/// <summary>
|
||||
/// dati x verifica CodSoggetto / matricola
|
||||
/// </summary>
|
||||
protected string preCodSogg = memLayer.ML.confReadString("prefCodSogg");
|
||||
/// <summary>
|
||||
/// stringa degli UDC selezionati per consumo COMPLETO (nel formato #UDC1##UDC2#)
|
||||
/// </summary>
|
||||
protected string udcSelC
|
||||
@@ -74,10 +78,24 @@ namespace GMW.WebUserControls
|
||||
fixRicercaUdc();
|
||||
traduciObj();
|
||||
idxCella = Postazione.currIdxCella;
|
||||
checkNumKeyIn();
|
||||
}
|
||||
doChecks();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// verifico se ci sia in sessione un input da NumKeyb e nel caso lometto in barcodeIn e processo...
|
||||
/// </summary>
|
||||
private void checkNumKeyIn()
|
||||
{
|
||||
if (memLayer.ML.isInSessionObject("numKeyIn"))
|
||||
{
|
||||
barcodeIn = memLayer.ML.StringSessionObj("numKeyIn");
|
||||
// svuoto valore in sessione...
|
||||
memLayer.ML.emptySessionVal("numKeyIn");
|
||||
// controllo barcode...
|
||||
checkBarcode();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// IDX cella associata alla linea corrente
|
||||
/// </summary>
|
||||
@@ -294,6 +312,14 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
tipoCodiceBarcode answ = tipoCodiceBarcode.ND;
|
||||
int trovati = 0;
|
||||
int matricola = -1;
|
||||
// provo a convertire in intero barcode x verifica eventuale matricola...
|
||||
try
|
||||
{
|
||||
matricola = Convert.ToInt32(barcodeIn);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
// controllo non si tratti di un comando...
|
||||
string preCmd = memLayer.ML.confReadString("prefComandi");
|
||||
if (barcodeIn.StartsWith(preCmd))
|
||||
@@ -310,6 +336,21 @@ namespace GMW.WebUserControls
|
||||
// è imballo!
|
||||
answ = tipoCodiceBarcode.Imballo;
|
||||
}
|
||||
else if (barcodeIn.StartsWith(preCodSogg))
|
||||
{
|
||||
// cerco cod soggetto...
|
||||
if (DataProxy.obj.taTrascSogg.getByKey(barcodeIn, 0).Rows.Count == 1)
|
||||
{
|
||||
answ = tipoCodiceBarcode.Operatore;
|
||||
}
|
||||
}
|
||||
else if (matricola >= 0)
|
||||
{
|
||||
if (DataProxy.obj.taTrascSogg.getByKey("", matricola).Rows.Count == 1)
|
||||
{
|
||||
answ = tipoCodiceBarcode.Operatore;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
try
|
||||
@@ -427,19 +468,58 @@ namespace GMW.WebUserControls
|
||||
#endif
|
||||
}
|
||||
|
||||
break;
|
||||
case tipoCodiceBarcode.Operatore:
|
||||
// calcolo matricola utente
|
||||
int MatrUtente = -1;
|
||||
string preCodSogg = memLayer.ML.confReadString("prefCodSogg");
|
||||
if (barcodeIn.StartsWith(preCodSogg))
|
||||
{
|
||||
MatrUtente = DataProxy.obj.taTrascSogg.getByKey(barcodeIn, 0)[0].CodMatricola;
|
||||
}
|
||||
else
|
||||
{
|
||||
MatrUtente = Convert.ToInt32(barcodeIn);
|
||||
}
|
||||
if (MatrUtente >= 0)
|
||||
{
|
||||
// salvo in sessione operatore con AUTH
|
||||
OpAuth.startOpAuth(MatrUtente);
|
||||
// mostro che ho autorizzato...
|
||||
Postazione.messaggiText += traduci("userAuthRec");
|
||||
Postazione.CssClass = "stileComandoOk";
|
||||
Response.Redirect(user_std.pagCorrente);
|
||||
}
|
||||
else
|
||||
{
|
||||
Postazione.messaggiText += " - codice <b>non riconosciuto</b>!";
|
||||
Postazione.CssClass = "stileComandoND";
|
||||
}
|
||||
break;
|
||||
default:
|
||||
// cerco se sia "0" = reset utente...
|
||||
if (barcodeIn == memLayer.ML.CRS("resetCodSogg"))
|
||||
{
|
||||
// salvo in sessione operatore con AUTH
|
||||
OpAuth.stopAuth();
|
||||
// mostro che ho autorizzato...
|
||||
Postazione.messaggiText += traduci("userAuthRem");
|
||||
Postazione.CssClass = "stileComandoOk";
|
||||
Response.Redirect(user_std.pagCorrente);
|
||||
}
|
||||
Postazione.messaggiText += " - codice <b>non riconosciuto</b>!";
|
||||
Postazione.CssClass = "stileComandoND";
|
||||
break;
|
||||
}
|
||||
barcodeIn = "";
|
||||
}
|
||||
#if false
|
||||
else
|
||||
{
|
||||
Postazione.messaggiText = traduci("AttesaBCode");
|
||||
Postazione.CssClass = "stileAttesa";
|
||||
}
|
||||
}
|
||||
#endif
|
||||
//grView.DataBind();
|
||||
txtBarcode.Focus();
|
||||
}
|
||||
@@ -538,142 +618,167 @@ namespace GMW.WebUserControls
|
||||
/// <param name="e"></param>
|
||||
protected void btnStampa_Click(object sender, EventArgs e)
|
||||
{
|
||||
bool needsRedirect = false;
|
||||
string[] stringSeparators = new string[] { "#" };
|
||||
// verifico postazione x procedere...
|
||||
if (Postazione.printer != "n.d.")
|
||||
{
|
||||
// controllo UDC in ingresso, che siano tutti con uguale particolare e DIVERSO da ""
|
||||
string partUdcIn = "";
|
||||
try
|
||||
// verifico auth utente OPPURE se NON sia richiesta...
|
||||
if (OpAuth.isAuth || !OpAuth.opAuthReq)
|
||||
{
|
||||
string fullUdc = string.Format("{0}#{1}", udcSelC, udcSelP);
|
||||
// ciclo tutti gli UDC consumati P e C e verifico loro particolare
|
||||
if (fullUdc.Replace("#", "").Length > 1)
|
||||
{
|
||||
string[] elencoUDC;
|
||||
elencoUDC = fullUdc.Split(stringSeparators, StringSplitOptions.RemoveEmptyEntries);
|
||||
partUdcIn = checkPartUDC(elencoUDC);
|
||||
}
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
if (partUdcIn != "")
|
||||
{
|
||||
// controllo da distinta base coerenza particolare IN/OUT
|
||||
bool partDistintaOk = false;
|
||||
// controllo UDC in ingresso, che siano tutti con uguale particolare e DIVERSO da ""
|
||||
string partUdcIn = "";
|
||||
try
|
||||
{
|
||||
if (MagClass.magazzino.taPartIO.GetData(currParticolare, partUdcIn, true)[0].Trovati > 0) partDistintaOk = true;
|
||||
string fullUdc = string.Format("{0}#{1}", udcSelC, udcSelP);
|
||||
// ciclo tutti gli UDC consumati P e C e verifico loro particolare
|
||||
if (fullUdc.Replace("#", "").Length > 1)
|
||||
{
|
||||
string[] elencoUDC;
|
||||
elencoUDC = fullUdc.Split(stringSeparators, StringSplitOptions.RemoveEmptyEntries);
|
||||
partUdcIn = checkPartUDC(elencoUDC);
|
||||
}
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
if (partDistintaOk)
|
||||
if (partUdcIn != "")
|
||||
{
|
||||
string newUdcChild = "";
|
||||
int qta = memLayer.ML.confReadInt("QtaImballoFiniti");
|
||||
string noteTrim = txtNote.Text.Trim();
|
||||
// 2014.05.08 tolto e spostato in classe postaizeen gestione NOME LINEA x note, da verificare...
|
||||
#if false
|
||||
string nomeLinea = ddlLinea.SelectedItem.Text;
|
||||
#endif
|
||||
noteTrim = string.Format("{0}{1}{2}", Postazione.currNomeLinea, Environment.NewLine, noteTrim);
|
||||
// controllo da distinta base coerenza particolare IN/OUT
|
||||
bool partDistintaOk = false;
|
||||
try
|
||||
{
|
||||
qta = Convert.ToInt32(txtQta.Text);
|
||||
if (MagClass.magazzino.taPartIO.GetData(currParticolare, partUdcIn, true)[0].Trovati > 0) partDistintaOk = true;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
// effettuo controlli che cod_soggetto e cod particolare siano disponibili...
|
||||
string codSogg = "";
|
||||
string particolare = "";
|
||||
try
|
||||
if (partDistintaOk)
|
||||
{
|
||||
codSogg = MagClass.magazzino.CodSoggCurrUser;
|
||||
particolare = currParticolare;
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
if (codSogg != "" && particolare != "")
|
||||
{
|
||||
// genero cartellino
|
||||
DateTime adesso = DateTime.Now;
|
||||
string newUdcChild = "";
|
||||
int qta = memLayer.ML.confReadInt("QtaImballoFiniti");
|
||||
string noteTrim = txtNote.Text.Trim();
|
||||
// 2014.05.08 tolto e spostato in classe postaizeen gestione NOME LINEA x note, da verificare...
|
||||
#if false
|
||||
string nomeLinea = ddlLinea.SelectedItem.Text;
|
||||
#endif
|
||||
noteTrim = string.Format("{0}{1}{2}", Postazione.currNomeLinea, Environment.NewLine, noteTrim);
|
||||
try
|
||||
{
|
||||
string codImballo = "";
|
||||
qta = Convert.ToInt32(txtQta.Text);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
// effettuo controlli che cod_soggetto e cod particolare siano disponibili...
|
||||
string codSogg = "";
|
||||
string particolare = "";
|
||||
try
|
||||
{
|
||||
codSogg = MagClass.magazzino.CodSoggCurrUser;
|
||||
particolare = currParticolare;
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
if (codSogg != "" && particolare != "")
|
||||
{
|
||||
// genero cartellino
|
||||
DateTime adesso = DateTime.Now;
|
||||
try
|
||||
{
|
||||
codImballo = ddlImballi.SelectedValue;
|
||||
}
|
||||
catch
|
||||
{
|
||||
codImballo = memLayer.ML.confReadString("CodImballoFiniti");
|
||||
}
|
||||
// se NON HA selezionato prendo default...
|
||||
if (codImballo == "" || codImballo == "-")
|
||||
{
|
||||
codImballo = memLayer.ML.confReadString("CodImballoFiniti");
|
||||
}
|
||||
// creo nuovo UDC FINITO OUT multiple
|
||||
newUdcChild = MagClass.magazzino.creaUdc(flusso, "", currParticolare, "", "", "", "", "", 0, codImballo, "U", MagClass.magazzino.CodSoggCurrUser, qta, 0, 0, adesso, 0, statoUDC, memLayer.ML.confReadInt("IdxPosizioneFiniti"), "IdxPosizioneFiniti", eventoUDC, noteTrim, "", adesso.Year, Request.UserHostName);
|
||||
// registro creazione nuovo UDC
|
||||
MagClass.magazzino.taSAO.insertQuery(adesso, codSogg, Postazione.name, Postazione.IP, newUdcChild, particolare, "creaUDC", string.Format("Creato nuovo UDC Finito LM OUT, qta: {0} {1}", qta, noteTrim));
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
httpLog(string.Format("Errore creazione UDC Finito LM OUT: {0}", exc), tipoLog.EXCEPTION);
|
||||
}
|
||||
// devo gestire associazione e consumo cartellini FUSI
|
||||
if (newUdcChild != "")
|
||||
{
|
||||
string[] UDC_P;
|
||||
// ASSOCIO tutti gli UDC consumati sia Parziali che Completi al nuovo UDC
|
||||
if (udcSelP.Replace("#", "").Length > 1)
|
||||
{
|
||||
// associo
|
||||
UDC_P = udcSelP.Split(stringSeparators, StringSplitOptions.RemoveEmptyEntries);
|
||||
//UDC_P = SteamWare.StringSplitter.CSplitter.Split(udcSelP, "#", false, 0, SteamWare.StringSplitter.ComparisonMethod.Text);
|
||||
associaUdc(newUdcChild, UDC_P);
|
||||
}
|
||||
if (udcSelC.Replace("#", "").Length > 1)
|
||||
{
|
||||
// associo
|
||||
UDC_P = udcSelC.Split(stringSeparators, StringSplitOptions.RemoveEmptyEntries);
|
||||
//UDC_P = SteamWare.StringSplitter.CSplitter.Split(udcSelC, "#", false, 0, SteamWare.StringSplitter.ComparisonMethod.Text);
|
||||
associaUdc(newUdcChild, UDC_P);
|
||||
// consumo gli UDC indicati come "C"
|
||||
consumaUdc(UDC_P);
|
||||
}
|
||||
string codImballo = "";
|
||||
try
|
||||
{
|
||||
codImballo = ddlImballi.SelectedValue;
|
||||
}
|
||||
catch
|
||||
{
|
||||
codImballo = memLayer.ML.confReadString("CodImballoFiniti");
|
||||
}
|
||||
// se NON HA selezionato prendo default...
|
||||
if (codImballo == "" || codImballo == "-")
|
||||
{
|
||||
codImballo = memLayer.ML.confReadString("CodImballoFiniti");
|
||||
}
|
||||
// creo nuovo UDC FINITO OUT multiple
|
||||
newUdcChild = MagClass.magazzino.creaUdc(flusso, "", currParticolare, "", "", "", "", "", 0, codImballo, "U", MagClass.magazzino.CodSoggCurrUser, qta, 0, 0, adesso, 0, statoUDC, memLayer.ML.confReadInt("IdxPosizioneFiniti"), "IdxPosizioneFiniti", eventoUDC, noteTrim, "", adesso.Year, Request.UserHostName);
|
||||
|
||||
// ora stampo il nuovo cartellino!!!
|
||||
MagClass.magazzino.stampaUdc(newUdcChild, Postazione.printer, tipoCartellino.cartFiniti, Request.UserHostName);
|
||||
// incremento timing...
|
||||
adesso = DateTime.Now;
|
||||
adesso = adesso.AddSeconds(2);
|
||||
// registro stampa nuovo UDC
|
||||
MagClass.magazzino.taSAO.insertQuery(adesso, codSogg, Postazione.name, Postazione.IP, newUdcChild, particolare, "stampaUDC", "Stampato UDC Finito LM OUT");
|
||||
if (OpAuth.isAuth)
|
||||
{
|
||||
// salvo attributo dell'OpAuth...
|
||||
MagClass.magazzino.taAtt2UDC.Insert(newUdcChild, memLayer.ML.CRS("attrOpAuth"), OpAuth.currAuth.CodSoggetto, DateTime.Now, codSogg);
|
||||
// consumo una auth...
|
||||
OpAuth.currAuth.remAuth--;
|
||||
if (OpAuth.currAuth.remAuth == 0)
|
||||
{
|
||||
OpAuth.stopAuth();
|
||||
needsRedirect = true;
|
||||
}
|
||||
}
|
||||
|
||||
// registro creazione nuovo UDC
|
||||
MagClass.magazzino.taSAO.insertQuery(adesso, codSogg, Postazione.name, Postazione.IP, newUdcChild, particolare, "creaUDC", string.Format("Creato nuovo UDC Finito LM OUT, qta: {0} {1}", qta, noteTrim));
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
httpLog(string.Format("Errore creazione UDC Finito LM OUT: {0}", exc), tipoLog.EXCEPTION);
|
||||
}
|
||||
// devo gestire associazione e consumo cartellini FUSI
|
||||
if (newUdcChild != "")
|
||||
{
|
||||
string[] UDC_P;
|
||||
// ASSOCIO tutti gli UDC consumati sia Parziali che Completi al nuovo UDC
|
||||
if (udcSelP.Replace("#", "").Length > 1)
|
||||
{
|
||||
// associo
|
||||
UDC_P = udcSelP.Split(stringSeparators, StringSplitOptions.RemoveEmptyEntries);
|
||||
//UDC_P = SteamWare.StringSplitter.CSplitter.Split(udcSelP, "#", false, 0, SteamWare.StringSplitter.ComparisonMethod.Text);
|
||||
associaUdc(newUdcChild, UDC_P);
|
||||
}
|
||||
if (udcSelC.Replace("#", "").Length > 1)
|
||||
{
|
||||
// associo
|
||||
UDC_P = udcSelC.Split(stringSeparators, StringSplitOptions.RemoveEmptyEntries);
|
||||
//UDC_P = SteamWare.StringSplitter.CSplitter.Split(udcSelC, "#", false, 0, SteamWare.StringSplitter.ComparisonMethod.Text);
|
||||
associaUdc(newUdcChild, UDC_P);
|
||||
// consumo gli UDC indicati come "C"
|
||||
consumaUdc(UDC_P);
|
||||
}
|
||||
|
||||
// ora stampo il nuovo cartellino!!!
|
||||
MagClass.magazzino.stampaUdc(newUdcChild, Postazione.printer, tipoCartellino.cartFiniti, Request.UserHostName);
|
||||
// incremento timing...
|
||||
adesso = DateTime.Now;
|
||||
adesso = adesso.AddSeconds(2);
|
||||
// registro stampa nuovo UDC
|
||||
MagClass.magazzino.taSAO.insertQuery(adesso, codSogg, Postazione.name, Postazione.IP, newUdcChild, particolare, "stampaUDC", "Stampato UDC Finito LM OUT");
|
||||
}
|
||||
// resetto
|
||||
doResetData();
|
||||
}
|
||||
else
|
||||
{
|
||||
httpLog(string.Format("Finiti LM OUT, Errore persi utente/particolare, ricarico!"), tipoLog.ERROR);
|
||||
Response.Redirect("~/login.aspx");
|
||||
}
|
||||
// resetto
|
||||
doResetData();
|
||||
}
|
||||
else
|
||||
{
|
||||
httpLog(string.Format("Finiti LM OUT, Errore persi utente/particolare, ricarico!"), tipoLog.ERROR);
|
||||
Response.Redirect("~/login.aspx");
|
||||
httpLog(string.Format("Finiti LM OUT, Errore controllo coerenza particolari da distinta base!"), tipoLog.ERROR);
|
||||
Postazione.messaggiText += "Errore particolari UDC da controllo distinta base";
|
||||
Postazione.CssClass = "stileComandoND";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
httpLog(string.Format("Finiti LM OUT, Errore controllo coerenza particolari da distinta base!"), tipoLog.ERROR);
|
||||
Postazione.messaggiText += "Errore particolari UDC da controllo distinta base";
|
||||
httpLog(string.Format("Finiti LM OUT, Errore controllo coerenza elenco particolari IN!"), tipoLog.ERROR);
|
||||
Postazione.messaggiText += "Errore particolari UDC da consumare non coerenti";
|
||||
Postazione.CssClass = "stileComandoND";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
httpLog(string.Format("Finiti LM OUT, Errore controllo coerenza elenco particolari IN!"), tipoLog.ERROR);
|
||||
Postazione.messaggiText += "Errore particolari UDC da consumare non coerenti";
|
||||
Postazione.CssClass = "stileComandoND";
|
||||
Postazione.messaggiText = traduci("noOpAuth");
|
||||
Postazione.CssClass = "stileComandoKo";
|
||||
httpLog(string.Format("Errore manca OpAuth x UDC anime"), tipoLog.ERROR);
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -681,6 +786,15 @@ namespace GMW.WebUserControls
|
||||
Response.Redirect("~/menu.aspx");
|
||||
}
|
||||
doUpdate();
|
||||
// raise dell'evento
|
||||
if (eh_reqUpdate != null)
|
||||
{
|
||||
eh_reqUpdate(this, new EventArgs());
|
||||
}
|
||||
if (needsRedirect)
|
||||
{
|
||||
Response.Redirect(user_std.pagCorrente);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// effettua il consumo di tutti gli UDC inviati come array di stringhe
|
||||
@@ -789,6 +903,13 @@ namespace GMW.WebUserControls
|
||||
protected void btnEmptyNote_Click(object sender, EventArgs e)
|
||||
{
|
||||
txtNote.Text = "";
|
||||
Postazione.messaggiText = traduci("AttesaBCode");
|
||||
Postazione.CssClass = "stileAttesa";
|
||||
// raise dell'evento
|
||||
if (eh_reqUpdate != null)
|
||||
{
|
||||
eh_reqUpdate(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// passo alla modalità IN
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_numKey.ascx.cs" Inherits="GMW.WebUserControls.mod_numKey" %>
|
||||
<div class="row" style="font-size: 2em; margin: 2px; border: 2px solid #333; min-height: 1.6em;">
|
||||
<div class="col-xs-12 text-center">
|
||||
<asp:Label runat="server" ID="lblInput" Text="" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-4">
|
||||
<asp:Button runat="server" CssClass="btn btn-inverse btn-lg" Width="100%" ID="btn7" CommandArgument="7" Text="7" OnClick="btn_Click" />
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
<asp:Button runat="server" CssClass="btn btn-inverse btn-lg" Width="100%" ID="btn8" CommandArgument="8" Text="8" OnClick="btn_Click" />
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
<asp:Button runat="server" CssClass="btn btn-inverse btn-lg" Width="100%" ID="btn9" CommandArgument="9" Text="9" OnClick="btn_Click" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-4">
|
||||
<asp:Button runat="server" CssClass="btn btn-inverse btn-lg" Width="100%" ID="btn4" CommandArgument="4" Text="4" OnClick="btn_Click" />
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
<asp:Button runat="server" CssClass="btn btn-inverse btn-lg" Width="100%" ID="btn5" CommandArgument="5" Text="5" OnClick="btn_Click" />
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
<asp:Button runat="server" CssClass="btn btn-inverse btn-lg" Width="100%" ID="btn6" CommandArgument="6" Text="6" OnClick="btn_Click" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-4">
|
||||
<asp:Button runat="server" CssClass="btn btn-inverse btn-lg" Width="100%" ID="btn1" CommandArgument="1" Text="1" OnClick="btn_Click" />
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
<asp:Button runat="server" CssClass="btn btn-inverse btn-lg" Width="100%" ID="btn2" CommandArgument="2" Text="2" OnClick="btn_Click" />
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
<asp:Button runat="server" CssClass="btn btn-inverse btn-lg" Width="100%" ID="btn3" CommandArgument="3" Text="3" OnClick="btn_Click" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-4">
|
||||
<asp:Button runat="server" CssClass="btn btn-lg" Width="100%" ID="btnC" CommandArgument="C" Text="CLR" OnClick="btn_Click" />
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
<asp:Button runat="server" CssClass="btn btn-inverse btn-lg" Width="100%" ID="btn0" CommandArgument="0" Text="0" OnClick="btn_Click" />
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
<asp:Button runat="server" CssClass="btn btn-lg" Width="100%" ID="btnS" CommandArgument="S" Text="ENT" OnClick="btn_Click" />
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,52 @@
|
||||
using SteamWare;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace GMW.WebUserControls
|
||||
{
|
||||
public partial class mod_numKey : System.Web.UI.UserControl
|
||||
{
|
||||
/// <summary>
|
||||
/// arg comando CANC
|
||||
/// </summary>
|
||||
protected string cmdCanc = "C";
|
||||
/// <summary>
|
||||
/// arg comando SAVE
|
||||
/// </summary>
|
||||
protected string cmdSave = "S";
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if(!Page.IsPostBack)
|
||||
{
|
||||
btnS.CommandArgument = cmdSave;
|
||||
btnC.CommandArgument = cmdCanc;
|
||||
}
|
||||
}
|
||||
|
||||
protected void btn_Click(object sender, EventArgs e)
|
||||
{
|
||||
// controllo SE sia reset o canc...
|
||||
string inChar = ((Button)sender).CommandArgument;
|
||||
if (inChar == cmdCanc)
|
||||
{
|
||||
lblInput.Text = "";
|
||||
}
|
||||
else if (inChar == cmdSave)
|
||||
{
|
||||
// salvo valore in sessione e ricarico...
|
||||
memLayer.ML.setSessionVal("numKeyIn", lblInput.Text);
|
||||
//lblInput.Text = "";
|
||||
// ricarico
|
||||
Response.Redirect(user_std.pagCorrente);
|
||||
}
|
||||
else
|
||||
{
|
||||
lblInput.Text += ((Button)sender).CommandArgument;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+132
@@ -0,0 +1,132 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GMW.WebUserControls {
|
||||
|
||||
|
||||
public partial class mod_numKey {
|
||||
|
||||
/// <summary>
|
||||
/// lblInput control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblInput;
|
||||
|
||||
/// <summary>
|
||||
/// btn7 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btn7;
|
||||
|
||||
/// <summary>
|
||||
/// btn8 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btn8;
|
||||
|
||||
/// <summary>
|
||||
/// btn9 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btn9;
|
||||
|
||||
/// <summary>
|
||||
/// btn4 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btn4;
|
||||
|
||||
/// <summary>
|
||||
/// btn5 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btn5;
|
||||
|
||||
/// <summary>
|
||||
/// btn6 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btn6;
|
||||
|
||||
/// <summary>
|
||||
/// btn1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btn1;
|
||||
|
||||
/// <summary>
|
||||
/// btn2 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btn2;
|
||||
|
||||
/// <summary>
|
||||
/// btn3 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btn3;
|
||||
|
||||
/// <summary>
|
||||
/// btnC control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btnC;
|
||||
|
||||
/// <summary>
|
||||
/// btn0 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btn0;
|
||||
|
||||
/// <summary>
|
||||
/// btnS control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btnS;
|
||||
}
|
||||
}
|
||||
@@ -27,6 +27,10 @@ namespace GMW.WebUserControls
|
||||
/// tipo di evento associato alla modifica qta dell'UDC
|
||||
/// </summary>
|
||||
protected string eventoUDC_qta = "UDC_QTY";
|
||||
/// <summary>
|
||||
/// dati x verifica CodSoggetto / matricola
|
||||
/// </summary>
|
||||
protected string preCodSogg = memLayer.ML.confReadString("prefCodSogg");
|
||||
public event EventHandler eh_reqUpdate;
|
||||
/// <summary>
|
||||
/// stringa UID univoca
|
||||
@@ -52,11 +56,26 @@ namespace GMW.WebUserControls
|
||||
destAL = AlByCella;
|
||||
traduciObj();
|
||||
idxCella = Postazione.currIdxCella;
|
||||
checkNumKeyIn();
|
||||
}
|
||||
setVisibility();
|
||||
doChecks();
|
||||
}
|
||||
/// <summary>
|
||||
/// verifico se ci sia in sessione un input da NumKeyb e nel caso lometto in barcodeIn e processo...
|
||||
/// </summary>
|
||||
private void checkNumKeyIn()
|
||||
{
|
||||
if (memLayer.ML.isInSessionObject("numKeyIn"))
|
||||
{
|
||||
barcodeIn = memLayer.ML.StringSessionObj("numKeyIn");
|
||||
// svuoto valore in sessione...
|
||||
memLayer.ML.emptySessionVal("numKeyIn");
|
||||
// controllo barcode...
|
||||
checkBarcode();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// IDX cella associata alla linea corrente
|
||||
/// </summary>
|
||||
protected int idxCella
|
||||
@@ -296,6 +315,14 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
tipoCodiceBarcode answ = tipoCodiceBarcode.ND;
|
||||
int trovati = 0;
|
||||
int matricola = -1;
|
||||
// provo a convertire in intero barcode x verifica eventuale matricola...
|
||||
try
|
||||
{
|
||||
matricola = Convert.ToInt32(barcodeIn);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
// controllo non si tratti di un comando...
|
||||
string preCmd = memLayer.ML.confReadString("prefComandi");
|
||||
if (barcodeIn.StartsWith(preCmd))
|
||||
@@ -306,6 +333,21 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
answ = tipoCodiceBarcode.Particolare;
|
||||
}
|
||||
else if (barcodeIn.StartsWith(preCodSogg))
|
||||
{
|
||||
// cerco cod soggetto...
|
||||
if (DataProxy.obj.taTrascSogg.getByKey(barcodeIn, 0).Rows.Count == 1)
|
||||
{
|
||||
answ = tipoCodiceBarcode.Operatore;
|
||||
}
|
||||
}
|
||||
else if (matricola >= 0)
|
||||
{
|
||||
if (DataProxy.obj.taTrascSogg.getByKey("", matricola).Rows.Count == 1)
|
||||
{
|
||||
answ = tipoCodiceBarcode.Operatore;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
try
|
||||
@@ -504,18 +546,57 @@ namespace GMW.WebUserControls
|
||||
// update
|
||||
doUpdate();
|
||||
break;
|
||||
case tipoCodiceBarcode.Operatore:
|
||||
// calcolo matricola utente
|
||||
int MatrUtente = -1;
|
||||
string preCodSogg = memLayer.ML.confReadString("prefCodSogg");
|
||||
if (barcodeIn.StartsWith(preCodSogg))
|
||||
{
|
||||
MatrUtente = DataProxy.obj.taTrascSogg.getByKey(barcodeIn, 0)[0].CodMatricola;
|
||||
}
|
||||
else
|
||||
{
|
||||
MatrUtente = Convert.ToInt32(barcodeIn);
|
||||
}
|
||||
if (MatrUtente >= 0)
|
||||
{
|
||||
// salvo in sessione operatore con AUTH
|
||||
OpAuth.startOpAuth(MatrUtente);
|
||||
// mostro che ho autorizzato...
|
||||
Postazione.messaggiText += traduci("userAuthRec");
|
||||
Postazione.CssClass = "stileComandoOk";
|
||||
Response.Redirect(user_std.pagCorrente);
|
||||
}
|
||||
else
|
||||
{
|
||||
Postazione.messaggiText += " - codice <b>non riconosciuto</b>!";
|
||||
Postazione.CssClass = "stileComandoND";
|
||||
}
|
||||
break;
|
||||
default:
|
||||
// cerco se sia "0" = reset utente...
|
||||
if (barcodeIn == memLayer.ML.CRS("resetCodSogg"))
|
||||
{
|
||||
// salvo in sessione operatore con AUTH
|
||||
OpAuth.stopAuth();
|
||||
// mostro che ho autorizzato...
|
||||
Postazione.messaggiText += traduci("userAuthRem");
|
||||
Postazione.CssClass = "stileComandoOk";
|
||||
Response.Redirect(user_std.pagCorrente);
|
||||
}
|
||||
Postazione.messaggiText += " - codice <b>non riconosciuto</b>!";
|
||||
Postazione.CssClass = "stileComandoND";
|
||||
break;
|
||||
}
|
||||
barcodeIn = "";
|
||||
}
|
||||
#if false
|
||||
else
|
||||
{
|
||||
Postazione.messaggiText = traduci("AttesaBCode");
|
||||
Postazione.CssClass = "stileAttesa";
|
||||
}
|
||||
}
|
||||
#endif
|
||||
txtBarcode.Focus();
|
||||
}
|
||||
/// <summary>
|
||||
@@ -629,42 +710,67 @@ namespace GMW.WebUserControls
|
||||
/// <param name="e"></param>
|
||||
protected void btnStampa_Click(object sender, EventArgs e)
|
||||
{
|
||||
bool needsRedirect = false;
|
||||
string[] stringSeparators = new string[] { "#" };
|
||||
// verifico postazione x procedere...
|
||||
if (Postazione.printer != "n.d.")
|
||||
{
|
||||
DateTime adesso = DateTime.Now;
|
||||
//int qta = memLayer.ML.confReadInt("QtaImballoSterr");
|
||||
string noteTrim = txtNote.Text.Trim();
|
||||
string lineaCesta = string.Format("{0} | cesta: {1}", Postazione.currNomeLinea, numCesta);
|
||||
noteTrim = string.Format("{0}{1}{2}", lineaCesta, Environment.NewLine, noteTrim);
|
||||
|
||||
// effettuo controlli che cod_soggetto, cod particolare e destAL siano disponibili...
|
||||
if (MagClass.magazzino.CodSoggCurrUser != "" && currParticolare != "" && destAL != "ALS00")
|
||||
// verifico auth utente OPPURE se NON sia richiesta...
|
||||
if (OpAuth.isAuth || !OpAuth.opAuthReq)
|
||||
{
|
||||
DateTime adesso = DateTime.Now;
|
||||
//int qta = memLayer.ML.confReadInt("QtaImballoSterr");
|
||||
string noteTrim = txtNote.Text.Trim();
|
||||
string lineaCesta = string.Format("{0} | cesta: {1}", Postazione.currNomeLinea, numCesta);
|
||||
noteTrim = string.Format("{0}{1}{2}", lineaCesta, Environment.NewLine, noteTrim);
|
||||
|
||||
// aggiorno note e posizione da temp a definitiv x UDC...
|
||||
MagClass.magazzino.updateNotePosizioneUDC(currUDC, noteTrim, memLayer.ML.confReadInt("IdxPosizioneSterrati"));
|
||||
// registro creazione nuovo UDC
|
||||
MagClass.magazzino.taSAO.insertQuery(adesso, MagClass.magazzino.CodSoggCurrUser, Postazione.name, Postazione.IP, currUDC, currParticolare, "creaUDC", string.Format("Creato nuovo UDC Sterr Taglio, qta: {0} {1}", qta, ""));
|
||||
// tolgo UDC da AL corrente...
|
||||
MagClass.magazzino.taAL2UDC.deleteQuery(destAL, currUDC);
|
||||
// effettuo controlli che cod_soggetto, cod particolare e destAL siano disponibili...
|
||||
if (MagClass.magazzino.CodSoggCurrUser != "" && currParticolare != "" && destAL != "ALS00")
|
||||
{
|
||||
|
||||
// ora stampo il nuovo cartellino!!!
|
||||
MagClass.magazzino.stampaUdc(currUDC, Postazione.printer, tipoCartellino.cartSterr, Request.UserHostName);
|
||||
// incremento timing...
|
||||
adesso = adesso.AddSeconds(2);
|
||||
// registro stampa nuovo UDC
|
||||
MagClass.magazzino.taSAO.insertQuery(adesso, MagClass.magazzino.CodSoggCurrUser, Postazione.name, Postazione.IP, currUDC, currParticolare, "stampaUDC", "Stampato UDC Sterrato");
|
||||
// svuoto campo cesta...
|
||||
numCesta = "";
|
||||
// resetto
|
||||
doResetData();
|
||||
// aggiorno note e posizione da temp a definitiv x UDC...
|
||||
MagClass.magazzino.updateNotePosizioneUDC(currUDC, noteTrim, memLayer.ML.confReadInt("IdxPosizioneSterrati"));
|
||||
|
||||
if (OpAuth.isAuth)
|
||||
{
|
||||
// salvo attributo dell'OpAuth...
|
||||
MagClass.magazzino.taAtt2UDC.Insert(currUDC, memLayer.ML.CRS("attrOpAuth"), OpAuth.currAuth.CodSoggetto, DateTime.Now, MagClass.magazzino.CodSoggCurrUser);
|
||||
// consumo una auth...
|
||||
OpAuth.currAuth.remAuth--;
|
||||
if (OpAuth.currAuth.remAuth == 0)
|
||||
{
|
||||
OpAuth.stopAuth();
|
||||
needsRedirect = true;
|
||||
}
|
||||
}
|
||||
|
||||
// registro creazione nuovo UDC
|
||||
MagClass.magazzino.taSAO.insertQuery(adesso, MagClass.magazzino.CodSoggCurrUser, Postazione.name, Postazione.IP, currUDC, currParticolare, "creaUDC", string.Format("Creato nuovo UDC Sterr Taglio, qta: {0} {1}", qta, ""));
|
||||
// tolgo UDC da AL corrente...
|
||||
MagClass.magazzino.taAL2UDC.deleteQuery(destAL, currUDC);
|
||||
|
||||
// ora stampo il nuovo cartellino!!!
|
||||
MagClass.magazzino.stampaUdc(currUDC, Postazione.printer, tipoCartellino.cartSterr, Request.UserHostName);
|
||||
// incremento timing...
|
||||
adesso = adesso.AddSeconds(2);
|
||||
// registro stampa nuovo UDC
|
||||
MagClass.magazzino.taSAO.insertQuery(adesso, MagClass.magazzino.CodSoggCurrUser, Postazione.name, Postazione.IP, currUDC, currParticolare, "stampaUDC", "Stampato UDC Sterrato");
|
||||
// svuoto campo cesta...
|
||||
numCesta = "";
|
||||
// resetto
|
||||
doResetData();
|
||||
}
|
||||
else
|
||||
{
|
||||
httpLog(string.Format("STERRATI, Errore persi utente/particolare, ricarico!"), tipoLog.ERROR);
|
||||
Response.Redirect("~/login.aspx");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
httpLog(string.Format("STERRATI, Errore persi utente/particolare, ricarico!"), tipoLog.ERROR);
|
||||
Response.Redirect("~/login.aspx");
|
||||
Postazione.messaggiText = traduci("noOpAuth");
|
||||
Postazione.CssClass = "stileComandoKo";
|
||||
httpLog(string.Format("Errore manca OpAuth x UDC anime"), tipoLog.ERROR);
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -677,6 +783,10 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
eh_reqUpdate(this, new EventArgs());
|
||||
}
|
||||
if (needsRedirect)
|
||||
{
|
||||
Response.Redirect(user_std.pagCorrente);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// effettua il consumo di tutti gli UDC inviati come array di stringhe
|
||||
@@ -784,6 +894,13 @@ namespace GMW.WebUserControls
|
||||
protected void btnEmptyNote_Click(object sender, EventArgs e)
|
||||
{
|
||||
txtNote.Text = "";
|
||||
Postazione.messaggiText = traduci("AttesaBCode");
|
||||
Postazione.CssClass = "stileAttesa";
|
||||
// raise dell'evento
|
||||
if (eh_reqUpdate != null)
|
||||
{
|
||||
eh_reqUpdate(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// passo alla modalità IN
|
||||
|
||||
@@ -27,6 +27,10 @@ namespace GMW.WebUserControls
|
||||
/// tipo di evento associato alla modifica qta dell'UDC
|
||||
/// </summary>
|
||||
protected string eventoUDC_qta = "UDC_QTY";
|
||||
/// <summary>
|
||||
/// dati x verifica CodSoggetto / matricola
|
||||
/// </summary>
|
||||
protected string preCodSogg = memLayer.ML.confReadString("prefCodSogg");
|
||||
public event EventHandler eh_reqUpdate;
|
||||
/// <summary>
|
||||
/// stringa UID univoca
|
||||
@@ -52,11 +56,26 @@ namespace GMW.WebUserControls
|
||||
destAL = AlByCella;
|
||||
traduciObj();
|
||||
idxCella = Postazione.currIdxCella;
|
||||
checkNumKeyIn();
|
||||
}
|
||||
setVisibility();
|
||||
doChecks();
|
||||
}
|
||||
/// <summary>
|
||||
/// verifico se ci sia in sessione un input da NumKeyb e nel caso lometto in barcodeIn e processo...
|
||||
/// </summary>
|
||||
private void checkNumKeyIn()
|
||||
{
|
||||
if (memLayer.ML.isInSessionObject("numKeyIn"))
|
||||
{
|
||||
barcodeIn = memLayer.ML.StringSessionObj("numKeyIn");
|
||||
// svuoto valore in sessione...
|
||||
memLayer.ML.emptySessionVal("numKeyIn");
|
||||
// controllo barcode...
|
||||
checkBarcode();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// IDX cella associata alla linea corrente
|
||||
/// </summary>
|
||||
protected int idxCella
|
||||
@@ -294,6 +313,14 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
tipoCodiceBarcode answ = tipoCodiceBarcode.ND;
|
||||
int trovati = 0;
|
||||
int matricola = -1;
|
||||
// provo a convertire in intero barcode x verifica eventuale matricola...
|
||||
try
|
||||
{
|
||||
matricola = Convert.ToInt32(barcodeIn);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
// controllo non si tratti di un comando...
|
||||
string preCmd = memLayer.ML.confReadString("prefComandi");
|
||||
if (barcodeIn.StartsWith(preCmd))
|
||||
@@ -304,6 +331,21 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
answ = tipoCodiceBarcode.Particolare;
|
||||
}
|
||||
else if (barcodeIn.StartsWith(preCodSogg))
|
||||
{
|
||||
// cerco cod soggetto...
|
||||
if (DataProxy.obj.taTrascSogg.getByKey(barcodeIn, 0).Rows.Count == 1)
|
||||
{
|
||||
answ = tipoCodiceBarcode.Operatore;
|
||||
}
|
||||
}
|
||||
else if (matricola >= 0)
|
||||
{
|
||||
if (DataProxy.obj.taTrascSogg.getByKey("", matricola).Rows.Count == 1)
|
||||
{
|
||||
answ = tipoCodiceBarcode.Operatore;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
try
|
||||
@@ -384,18 +426,57 @@ namespace GMW.WebUserControls
|
||||
break;
|
||||
case tipoCodiceBarcode.UDC:
|
||||
break;
|
||||
case tipoCodiceBarcode.Operatore:
|
||||
// calcolo matricola utente
|
||||
int MatrUtente = -1;
|
||||
string preCodSogg = memLayer.ML.confReadString("prefCodSogg");
|
||||
if (barcodeIn.StartsWith(preCodSogg))
|
||||
{
|
||||
MatrUtente = DataProxy.obj.taTrascSogg.getByKey(barcodeIn, 0)[0].CodMatricola;
|
||||
}
|
||||
else
|
||||
{
|
||||
MatrUtente = Convert.ToInt32(barcodeIn);
|
||||
}
|
||||
if (MatrUtente >= 0)
|
||||
{
|
||||
// salvo in sessione operatore con AUTH
|
||||
OpAuth.startOpAuth(MatrUtente);
|
||||
// mostro che ho autorizzato...
|
||||
Postazione.messaggiText += traduci("userAuthRec");
|
||||
Postazione.CssClass = "stileComandoOk";
|
||||
Response.Redirect(user_std.pagCorrente);
|
||||
}
|
||||
else
|
||||
{
|
||||
Postazione.messaggiText += " - codice <b>non riconosciuto</b>!";
|
||||
Postazione.CssClass = "stileComandoND";
|
||||
}
|
||||
break;
|
||||
default:
|
||||
// cerco se sia "0" = reset utente...
|
||||
if (barcodeIn == memLayer.ML.CRS("resetCodSogg"))
|
||||
{
|
||||
// salvo in sessione operatore con AUTH
|
||||
OpAuth.stopAuth();
|
||||
// mostro che ho autorizzato...
|
||||
Postazione.messaggiText += traduci("userAuthRem");
|
||||
Postazione.CssClass = "stileComandoOk";
|
||||
Response.Redirect(user_std.pagCorrente);
|
||||
}
|
||||
Postazione.messaggiText += " - codice <b>non riconosciuto</b>!";
|
||||
Postazione.CssClass = "stileComandoND";
|
||||
break;
|
||||
}
|
||||
barcodeIn = "";
|
||||
}
|
||||
#if false
|
||||
else
|
||||
{
|
||||
Postazione.messaggiText = traduci("AttesaBCode");
|
||||
Postazione.CssClass = "stileAttesa";
|
||||
}
|
||||
}
|
||||
#endif
|
||||
txtBarcode.Focus();
|
||||
}
|
||||
|
||||
@@ -509,46 +590,71 @@ namespace GMW.WebUserControls
|
||||
/// <param name="e"></param>
|
||||
protected void btnStampa_Click(object sender, EventArgs e)
|
||||
{
|
||||
bool needsRedirect = false;
|
||||
string[] stringSeparators = new string[] { "#" };
|
||||
// verifico postazione x procedere...
|
||||
if (Postazione.printer != "n.d.")
|
||||
{
|
||||
DateTime adesso = DateTime.Now;
|
||||
//int qta = memLayer.ML.confReadInt("QtaImballoSterr");
|
||||
|
||||
string noteTrim = txtNote.Text.Trim();
|
||||
string lineaCesta = string.Format("FUORICICLO | {0} | cesta: {1}", Postazione.currNomeLinea, numCesta);
|
||||
noteTrim = string.Format("{0}{1}{2}", lineaCesta, Environment.NewLine, noteTrim);
|
||||
//string noteTrim = txtNote.Text.Trim();
|
||||
//noteTrim = string.Format("FUORICICLO{0}{1}", Environment.NewLine, noteTrim);
|
||||
|
||||
// effettuo controlli che cod_soggetto, cod particolare e destAL siano disponibili...
|
||||
if (MagClass.magazzino.CodSoggCurrUser != "" && currParticolare != "" && destAL != "ALS00")
|
||||
// verifico auth utente OPPURE se NON sia richiesta...
|
||||
if (OpAuth.isAuth || !OpAuth.opAuthReq)
|
||||
{
|
||||
// aggiorno note e posizione da temp a definitiv x UDC...
|
||||
MagClass.magazzino.updateNotePosizioneUDC(currUDC, noteTrim, memLayer.ML.confReadInt("IdxPosizioneSterrati"));
|
||||
// registro creazione nuovo UDC
|
||||
MagClass.magazzino.taSAO.insertQuery(adesso, MagClass.magazzino.CodSoggCurrUser, Postazione.name, Postazione.IP, currUDC, currParticolare, "creaUDC", string.Format("Creato nuovo UDC Sterr Taglio FC, qta: {0} {1}", qta, ""));
|
||||
// metto attributo FC
|
||||
MagClass.magazzino.taAtt2UDC.Insert(currUDC, "FC", "", DateTime.Now, MagClass.magazzino.CodSoggCurrUser);
|
||||
// tolgo UDC da AL corrente...
|
||||
MagClass.magazzino.taAL2UDC.deleteQuery(destAL, currUDC);
|
||||
DateTime adesso = DateTime.Now;
|
||||
//int qta = memLayer.ML.confReadInt("QtaImballoSterr");
|
||||
|
||||
// ora stampo il nuovo cartellino!!!
|
||||
MagClass.magazzino.stampaUdc(currUDC, Postazione.printer, tipoCartellino.cartSterr, Request.UserHostName);
|
||||
// incremento timing...
|
||||
adesso = adesso.AddSeconds(2);
|
||||
// registro stampa nuovo UDC
|
||||
MagClass.magazzino.taSAO.insertQuery(adesso, MagClass.magazzino.CodSoggCurrUser, Postazione.name, Postazione.IP, currUDC, currParticolare, "stampaUDC", "Stampato UDC Sterrato FUORICICLO");
|
||||
// svuoto campo cesta...
|
||||
numCesta = "";
|
||||
// resetto
|
||||
doResetData();
|
||||
string noteTrim = txtNote.Text.Trim();
|
||||
string lineaCesta = string.Format("FUORICICLO | {0} | cesta: {1}", Postazione.currNomeLinea, numCesta);
|
||||
noteTrim = string.Format("{0}{1}{2}", lineaCesta, Environment.NewLine, noteTrim);
|
||||
//string noteTrim = txtNote.Text.Trim();
|
||||
//noteTrim = string.Format("FUORICICLO{0}{1}", Environment.NewLine, noteTrim);
|
||||
|
||||
// effettuo controlli che cod_soggetto, cod particolare e destAL siano disponibili...
|
||||
if (MagClass.magazzino.CodSoggCurrUser != "" && currParticolare != "" && destAL != "ALS00")
|
||||
{
|
||||
// aggiorno note e posizione da temp a definitiv x UDC...
|
||||
MagClass.magazzino.updateNotePosizioneUDC(currUDC, noteTrim, memLayer.ML.confReadInt("IdxPosizioneSterrati"));
|
||||
|
||||
if (OpAuth.isAuth)
|
||||
{
|
||||
// salvo attributo dell'OpAuth...
|
||||
MagClass.magazzino.taAtt2UDC.Insert(currUDC, memLayer.ML.CRS("attrOpAuth"), OpAuth.currAuth.CodSoggetto, DateTime.Now, MagClass.magazzino.CodSoggCurrUser);
|
||||
// consumo una auth...
|
||||
OpAuth.currAuth.remAuth--;
|
||||
if (OpAuth.currAuth.remAuth == 0)
|
||||
{
|
||||
OpAuth.stopAuth();
|
||||
needsRedirect = true;
|
||||
}
|
||||
}
|
||||
|
||||
// registro creazione nuovo UDC
|
||||
MagClass.magazzino.taSAO.insertQuery(adesso, MagClass.magazzino.CodSoggCurrUser, Postazione.name, Postazione.IP, currUDC, currParticolare, "creaUDC", string.Format("Creato nuovo UDC Sterr Taglio FC, qta: {0} {1}", qta, ""));
|
||||
// metto attributo FC
|
||||
MagClass.magazzino.taAtt2UDC.Insert(currUDC, "FC", "", DateTime.Now, MagClass.magazzino.CodSoggCurrUser);
|
||||
// tolgo UDC da AL corrente...
|
||||
MagClass.magazzino.taAL2UDC.deleteQuery(destAL, currUDC);
|
||||
|
||||
// ora stampo il nuovo cartellino!!!
|
||||
MagClass.magazzino.stampaUdc(currUDC, Postazione.printer, tipoCartellino.cartSterr, Request.UserHostName);
|
||||
// incremento timing...
|
||||
adesso = adesso.AddSeconds(2);
|
||||
// registro stampa nuovo UDC
|
||||
MagClass.magazzino.taSAO.insertQuery(adesso, MagClass.magazzino.CodSoggCurrUser, Postazione.name, Postazione.IP, currUDC, currParticolare, "stampaUDC", "Stampato UDC Sterrato FUORICICLO");
|
||||
// svuoto campo cesta...
|
||||
numCesta = "";
|
||||
// resetto
|
||||
doResetData();
|
||||
}
|
||||
else
|
||||
{
|
||||
httpLog(string.Format("STERRATI FC, Errore persi utente/particolare, ricarico!"), tipoLog.ERROR);
|
||||
Response.Redirect("~/login.aspx");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
httpLog(string.Format("STERRATI FC, Errore persi utente/particolare, ricarico!"), tipoLog.ERROR);
|
||||
Response.Redirect("~/login.aspx");
|
||||
Postazione.messaggiText = traduci("noOpAuth");
|
||||
Postazione.CssClass = "stileComandoKo";
|
||||
httpLog(string.Format("Errore manca OpAuth x UDC anime"), tipoLog.ERROR);
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -561,6 +667,10 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
eh_reqUpdate(this, new EventArgs());
|
||||
}
|
||||
if (needsRedirect)
|
||||
{
|
||||
Response.Redirect(user_std.pagCorrente);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// effettua il consumo di tutti gli UDC inviati come array di stringhe
|
||||
@@ -668,6 +778,13 @@ namespace GMW.WebUserControls
|
||||
protected void btnEmptyNote_Click(object sender, EventArgs e)
|
||||
{
|
||||
txtNote.Text = "";
|
||||
Postazione.messaggiText = traduci("AttesaBCode");
|
||||
Postazione.CssClass = "stileAttesa";
|
||||
// raise dell'evento
|
||||
if (eh_reqUpdate != null)
|
||||
{
|
||||
eh_reqUpdate(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// passo alla modalità IN
|
||||
|
||||
@@ -1,78 +1,69 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_testata.ascx.cs" Inherits="GMW.WebUserControls.mod_testata" %>
|
||||
<%if (false)
|
||||
{ %>
|
||||
{ %>
|
||||
<webopt:BundleReference ID="BundleReference1" runat="server" Path="~/Content/css" />
|
||||
<webopt:BundleReference ID="BundleReference2" runat="server" Path="~/Content/themes/base/css" />
|
||||
<%} %>
|
||||
|
||||
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="nav navbar-nav">
|
||||
<ul class="nav navbar-nav">
|
||||
<li class='<%: liClass("default") %>'>
|
||||
<a class="navbar-brand" id="A1" runat="server" href="~/" style="padding-right:30px;">
|
||||
<i class="fa fa-home fa-lg"></i>
|
||||
<span style="font-weight: 600;"><%: SteamWare.memLayer.ML.confReadString("titleApp") %>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="active">
|
||||
<asp:LinkButton runat="server" ID="lbnUpdate" class="navbar-brand" OnClick="lbnUpdate_Click">
|
||||
<i><asp:Label runat="server" ID="lblIconTitolo" /></i>
|
||||
<asp:Label runat="server" ID="lblTitolo" />
|
||||
</asp:LinkButton>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="navbar-collapse collapse">
|
||||
<ul id="itemPlaceholderContainer" runat="server" class="nav navbar-nav navbar-right">
|
||||
<asp:Repeater ID="menu" runat="server" DataSourceID="XmlMenu">
|
||||
<ItemTemplate>
|
||||
<li class="dropdown">
|
||||
<a href='<%# XPath("@url")%>' class="dropdown-toggle" data-toggle="dropdown">
|
||||
<i class='<%# XPath("@description")%>'></i>
|
||||
<%# XPath("@title")%>
|
||||
<b class="caret"></b>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<asp:Repeater ID="voci" runat="server" DataSource='<%# XPathSelect("voce") %>'>
|
||||
<ItemTemplate>
|
||||
<li>
|
||||
<a href='<%# XPath("@url").ToString().Replace("~/","")%>'>
|
||||
<i class='<%# XPath("@description")%>'></i>
|
||||
<%# XPath("@title")%>
|
||||
</a>
|
||||
</li>
|
||||
</ItemTemplate>
|
||||
</asp:Repeater>
|
||||
</ul>
|
||||
</li>
|
||||
</ItemTemplate>
|
||||
<SeparatorTemplate>
|
||||
</SeparatorTemplate>
|
||||
</asp:Repeater>
|
||||
<%--<li>
|
||||
<a id="A5" runat="server" class="navbar-brand" href="~/help/IT">
|
||||
<i class="fa fa-briefcase"></i>
|
||||
Help
|
||||
</a>
|
||||
</li>--%>
|
||||
</ul>
|
||||
<asp:XmlDataSource ID="XmlMenu" runat="server" EnableCaching="false"></asp:XmlDataSource>
|
||||
</div>
|
||||
<!--/.nav-collapse -->
|
||||
<div class="subnavbar" style="color: #999;">
|
||||
<div class="navbar-left">
|
||||
postazione: <%: SteamWare.memLayer.ML.StringSessionObj("postazione_name") %>
|
||||
<div class="noShadows">
|
||||
<div class="navbar-header">
|
||||
<ul class="nav navbar-nav navbar-left">
|
||||
<li class='navbarSep'>
|
||||
<asp:HyperLink runat="server" ID="hlHome" NavigateUrl="~/" CssClass="navbar-brand" ToolTip='<%# SteamWare.memLayer.ML.confReadString("titleApp") %>'> <i class="fa fa-home fa-lg"></i></asp:HyperLink>
|
||||
</li>
|
||||
<li class="navbarSep">
|
||||
<asp:HyperLink runat="server" ID="hlUser" CssClass="navbar-brand" ToolTip='<%# usrAuthToolTip %>'>
|
||||
<i class="fa fa-user fa-lg <%: usrAuthCss %>"></i>
|
||||
<asp:Label runat="server" ID="lblMatr" Text='<%# usrAuthText %>' />
|
||||
</asp:HyperLink><%--<asp:LinkButton runat="server" ID="lbUser" Text="---" />--%></li><li>
|
||||
<asp:LinkButton runat="server" ID="lbnUpdate" Text="---" OnClick="lbnUpdate_Click" ToolTip="Update">
|
||||
<%: nomePag %>
|
||||
<i class="fa-lg <%: cssIconPag %>"></i>
|
||||
</asp:LinkButton></li><li>
|
||||
<asp:LinkButton runat="server" ID="lbnUpdate2">
|
||||
</asp:LinkButton></li><%--<li class="active">
|
||||
<asp:LinkButton runat="server" ID="lbnUpdate" class="navbar-brand" OnClick="lbnUpdate_Click">
|
||||
<asp:Label runat="server" ID="lblTitolo" />
|
||||
<i>
|
||||
<asp:Label runat="server" ID="lblIconTitolo" /></i>
|
||||
</asp:LinkButton>
|
||||
</li>--%></ul><div class="nav navbar-nav navbar-right">
|
||||
<button type="button" class="navbar-toggle navbar-right" data-toggle="collapse" data-target=".navbar-collapse">
|
||||
<span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></button></div></div><div class="navbar-collapse collapse">
|
||||
<ul id="itemPlaceholderContainer" runat="server" class="nav navbar-nav navbar-right">
|
||||
<asp:Repeater ID="menu" runat="server" DataSourceID="XmlMenu">
|
||||
<ItemTemplate>
|
||||
<li class="dropdown">
|
||||
<a href='<%# XPath("@url")%>' class="dropdown-toggle" data-toggle="dropdown">
|
||||
<i class='<%# XPath("@description")%>'></i>
|
||||
<%# XPath("@title")%>
|
||||
<b class="caret"></b>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<asp:Repeater ID="voci" runat="server" DataSource='<%# XPathSelect("voce") %>'>
|
||||
<ItemTemplate>
|
||||
<li>
|
||||
<a href='<%# XPath("@url").ToString().Replace("~/","")%>'>
|
||||
<i class='<%# XPath("@description")%>'></i>
|
||||
<%# XPath("@title")%>
|
||||
</a>
|
||||
</li>
|
||||
</ItemTemplate>
|
||||
</asp:Repeater>
|
||||
</ul>
|
||||
</li>
|
||||
</ItemTemplate>
|
||||
<SeparatorTemplate>
|
||||
</SeparatorTemplate>
|
||||
</asp:Repeater>
|
||||
<li>
|
||||
<asp:LinkButton runat="server" ID="lbShowNumKey" class="navbar-brand" OnClick="lbShowNumKey_Click"> <i class="fa fa-calculator fa-lg"></i></asp:LinkButton>
|
||||
</li>
|
||||
</ul>
|
||||
<asp:XmlDataSource ID="XmlMenu" runat="server" EnableCaching="false"></asp:XmlDataSource>
|
||||
</div>
|
||||
<div class="navbar-right">
|
||||
stampante: <%: SteamWare.memLayer.ML.StringSessionObj("postazione_printer") %>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.nav-collapse -->
|
||||
<div class="subnavbar" style="color: #999;">
|
||||
<div class="navbar-left">
|
||||
postazione: <%: SteamWare.memLayer.ML.StringSessionObj("postazione_name") %></div><div class="navbar-right">
|
||||
stampante: <%: SteamWare.memLayer.ML.StringSessionObj("postazione_printer") %></div></div></div>
|
||||
@@ -5,6 +5,7 @@ using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using SteamWare;
|
||||
using GMW_data;
|
||||
|
||||
namespace GMW.WebUserControls
|
||||
{
|
||||
@@ -28,26 +29,42 @@ namespace GMW.WebUserControls
|
||||
else
|
||||
{
|
||||
PagCorrente();
|
||||
setPageName();
|
||||
updateTreeMenu();
|
||||
}
|
||||
// fix componenti
|
||||
hlHome.DataBind();
|
||||
hlUser.DataBind();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// metto icone e traduzione pagina corrente...
|
||||
/// </summary>
|
||||
private void setPageName()
|
||||
|
||||
public string cssIconPag
|
||||
{
|
||||
try
|
||||
get
|
||||
{
|
||||
string answ = "";
|
||||
DataLayer_AnagGen.PermessiRow riga = (DataLayer_AnagGen.PermessiRow)user_std.UtSn.permessi.Select(string.Format("URL = '{0}'", user_std.pagCorrente))[0];
|
||||
lblTitolo.Text = traduci(riga.NOME);
|
||||
lblIconTitolo.CssClass = traduci(riga.DESCRIZIONE);
|
||||
lbnUpdate.ToolTip = traduci("Update");
|
||||
try
|
||||
{
|
||||
answ = traduci(riga.DESCRIZIONE);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
catch
|
||||
}
|
||||
public string nomePag
|
||||
{
|
||||
get
|
||||
{
|
||||
lblTitolo.Text = "HOME";
|
||||
string answ = "";
|
||||
DataLayer_AnagGen.PermessiRow riga = (DataLayer_AnagGen.PermessiRow)user_std.UtSn.permessi.Select(string.Format("URL = '{0}'", user_std.pagCorrente))[0];
|
||||
try
|
||||
{
|
||||
answ = traduci(riga.NOME);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
@@ -100,6 +117,85 @@ namespace GMW.WebUserControls
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// tooltip che indica se user autorizzato
|
||||
/// </summary>
|
||||
public string usrAuthToolTip
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "";
|
||||
try
|
||||
{
|
||||
if (userAuthOk)
|
||||
{
|
||||
answ = string.Format("{0} - {1}", traduci("UserAuthOk"), OpAuth.currAuth.CognomeNome);
|
||||
}
|
||||
else
|
||||
{
|
||||
answ = traduci("UserAuthKo");
|
||||
}
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// text x user autorizzato
|
||||
/// </summary>
|
||||
public string usrAuthText
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "...";
|
||||
try
|
||||
{
|
||||
if (userAuthOk)
|
||||
{
|
||||
answ = OpAuth.currAuth.CognomeNome;
|
||||
}
|
||||
else
|
||||
{
|
||||
answ = "...";
|
||||
}
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// css x colore icona user auth
|
||||
/// </summary>
|
||||
public string usrAuthCss
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "";
|
||||
try
|
||||
{
|
||||
if (userAuthOk)
|
||||
{
|
||||
answ = "checkOk";
|
||||
}
|
||||
else
|
||||
{
|
||||
answ = "checkKo";
|
||||
}
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
protected bool userAuthOk
|
||||
{
|
||||
get
|
||||
{
|
||||
return OpAuth.isAuth;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// salva in variabile pagina il nome della pagina corrente
|
||||
/// </summary>
|
||||
protected void PagCorrente()
|
||||
@@ -111,12 +207,6 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
user_std.pagPrecedente = user_std.pagCorrente;
|
||||
}
|
||||
#if false
|
||||
if (user_std.pagCorrente != user_std.pagPrecedente)
|
||||
{
|
||||
user_std.pagPrecedente = user_std.pagCorrente;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
/// <summary>
|
||||
/// effettua un update completo dei valori in sessione
|
||||
@@ -160,5 +250,13 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
doFullDataUpdate();
|
||||
}
|
||||
|
||||
protected void lbShowNumKey_Click(object sender, EventArgs e)
|
||||
{
|
||||
// cambio valore boolean di visualizzazione tastiera numerica a video...
|
||||
memLayer.ML.setSessionVal("showNumKey", !memLayer.ML.BoolSessionObj("showNumKey"));
|
||||
// ricarico
|
||||
Response.Redirect(user_std.pagCorrente);
|
||||
}
|
||||
}
|
||||
}
|
||||
+31
-13
@@ -31,13 +31,31 @@ namespace GMW.WebUserControls {
|
||||
protected global::Microsoft.AspNet.Web.Optimization.WebForms.BundleReference BundleReference2;
|
||||
|
||||
/// <summary>
|
||||
/// A1 control.
|
||||
/// hlHome control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlAnchor A1;
|
||||
protected global::System.Web.UI.WebControls.HyperLink hlHome;
|
||||
|
||||
/// <summary>
|
||||
/// hlUser control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HyperLink hlUser;
|
||||
|
||||
/// <summary>
|
||||
/// lblMatr control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblMatr;
|
||||
|
||||
/// <summary>
|
||||
/// lbnUpdate control.
|
||||
@@ -49,22 +67,13 @@ namespace GMW.WebUserControls {
|
||||
protected global::System.Web.UI.WebControls.LinkButton lbnUpdate;
|
||||
|
||||
/// <summary>
|
||||
/// lblIconTitolo control.
|
||||
/// lbnUpdate2 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblIconTitolo;
|
||||
|
||||
/// <summary>
|
||||
/// lblTitolo control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblTitolo;
|
||||
protected global::System.Web.UI.WebControls.LinkButton lbnUpdate2;
|
||||
|
||||
/// <summary>
|
||||
/// itemPlaceholderContainer control.
|
||||
@@ -84,6 +93,15 @@ namespace GMW.WebUserControls {
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Repeater menu;
|
||||
|
||||
/// <summary>
|
||||
/// lbShowNumKey control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton lbShowNumKey;
|
||||
|
||||
/// <summary>
|
||||
/// XmlMenu control.
|
||||
/// </summary>
|
||||
|
||||
@@ -34,6 +34,10 @@ namespace GMW.WebUserControls
|
||||
/// flusso associato (hard coded) al TRATTAMENTO termico
|
||||
/// </summary>
|
||||
protected string flusso_TR = "TR";
|
||||
/// <summary>
|
||||
/// dati x verifica CodSoggetto / matricola
|
||||
/// </summary>
|
||||
protected string preCodSogg = memLayer.ML.confReadString("prefCodSogg");
|
||||
public event EventHandler eh_reqUpdate;
|
||||
/// <summary>
|
||||
/// stringa UID univoca
|
||||
@@ -57,10 +61,24 @@ namespace GMW.WebUserControls
|
||||
traduciObj();
|
||||
resetTrattamenti();
|
||||
resetUDC();
|
||||
checkNumKeyIn();
|
||||
}
|
||||
doChecks();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// verifico se ci sia in sessione un input da NumKeyb e nel caso lometto in barcodeIn e processo...
|
||||
/// </summary>
|
||||
private void checkNumKeyIn()
|
||||
{
|
||||
if (memLayer.ML.isInSessionObject("numKeyIn"))
|
||||
{
|
||||
barcodeIn = memLayer.ML.StringSessionObj("numKeyIn");
|
||||
// svuoto valore in sessione...
|
||||
memLayer.ML.emptySessionVal("numKeyIn");
|
||||
// controllo barcode...
|
||||
checkBarcode();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// richiesta (ri)stampa UDC
|
||||
/// </summary>
|
||||
@@ -231,6 +249,14 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
tipoCodiceBarcode answ = tipoCodiceBarcode.ND;
|
||||
int trovati = 0;
|
||||
int matricola = -1;
|
||||
// provo a convertire in intero barcode x verifica eventuale matricola...
|
||||
try
|
||||
{
|
||||
matricola = Convert.ToInt32(barcodeIn);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
// controllo non si tratti di un comando...
|
||||
string preCmd = memLayer.ML.confReadString("prefComandi");
|
||||
if (barcodeIn.StartsWith(preCmd))
|
||||
@@ -241,6 +267,21 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
answ = tipoCodiceBarcode.Particolare;
|
||||
}
|
||||
else if (barcodeIn.StartsWith(preCodSogg))
|
||||
{
|
||||
// cerco cod soggetto...
|
||||
if (DataProxy.obj.taTrascSogg.getByKey(barcodeIn, 0).Rows.Count == 1)
|
||||
{
|
||||
answ = tipoCodiceBarcode.Operatore;
|
||||
}
|
||||
}
|
||||
else if (matricola >= 0)
|
||||
{
|
||||
if (DataProxy.obj.taTrascSogg.getByKey("", matricola).Rows.Count == 1)
|
||||
{
|
||||
answ = tipoCodiceBarcode.Operatore;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
try
|
||||
@@ -381,18 +422,57 @@ namespace GMW.WebUserControls
|
||||
}
|
||||
}
|
||||
break;
|
||||
case tipoCodiceBarcode.Operatore:
|
||||
// calcolo matricola utente
|
||||
int MatrUtente = -1;
|
||||
string preCodSogg = memLayer.ML.confReadString("prefCodSogg");
|
||||
if (barcodeIn.StartsWith(preCodSogg))
|
||||
{
|
||||
MatrUtente = DataProxy.obj.taTrascSogg.getByKey(barcodeIn, 0)[0].CodMatricola;
|
||||
}
|
||||
else
|
||||
{
|
||||
MatrUtente = Convert.ToInt32(barcodeIn);
|
||||
}
|
||||
if (MatrUtente >= 0)
|
||||
{
|
||||
// salvo in sessione operatore con AUTH
|
||||
OpAuth.startOpAuth(MatrUtente);
|
||||
// mostro che ho autorizzato...
|
||||
Postazione.messaggiText += traduci("userAuthRec");
|
||||
Postazione.CssClass = "stileComandoOk";
|
||||
Response.Redirect(user_std.pagCorrente);
|
||||
}
|
||||
else
|
||||
{
|
||||
Postazione.messaggiText += " - codice <b>non riconosciuto</b>!";
|
||||
Postazione.CssClass = "stileComandoND";
|
||||
}
|
||||
break;
|
||||
default:
|
||||
// cerco se sia "0" = reset utente...
|
||||
if (barcodeIn == memLayer.ML.CRS("resetCodSogg"))
|
||||
{
|
||||
// salvo in sessione operatore con AUTH
|
||||
OpAuth.stopAuth();
|
||||
// mostro che ho autorizzato...
|
||||
Postazione.messaggiText += traduci("userAuthRem");
|
||||
Postazione.CssClass = "stileComandoOk";
|
||||
Response.Redirect(user_std.pagCorrente);
|
||||
}
|
||||
Postazione.messaggiText += " - codice <b>non riconosciuto</b>!";
|
||||
Postazione.CssClass = "stileComandoND";
|
||||
break;
|
||||
}
|
||||
barcodeIn = "";
|
||||
}
|
||||
#if false
|
||||
else
|
||||
{
|
||||
Postazione.messaggiText = traduci("AttesaBCode");
|
||||
Postazione.CssClass = "stileAttesa";
|
||||
}
|
||||
}
|
||||
#endif
|
||||
//grView.DataBind();
|
||||
txtBarcode.Focus();
|
||||
}
|
||||
@@ -456,87 +536,105 @@ namespace GMW.WebUserControls
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
protected void btnStampa_Click(object sender, EventArgs e)
|
||||
{
|
||||
bool needsRedirect = false;
|
||||
string[] stringSeparators = new string[] { "#" };
|
||||
// verifico postazione x procedere...
|
||||
if (Postazione.printer != "n.d.")
|
||||
{
|
||||
// controllo UDC in ingresso, che siano tutti con uguale particolare e DIVERSO da ""
|
||||
string partUdcIn = "";
|
||||
try
|
||||
// verifico auth utente OPPURE se NON sia richiesta...
|
||||
if (OpAuth.isAuth || !OpAuth.opAuthReq)
|
||||
{
|
||||
// ciclo tutti gli UDC trattati
|
||||
if (elencoUDC.Count > 0)
|
||||
{
|
||||
partUdcIn = checkPartUDC(elencoUDC);
|
||||
}
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
if (partUdcIn != "")
|
||||
{
|
||||
// controllo da distinta base coerenza particolare IN/OUT
|
||||
bool partDistintaOk = false;
|
||||
// controllo UDC in ingresso, che siano tutti con uguale particolare e DIVERSO da ""
|
||||
string partUdcIn = "";
|
||||
try
|
||||
{
|
||||
if (MagClass.magazzino.taPartIO.GetData(currParticolare, partUdcIn, true)[0].Trovati > 0) partDistintaOk = true;
|
||||
// ciclo tutti gli UDC trattati
|
||||
if (elencoUDC.Count > 0)
|
||||
{
|
||||
partUdcIn = checkPartUDC(elencoUDC);
|
||||
}
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
if (partDistintaOk)
|
||||
if (partUdcIn != "")
|
||||
{
|
||||
string newUdcChild = "";
|
||||
string codTratt = "";
|
||||
//bool UdcExists = false;
|
||||
int anno = Convert.ToInt32(txtAnno.Text.Substring(txtAnno.Text.Trim().Length - 2, 2));
|
||||
int qta = memLayer.ML.confReadInt("QtaImballoTratt");
|
||||
string noteTrim = txtNote.Text.Trim();
|
||||
// controllo da distinta base coerenza particolare IN/OUT
|
||||
bool partDistintaOk = false;
|
||||
try
|
||||
{
|
||||
qta = Convert.ToInt32(txtQta.Text);
|
||||
if (MagClass.magazzino.taPartIO.GetData(currParticolare, partUdcIn, true)[0].Trovati > 0) partDistintaOk = true;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
// effettuo controlli che cod_soggetto e cod particolare siano disponibili...
|
||||
string codSogg = "";
|
||||
string particolare = "";
|
||||
try
|
||||
if (partDistintaOk)
|
||||
{
|
||||
codSogg = MagClass.magazzino.CodSoggCurrUser;
|
||||
particolare = currParticolare;
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
if (codSogg != "" && particolare != "")
|
||||
{
|
||||
// genero cartellino
|
||||
DateTime adesso = DateTime.Now;
|
||||
string newUdcChild = "";
|
||||
string codTratt = "";
|
||||
//bool UdcExists = false;
|
||||
int anno = Convert.ToInt32(txtAnno.Text.Substring(txtAnno.Text.Trim().Length - 2, 2));
|
||||
int qta = memLayer.ML.confReadInt("QtaImballoTratt");
|
||||
string noteTrim = txtNote.Text.Trim();
|
||||
try
|
||||
{
|
||||
// creo nuovo UDC trattati
|
||||
newUdcChild = MagClass.magazzino.creaUdc(flusso, "", currParticolare, "", "", "", "", "", 0, memLayer.ML.confReadString("CodImballoTratt"), "U", MagClass.magazzino.CodSoggCurrUser, qta, 0, 0, adesso, 0, statoUDC, memLayer.ML.confReadInt("IdxPosizioneTrattati"), "IdxPosizioneTrattati", eventoUDC, noteTrim, "", adesso.Year, Request.UserHostName);
|
||||
// registro creazione nuovo UDC
|
||||
MagClass.magazzino.taSAO.insertQuery(adesso, codSogg, Postazione.name, Postazione.IP, newUdcChild, particolare, "creaUDC", string.Format("Creato nuovo UDC Trattati, qta: {0} {1}", qta, noteTrim));
|
||||
qta = Convert.ToInt32(txtQta.Text);
|
||||
}
|
||||
catch (Exception exc)
|
||||
catch
|
||||
{ }
|
||||
// effettuo controlli che cod_soggetto e cod particolare siano disponibili...
|
||||
string codSogg = "";
|
||||
string particolare = "";
|
||||
try
|
||||
{
|
||||
httpLog(string.Format("Errore creazione UDC Trattato: {0}", exc), tipoLog.EXCEPTION);
|
||||
codSogg = MagClass.magazzino.CodSoggCurrUser;
|
||||
particolare = currParticolare;
|
||||
}
|
||||
// devo gestire associazione e consumo SIA dei trattamenti che degli UDC
|
||||
if (newUdcChild != "")
|
||||
catch
|
||||
{
|
||||
// associo UDC da elenco sterrati
|
||||
foreach (KeyValuePair<string, string> kvp in elencoUDC)
|
||||
}
|
||||
if (codSogg != "" && particolare != "")
|
||||
{
|
||||
// genero cartellino
|
||||
DateTime adesso = DateTime.Now;
|
||||
try
|
||||
{
|
||||
// associo i 2 cartellini
|
||||
MagClass.magazzino.associaUdcParent(newUdcChild, kvp.Key);
|
||||
// consumo gli UDC indicati (se non già consumati)
|
||||
consumaUdc(kvp.Key);
|
||||
// creo nuovo UDC trattati
|
||||
newUdcChild = MagClass.magazzino.creaUdc(flusso, "", currParticolare, "", "", "", "", "", 0, memLayer.ML.confReadString("CodImballoTratt"), "U", MagClass.magazzino.CodSoggCurrUser, qta, 0, 0, adesso, 0, statoUDC, memLayer.ML.confReadInt("IdxPosizioneTrattati"), "IdxPosizioneTrattati", eventoUDC, noteTrim, "", adesso.Year, Request.UserHostName);
|
||||
|
||||
if (OpAuth.isAuth)
|
||||
{
|
||||
// salvo attributo dell'OpAuth...
|
||||
MagClass.magazzino.taAtt2UDC.Insert(newUdcChild, memLayer.ML.CRS("attrOpAuth"), OpAuth.currAuth.CodSoggetto, DateTime.Now, codSogg);
|
||||
// consumo una auth...
|
||||
OpAuth.currAuth.remAuth--;
|
||||
if (OpAuth.currAuth.remAuth == 0)
|
||||
{
|
||||
OpAuth.stopAuth();
|
||||
needsRedirect = true;
|
||||
}
|
||||
}
|
||||
|
||||
// registro creazione nuovo UDC
|
||||
MagClass.magazzino.taSAO.insertQuery(adesso, codSogg, Postazione.name, Postazione.IP, newUdcChild, particolare, "creaUDC", string.Format("Creato nuovo UDC Trattati, qta: {0} {1}", qta, noteTrim));
|
||||
}
|
||||
// creo UDC dei trattamenti termici
|
||||
foreach (KeyValuePair<string, string> kvp in elencoTrattamenti)
|
||||
catch (Exception exc)
|
||||
{
|
||||
// versione vecchia con creazione UDC di trattamento e relazione...
|
||||
httpLog(string.Format("Errore creazione UDC Trattato: {0}", exc), tipoLog.EXCEPTION);
|
||||
}
|
||||
// devo gestire associazione e consumo SIA dei trattamenti che degli UDC
|
||||
if (newUdcChild != "")
|
||||
{
|
||||
// associo UDC da elenco sterrati
|
||||
foreach (KeyValuePair<string, string> kvp in elencoUDC)
|
||||
{
|
||||
// associo i 2 cartellini
|
||||
MagClass.magazzino.associaUdcParent(newUdcChild, kvp.Key);
|
||||
// consumo gli UDC indicati (se non già consumati)
|
||||
consumaUdc(kvp.Key);
|
||||
}
|
||||
// creo UDC dei trattamenti termici
|
||||
foreach (KeyValuePair<string, string> kvp in elencoTrattamenti)
|
||||
{
|
||||
// versione vecchia con creazione UDC di trattamento e relazione...
|
||||
#if false
|
||||
|
||||
// verifico se ci sia già UDC
|
||||
@@ -564,57 +662,64 @@ namespace GMW.WebUserControls
|
||||
newUdcParent = "";
|
||||
UdcExists = false;
|
||||
#endif
|
||||
// vecchia versione con calcolo num trattamento "tipo UDC"
|
||||
// vecchia versione con calcolo num trattamento "tipo UDC"
|
||||
#if false
|
||||
// calcolo il nuovo codice UDC del trattamento
|
||||
newUdcParent = MagClass.magazzino.getComposizioneUDC(memLayer.ML.confReadString("CodCS"), flusso_TR, anno.ToString(), Convert.ToInt32(kvp.Key));
|
||||
#endif
|
||||
// nuova versione codice trattamento (anno-numero)
|
||||
codTratt = MagClass.magazzino.getCompTrattamenti(txtAnno.Text, kvp.Key);
|
||||
// inserisco attributo trattamento
|
||||
MagClass.magazzino.taAtt2UDC.Insert(newUdcChild, attrNumTra, codTratt, DateTime.Now, codSogg);
|
||||
// cerco se c'è AL
|
||||
string codAL = string.Format("ALT{0}000000000", anno);
|
||||
if (MagClass.magazzino.taEA.getByAL(codAL).Rows.Count == 0)
|
||||
{
|
||||
// sennò lo creo...
|
||||
MagClass.magazzino.taEA.Insert(codAL, true, DateTime.Now, "", "", "");
|
||||
}
|
||||
// cerco se trattamento già salvato...
|
||||
if (MagClass.magazzino.taET.getByTratt(codTratt).Rows.Count == 0)
|
||||
{
|
||||
// salvo NUOVO record in ElencoTrattamenti
|
||||
MagClass.magazzino.taET.Insert(codTratt, codAL, DateTime.Now, 0, "", null, "", 0, null, "", false);
|
||||
// nuova versione codice trattamento (anno-numero)
|
||||
codTratt = MagClass.magazzino.getCompTrattamenti(txtAnno.Text, kvp.Key);
|
||||
// inserisco attributo trattamento
|
||||
MagClass.magazzino.taAtt2UDC.Insert(newUdcChild, attrNumTra, codTratt, DateTime.Now, codSogg);
|
||||
// cerco se c'è AL
|
||||
string codAL = string.Format("ALT{0}000000000", anno);
|
||||
if (MagClass.magazzino.taEA.getByAL(codAL).Rows.Count == 0)
|
||||
{
|
||||
// sennò lo creo...
|
||||
MagClass.magazzino.taEA.Insert(codAL, true, DateTime.Now, "", "", "");
|
||||
}
|
||||
// cerco se trattamento già salvato...
|
||||
if (MagClass.magazzino.taET.getByTratt(codTratt).Rows.Count == 0)
|
||||
{
|
||||
// salvo NUOVO record in ElencoTrattamenti
|
||||
MagClass.magazzino.taET.Insert(codTratt, codAL, DateTime.Now, 0, "", null, "", 0, null, "", false);
|
||||
}
|
||||
}
|
||||
// ora stampo il nuovo cartellino!!!
|
||||
MagClass.magazzino.stampaUdc(newUdcChild, Postazione.printer, tipoCartellino.cartTratt, Request.UserHostName);
|
||||
// incremento timing...
|
||||
adesso = DateTime.Now;
|
||||
adesso = adesso.AddSeconds(2);
|
||||
// registro stampa nuovo UDC
|
||||
MagClass.magazzino.taSAO.insertQuery(adesso, codSogg, Postazione.name, Postazione.IP, newUdcChild, particolare, "stampaUDC", "Stampato UDC Trattato");
|
||||
}
|
||||
// ora stampo il nuovo cartellino!!!
|
||||
MagClass.magazzino.stampaUdc(newUdcChild, Postazione.printer, tipoCartellino.cartTratt, Request.UserHostName);
|
||||
// incremento timing...
|
||||
adesso = DateTime.Now;
|
||||
adesso = adesso.AddSeconds(2);
|
||||
// registro stampa nuovo UDC
|
||||
MagClass.magazzino.taSAO.insertQuery(adesso, codSogg, Postazione.name, Postazione.IP, newUdcChild, particolare, "stampaUDC", "Stampato UDC Trattato");
|
||||
// resetto
|
||||
doResetData();
|
||||
}
|
||||
else
|
||||
{
|
||||
httpLog(string.Format("TRATTATI, Errore persi utente/particolare, ricarico!"), tipoLog.ERROR);
|
||||
Response.Redirect("~/login.aspx");
|
||||
}
|
||||
// resetto
|
||||
doResetData();
|
||||
}
|
||||
else
|
||||
{
|
||||
httpLog(string.Format("TRATTATI, Errore persi utente/particolare, ricarico!"), tipoLog.ERROR);
|
||||
Response.Redirect("~/login.aspx");
|
||||
httpLog(string.Format("TRATTATI, Errore controllo coerenza particolari da distinta base!"), tipoLog.ERROR);
|
||||
Postazione.messaggiText += "Errore particolari UDC da controllo distinta base";
|
||||
Postazione.CssClass = "stileComandoND";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
httpLog(string.Format("TRATTATI, Errore controllo coerenza particolari da distinta base!"), tipoLog.ERROR);
|
||||
Postazione.messaggiText += "Errore particolari UDC da controllo distinta base";
|
||||
Postazione.CssClass = "stileComandoND";
|
||||
httpLog(string.Format("TRATTATI, Errore persi utente/particolare, ricarico!"), tipoLog.ERROR);
|
||||
Response.Redirect("~/login.aspx");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
httpLog(string.Format("TRATTATI, Errore persi utente/particolare, ricarico!"), tipoLog.ERROR);
|
||||
Response.Redirect("~/login.aspx");
|
||||
Postazione.messaggiText = traduci("noOpAuth");
|
||||
Postazione.CssClass = "stileComandoKo";
|
||||
httpLog(string.Format("Errore manca OpAuth x UDC anime"), tipoLog.ERROR);
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -626,6 +731,10 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
eh_reqUpdate(this, new EventArgs());
|
||||
}
|
||||
if (needsRedirect)
|
||||
{
|
||||
Response.Redirect(user_std.pagCorrente);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// effettua il consumo dell'UDC inviati come array di stringhe
|
||||
@@ -730,6 +839,13 @@ namespace GMW.WebUserControls
|
||||
protected void btnEmptyNote_Click(object sender, EventArgs e)
|
||||
{
|
||||
txtNote.Text = "";
|
||||
Postazione.messaggiText = traduci("AttesaBCode");
|
||||
Postazione.CssClass = "stileAttesa";
|
||||
// raise dell'evento
|
||||
if (eh_reqUpdate != null)
|
||||
{
|
||||
eh_reqUpdate(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
|
||||
protected void grView_PageIndexChanged(object sender, EventArgs e)
|
||||
|
||||
Binary file not shown.
@@ -70,6 +70,15 @@
|
||||
<!--gestione clock-->
|
||||
<add key="intUpdateClock_ms" value="1000" />
|
||||
<add key="maxRefreshToReload" value="60" />
|
||||
<!--gestione numKey-->
|
||||
<add key="showNumKey" value="false" />
|
||||
<!--setup gestione OpAuth-->
|
||||
<add key="enableOpAuth" value="true" />
|
||||
<add key="prefCodSogg" value="O" />
|
||||
<add key="resetCodSogg" value="000" />
|
||||
<add key="defRemAuth" value="1" />
|
||||
<add key="defMinScad" value="15" />
|
||||
<add key="attrOpAuth" value="OC" />
|
||||
<!--area temp-->
|
||||
<add key="maxAgeTempAreaHours" value="24" />
|
||||
<!--area logger-->
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,6 @@
|
||||
[
|
||||
{
|
||||
"outputFile": "Content/Style.css",
|
||||
"inputFile": "Content/Style.less"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"compilers": {
|
||||
"less": {
|
||||
"strictMath": false,
|
||||
"strictUnits": false,
|
||||
"relativeUrls": true,
|
||||
"rootPath": ""
|
||||
},
|
||||
"sass": {
|
||||
"indentType": "space",
|
||||
"indentWidth": 2,
|
||||
"outputStyle": "nested",
|
||||
"Precision": 5
|
||||
},
|
||||
"coffeescript": {
|
||||
"bare": false,
|
||||
"runtimeMode": "node"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -661,6 +661,9 @@
|
||||
<DependentUpon>Web.config</DependentUpon>
|
||||
<SubType>Designer</SubType>
|
||||
</Content>
|
||||
<None Include="Web.IIS02.config">
|
||||
<DependentUpon>Web.config</DependentUpon>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="App_Data\" />
|
||||
|
||||
@@ -16,6 +16,9 @@
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.clearDiv{
|
||||
clear: both;
|
||||
}
|
||||
#content
|
||||
{
|
||||
width: 210px;
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
|
||||
|
||||
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
|
||||
<!--
|
||||
In the example below, the "SetAttributes" transform will change the value of
|
||||
"connectionString" to use "ReleaseSQLServer" only when the "Match" locator
|
||||
finds an attribute "name" that has a value of "MyDB".
|
||||
|
||||
<connectionStrings>
|
||||
<add name="MyDB"
|
||||
connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
|
||||
xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
|
||||
</connectionStrings>
|
||||
-->
|
||||
<appSettings>
|
||||
|
||||
<add key="GMWConnectionString" value="Data Source=10.74.82.217\sql2008r2;Initial Catalog=TK_GMWTest;Persist Security Info=True;User ID=sa;Password=keyhammer;" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="SP_produzioneConnectionString" value="Data Source=10.74.82.217\sql2008r2;Initial Catalog=SP_Produzione;Persist Security Info=True;User ID=connGMW;Password=steamware;" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="PermessiConnectionString" value="Data Source=10.74.82.217\sql2008r2;Initial Catalog=TK_GMWTest;Persist Security Info=True;User ID=sa;Password=keyhammer;" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="UtenteCdcConnectionString" value="Data Source=10.74.82.217\sql2008r2;Initial Catalog=TK_Anagrafica;Persist Security Info=True;User ID=sa;Password=keyhammer" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="VocabolarioConnectionString" value="Data Source=10.74.82.217\sql2008r2;Initial Catalog=TK_GMWTest;Persist Security Info=True;User ID=sa;Password=keyhammer;" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
</appSettings>
|
||||
<connectionStrings>
|
||||
<add name="GMW_data.Properties.Settings.GMWConnectionString" connectionString="Data Source=10.74.82.217\sql2008r2;Initial Catalog=TK_GMWTest;Persist Security Info=True;User ID=sa;Password=keyhammer;" xdt:Transform="SetAttributes" xdt:Locator="Match(name)" />
|
||||
</connectionStrings>
|
||||
<system.web>
|
||||
<compilation xdt:Transform="RemoveAttributes(debug)" />
|
||||
<!--
|
||||
In the example below, the "Replace" transform will replace the entire
|
||||
<customErrors> section of your web.config file.
|
||||
Note that because there is only one customErrors section under the
|
||||
<system.web> node, there is no need to use the "xdt:Locator" attribute.
|
||||
|
||||
<customErrors defaultRedirect="GenericError.htm"
|
||||
mode="RemoteOnly" xdt:Transform="Replace">
|
||||
<error statusCode="500" redirect="InternalError.htm"/>
|
||||
</customErrors>
|
||||
-->
|
||||
</system.web>
|
||||
</configuration>
|
||||
@@ -12,11 +12,16 @@
|
||||
<asp:LinkButton ID="btnReset" runat="server" OnClick="btnResetCtrl_Click" CssClass="styleBtnComposito" Height="20" Width="80px">
|
||||
<img src="images/cancel_m.png" style="border-style: none; margin-right: 0.2em;" width="13px" height="13px" />
|
||||
<asp:Label ID="lblReset" runat="server" />
|
||||
</asp:LinkButton></div><div class="quadro2" runat="server" id="divDelibera">
|
||||
</asp:LinkButton>
|
||||
</div>
|
||||
<div class="quadro2" runat="server" id="divDelibera">
|
||||
<asp:LinkButton ID="btnDelibera" runat="server" OnClick="btnDelibera_Click" CssClass="styleBtnComposito" Height="20" Width="80px">
|
||||
<img src="images/apply_m.png" style="border-style: none; margin-right: 0.2em;" width="13px" height="13px" />
|
||||
<asp:Label ID="lblDelibera" runat="server" />
|
||||
</asp:LinkButton></div></div><div class="quadro_wide" runat="server" id="divDettagli">
|
||||
</asp:LinkButton>
|
||||
</div>
|
||||
</div>
|
||||
<div class="quadro_wide" runat="server" id="divDettagli">
|
||||
<div runat="server" id="divDetailDelib">
|
||||
<div class="quadro1">
|
||||
<uc1:mod_detail_DL runat="server" ID="mod_detail_DL1" />
|
||||
@@ -25,7 +30,7 @@
|
||||
<uc1:mod_detail_NC runat="server" ID="mod_detail_NC1" />
|
||||
</div>
|
||||
</div>
|
||||
<div runat="server" id="divDetailUdc">
|
||||
<uc1:mod_detail_UDC ID="mod_detail_UDC1" runat="server" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="quadro_wide clearDiv" runat="server" id="divDetailUdc">
|
||||
<uc1:mod_detail_UDC ID="mod_detail_UDC1" runat="server" />
|
||||
</div>
|
||||
|
||||
@@ -96,9 +96,8 @@ namespace GMW_Term.WebUserControls
|
||||
MagClass.magazzino.taCartellini.setDL_DC(UDC_sel, MagClass.magazzino.CodSoggCurrUser);
|
||||
}
|
||||
showUdcDetail(UDC_sel);
|
||||
#if false
|
||||
Response.Redirect("~/delibLog.aspx");
|
||||
#endif
|
||||
memLayer.ML.emptySessionVal("UDC4det_sel");
|
||||
Response.Redirect("~/delibLog.aspx");
|
||||
}
|
||||
/// <summary>
|
||||
/// UDC impostato
|
||||
|
||||
@@ -38,42 +38,46 @@ namespace GMW_Term.WebUserControls
|
||||
bool barcodeOk = MagClass.magazzino.checkUDC(barcode);
|
||||
bool udcConsumabile = MagClass.magazzino.IdxPosizioneUdc(barcode) > 0;
|
||||
bool udcPrelevabile = (MagClass.magazzino.taRigheListePrelievo.getPrelevateByUdc(barcode).Rows.Count == 0);
|
||||
if (udcConsumabile || !memLayer.ML.CRB("checkUdcConsLdp"))
|
||||
// se ho un UDC
|
||||
if (barcode != "")
|
||||
{
|
||||
if (udcPrelevabile)
|
||||
if (udcConsumabile || !memLayer.ML.CRB("checkUdcConsLdp"))
|
||||
{
|
||||
if (barcodeOk)
|
||||
if (udcPrelevabile)
|
||||
{
|
||||
// controllo se barcode è ok x LDP corrente...
|
||||
if (MagClass.magazzino.verificaDatiUdc(MagClass.magazzino.codListaAttivaUtente, barcode))
|
||||
if (barcodeOk)
|
||||
{
|
||||
MagClass.magazzino.confermaUdcPrelevatoPerLista(MagClass.magazzino.codListaAttivaUtente, barcode);
|
||||
lblErrore.Visible = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
// salvo errore
|
||||
lblErrore.Visible = true;
|
||||
lblErrore.Text = traduci("BarcodeNonValidoLDP");
|
||||
// controllo se barcode è ok x LDP corrente...
|
||||
if (MagClass.magazzino.verificaDatiUdc(MagClass.magazzino.codListaAttivaUtente, barcode))
|
||||
{
|
||||
MagClass.magazzino.confermaUdcPrelevatoPerLista(MagClass.magazzino.codListaAttivaUtente, barcode);
|
||||
lblErrore.Visible = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
// salvo errore
|
||||
lblErrore.Visible = true;
|
||||
lblErrore.Text = traduci("BarcodeNonValidoLDP");
|
||||
}
|
||||
resetMemoriaBarcode();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// indico barcode già caricato
|
||||
lblErrore.Visible = true;
|
||||
lblErrore.Text = string.Format("{0}: {1}", barcode, traduci("udcGiaPrelevato"));
|
||||
resetMemoriaBarcode();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// indico barcode già caricato
|
||||
// indico UDC consumato
|
||||
lblErrore.Visible = true;
|
||||
lblErrore.Text = string.Format("{0}: {1}", barcode, traduci("udcGiaPrelevato"));
|
||||
lblErrore.Text = string.Format("{0}: {1}", barcode, traduci("udcGiaConsumato"));
|
||||
resetMemoriaBarcode();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// indico UDC consumato
|
||||
lblErrore.Visible = true;
|
||||
lblErrore.Text = string.Format("{0}: {1}", barcode, traduci("udcGiaConsumato"));
|
||||
resetMemoriaBarcode();
|
||||
}
|
||||
//update visualizzazione
|
||||
lblListaAttiva.Text = traduci("ListaPrel");
|
||||
hlListaAttiva.Text = traduci("noListActive");
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Generated
+797
@@ -70,6 +70,8 @@ namespace GMW_data {
|
||||
|
||||
private UNC_treeDataTable tableUNC_tree;
|
||||
|
||||
private TrascCodSoggDataTable tableTrascCodSogg;
|
||||
|
||||
private global::System.Data.DataRelation relationFK_AnagImpianti_AnagCompanySito;
|
||||
|
||||
private global::System.Data.DataRelation relationFK_ElencoCartellini_AnagCompanySito;
|
||||
@@ -179,6 +181,9 @@ namespace GMW_data {
|
||||
if ((ds.Tables["UNC_tree"] != null)) {
|
||||
base.Tables.Add(new UNC_treeDataTable(ds.Tables["UNC_tree"]));
|
||||
}
|
||||
if ((ds.Tables["TrascCodSogg"] != null)) {
|
||||
base.Tables.Add(new TrascCodSoggDataTable(ds.Tables["TrascCodSogg"]));
|
||||
}
|
||||
this.DataSetName = ds.DataSetName;
|
||||
this.Prefix = ds.Prefix;
|
||||
this.Namespace = ds.Namespace;
|
||||
@@ -427,6 +432,16 @@ namespace GMW_data {
|
||||
}
|
||||
}
|
||||
|
||||
[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 TrascCodSoggDataTable TrascCodSogg {
|
||||
get {
|
||||
return this.tableTrascCodSogg;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
[global::System.ComponentModel.BrowsableAttribute(true)]
|
||||
@@ -563,6 +578,9 @@ namespace GMW_data {
|
||||
if ((ds.Tables["UNC_tree"] != null)) {
|
||||
base.Tables.Add(new UNC_treeDataTable(ds.Tables["UNC_tree"]));
|
||||
}
|
||||
if ((ds.Tables["TrascCodSogg"] != null)) {
|
||||
base.Tables.Add(new TrascCodSoggDataTable(ds.Tables["TrascCodSogg"]));
|
||||
}
|
||||
this.DataSetName = ds.DataSetName;
|
||||
this.Prefix = ds.Prefix;
|
||||
this.Namespace = ds.Namespace;
|
||||
@@ -734,6 +752,12 @@ namespace GMW_data {
|
||||
this.tableUNC_tree.InitVars();
|
||||
}
|
||||
}
|
||||
this.tableTrascCodSogg = ((TrascCodSoggDataTable)(base.Tables["TrascCodSogg"]));
|
||||
if ((initTable == true)) {
|
||||
if ((this.tableTrascCodSogg != null)) {
|
||||
this.tableTrascCodSogg.InitVars();
|
||||
}
|
||||
}
|
||||
this.relationFK_AnagImpianti_AnagCompanySito = this.Relations["FK_AnagImpianti_AnagCompanySito"];
|
||||
this.relationFK_ElencoCartellini_AnagCompanySito = this.Relations["FK_ElencoCartellini_AnagCompanySito"];
|
||||
this.relationFK_ElencoCartellini_AnagStatiProdotto = this.Relations["FK_ElencoCartellini_AnagStatiProdotto"];
|
||||
@@ -796,6 +820,8 @@ namespace GMW_data {
|
||||
base.Tables.Add(this.tableUDC_NC);
|
||||
this.tableUNC_tree = new UNC_treeDataTable();
|
||||
base.Tables.Add(this.tableUNC_tree);
|
||||
this.tableTrascCodSogg = new TrascCodSoggDataTable();
|
||||
base.Tables.Add(this.tableTrascCodSogg);
|
||||
this.relationFK_AnagImpianti_AnagCompanySito = new global::System.Data.DataRelation("FK_AnagImpianti_AnagCompanySito", new global::System.Data.DataColumn[] {
|
||||
this.tableAnagCompanySito.CodCSColumn}, new global::System.Data.DataColumn[] {
|
||||
this.tableAnagImpianti.CodCSColumn}, false);
|
||||
@@ -960,6 +986,12 @@ namespace GMW_data {
|
||||
return false;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
private bool ShouldSerializeTrascCodSogg() {
|
||||
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) {
|
||||
@@ -1084,6 +1116,9 @@ namespace GMW_data {
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public delegate void UNC_treeRowChangeEventHandler(object sender, UNC_treeRowChangeEvent e);
|
||||
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public delegate void TrascCodSoggRowChangeEventHandler(object sender, TrascCodSoggRowChangeEvent e);
|
||||
|
||||
/// <summary>
|
||||
///Represents the strongly named DataTable class.
|
||||
///</summary>
|
||||
@@ -9979,6 +10014,281 @@ namespace GMW_data {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///Represents the strongly named DataTable class.
|
||||
///</summary>
|
||||
[global::System.Serializable()]
|
||||
[global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
|
||||
public partial class TrascCodSoggDataTable : global::System.Data.TypedTableBase<TrascCodSoggRow> {
|
||||
|
||||
private global::System.Data.DataColumn columnCodSoggetto;
|
||||
|
||||
private global::System.Data.DataColumn columnCodMatricola;
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public TrascCodSoggDataTable() {
|
||||
this.TableName = "TrascCodSogg";
|
||||
this.BeginInit();
|
||||
this.InitClass();
|
||||
this.EndInit();
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
internal TrascCodSoggDataTable(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 TrascCodSoggDataTable(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 CodSoggettoColumn {
|
||||
get {
|
||||
return this.columnCodSoggetto;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public global::System.Data.DataColumn CodMatricolaColumn {
|
||||
get {
|
||||
return this.columnCodMatricola;
|
||||
}
|
||||
}
|
||||
|
||||
[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 TrascCodSoggRow this[int index] {
|
||||
get {
|
||||
return ((TrascCodSoggRow)(this.Rows[index]));
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public event TrascCodSoggRowChangeEventHandler TrascCodSoggRowChanging;
|
||||
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public event TrascCodSoggRowChangeEventHandler TrascCodSoggRowChanged;
|
||||
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public event TrascCodSoggRowChangeEventHandler TrascCodSoggRowDeleting;
|
||||
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public event TrascCodSoggRowChangeEventHandler TrascCodSoggRowDeleted;
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public void AddTrascCodSoggRow(TrascCodSoggRow row) {
|
||||
this.Rows.Add(row);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public TrascCodSoggRow AddTrascCodSoggRow(string CodSoggetto, int CodMatricola) {
|
||||
TrascCodSoggRow rowTrascCodSoggRow = ((TrascCodSoggRow)(this.NewRow()));
|
||||
object[] columnValuesArray = new object[] {
|
||||
CodSoggetto,
|
||||
CodMatricola};
|
||||
rowTrascCodSoggRow.ItemArray = columnValuesArray;
|
||||
this.Rows.Add(rowTrascCodSoggRow);
|
||||
return rowTrascCodSoggRow;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public TrascCodSoggRow FindByCodSoggettoCodMatricola(string CodSoggetto, int CodMatricola) {
|
||||
return ((TrascCodSoggRow)(this.Rows.Find(new object[] {
|
||||
CodSoggetto,
|
||||
CodMatricola})));
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public override global::System.Data.DataTable Clone() {
|
||||
TrascCodSoggDataTable cln = ((TrascCodSoggDataTable)(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 TrascCodSoggDataTable();
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
internal void InitVars() {
|
||||
this.columnCodSoggetto = base.Columns["CodSoggetto"];
|
||||
this.columnCodMatricola = base.Columns["CodMatricola"];
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
private void InitClass() {
|
||||
this.columnCodSoggetto = new global::System.Data.DataColumn("CodSoggetto", typeof(string), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columnCodSoggetto);
|
||||
this.columnCodMatricola = new global::System.Data.DataColumn("CodMatricola", typeof(int), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columnCodMatricola);
|
||||
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
|
||||
this.columnCodSoggetto,
|
||||
this.columnCodMatricola}, true));
|
||||
this.columnCodSoggetto.AllowDBNull = false;
|
||||
this.columnCodSoggetto.MaxLength = 17;
|
||||
this.columnCodMatricola.AllowDBNull = false;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public TrascCodSoggRow NewTrascCodSoggRow() {
|
||||
return ((TrascCodSoggRow)(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 TrascCodSoggRow(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(TrascCodSoggRow);
|
||||
}
|
||||
|
||||
[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.TrascCodSoggRowChanged != null)) {
|
||||
this.TrascCodSoggRowChanged(this, new TrascCodSoggRowChangeEvent(((TrascCodSoggRow)(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.TrascCodSoggRowChanging != null)) {
|
||||
this.TrascCodSoggRowChanging(this, new TrascCodSoggRowChangeEvent(((TrascCodSoggRow)(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.TrascCodSoggRowDeleted != null)) {
|
||||
this.TrascCodSoggRowDeleted(this, new TrascCodSoggRowChangeEvent(((TrascCodSoggRow)(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.TrascCodSoggRowDeleting != null)) {
|
||||
this.TrascCodSoggRowDeleting(this, new TrascCodSoggRowChangeEvent(((TrascCodSoggRow)(e.Row)), e.Action));
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public void RemoveTrascCodSoggRow(TrascCodSoggRow 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 = "TrascCodSoggDataTable";
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///Represents strongly named DataRow class.
|
||||
///</summary>
|
||||
@@ -15263,6 +15573,43 @@ namespace GMW_data {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///Represents strongly named DataRow class.
|
||||
///</summary>
|
||||
public partial class TrascCodSoggRow : global::System.Data.DataRow {
|
||||
|
||||
private TrascCodSoggDataTable tableTrascCodSogg;
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
internal TrascCodSoggRow(global::System.Data.DataRowBuilder rb) :
|
||||
base(rb) {
|
||||
this.tableTrascCodSogg = ((TrascCodSoggDataTable)(this.Table));
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public string CodSoggetto {
|
||||
get {
|
||||
return ((string)(this[this.tableTrascCodSogg.CodSoggettoColumn]));
|
||||
}
|
||||
set {
|
||||
this[this.tableTrascCodSogg.CodSoggettoColumn] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public int CodMatricola {
|
||||
get {
|
||||
return ((int)(this[this.tableTrascCodSogg.CodMatricolaColumn]));
|
||||
}
|
||||
set {
|
||||
this[this.tableTrascCodSogg.CodMatricolaColumn] = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///Row event argument class
|
||||
///</summary>
|
||||
@@ -16044,6 +16391,40 @@ namespace GMW_data {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///Row event argument class
|
||||
///</summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public class TrascCodSoggRowChangeEvent : global::System.EventArgs {
|
||||
|
||||
private TrascCodSoggRow 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 TrascCodSoggRowChangeEvent(TrascCodSoggRow 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 TrascCodSoggRow 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 GMW_data.DS_ApplicazioneTableAdapters {
|
||||
@@ -27667,6 +28048,356 @@ SELECT IdxNC, CodNC, DescrNC, TipoCart, DataFrom, DataTo, Particolare, SearchNot
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///Represents the connection and commands used to retrieve and save data.
|
||||
///</summary>
|
||||
[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 TrascCodSoggTableAdapter : 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 TrascCodSoggTableAdapter() {
|
||||
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 = "TrascCodSogg";
|
||||
tableMapping.ColumnMappings.Add("CodSoggetto", "CodSoggetto");
|
||||
tableMapping.ColumnMappings.Add("CodMatricola", "CodMatricola");
|
||||
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].[TrascCodSogg] WHERE (([CodSoggetto] = @Original_CodSoggetto) A" +
|
||||
"ND ([CodMatricola] = @Original_CodMatricola))";
|
||||
this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodSoggetto", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSoggetto", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodMatricola", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMatricola", 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].[TrascCodSogg] ([CodSoggetto], [CodMatricola]) VALUES (@CodSogg" +
|
||||
"etto, @CodMatricola);\r\nSELECT CodSoggetto, CodMatricola FROM TrascCodSogg WHERE " +
|
||||
"(CodMatricola = @CodMatricola) AND (CodSoggetto = @CodSoggetto)";
|
||||
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
|
||||
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodSoggetto", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSoggetto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodMatricola", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMatricola", 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].[TrascCodSogg] SET [CodSoggetto] = @CodSoggetto, [CodMatricola] = @CodMatricola WHERE (([CodSoggetto] = @Original_CodSoggetto) AND ([CodMatricola] = @Original_CodMatricola));
|
||||
SELECT CodSoggetto, CodMatricola FROM TrascCodSogg WHERE (CodMatricola = @CodMatricola) AND (CodSoggetto = @CodSoggetto)";
|
||||
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodSoggetto", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSoggetto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodMatricola", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMatricola", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodSoggetto", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodSoggetto", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodMatricola", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMatricola", 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::GMW_data.Properties.Settings.Default.GMWConnectionString;
|
||||
}
|
||||
|
||||
[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 CodSoggetto, CodMatricola FROM dbo.TrascCodSogg";
|
||||
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_TrascCodSogg_GetByKey";
|
||||
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("@CodSoggetto", global::System.Data.SqlDbType.NVarChar, 17, 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("@CodMatricola", 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.TrascCodSoggDataTable 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.TrascCodSoggDataTable GetData() {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[0];
|
||||
DS_Applicazione.TrascCodSoggDataTable dataTable = new DS_Applicazione.TrascCodSoggDataTable();
|
||||
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.TrascCodSoggDataTable getByKey(string CodSoggetto, global::System.Nullable<int> CodMatricola) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[1];
|
||||
if ((CodSoggetto == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodSoggetto));
|
||||
}
|
||||
if ((CodMatricola.HasValue == true)) {
|
||||
this.Adapter.SelectCommand.Parameters[2].Value = ((int)(CodMatricola.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
|
||||
}
|
||||
DS_Applicazione.TrascCodSoggDataTable dataTable = new DS_Applicazione.TrascCodSoggDataTable();
|
||||
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.TrascCodSoggDataTable 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, "TrascCodSogg");
|
||||
}
|
||||
|
||||
[global::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_CodSoggetto, int Original_CodMatricola) {
|
||||
if ((Original_CodSoggetto == null)) {
|
||||
throw new global::System.ArgumentNullException("Original_CodSoggetto");
|
||||
}
|
||||
else {
|
||||
this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_CodSoggetto));
|
||||
}
|
||||
this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_CodMatricola));
|
||||
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 CodSoggetto, int CodMatricola) {
|
||||
if ((CodSoggetto == null)) {
|
||||
throw new global::System.ArgumentNullException("CodSoggetto");
|
||||
}
|
||||
else {
|
||||
this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodSoggetto));
|
||||
}
|
||||
this.Adapter.InsertCommand.Parameters[1].Value = ((int)(CodMatricola));
|
||||
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 CodSoggetto, int CodMatricola, string Original_CodSoggetto, int Original_CodMatricola) {
|
||||
if ((CodSoggetto == null)) {
|
||||
throw new global::System.ArgumentNullException("CodSoggetto");
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodSoggetto));
|
||||
}
|
||||
this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(CodMatricola));
|
||||
if ((Original_CodSoggetto == null)) {
|
||||
throw new global::System.ArgumentNullException("Original_CodSoggetto");
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Original_CodSoggetto));
|
||||
}
|
||||
this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_CodMatricola));
|
||||
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_CodSoggetto, int Original_CodMatricola) {
|
||||
return this.Update(Original_CodSoggetto, Original_CodMatricola, Original_CodSoggetto, Original_CodMatricola);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
|
||||
///</summary>
|
||||
@@ -27711,6 +28442,8 @@ SELECT IdxNC, CodNC, DescrNC, TipoCart, DataFrom, DataTo, Particolare, SearchNot
|
||||
|
||||
private ElencoNCTableAdapter _elencoNCTableAdapter;
|
||||
|
||||
private TrascCodSoggTableAdapter _trascCodSoggTableAdapter;
|
||||
|
||||
private bool _backupDataSetBeforeUpdate;
|
||||
|
||||
private global::System.Data.IDbConnection _connection;
|
||||
@@ -27950,6 +28683,20 @@ SELECT IdxNC, CodNC, DescrNC, TipoCart, DataFrom, DataTo, Particolare, SearchNot
|
||||
}
|
||||
}
|
||||
|
||||
[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 TrascCodSoggTableAdapter TrascCodSoggTableAdapter {
|
||||
get {
|
||||
return this._trascCodSoggTableAdapter;
|
||||
}
|
||||
set {
|
||||
this._trascCodSoggTableAdapter = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public bool BackupDataSetBeforeUpdate {
|
||||
@@ -28033,6 +28780,10 @@ SELECT IdxNC, CodNC, DescrNC, TipoCart, DataFrom, DataTo, Particolare, SearchNot
|
||||
&& (this._elencoNCTableAdapter.Connection != null))) {
|
||||
return this._elencoNCTableAdapter.Connection;
|
||||
}
|
||||
if (((this._trascCodSoggTableAdapter != null)
|
||||
&& (this._trascCodSoggTableAdapter.Connection != null))) {
|
||||
return this._trascCodSoggTableAdapter.Connection;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
set {
|
||||
@@ -28094,6 +28845,9 @@ SELECT IdxNC, CodNC, DescrNC, TipoCart, DataFrom, DataTo, Particolare, SearchNot
|
||||
if ((this._elencoNCTableAdapter != null)) {
|
||||
count = (count + 1);
|
||||
}
|
||||
if ((this._trascCodSoggTableAdapter != null)) {
|
||||
count = (count + 1);
|
||||
}
|
||||
return count;
|
||||
}
|
||||
}
|
||||
@@ -28249,6 +29003,15 @@ SELECT IdxNC, CodNC, DescrNC, TipoCart, DataFrom, DataTo, Particolare, SearchNot
|
||||
allChangedRows.AddRange(updatedRows);
|
||||
}
|
||||
}
|
||||
if ((this._trascCodSoggTableAdapter != null)) {
|
||||
global::System.Data.DataRow[] updatedRows = dataSet.TrascCodSogg.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
|
||||
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
|
||||
if (((updatedRows != null)
|
||||
&& (0 < updatedRows.Length))) {
|
||||
result = (result + this._trascCodSoggTableAdapter.Update(updatedRows));
|
||||
allChangedRows.AddRange(updatedRows);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -28387,6 +29150,14 @@ SELECT IdxNC, CodNC, DescrNC, TipoCart, DataFrom, DataTo, Particolare, SearchNot
|
||||
allAddedRows.AddRange(addedRows);
|
||||
}
|
||||
}
|
||||
if ((this._trascCodSoggTableAdapter != null)) {
|
||||
global::System.Data.DataRow[] addedRows = dataSet.TrascCodSogg.Select(null, null, global::System.Data.DataViewRowState.Added);
|
||||
if (((addedRows != null)
|
||||
&& (0 < addedRows.Length))) {
|
||||
result = (result + this._trascCodSoggTableAdapter.Update(addedRows));
|
||||
allAddedRows.AddRange(addedRows);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -28397,6 +29168,14 @@ SELECT IdxNC, CodNC, DescrNC, TipoCart, DataFrom, DataTo, Particolare, SearchNot
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
private int UpdateDeletedRows(DS_Applicazione dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
|
||||
int result = 0;
|
||||
if ((this._trascCodSoggTableAdapter != null)) {
|
||||
global::System.Data.DataRow[] deletedRows = dataSet.TrascCodSogg.Select(null, null, global::System.Data.DataViewRowState.Deleted);
|
||||
if (((deletedRows != null)
|
||||
&& (0 < deletedRows.Length))) {
|
||||
result = (result + this._trascCodSoggTableAdapter.Update(deletedRows));
|
||||
allChangedRows.AddRange(deletedRows);
|
||||
}
|
||||
}
|
||||
if ((this._anagParticolariTableAdapter != null)) {
|
||||
global::System.Data.DataRow[] deletedRows = dataSet.AnagParticolari.Select(null, null, global::System.Data.DataViewRowState.Deleted);
|
||||
if (((deletedRows != null)
|
||||
@@ -28644,6 +29423,11 @@ SELECT IdxNC, CodNC, DescrNC, TipoCart, DataFrom, DataTo, Particolare, SearchNot
|
||||
throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
|
||||
"tring.");
|
||||
}
|
||||
if (((this._trascCodSoggTableAdapter != null)
|
||||
&& (this.MatchTableAdapterConnection(this._trascCodSoggTableAdapter.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" +
|
||||
@@ -28820,6 +29604,15 @@ SELECT IdxNC, CodNC, DescrNC, TipoCart, DataFrom, DataTo, Particolare, SearchNot
|
||||
adaptersWithAcceptChangesDuringUpdate.Add(this._elencoNCTableAdapter.Adapter);
|
||||
}
|
||||
}
|
||||
if ((this._trascCodSoggTableAdapter != null)) {
|
||||
revertConnections.Add(this._trascCodSoggTableAdapter, this._trascCodSoggTableAdapter.Connection);
|
||||
this._trascCodSoggTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
|
||||
this._trascCodSoggTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
|
||||
if (this._trascCodSoggTableAdapter.Adapter.AcceptChangesDuringUpdate) {
|
||||
this._trascCodSoggTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
|
||||
adaptersWithAcceptChangesDuringUpdate.Add(this._trascCodSoggTableAdapter.Adapter);
|
||||
}
|
||||
}
|
||||
//
|
||||
//---- Perform updates -----------
|
||||
//
|
||||
@@ -28942,6 +29735,10 @@ SELECT IdxNC, CodNC, DescrNC, TipoCart, DataFrom, DataTo, Particolare, SearchNot
|
||||
this._elencoNCTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._elencoNCTableAdapter]));
|
||||
this._elencoNCTableAdapter.Transaction = null;
|
||||
}
|
||||
if ((this._trascCodSoggTableAdapter != null)) {
|
||||
this._trascCodSoggTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._trascCodSoggTableAdapter]));
|
||||
this._trascCodSoggTableAdapter.Transaction = null;
|
||||
}
|
||||
if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
|
||||
global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
|
||||
adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
|
||||
|
||||
@@ -2079,7 +2079,7 @@ FROM v_UDC_NC</CommandText>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="GMWConnectionString (Settings)" DbObjectName="TK_GMW.dbo.stp_UNC_removeSelNC" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="removeSelNC" Modifier="Public" Name="removeSelNC" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy2" UserSourceName="removeSelNC">
|
||||
<DbSource ConnectionRef="GMWConnectionString (Settings)" DbObjectName="TK_GMW.dbo.stp_UNC_removeSelNC" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="removeSelNC" Modifier="Public" Name="removeSelNC" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="removeSelNC">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_UNC_removeSelNC</CommandText>
|
||||
@@ -2090,7 +2090,7 @@ FROM v_UDC_NC</CommandText>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="GMWConnectionString (Settings)" DbObjectName="TK_GMW.dbo.stp_UNC_toggleDC" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="toggleDC" Modifier="Public" Name="toggleDC" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="toggleDC">
|
||||
<DbSource ConnectionRef="GMWConnectionString (Settings)" DbObjectName="TK_GMW.dbo.stp_UNC_toggleDC" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="toggleDC" Modifier="Public" Name="toggleDC" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="toggleDC">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_UNC_toggleDC</CommandText>
|
||||
@@ -2104,7 +2104,7 @@ FROM v_UDC_NC</CommandText>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="GMWConnectionString (Settings)" DbObjectName="TK_GMW.dbo.stp_ENC2U_toggle" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="toggleSel" Modifier="Public" Name="toggleSel" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="toggleSel">
|
||||
<DbSource ConnectionRef="GMWConnectionString (Settings)" DbObjectName="TK_GMW.dbo.stp_ENC2U_toggle" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="toggleSel" Modifier="Public" Name="toggleSel" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy2" UserSourceName="toggleSel">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_ENC2U_toggle</CommandText>
|
||||
@@ -2168,6 +2168,67 @@ FROM v_UDC_NC</CommandText>
|
||||
</DbSource>
|
||||
</Sources>
|
||||
</TableAdapter>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="TrascCodSoggTableAdapter" GeneratorDataComponentClassName="TrascCodSoggTableAdapter" Name="TrascCodSogg" UserDataComponentName="TrascCodSoggTableAdapter">
|
||||
<MainSource>
|
||||
<DbSource ConnectionRef="GMWConnectionString (Settings)" DbObjectName="TK_GMW.dbo.TrascCodSogg" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<DeleteCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>DELETE FROM [dbo].[TrascCodSogg] WHERE (([CodSoggetto] = @Original_CodSoggetto) AND ([CodMatricola] = @Original_CodMatricola))</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_CodSoggetto" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="CodSoggetto" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_CodMatricola" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CodMatricola" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</DeleteCommand>
|
||||
<InsertCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>INSERT INTO [dbo].[TrascCodSogg] ([CodSoggetto], [CodMatricola]) VALUES (@CodSoggetto, @CodMatricola);
|
||||
SELECT CodSoggetto, CodMatricola FROM TrascCodSogg WHERE (CodMatricola = @CodMatricola) AND (CodSoggetto = @CodSoggetto)</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@CodSoggetto" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="CodSoggetto" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@CodMatricola" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CodMatricola" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</InsertCommand>
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>SELECT CodSoggetto, CodMatricola FROM dbo.TrascCodSogg</CommandText>
|
||||
<Parameters />
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
<UpdateCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>UPDATE [dbo].[TrascCodSogg] SET [CodSoggetto] = @CodSoggetto, [CodMatricola] = @CodMatricola WHERE (([CodSoggetto] = @Original_CodSoggetto) AND ([CodMatricola] = @Original_CodMatricola));
|
||||
SELECT CodSoggetto, CodMatricola FROM TrascCodSogg WHERE (CodMatricola = @CodMatricola) AND (CodSoggetto = @CodSoggetto)</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@CodSoggetto" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="CodSoggetto" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@CodMatricola" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CodMatricola" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_CodSoggetto" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="CodSoggetto" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_CodMatricola" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CodMatricola" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</UpdateCommand>
|
||||
</DbSource>
|
||||
</MainSource>
|
||||
<Mappings>
|
||||
<Mapping SourceColumn="CodSoggetto" DataSetColumn="CodSoggetto" />
|
||||
<Mapping SourceColumn="CodMatricola" DataSetColumn="CodMatricola" />
|
||||
</Mappings>
|
||||
<Sources>
|
||||
<DbSource ConnectionRef="GMWConnectionString (Settings)" DbObjectName="TK_GMW.dbo.stp_TrascCodSogg_GetByKey" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByKey" GetMethodModifier="Public" GetMethodName="getByKey" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByKey" UserSourceName="getByKey">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_TrascCodSogg_GetByKey</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@CodSoggetto" Precision="0" ProviderType="NVarChar" Scale="0" Size="17" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@CodMatricola" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
</Sources>
|
||||
</TableAdapter>
|
||||
</Tables>
|
||||
<Sources />
|
||||
</DataSource>
|
||||
@@ -3339,7 +3400,7 @@ FROM v_UDC_NC</CommandText>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="ElencoNC" msprop:Generator_TableClassName="ElencoNCDataTable" msprop:Generator_TableVarName="tableElencoNC" msprop:Generator_RowChangedName="ElencoNCRowChanged" msprop:Generator_TablePropName="ElencoNC" msprop:Generator_RowDeletingName="ElencoNCRowDeleting" msprop:Generator_RowChangingName="ElencoNCRowChanging" msprop:Generator_RowEvHandlerName="ElencoNCRowChangeEventHandler" msprop:Generator_RowDeletedName="ElencoNCRowDeleted" msprop:Generator_RowClassName="ElencoNCRow" msprop:Generator_UserTableName="ElencoNC" msprop:Generator_RowEvArgName="ElencoNCRowChangeEvent">
|
||||
<xs:element name="ElencoNC" msprop:Generator_TableClassName="ElencoNCDataTable" msprop:Generator_TableVarName="tableElencoNC" msprop:Generator_TablePropName="ElencoNC" msprop:Generator_RowDeletingName="ElencoNCRowDeleting" msprop:Generator_RowChangingName="ElencoNCRowChanging" msprop:Generator_RowEvHandlerName="ElencoNCRowChangeEventHandler" msprop:Generator_RowDeletedName="ElencoNCRowDeleted" msprop:Generator_UserTableName="ElencoNC" msprop:Generator_RowChangedName="ElencoNCRowChanged" msprop:Generator_RowEvArgName="ElencoNCRowChangeEvent" msprop:Generator_RowClassName="ElencoNCRow">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="IdxNC" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnIdxNC" msprop:Generator_ColumnPropNameInRow="IdxNC" msprop:Generator_ColumnPropNameInTable="IdxNCColumn" msprop:Generator_UserColumnName="IdxNC" type="xs:int" />
|
||||
@@ -3385,7 +3446,7 @@ FROM v_UDC_NC</CommandText>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="UDC_NC" msprop:Generator_TableClassName="UDC_NCDataTable" msprop:Generator_TableVarName="tableUDC_NC" msprop:Generator_TablePropName="UDC_NC" msprop:Generator_RowDeletingName="UDC_NCRowDeleting" msprop:Generator_RowChangingName="UDC_NCRowChanging" msprop:Generator_RowEvHandlerName="UDC_NCRowChangeEventHandler" msprop:Generator_RowDeletedName="UDC_NCRowDeleted" msprop:Generator_UserTableName="UDC_NC" msprop:Generator_RowChangedName="UDC_NCRowChanged" msprop:Generator_RowEvArgName="UDC_NCRowChangeEvent" msprop:Generator_RowClassName="UDC_NCRow">
|
||||
<xs:element name="UDC_NC" msprop:Generator_TableClassName="UDC_NCDataTable" msprop:Generator_TableVarName="tableUDC_NC" msprop:Generator_RowChangedName="UDC_NCRowChanged" msprop:Generator_TablePropName="UDC_NC" msprop:Generator_RowDeletingName="UDC_NCRowDeleting" msprop:Generator_RowChangingName="UDC_NCRowChanging" msprop:Generator_RowEvHandlerName="UDC_NCRowChangeEventHandler" msprop:Generator_RowDeletedName="UDC_NCRowDeleted" msprop:Generator_RowClassName="UDC_NCRow" msprop:Generator_UserTableName="UDC_NC" msprop:Generator_RowEvArgName="UDC_NCRowChangeEvent">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="UDC" msprop:Generator_ColumnVarNameInTable="columnUDC" msprop:Generator_ColumnPropNameInRow="UDC" msprop:Generator_ColumnPropNameInTable="UDCColumn" msprop:Generator_UserColumnName="UDC">
|
||||
@@ -3443,7 +3504,7 @@ FROM v_UDC_NC</CommandText>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="UNC_tree" msprop:Generator_TableClassName="UNC_treeDataTable" msprop:Generator_TableVarName="tableUNC_tree" msprop:Generator_TablePropName="UNC_tree" msprop:Generator_RowDeletingName="UNC_treeRowDeleting" msprop:Generator_RowChangingName="UNC_treeRowChanging" msprop:Generator_RowEvHandlerName="UNC_treeRowChangeEventHandler" msprop:Generator_RowDeletedName="UNC_treeRowDeleted" msprop:Generator_UserTableName="UNC_tree" msprop:Generator_RowChangedName="UNC_treeRowChanged" msprop:Generator_RowEvArgName="UNC_treeRowChangeEvent" msprop:Generator_RowClassName="UNC_treeRow">
|
||||
<xs:element name="UNC_tree" msprop:Generator_TableClassName="UNC_treeDataTable" msprop:Generator_TableVarName="tableUNC_tree" msprop:Generator_RowChangedName="UNC_treeRowChanged" msprop:Generator_TablePropName="UNC_tree" msprop:Generator_RowDeletingName="UNC_treeRowDeleting" msprop:Generator_RowChangingName="UNC_treeRowChanging" msprop:Generator_RowEvHandlerName="UNC_treeRowChangeEventHandler" msprop:Generator_RowDeletedName="UNC_treeRowDeleted" msprop:Generator_RowClassName="UNC_treeRow" msprop:Generator_UserTableName="UNC_tree" msprop:Generator_RowEvArgName="UNC_treeRowChangeEvent">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="UDC" msdata:ReadOnly="true" msprop:nullValue="_throw" msprop:Generator_ColumnPropNameInRow="UDC" msprop:Generator_ColumnVarNameInTable="columnUDC" msprop:Generator_ColumnPropNameInTable="UDCColumn" msprop:Generator_UserColumnName="UDC">
|
||||
@@ -3464,6 +3525,20 @@ FROM v_UDC_NC</CommandText>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="TrascCodSogg" msprop:Generator_TableClassName="TrascCodSoggDataTable" msprop:Generator_TableVarName="tableTrascCodSogg" msprop:Generator_TablePropName="TrascCodSogg" msprop:Generator_RowDeletingName="TrascCodSoggRowDeleting" msprop:Generator_RowChangingName="TrascCodSoggRowChanging" msprop:Generator_RowEvHandlerName="TrascCodSoggRowChangeEventHandler" msprop:Generator_RowDeletedName="TrascCodSoggRowDeleted" msprop:Generator_UserTableName="TrascCodSogg" msprop:Generator_RowChangedName="TrascCodSoggRowChanged" msprop:Generator_RowEvArgName="TrascCodSoggRowChangeEvent" msprop:Generator_RowClassName="TrascCodSoggRow">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="CodSoggetto" msprop:Generator_ColumnVarNameInTable="columnCodSoggetto" msprop:Generator_ColumnPropNameInRow="CodSoggetto" msprop:Generator_ColumnPropNameInTable="CodSoggettoColumn" msprop:Generator_UserColumnName="CodSoggetto">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="17" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="CodMatricola" msprop:Generator_ColumnVarNameInTable="columnCodMatricola" msprop:Generator_ColumnPropNameInRow="CodMatricola" msprop:Generator_ColumnPropNameInTable="CodMatricolaColumn" msprop:Generator_UserColumnName="CodMatricola" type="xs:int" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:choice>
|
||||
</xs:complexType>
|
||||
<xs:unique name="Constraint1" msdata:PrimaryKey="true">
|
||||
@@ -3552,15 +3627,20 @@ FROM v_UDC_NC</CommandText>
|
||||
<xs:selector xpath=".//mstns:UNC_tree" />
|
||||
<xs:field xpath="mstns:UDC" />
|
||||
</xs:unique>
|
||||
<xs:unique name="TrascCodSogg_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
|
||||
<xs:selector xpath=".//mstns:TrascCodSogg" />
|
||||
<xs:field xpath="mstns:CodSoggetto" />
|
||||
<xs:field xpath="mstns:CodMatricola" />
|
||||
</xs:unique>
|
||||
</xs:element>
|
||||
<xs:annotation>
|
||||
<xs:appinfo>
|
||||
<msdata:Relationship name="FK_AnagImpianti_AnagCompanySito" msdata:parent="AnagCompanySito" msdata:child="AnagImpianti" msdata:parentkey="CodCS" msdata:childkey="CodCS" msprop:Generator_UserChildTable="AnagImpianti" msprop:Generator_ChildPropName="GetAnagImpiantiRows" msprop:Generator_UserRelationName="FK_AnagImpianti_AnagCompanySito" msprop:Generator_ParentPropName="AnagCompanySitoRow" msprop:Generator_RelationVarName="relationFK_AnagImpianti_AnagCompanySito" msprop:Generator_UserParentTable="AnagCompanySito" />
|
||||
<msdata:Relationship name="FK_ElencoCartellini_AnagCompanySito" msdata:parent="AnagCompanySito" msdata:child="ElencoCartellini" msdata:parentkey="CodCS" msdata:childkey="CodCS" msprop:Generator_UserChildTable="ElencoCartellini" msprop:Generator_ChildPropName="GetElencoCartelliniRows" msprop:Generator_UserRelationName="FK_ElencoCartellini_AnagCompanySito" msprop:Generator_ParentPropName="AnagCompanySitoRow" msprop:Generator_RelationVarName="relationFK_ElencoCartellini_AnagCompanySito" msprop:Generator_UserParentTable="AnagCompanySito" />
|
||||
<msdata:Relationship name="FK_ElencoCartellini_AnagStatiProdotto" msdata:parent="AnagStatiProdotto" msdata:child="ElencoCartellini" msdata:parentkey="CodStato" msdata:childkey="CodStato" msprop:Generator_UserChildTable="ElencoCartellini" msprop:Generator_ChildPropName="GetElencoCartelliniRows" msprop:Generator_UserRelationName="FK_ElencoCartellini_AnagStatiProdotto" msprop:Generator_ParentPropName="AnagStatiProdottoRow" msprop:Generator_RelationVarName="relationFK_ElencoCartellini_AnagStatiProdotto" msprop:Generator_UserParentTable="AnagStatiProdotto" />
|
||||
<msdata:Relationship name="FK_AnagOperatori_AnagCompanySito" msdata:parent="AnagCompanySito" msdata:child="AnagOperatori" msdata:parentkey="CodCS" msdata:childkey="CodCS" msprop:Generator_UserChildTable="AnagOperatori" msprop:Generator_ChildPropName="GetAnagOperatoriRows" msprop:Generator_UserRelationName="FK_AnagOperatori_AnagCompanySito" msprop:Generator_ParentPropName="AnagCompanySitoRow" msprop:Generator_RelationVarName="relationFK_AnagOperatori_AnagCompanySito" msprop:Generator_UserParentTable="AnagCompanySito" />
|
||||
<msdata:Relationship name="FK_AnagParticolari_AnagCompanySito" msdata:parent="AnagCompanySito" msdata:child="AnagParticolari" msdata:parentkey="CodCS" msdata:childkey="CodCS" msprop:Generator_UserChildTable="AnagParticolari" msprop:Generator_ChildPropName="GetAnagParticolariRows" msprop:Generator_UserRelationName="FK_AnagParticolari_AnagCompanySito" msprop:Generator_ParentPropName="AnagCompanySitoRow" msprop:Generator_RelationVarName="relationFK_AnagParticolari_AnagCompanySito" msprop:Generator_UserParentTable="AnagCompanySito" />
|
||||
<msdata:Relationship name="FK_Soggetti2Utente_AnagOperatori" msdata:parent="AnagOperatori" msdata:child="Soggetti2Utente" msdata:parentkey="CodSoggetto" msdata:childkey="CodSoggetto" msprop:Generator_UserChildTable="Soggetti2Utente" msprop:Generator_ChildPropName="GetSoggetti2UtenteRows" msprop:Generator_UserRelationName="FK_Soggetti2Utente_AnagOperatori" msprop:Generator_ParentPropName="AnagOperatoriRow" msprop:Generator_RelationVarName="relationFK_Soggetti2Utente_AnagOperatori" msprop:Generator_UserParentTable="AnagOperatori" />
|
||||
<msdata:Relationship name="FK_AnagImpianti_AnagCompanySito" msdata:parent="AnagCompanySito" msdata:child="AnagImpianti" msdata:parentkey="CodCS" msdata:childkey="CodCS" msprop:Generator_UserChildTable="AnagImpianti" msprop:Generator_ChildPropName="GetAnagImpiantiRows" msprop:Generator_UserRelationName="FK_AnagImpianti_AnagCompanySito" msprop:Generator_RelationVarName="relationFK_AnagImpianti_AnagCompanySito" msprop:Generator_UserParentTable="AnagCompanySito" msprop:Generator_ParentPropName="AnagCompanySitoRow" />
|
||||
<msdata:Relationship name="FK_ElencoCartellini_AnagCompanySito" msdata:parent="AnagCompanySito" msdata:child="ElencoCartellini" msdata:parentkey="CodCS" msdata:childkey="CodCS" msprop:Generator_UserChildTable="ElencoCartellini" msprop:Generator_ChildPropName="GetElencoCartelliniRows" msprop:Generator_UserRelationName="FK_ElencoCartellini_AnagCompanySito" msprop:Generator_RelationVarName="relationFK_ElencoCartellini_AnagCompanySito" msprop:Generator_UserParentTable="AnagCompanySito" msprop:Generator_ParentPropName="AnagCompanySitoRow" />
|
||||
<msdata:Relationship name="FK_ElencoCartellini_AnagStatiProdotto" msdata:parent="AnagStatiProdotto" msdata:child="ElencoCartellini" msdata:parentkey="CodStato" msdata:childkey="CodStato" msprop:Generator_UserChildTable="ElencoCartellini" msprop:Generator_ChildPropName="GetElencoCartelliniRows" msprop:Generator_UserRelationName="FK_ElencoCartellini_AnagStatiProdotto" msprop:Generator_RelationVarName="relationFK_ElencoCartellini_AnagStatiProdotto" msprop:Generator_UserParentTable="AnagStatiProdotto" msprop:Generator_ParentPropName="AnagStatiProdottoRow" />
|
||||
<msdata:Relationship name="FK_AnagOperatori_AnagCompanySito" msdata:parent="AnagCompanySito" msdata:child="AnagOperatori" msdata:parentkey="CodCS" msdata:childkey="CodCS" msprop:Generator_UserChildTable="AnagOperatori" msprop:Generator_ChildPropName="GetAnagOperatoriRows" msprop:Generator_UserRelationName="FK_AnagOperatori_AnagCompanySito" msprop:Generator_RelationVarName="relationFK_AnagOperatori_AnagCompanySito" msprop:Generator_UserParentTable="AnagCompanySito" msprop:Generator_ParentPropName="AnagCompanySitoRow" />
|
||||
<msdata:Relationship name="FK_AnagParticolari_AnagCompanySito" msdata:parent="AnagCompanySito" msdata:child="AnagParticolari" msdata:parentkey="CodCS" msdata:childkey="CodCS" msprop:Generator_UserChildTable="AnagParticolari" msprop:Generator_ChildPropName="GetAnagParticolariRows" msprop:Generator_UserRelationName="FK_AnagParticolari_AnagCompanySito" msprop:Generator_RelationVarName="relationFK_AnagParticolari_AnagCompanySito" msprop:Generator_UserParentTable="AnagCompanySito" msprop:Generator_ParentPropName="AnagCompanySitoRow" />
|
||||
<msdata:Relationship name="FK_Soggetti2Utente_AnagOperatori" msdata:parent="AnagOperatori" msdata:child="Soggetti2Utente" msdata:parentkey="CodSoggetto" msdata:childkey="CodSoggetto" msprop:Generator_UserChildTable="Soggetti2Utente" msprop:Generator_ChildPropName="GetSoggetti2UtenteRows" msprop:Generator_UserRelationName="FK_Soggetti2Utente_AnagOperatori" msprop:Generator_RelationVarName="relationFK_Soggetti2Utente_AnagOperatori" msprop:Generator_UserParentTable="AnagOperatori" msprop:Generator_ParentPropName="AnagOperatoriRow" />
|
||||
</xs:appinfo>
|
||||
</xs:annotation>
|
||||
</xs:schema>
|
||||
@@ -4,34 +4,35 @@
|
||||
Changes to this file may cause incorrect behavior and will be lost if
|
||||
the code is regenerated.
|
||||
</autogenerated>-->
|
||||
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="44" ViewPortY="500" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
|
||||
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-10" ViewPortY="275" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
|
||||
<Shapes>
|
||||
<Shape ID="DesignTable:AnagStati" ZOrder="29" X="867" Y="533" Height="115" Width="201" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:AnagTipoDichiaraz" ZOrder="15" X="828" Y="719" Height="115" Width="254" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:AnagStatiProdotto" ZOrder="22" X="157" Y="722" Height="134" Width="196" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:RelazUDC" ZOrder="5" X="27" Y="249" Height="210" Width="239" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:AnagImpianti" ZOrder="27" X="853" Y="19" Height="191" Width="224" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
|
||||
<Shape ID="DesignTable:AnagCompanySito" ZOrder="26" X="1129" Y="83" Height="172" Width="184" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
|
||||
<Shape ID="DesignTable:AnagBilance" ZOrder="4" X="858" Y="224" Height="210" Width="225" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:ElencoCartellini" ZOrder="6" X="464" Y="4" Height="761" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="520" />
|
||||
<Shape ID="DesignTable:AnagImballi" ZOrder="24" X="72" Y="488" Height="153" Width="225" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:v_ArtInProd" ZOrder="18" X="1181" Y="757" Height="324" Width="198" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:AnagOperatori" ZOrder="14" X="488" Y="821" Height="267" Width="237" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="197" />
|
||||
<Shape ID="DesignTable:AnagClienti" ZOrder="23" X="817" Y="1304" Height="153" Width="269" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:AnagParticolari" ZOrder="21" X="1190" Y="331" Height="210" Width="234" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="140" />
|
||||
<Shape ID="DesignTable:AnagFamiglie" ZOrder="19" X="1193" Y="567" Height="134" Width="231" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:Soggetti2Utente" ZOrder="16" X="89" Y="880" Height="172" Width="216" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:v_specParticolari" ZOrder="8" X="30" Y="-23" Height="267" Width="217" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="178" />
|
||||
<Shape ID="DesignTable:ElencoPostazioni" ZOrder="11" X="1167" Y="1106" Height="172" Width="242" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:stp_prtCartLiquidiF10ByUDC" ZOrder="10" X="289" Y="22" Height="148" Width="158" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="80" />
|
||||
<Shape ID="DesignTable:stp_prtCartLiquidiF18ByUDC" ZOrder="9" X="291" Y="196" Height="147" Width="158" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="79" />
|
||||
<Shape ID="DesignTable:v_RapQualNote" ZOrder="7" X="85" Y="1082" Height="343" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:ElencoNC" ZOrder="1" X="809" Y="894" Height="343" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="216" />
|
||||
<Shape ID="DesignTable:UDC_NC" ZOrder="2" X="446" Y="1130" Height="343" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="216" />
|
||||
<Shape ID="DesignTable:UNC_tree" ZOrder="3" X="1164" Y="1294" Height="172" Width="228" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:AnagStati" ZOrder="30" X="867" Y="533" Height="115" Width="201" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:AnagTipoDichiaraz" ZOrder="17" X="828" Y="719" Height="115" Width="254" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:AnagStatiProdotto" ZOrder="2" X="243" Y="639" Height="134" Width="196" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:RelazUDC" ZOrder="7" X="27" Y="249" Height="210" Width="239" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:AnagImpianti" ZOrder="28" X="853" Y="19" Height="191" Width="224" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
|
||||
<Shape ID="DesignTable:AnagCompanySito" ZOrder="27" X="1129" Y="83" Height="172" Width="184" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
|
||||
<Shape ID="DesignTable:AnagBilance" ZOrder="6" X="858" Y="224" Height="210" Width="225" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:ElencoCartellini" ZOrder="8" X="464" Y="4" Height="761" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="520" />
|
||||
<Shape ID="DesignTable:AnagImballi" ZOrder="25" X="72" Y="488" Height="153" Width="225" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:v_ArtInProd" ZOrder="20" X="1181" Y="757" Height="324" Width="198" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:AnagOperatori" ZOrder="16" X="488" Y="821" Height="267" Width="237" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="197" />
|
||||
<Shape ID="DesignTable:AnagClienti" ZOrder="24" X="817" Y="1304" Height="153" Width="269" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:AnagParticolari" ZOrder="23" X="1190" Y="331" Height="210" Width="234" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="140" />
|
||||
<Shape ID="DesignTable:AnagFamiglie" ZOrder="21" X="1193" Y="567" Height="134" Width="231" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:Soggetti2Utente" ZOrder="18" X="89" Y="880" Height="172" Width="216" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:v_specParticolari" ZOrder="10" X="30" Y="-23" Height="267" Width="217" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="178" />
|
||||
<Shape ID="DesignTable:ElencoPostazioni" ZOrder="13" X="1167" Y="1106" Height="172" Width="242" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:stp_prtCartLiquidiF10ByUDC" ZOrder="12" X="289" Y="22" Height="148" Width="158" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="80" />
|
||||
<Shape ID="DesignTable:stp_prtCartLiquidiF18ByUDC" ZOrder="11" X="291" Y="196" Height="147" Width="158" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="79" />
|
||||
<Shape ID="DesignTable:v_RapQualNote" ZOrder="9" X="85" Y="1082" Height="343" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:ElencoNC" ZOrder="3" X="809" Y="894" Height="343" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="216" />
|
||||
<Shape ID="DesignTable:UDC_NC" ZOrder="4" X="446" Y="1130" Height="343" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="216" />
|
||||
<Shape ID="DesignTable:UNC_tree" ZOrder="5" X="1164" Y="1294" Height="172" Width="228" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:TrascCodSogg" ZOrder="1" X="9" Y="729" Height="134" Width="226" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
</Shapes>
|
||||
<Connectors>
|
||||
<Connector ID="DesignRelation:FK_AnagImpianti_AnagCompanySito" ZOrder="28" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_AnagImpianti_AnagCompanySito" ZOrder="29" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>1129</X>
|
||||
@@ -43,7 +44,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_ElencoCartellini_AnagCompanySito" ZOrder="13" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_ElencoCartellini_AnagCompanySito" ZOrder="15" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>1170</X>
|
||||
@@ -59,14 +60,14 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_ElencoCartellini_AnagStatiProdotto" ZOrder="25" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_ElencoCartellini_AnagStatiProdotto" ZOrder="26" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>336</X>
|
||||
<Y>722</Y>
|
||||
<X>422</X>
|
||||
<Y>639</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>336</X>
|
||||
<X>422</X>
|
||||
<Y>466</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
@@ -75,7 +76,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_AnagOperatori_AnagCompanySito" ZOrder="12" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_AnagOperatori_AnagCompanySito" ZOrder="14" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>1154</X>
|
||||
@@ -91,7 +92,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_AnagParticolari_AnagCompanySito" ZOrder="20" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_AnagParticolari_AnagCompanySito" ZOrder="22" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>1248</X>
|
||||
@@ -103,7 +104,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_Soggetti2Utente_AnagOperatori" ZOrder="17" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_Soggetti2Utente_AnagOperatori" ZOrder="19" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>488</X>
|
||||
|
||||
@@ -31,6 +31,7 @@ namespace GMW_data
|
||||
public DS_ApplicazioneTableAdapters.v_specParticolariTableAdapter taSpecPart;
|
||||
public DS_ApplicazioneTableAdapters.AnagStatiProdottoTableAdapter taStatiProd;
|
||||
public DS_ApplicazioneTableAdapters.AnagTipoDichiarazTableAdapter taTipoDich;
|
||||
public DS_ApplicazioneTableAdapters.TrascCodSoggTableAdapter taTrascSogg;
|
||||
public DS_ApplicazioneTableAdapters.UDC_NCTableAdapter taUDC2NC;
|
||||
public DS_ApplicazioneTableAdapters.UNC_treeTableAdapter taUNCTree;
|
||||
|
||||
@@ -70,6 +71,7 @@ namespace GMW_data
|
||||
taSpecPart = new GMW_data.DS_ApplicazioneTableAdapters.v_specParticolariTableAdapter();
|
||||
taStatiProd = new GMW_data.DS_ApplicazioneTableAdapters.AnagStatiProdottoTableAdapter();
|
||||
taTipoDich = new GMW_data.DS_ApplicazioneTableAdapters.AnagTipoDichiarazTableAdapter();
|
||||
taTrascSogg = new GMW_data.DS_ApplicazioneTableAdapters.TrascCodSoggTableAdapter();
|
||||
taUDC2NC = new GMW_data.DS_ApplicazioneTableAdapters.UDC_NCTableAdapter();
|
||||
taUNCTree = new GMW_data.DS_ApplicazioneTableAdapters.UNC_treeTableAdapter();
|
||||
|
||||
@@ -111,6 +113,7 @@ namespace GMW_data
|
||||
taSpecPart.Connection.ConnectionString = connString;
|
||||
taStatiProd.Connection.ConnectionString = connString;
|
||||
taTipoDich.Connection.ConnectionString = connString;
|
||||
taTrascSogg.Connection.ConnectionString = connString;
|
||||
taUDC2NC.Connection.ConnectionString = connString;
|
||||
taUNCTree.Connection.ConnectionString = connString;
|
||||
|
||||
|
||||
@@ -213,6 +213,7 @@
|
||||
<Compile Include="bCodePrinter.cs" />
|
||||
<Compile Include="MagClass.cs" />
|
||||
<Compile Include="Odette.cs" />
|
||||
<Compile Include="OpAuth.cs" />
|
||||
<Compile Include="Postazione.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Properties\Settings.Designer.cs">
|
||||
|
||||
@@ -0,0 +1,152 @@
|
||||
using SteamWare;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace GMW_data
|
||||
{
|
||||
/// <summary>
|
||||
/// Classe gestione auth utente
|
||||
/// </summary>
|
||||
public class OpAuth
|
||||
{
|
||||
/// <summary>
|
||||
/// CodSoggetto (univoco)
|
||||
/// </summary>
|
||||
public string CodSoggetto { get; set; }
|
||||
/// <summary>
|
||||
/// Matricola OP (univoca)
|
||||
/// </summary>
|
||||
public int Matricola { get; set; }
|
||||
/// <summary>
|
||||
/// Cognome - Nome
|
||||
/// </summary>
|
||||
public string CognomeNome { get; set; }
|
||||
/// <summary>
|
||||
/// numero autorizzazioni ancora possibili
|
||||
/// </summary>
|
||||
public int remAuth { get; set; }
|
||||
/// <summary>
|
||||
/// scadenza massima auth
|
||||
/// </summary>
|
||||
public DateTime scadAuth { get; set; }
|
||||
/// <summary>
|
||||
/// inizializzazione componente, default da web.config MA CON AUTH
|
||||
/// </summary>
|
||||
protected OpAuth()
|
||||
{
|
||||
// imposto valori di default (scaduti...)
|
||||
CodSoggetto = "";
|
||||
Matricola = 0;
|
||||
CognomeNome = "NA";
|
||||
remAuth = memLayer.ML.CRI("defRemAuth");
|
||||
scadAuth = DateTime.Now.AddMinutes(memLayer.ML.CRI("defMinScad"));
|
||||
}
|
||||
/// <summary>
|
||||
/// Fornisce un oggetto OpAuth popolato da CodSoggetto calcolando il resto + lettura default da web.config
|
||||
/// </summary>
|
||||
/// <param name="CodSoggetto"></param>
|
||||
/// <returns></returns>
|
||||
public static OpAuth startOpAuth(string CodSoggetto)
|
||||
{
|
||||
OpAuth answ = new OpAuth();
|
||||
if (CodSoggetto != "")
|
||||
{
|
||||
answ.CodSoggetto = CodSoggetto;
|
||||
answ.CognomeNome = utils.obj.getOperatoreByCod(CodSoggetto);
|
||||
answ.Matricola = DataProxy.obj.taTrascSogg.getByKey(CodSoggetto, 0)[0].CodMatricola;
|
||||
}
|
||||
currAuth = answ;
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// Fornisce un oggetto OpAuth popolato da Matricola calcolando il resto + lettura default da web.config
|
||||
/// </summary>
|
||||
/// <param name="Matricola"></param>
|
||||
/// <returns></returns>
|
||||
public static OpAuth startOpAuth(int Matricola)
|
||||
{
|
||||
OpAuth answ = new OpAuth();
|
||||
if (Matricola > 0)
|
||||
{
|
||||
answ.CodSoggetto = DataProxy.obj.taTrascSogg.getByKey("", Matricola)[0].CodSoggetto;
|
||||
answ.CognomeNome = utils.obj.getOperatoreByCod(answ.CodSoggetto);
|
||||
answ.Matricola = Matricola;
|
||||
}
|
||||
currAuth = answ;
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// toglie auth utente
|
||||
/// </summary>
|
||||
public static void stopAuth()
|
||||
{
|
||||
memLayer.ML.emptySessionVal("OpAuth");
|
||||
}
|
||||
/// <summary>
|
||||
/// Auth Corrente x operazioni User
|
||||
/// </summary>
|
||||
public static OpAuth currAuth
|
||||
{
|
||||
get
|
||||
{
|
||||
OpAuth answ = new OpAuth();
|
||||
// cerco in sessione...
|
||||
if (memLayer.ML.isInSessionObject("OpAuth"))
|
||||
{
|
||||
answ = (OpAuth)memLayer.ML.objSessionObj("OpAuth");
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal("OpAuth", value);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// definisce si sia valida auth operatività utente, ovvero
|
||||
/// - valori in sessione
|
||||
/// - num auth > 0
|
||||
/// - auth non scaduta
|
||||
/// </summary>
|
||||
public static bool isAuth
|
||||
{
|
||||
get
|
||||
{
|
||||
bool answ = false;
|
||||
// se ho valori in sessione
|
||||
if (memLayer.ML.isInSessionObject("OpAuth"))
|
||||
{
|
||||
// se ho num auth > 0
|
||||
if (currAuth.remAuth > 0)
|
||||
{
|
||||
// se non è scaduta auth..
|
||||
if (currAuth.scadAuth > DateTime.Now)
|
||||
{
|
||||
// se ho un CodSoggetto VALIDO
|
||||
if (currAuth.CodSoggetto != "")
|
||||
{
|
||||
answ = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// definisce se sia RICHEISTA OpAuth
|
||||
/// </summary>
|
||||
public static bool opAuthReq
|
||||
{
|
||||
get
|
||||
{
|
||||
// verifico SE devo fare controllo OpAuth...
|
||||
return memLayer.ML.CRB("enableOpAuth");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -7,7 +7,7 @@ using System.Text;
|
||||
namespace GMW_data
|
||||
{
|
||||
/// <summary>
|
||||
/// classe gestioen dati inerenti la postazione (fisica) da cui si esegue la pagina web
|
||||
/// classe gestione dati inerenti la postazione (fisica) da cui si esegue la pagina web
|
||||
/// </summary>
|
||||
public class Postazione
|
||||
{
|
||||
|
||||
@@ -215,7 +215,7 @@ namespace GMW_data
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// verifica se il codice barcode letto sia un particoalre con codice tipo "P"
|
||||
/// verifica se il codice barcode letto sia un particolare con codice tipo "P"
|
||||
/// </summary>
|
||||
/// <param name="barcodeIN"></param>
|
||||
/// <returns></returns>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+2
-2
@@ -5,7 +5,7 @@
|
||||
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: AssemblyVersion("3.2.813.2093")]
|
||||
[assembly: AssemblyFileVersion("3.2.813.2093")]
|
||||
[assembly: AssemblyVersion("3.2.831.2099")]
|
||||
[assembly: AssemblyFileVersion("3.2.831.2099")]
|
||||
[assembly: AssemblyCopyright("Steamware © 2007-2015")]
|
||||
[assembly: AssemblyCompany("Steamware")]
|
||||
|
||||
+2
-2
@@ -6,8 +6,8 @@
|
||||
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: AssemblyVersion("3.2.813.<#= this.RevisionNumber #>")]
|
||||
[assembly: AssemblyFileVersion("3.2.813.<#= this.RevisionNumber #>")]
|
||||
[assembly: AssemblyVersion("3.2.831.<#= this.RevisionNumber #>")]
|
||||
[assembly: AssemblyFileVersion("3.2.831.<#= this.RevisionNumber #>")]
|
||||
[assembly: AssemblyCopyright("Steamware © 2007-<#= DateTime.Now.Year #>")]
|
||||
[assembly: AssemblyCompany("Steamware")]
|
||||
<#+
|
||||
|
||||
Reference in New Issue
Block a user