fix creazione da documento...
This commit is contained in:
Binary file not shown.
@@ -5,6 +5,7 @@ using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using WebSCR_data;
|
||||
using SteamWare;
|
||||
|
||||
namespace WebSCR.WebUserControls
|
||||
{
|
||||
@@ -87,10 +88,18 @@ namespace WebSCR.WebUserControls
|
||||
try
|
||||
{
|
||||
riga = DtProxy.man.taVcz.getBySearch(ricerca)[0];
|
||||
lblCliente.Text = string.Format("<b>{0}</b><br />{1} ", riga.RagSoc, riga.Indir);
|
||||
lblIndirizzo.Text = string.Format("{0} | {1}", riga.Localita, riga.Prov);
|
||||
lblZona.Text = riga.Zona;
|
||||
Zona = riga.Zona;
|
||||
if (riga != null)
|
||||
{
|
||||
lblCliente.Text = string.Format("<b>{0}</b><br />{1} ", riga.RagSoc, riga.Indir);
|
||||
lblIndirizzo.Text = string.Format("{0} | {1}", riga.Localita, riga.Prov);
|
||||
lblZona.Text = riga.Zona;
|
||||
Zona = riga.Zona;
|
||||
memLayer.ML.setSessionVal("currDoc", ricerca);
|
||||
}
|
||||
else
|
||||
{
|
||||
memLayer.ML.emptySessionVal("currDoc");
|
||||
}
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
OnBeforeEventRender="DayPilotCalendar1_BeforeEventRender"
|
||||
OnEventClick="DayPilotCalendar1_EventClick"
|
||||
Width="95%"
|
||||
HourFontSize="7pt"
|
||||
HourFontSize="6"
|
||||
EventFontSize="8pt"></DayPilot:DayPilotCalendar>
|
||||
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByDate" TypeName="WebSCR_data.DS_ApplicazioneTableAdapters.v_ImpegniCalTableAdapter">
|
||||
<SelectParameters>
|
||||
|
||||
@@ -80,9 +80,13 @@ namespace WebSCR.WebUserControls
|
||||
// se ho squadra selezionata...
|
||||
if (rblSquadre.SelectedIndex >= 0)
|
||||
{
|
||||
// recupero indirizzo e cliente !!FARE!!!
|
||||
// recupero OC se in sessione...
|
||||
string doc = memLayer.ML.StringSessionObj("currDoc");
|
||||
if (doc == "") doc = "OC00000000";
|
||||
// selezionato periodo, salvo evento inizio...
|
||||
DtProxy.man.taImp.insertQuery(e.Start, "INDIC", rblSquadre.SelectedValue, "OC00000000");
|
||||
DtProxy.man.taImp.insertQuery(e.Start, "INDIC", rblSquadre.SelectedValue, doc);
|
||||
// consumo il doc selezionato e quindi rimuovo da sessione...
|
||||
memLayer.ML.emptySessionVal("currDoc");
|
||||
}
|
||||
doUpdate();
|
||||
}
|
||||
|
||||
@@ -68,6 +68,7 @@ namespace WebSCR.WebUserControls
|
||||
// sistemo visibilità giornata/impegni
|
||||
mod_giornata.eh_newData += mod_giornata_eh_newData;
|
||||
|
||||
mod_giornata.Visible = false;
|
||||
mod_dettInt.Visible = false;
|
||||
mod_impegno.Visible = false;
|
||||
if (qsVal("Data") != "")
|
||||
@@ -77,6 +78,10 @@ namespace WebSCR.WebUserControls
|
||||
mod_impegno.Visible = true;
|
||||
mod_dettInt.Visible = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
mod_giornata.Visible = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user