Ok fix grafico stato scheda (manca solo select...)

This commit is contained in:
Samuele E. Locatelli
2015-12-01 12:48:55 +01:00
parent cca776e8d9
commit ed9584071d
18 changed files with 241 additions and 125 deletions
+47 -5
View File
@@ -6151,6 +6151,8 @@ namespace CMS_SC_Data {
private global::System.Data.DataColumn columnStato;
private global::System.Data.DataColumn columnDescrStato;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public StatoCollaudiDataTable() {
@@ -6296,6 +6298,14 @@ namespace CMS_SC_Data {
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public global::System.Data.DataColumn DescrStatoColumn {
get {
return this.columnDescrStato;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
@@ -6333,7 +6343,7 @@ namespace CMS_SC_Data {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public StatoCollaudiRow AddStatoCollaudiRow(int IdxDossier, string CodScheda, int Vers, int NumScheda, string Descrizione, string opz, string FasiEnab, int Ordinale, string Fase, int TotMisure, int MisEffettuate, int MisOk, int MisOkDerog, int Stato) {
public StatoCollaudiRow AddStatoCollaudiRow(int IdxDossier, string CodScheda, int Vers, int NumScheda, string Descrizione, string opz, string FasiEnab, int Ordinale, string Fase, int TotMisure, int MisEffettuate, int MisOk, int MisOkDerog, int Stato, string DescrStato) {
StatoCollaudiRow rowStatoCollaudiRow = ((StatoCollaudiRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
IdxDossier,
@@ -6349,7 +6359,8 @@ namespace CMS_SC_Data {
MisEffettuate,
MisOk,
MisOkDerog,
Stato};
Stato,
DescrStato};
rowStatoCollaudiRow.ItemArray = columnValuesArray;
this.Rows.Add(rowStatoCollaudiRow);
return rowStatoCollaudiRow;
@@ -6396,6 +6407,7 @@ namespace CMS_SC_Data {
this.columnMisOk = base.Columns["MisOk"];
this.columnMisOkDerog = base.Columns["MisOkDerog"];
this.columnStato = base.Columns["Stato"];
this.columnDescrStato = base.Columns["DescrStato"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -6429,6 +6441,8 @@ namespace CMS_SC_Data {
base.Columns.Add(this.columnMisOkDerog);
this.columnStato = new global::System.Data.DataColumn("Stato", typeof(int), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnStato);
this.columnDescrStato = new global::System.Data.DataColumn("DescrStato", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnDescrStato);
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
this.columnIdxDossier,
this.columnCodScheda,
@@ -6448,6 +6462,7 @@ namespace CMS_SC_Data {
this.columnFase.AllowDBNull = false;
this.columnFase.MaxLength = 50;
this.columnStato.ReadOnly = true;
this.columnDescrStato.MaxLength = 50;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -8925,6 +8940,22 @@ namespace CMS_SC_Data {
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public string DescrStato {
get {
try {
return ((string)(this[this.tableStatoCollaudi.DescrStatoColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'DescrStato\' in table \'StatoCollaudi\' is DBNull.", e);
}
}
set {
this[this.tableStatoCollaudi.DescrStatoColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public bool IsDescrizioneNull() {
@@ -8996,6 +9027,18 @@ namespace CMS_SC_Data {
public void SetStatoNull() {
this[this.tableStatoCollaudi.StatoColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public bool IsDescrStatoNull() {
return this.IsNull(this.tableStatoCollaudi.DescrStatoColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public void SetDescrStatoNull() {
this[this.tableStatoCollaudi.DescrStatoColumn] = global::System.Convert.DBNull;
}
}
/// <summary>
@@ -16425,6 +16468,7 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa
tableMapping.ColumnMappings.Add("MisOk", "MisOk");
tableMapping.ColumnMappings.Add("MisOkDerog", "MisOkDerog");
tableMapping.ColumnMappings.Add("Stato", "Stato");
tableMapping.ColumnMappings.Add("DescrStato", "DescrStato");
this._adapter.TableMappings.Add(tableMapping);
}
@@ -16441,9 +16485,7 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa
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 IdxDossier, CodScheda, Vers, NumScheda, Descrizione, opz, FasiEnab, Ordina" +
"le, Fase, TotMisure, MisEffettuate, MisOk, MisOkDerog, Stato FROM dbo.v_statoCol" +
"laudi";
this._commandCollection[0].CommandText = "SELECT * FROM v_statoCollaudi";
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[1].Connection = this.Connection;
+11 -3
View File
@@ -1431,10 +1431,10 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa
</TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="StatoCollaudiTableAdapter" GeneratorDataComponentClassName="StatoCollaudiTableAdapter" Name="StatoCollaudi" UserDataComponentName="StatoCollaudiTableAdapter">
<MainSource>
<DbSource ConnectionRef="CMS_SCConnectionString (Settings)" DbObjectName="[CMS-SC].dbo.v_statoCollaudi" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" 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">
<DbSource ConnectionRef="CMS_SCConnectionString (Settings)" DbObjectName="[CMS-SC].dbo.v_statoCollaudi" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT IdxDossier, CodScheda, Vers, NumScheda, Descrizione, opz, FasiEnab, Ordinale, Fase, TotMisure, MisEffettuate, MisOk, MisOkDerog, Stato FROM dbo.v_statoCollaudi</CommandText>
<DbCommand CommandType="Text" ModifiedByUser="true">
<CommandText>SELECT * FROM v_statoCollaudi</CommandText>
<Parameters />
</DbCommand>
</SelectCommand>
@@ -1455,6 +1455,7 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa
<Mapping SourceColumn="MisOk" DataSetColumn="MisOk" />
<Mapping SourceColumn="MisOkDerog" DataSetColumn="MisOkDerog" />
<Mapping SourceColumn="Stato" DataSetColumn="Stato" />
<Mapping SourceColumn="DescrStato" DataSetColumn="DescrStato" />
</Mappings>
<Sources>
<DbSource ConnectionRef="CMS_SCConnectionString (Settings)" DbObjectName="[CMS-SC].dbo.stp_StatoCollByDossier" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByDossFase" GetMethodModifier="Public" GetMethodName="getByDossFase" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByDossFase" UserSourceName="getByDossFase">
@@ -2138,6 +2139,13 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa
<xs:element name="MisOk" msprop:Generator_ColumnVarNameInTable="columnMisOk" msprop:Generator_ColumnPropNameInRow="MisOk" msprop:Generator_ColumnPropNameInTable="MisOkColumn" msprop:Generator_UserColumnName="MisOk" type="xs:int" minOccurs="0" />
<xs:element name="MisOkDerog" msprop:Generator_ColumnVarNameInTable="columnMisOkDerog" msprop:Generator_ColumnPropNameInRow="MisOkDerog" msprop:Generator_ColumnPropNameInTable="MisOkDerogColumn" msprop:Generator_UserColumnName="MisOkDerog" type="xs:int" minOccurs="0" />
<xs:element name="Stato" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnStato" msprop:Generator_ColumnPropNameInRow="Stato" msprop:Generator_ColumnPropNameInTable="StatoColumn" msprop:Generator_UserColumnName="Stato" type="xs:int" minOccurs="0" />
<xs:element name="DescrStato" msprop:Generator_ColumnVarNameInTable="columnDescrStato" msprop:Generator_ColumnPropNameInRow="DescrStato" msprop:Generator_ColumnPropNameInTable="DescrStatoColumn" msprop:Generator_UserColumnName="DescrStato" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
Binary file not shown.
Binary file not shown.
Binary file not shown.
+22
View File
@@ -65,6 +65,28 @@ a:focus {
.bg-default {
background-color: white;
}
/* Formato stato scheda collaudo */
.sc {
font-weight: bold;
}
.sc_0 {
color: #666;
}
.sc_1 {
color: #bababa;
}
.sc_2 {
color: black;
}
.sc_3 {
color: #FF3333;
}
.sc_4 {
color: #CCCC66;
}
.sc_5 {
color: #00bd00;
}
/* formato testo commento compatto */
.didascalia {
color: #696969;
+22 -1
View File
@@ -81,7 +81,28 @@ a:focus {
}
/* Formato stato scheda collaudo */
.sc{
font-weight: bold;
}
.sc_0{
color: #666;
}
.sc_1{
color: #bababa;
}
.sc_2{
color: black;
}
.sc_3{
color: #FF3333;
}
.sc_4{
color: #CCCC66;
}
.sc_5{
color: #00bd00;
}
/* formato testo commento compatto */
.didascalia {
+1 -1
View File
File diff suppressed because one or more lines are too long
+11 -2
View File
@@ -25,12 +25,21 @@
<div class="col-xs-8 bg-info" runat="server" id="divDetail">
<div class="row panel panel-default" style="margin: 4px; padding: 0px;">
<div class="panel-heading">
<h4 class="panel-title"><%: traduci("StatoCollaudi") %></h4>
<div class="row">
<div class="col-xs-8">
<h4 class="panel-title"><%: traduci("StatoCollaudi") %></h4>
</div>
<div class="col-xs4">
<asp:DropDownList runat="server" ID="ddlFase" DataSourceID="odsFase" DataTextField="label" DataValueField="value" AutoPostBack="True" OnSelectedIndexChanged="ddlFase_SelectedIndexChanged">
</asp:DropDownList>
<asp:ObjectDataSource ID="odsFase" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="CMS_SC_Data.DS_UtilityTableAdapters.v_selFasiTableAdapter"></asp:ObjectDataSource>
</div>
</div>
</div>
<div class="panel-body" style="padding: 4px;">
<div class="row">
<div class="col-xs-12">
<uc1:mod_StatoCollaudi runat="server" id="mod_StatoCollaudi" />
<uc1:mod_StatoCollaudi runat="server" ID="mod_StatoCollaudi" />
</div>
</div>
</div>
+51 -11
View File
@@ -23,11 +23,56 @@ namespace CMS_SC
((Bootstrap)this.Master).showSearch = true;
mod_righePag.numRowPag = 20;
mod_StatoCollaudi.pageSize = mod_righePag.numRowPag;
tryGetParam();
}
mod_righePag.eh_newNum += mod_righePag_eh_newNum;
mod_elencoDossiers.eh_selezioneValore += mod_elencoDossiers_eh_selezioneValore;
}
/// <summary>
/// cerca di recuperare i 3 parametri selezionati dall'utente (SE ci sono su DB)
/// </summary>
private void tryGetParam()
{
// rileggo SE CI SONO i parametri filtrati...
if (getPar("ddlFase") != "")
{
ddlFase.DataBind();
try
{
ddlFase.SelectedValue = getPar("ddlFase");
mod_StatoCollaudi.Fase = ddlFase.SelectedValue;
}
catch
{
ddlFase.SelectedIndex = 0;
}
}
}
/// <summary>
/// recupera (se c'è) da db il parametro selezionato dall'utente
/// </summary>
/// <param name="paramName"></param>
/// <returns></returns>
protected string getPar(string paramName)
{
string answ = "";
try
{
answ = DtProxy.man.taUsrPar.getByKey(OpAuth.currAuth.email, paramName)[0].ParValue;
}
catch
{ }
return answ;
}
/// <summary>
/// salva su DB il parametro scelto dall'utente
/// </summary>
/// <param name="paramName"></param>
/// <param name="paramValue"></param>
protected void savePar(string paramName, string paramValue)
{
DtProxy.man.taUsrPar.upsert(OpAuth.currAuth.email, paramName, paramValue);
}
private void Mod_dossier_eh_valUpdated(object sender, EventArgs e)
{
mod_elencoDossiers.DataBind();
@@ -60,17 +105,12 @@ namespace CMS_SC
mod_StatoCollaudi.pageSize = mod_righePag.numRowPag;
}
/// <summary>
/// aggiungo scheda selezionata
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnInsMisFasi_Click(object sender, EventArgs e)
protected void ddlFase_SelectedIndexChanged(object sender, EventArgs e)
{
// inserisco tutte le schede da template x tutte le fasi indicate nella struttura di setup...
DtProxy.man.taSCM.insMisFasiMissing(mod_elencoDossiers.idxDossier);
mod_elencoDossiers.doUpdate();
mod_StatoCollaudi.doUpdate();
// salvo!
savePar("ddlFase", ddlFase.SelectedValue);
// fix visualizzazione
mod_StatoCollaudi.Fase = ddlFase.SelectedValue;
}
}
}
+18
View File
@@ -30,6 +30,24 @@ namespace CMS_SC {
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divDetail;
/// <summary>
/// ddlFase 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.DropDownList ddlFase;
/// <summary>
/// odsFase 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.ObjectDataSource odsFase;
/// <summary>
/// mod_StatoCollaudi control.
/// </summary>
+31 -43
View File
@@ -4,7 +4,7 @@
<asp:Label runat="server" ID="lblNoRecord" Text='<%# traduci("NoRecords") %>' />
</EmptyDataTemplate>
<Columns>
<asp:TemplateField ShowHeader="False" ItemStyle-Wrap="false">
<%--<asp:TemplateField ShowHeader="False" ItemStyle-Wrap="false">
<EditItemTemplate>
<asp:LinkButton ID="lbUpdate" runat="server" CausesValidation="True" CommandName="Update" ToolTip="Update" CssClass="fa fa-check fa-2x" />
&nbsp;<asp:LinkButton ID="lbCancel" runat="server" CausesValidation="False" CommandName="Cancel" ToolTip="Cancel" CssClass="fa fa-undo fa-2x" />
@@ -12,58 +12,46 @@
<ItemTemplate>
<asp:LinkButton ID="lbEdit" runat="server" CausesValidation="False" CommandName="Edit" ToolTip="Edit" CssClass="fa fa-edit fa-2x" Visible='<%# isWriteEnabled %>' />
</ItemTemplate>
</asp:TemplateField>--%>
<asp:TemplateField HeaderText="Stato" SortExpression="Stato">
<ItemTemplate>
<div class='<%# string.Format("row sc_{0}", Eval("Stato")) %>'>
<div class="col-xs-2 sc">
<asp:Label ID="lblDescrStato" runat="server" Text='<%# Bind("DescrStato") %>' />
</div>
<div class="col-xs-2">
<asp:Label ID="lblCodScheda" runat="server" Text='<%# string.Format("{0}.{1}.{2}", Eval("CodScheda"), Eval("Vers"), Eval("NumScheda")) %>' />
</div>
<div class="col-xs-8">
<asp:Label ID="lblDescrizione" runat="server" Text='<%# Eval("Descrizione") %>' />
</div>
</div>
</ItemTemplate>
</asp:TemplateField>
<%--<asp:BoundField DataField="DescrStato" HeaderText="DescrStato" ReadOnly="True" SortExpression="DescrStato" />
<asp:BoundField DataField="CodScheda" HeaderText="CodScheda" ReadOnly="True" SortExpression="CodScheda" />
<asp:BoundField DataField="Vers" HeaderText="Vers" ReadOnly="True" SortExpression="Vers" />
<asp:BoundField DataField="NumScheda" HeaderText="#" ReadOnly="True" SortExpression="NumScheda" />
<asp:TemplateField ShowHeader="False" ItemStyle-Width="60px">
<HeaderTemplate>
<%# traduci("moveMis") %>
</HeaderTemplate>
<EditItemTemplate>
</EditItemTemplate>
<ItemTemplate>
<div class="col-xs-6">
<asp:LinkButton ID="lbMoveUp" runat="server" CausesValidation="False" CommandName="Select" CommandArgument="moveUp" OnClick="lb_Click" ToolTip="Move Up" CssClass="fa fa-arrow-up" Visible='<%# arrowVisible("UP", Eval("Ordinale")) %>' />
</div>
<div class="col-xs-6">
<asp:LinkButton ID="lbMoveDown" runat="server" CausesValidation="False" CommandName="Select" CommandArgument="moveDown" OnClick="lb_Click" ToolTip="Move Down" CssClass="fa fa-arrow-down" Visible='<%# arrowVisible("DOWN", Eval("Ordinale")) %>' />
</div>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="opz" HeaderText="opz" SortExpression="opz" ControlStyle-Width="2em" />
<asp:BoundField DataField="Descrizione" HeaderText="Descrizione" SortExpression="Descrizione" ControlStyle-Width="50em" />
<asp:BoundField DataField="FasiEnab" HeaderText="FasiEnab" SortExpression="FasiEnab" ControlStyle-Width="12em" />
<asp:TemplateField ShowHeader="False" ItemStyle-Wrap="false">
<HeaderTemplate>
</HeaderTemplate>
<ItemTemplate>
<asp:LinkButton ID="lbDelete" runat="server" CausesValidation="False" CommandName="Delete" ToolTip="Delete" OnClientClick='<%# SteamWare.jsUtils.getCBE("confermaDel") %>' CssClass="fa fa-trash fa-2x" Visible='<%# isWriteEnabled %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="NumScheda" HeaderText="#" SortExpression="NumScheda" ControlStyle-Width="2em" ReadOnly="True">
<ControlStyle Width="2em"></ControlStyle>
</asp:BoundField>
<asp:BoundField DataField="Descrizione" HeaderText="Descrizione" SortExpression="Descrizione" ControlStyle-Width="50em">
<ControlStyle Width="50em"></ControlStyle>
</asp:BoundField>--%>
<%--<asp:BoundField DataField="Fase" HeaderText="Fase" SortExpression="Fase" />
<asp:BoundField DataField="TotMisure" HeaderText="TotMisure" SortExpression="TotMisure" />
<asp:BoundField DataField="MisEffettuate" HeaderText="MisEffettuate" SortExpression="MisEffettuate" />
<asp:BoundField DataField="MisOk" HeaderText="MisOk" SortExpression="MisOk" />
<asp:BoundField DataField="MisOkDerog" HeaderText="MisOkDerog" SortExpression="MisOkDerog" />--%>
</Columns>
<PagerStyle CssClass="active GridPager" />
<PagerSettings Mode="NumericFirstLast" />
<SelectedRowStyle CssClass="info" />
</asp:GridView>
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="Original_{0}" SelectMethod="getByDossier" TypeName="CMS_SC_Data.DS_ApplicazioneTableAdapters.SchemaCollMaccTableAdapter" DeleteMethod="deleteQuery" UpdateMethod="updateQuery">
<DeleteParameters>
<asp:Parameter Name="Original_IdxDossier" Type="Int32" />
<asp:Parameter Name="Original_CodScheda" Type="String" />
<asp:Parameter Name="Original_Vers" Type="Int32" />
<asp:Parameter Name="Original_NumScheda" Type="Int32" />
</DeleteParameters>
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByDossFase" TypeName="CMS_SC_Data.DS_ApplicazioneTableAdapters.StatoCollaudiTableAdapter">
<SelectParameters>
<asp:ControlParameter ControlID="hfIdxDossier" Name="IdxDossier" PropertyName="Value" Type="Int32" />
<asp:ControlParameter ControlID="hfFase" Name="Fase" PropertyName="Value" Type="String" />
</SelectParameters>
<UpdateParameters>
<asp:Parameter Name="Descrizione" Type="String" />
<asp:Parameter Name="opz" Type="String" />
<asp:Parameter Name="FasiEnab" Type="String" />
<asp:Parameter Name="Original_IdxDossier" Type="Int32" />
<asp:Parameter Name="Original_CodScheda" Type="String" />
<asp:Parameter Name="Original_Vers" Type="Int32" />
<asp:Parameter Name="Original_NumScheda" Type="Int32" />
</UpdateParameters>
</asp:ObjectDataSource>
<asp:HiddenField runat="server" ID="hfIdxDossier" />
<asp:HiddenField runat="server" ID="hfFase" />
@@ -59,6 +59,21 @@ namespace CMS_SC.WebUserControls
grView.DataBind();
}
}
/// <summary>
/// dossier selezionato
/// </summary>
public string Fase
{
get
{
return hfFase.Value;
}
set
{
hfFase.Value = value;
grView.DataBind();
}
}
public void doUpdate()
{
grView.DataBind();
@@ -71,34 +86,11 @@ namespace CMS_SC.WebUserControls
protected void grView_SelectedIndexChanged(object sender, EventArgs e)
{
// verifico se ho un argomento di tipo moveUp / moveDown... quale comando?
string _comando = "";
string CodSchedaVersNum = "";
if (SteamWare.memLayer.ML.isInSessionObject("nextObjCommand"))
CodSchedaVersNum = string.Format("{0}.{1}.{2}", grView.SelectedDataKey["CodScheda"], grView.SelectedDataKey["Vers"], grView.SelectedDataKey["NumScheda"]);
if (CodSchedaVersNum != "")
{
_comando = SteamWare.memLayer.ML.StringSessionObj("nextObjCommand");
SteamWare.memLayer.ML.emptySessionVal("nextObjCommand");
}
if (_comando != "")
{
CodSchedaVersNum = string.Format("{0}.{1}.{2}", grView.SelectedDataKey["CodScheda"], grView.SelectedDataKey["Vers"], grView.SelectedDataKey["NumScheda"]);
// SE c'era comando eseguo move...
switch (_comando)
{
case "moveUp":
case "moveDown":
DtProxy.man.taSCM.moveUpDown(_comando, Convert.ToInt32(idxDossier), CodSchedaVersNum);
break;
//case "clone":
// DtProxy.man.taDS.clone(memLayer.ML.QSS("CodSchedaVers"), grView.SelectedDataKey["CodMisura"].ToString());
// break;
default:
break;
}
resetSelezione();
}
else
{
raiseEvent();
// mostro dettaglio....
}
}
protected void btnReset_Click(object sender, EventArgs e)
@@ -114,38 +106,5 @@ namespace CMS_SC.WebUserControls
grView.DataBind();
raiseEvent();
}
/// <summary>
/// determina visibilità frecce spostamento
/// </summary>
/// <param name="direction">direzione: UP / DOWN</param>
/// <param name="_Ordinale">Ordinale</param>
/// <returns></returns>
public bool arrowVisible(object _direction, object _Ordinale)
{
bool answ = false;
string direction = _direction.ToString();
int Ordinale = Convert.ToInt32(_Ordinale.ToString());
switch (direction)
{
case "UP":
answ = Ordinale > 1;
break;
case "DOWN":
answ = Ordinale < DtProxy.man.taSCM.getByDossier(Convert.ToInt32(idxDossier)).Rows.Count;
break;
default:
break;
}
return answ;
}
/// <summary>
/// salvo in session il prox comando
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void lb_Click(object sender, EventArgs e)
{
SteamWare.memLayer.ML.setSessionVal("nextObjCommand", ((LinkButton)sender).CommandArgument);
}
}
}
@@ -38,5 +38,14 @@ namespace CMS_SC.WebUserControls {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.HiddenField hfIdxDossier;
/// <summary>
/// hfFase 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.HiddenField hfFase;
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.