Beispiel #1
0
 /// <summary>
 /// Viene ricostruito un file indice in base alle installazioni eseguite dal cliente,
 /// un'aggiornamento di tipo misto è installato se risulta installata la parte server e
 /// client.
 /// </summary>
 private bool CreazioneIndiceLocale()
 {
     try {
         //scorro tutte gli aggiornamenti presenti sul sito web
         DataRow[] rowsWeb = DSremote.Tables["update"].Select("flagannullato='N'", "code ASC, publishingdate DESC");
         DSlocal = new vistaindex();
         DSlocal.update.Columns.Add("installato", typeof(string));
         foreach (DataRow R in rowsWeb)
         {
             DataRow Rindex     = DSlocal.update.NewRow();
             string  tipoupdate = R["flagkind"].ToString();
             Rindex["code"]             = R["code"];
             Rindex["shortdescription"] = R["shortdescription"];
             Rindex["description"]      = R["description"];
             Rindex["publishingdate"]   = R["publishingdate"];
             Rindex["installato"]       = IsInstalled(R, tipoupdate);
             Rindex["downloaddate"]     = GetInstallDate(R, tipoupdate);
             DSlocal.update.Rows.Add(Rindex);
         }
         DSlocal.AcceptChanges();
         return(true);
     }
     catch (Exception E) {
         ShowMsg("Impossibile proseguire. Errore nella ricostruzione lista " +
                 "degli aggiornamenti già installati", E.Message);
         return(false);
     }
 }
Beispiel #2
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.DS               = new /*Rana:ondemand.*/ vistaForm();
     this.DSclient         = new /*Rana:ondemand.*/ vistaindex();
     this.Tab              = new System.Windows.Forms.TabControl();
     this.tabPage1         = new System.Windows.Forms.TabPage();
     this.btnUncheckSelect = new System.Windows.Forms.Button();
     this.btnCheckSelect   = new System.Windows.Forms.Button();
     this.label1           = new System.Windows.Forms.Label();
     this.txtDescNew       = new System.Windows.Forms.TextBox();
     this.btnEsegui        = new System.Windows.Forms.Button();
     this.btnUncheckAll    = new System.Windows.Forms.Button();
     this.btnCheckAll      = new System.Windows.Forms.Button();
     this.listNew          = new System.Windows.Forms.ListView();
     this.tabPage2         = new System.Windows.Forms.TabPage();
     this.label2           = new System.Windows.Forms.Label();
     this.txtDescOld       = new System.Windows.Forms.TextBox();
     this.listOld          = new System.Windows.Forms.ListView();
     this.tabPage3         = new System.Windows.Forms.TabPage();
     this.label3           = new System.Windows.Forms.Label();
     this.txtDescFull      = new System.Windows.Forms.TextBox();
     this.listFull         = new System.Windows.Forms.ListView();
     ((System.ComponentModel.ISupportInitialize)(this.DS)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.DSclient)).BeginInit();
     this.Tab.SuspendLayout();
     this.tabPage1.SuspendLayout();
     this.tabPage2.SuspendLayout();
     this.tabPage3.SuspendLayout();
     this.SuspendLayout();
     //
     // DS
     //
     this.DS.DataSetName = "vistaForm";
     this.DS.Locale      = new System.Globalization.CultureInfo("en-US");
     //
     // DSclient
     //
     this.DSclient.DataSetName = "vistaindex1";
     this.DSclient.Locale      = new System.Globalization.CultureInfo("en-US");
     //
     // Tab
     //
     this.Tab.Controls.Add(this.tabPage1);
     this.Tab.Controls.Add(this.tabPage2);
     this.Tab.Controls.Add(this.tabPage3);
     this.Tab.Dock          = System.Windows.Forms.DockStyle.Fill;
     this.Tab.Location      = new System.Drawing.Point(0, 0);
     this.Tab.Name          = "Tab";
     this.Tab.SelectedIndex = 0;
     this.Tab.Size          = new System.Drawing.Size(688, 454);
     this.Tab.TabIndex      = 1;
     //
     // tabPage1
     //
     this.tabPage1.Controls.Add(this.btnUncheckSelect);
     this.tabPage1.Controls.Add(this.btnCheckSelect);
     this.tabPage1.Controls.Add(this.label1);
     this.tabPage1.Controls.Add(this.txtDescNew);
     this.tabPage1.Controls.Add(this.btnEsegui);
     this.tabPage1.Controls.Add(this.btnUncheckAll);
     this.tabPage1.Controls.Add(this.btnCheckAll);
     this.tabPage1.Controls.Add(this.listNew);
     this.tabPage1.Location = new System.Drawing.Point(4, 22);
     this.tabPage1.Name     = "tabPage1";
     this.tabPage1.Size     = new System.Drawing.Size(680, 428);
     this.tabPage1.TabIndex = 0;
     this.tabPage1.Text     = "Nuovi aggiornamenti";
     //
     // btnUncheckSelect
     //
     this.btnUncheckSelect.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.btnUncheckSelect.Location = new System.Drawing.Point(552, 152);
     this.btnUncheckSelect.Name     = "btnUncheckSelect";
     this.btnUncheckSelect.Size     = new System.Drawing.Size(112, 23);
     this.btnUncheckSelect.TabIndex = 9;
     this.btnUncheckSelect.Text     = "Disattiva selezione";
     this.btnUncheckSelect.Click   += new System.EventHandler(this.btnUncheckSelect_Click);
     //
     // btnCheckSelect
     //
     this.btnCheckSelect.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.btnCheckSelect.Location = new System.Drawing.Point(552, 120);
     this.btnCheckSelect.Name     = "btnCheckSelect";
     this.btnCheckSelect.Size     = new System.Drawing.Size(112, 23);
     this.btnCheckSelect.TabIndex = 8;
     this.btnCheckSelect.Text     = "Attiva selezione";
     this.btnCheckSelect.Click   += new System.EventHandler(this.btnCheckSelect_Click);
     //
     // label1
     //
     this.label1.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.label1.Location = new System.Drawing.Point(8, 304);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(144, 16);
     this.label1.TabIndex = 7;
     this.label1.Text     = "Descrizione aggiornamento";
     //
     // txtDescNew
     //
     this.txtDescNew.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                                                                    | System.Windows.Forms.AnchorStyles.Right)));
     this.txtDescNew.Location   = new System.Drawing.Point(8, 328);
     this.txtDescNew.Multiline  = true;
     this.txtDescNew.Name       = "txtDescNew";
     this.txtDescNew.ReadOnly   = true;
     this.txtDescNew.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
     this.txtDescNew.Size       = new System.Drawing.Size(528, 88);
     this.txtDescNew.TabIndex   = 6;
     this.txtDescNew.Text       = "";
     //
     // btnEsegui
     //
     this.btnEsegui.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.btnEsegui.Location = new System.Drawing.Point(552, 224);
     this.btnEsegui.Name     = "btnEsegui";
     this.btnEsegui.Size     = new System.Drawing.Size(112, 40);
     this.btnEsegui.TabIndex = 5;
     this.btnEsegui.Text     = "Installa aggiornamenti";
     this.btnEsegui.Click   += new System.EventHandler(this.btnEsegui_Click);
     //
     // btnUncheckAll
     //
     this.btnUncheckAll.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.btnUncheckAll.Location = new System.Drawing.Point(552, 64);
     this.btnUncheckAll.Name     = "btnUncheckAll";
     this.btnUncheckAll.Size     = new System.Drawing.Size(112, 23);
     this.btnUncheckAll.TabIndex = 4;
     this.btnUncheckAll.Text     = "Disattiva tutto";
     this.btnUncheckAll.Click   += new System.EventHandler(this.btnUncheckAll_Click);
     //
     // btnCheckAll
     //
     this.btnCheckAll.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.btnCheckAll.Location = new System.Drawing.Point(552, 32);
     this.btnCheckAll.Name     = "btnCheckAll";
     this.btnCheckAll.Size     = new System.Drawing.Size(112, 23);
     this.btnCheckAll.TabIndex = 3;
     this.btnCheckAll.Text     = "Attiva tutto";
     this.btnCheckAll.Click   += new System.EventHandler(this.btnCheckAll_Click);
     //
     // listNew
     //
     this.listNew.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                  | System.Windows.Forms.AnchorStyles.Left)
                                                                 | System.Windows.Forms.AnchorStyles.Right)));
     this.listNew.Location     = new System.Drawing.Point(8, 8);
     this.listNew.Name         = "listNew";
     this.listNew.Size         = new System.Drawing.Size(528, 288);
     this.listNew.TabIndex     = 2;
     this.listNew.Click       += new System.EventHandler(this.VisualizzaDescrizione);
     this.listNew.ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(this.ColumnClick);
     //
     // tabPage2
     //
     this.tabPage2.Controls.Add(this.label2);
     this.tabPage2.Controls.Add(this.txtDescOld);
     this.tabPage2.Controls.Add(this.listOld);
     this.tabPage2.Location = new System.Drawing.Point(4, 22);
     this.tabPage2.Name     = "tabPage2";
     this.tabPage2.Size     = new System.Drawing.Size(680, 428);
     this.tabPage2.TabIndex = 1;
     this.tabPage2.Text     = "Aggiornamenti installati";
     //
     // label2
     //
     this.label2.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.label2.Location = new System.Drawing.Point(8, 304);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(144, 16);
     this.label2.TabIndex = 8;
     this.label2.Text     = "Descrizione aggiornamento";
     //
     // txtDescOld
     //
     this.txtDescOld.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                                                                    | System.Windows.Forms.AnchorStyles.Right)));
     this.txtDescOld.Location   = new System.Drawing.Point(8, 328);
     this.txtDescOld.Multiline  = true;
     this.txtDescOld.Name       = "txtDescOld";
     this.txtDescOld.ReadOnly   = true;
     this.txtDescOld.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
     this.txtDescOld.Size       = new System.Drawing.Size(664, 88);
     this.txtDescOld.TabIndex   = 7;
     this.txtDescOld.Text       = "";
     //
     // listOld
     //
     this.listOld.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                  | System.Windows.Forms.AnchorStyles.Left)
                                                                 | System.Windows.Forms.AnchorStyles.Right)));
     this.listOld.Location     = new System.Drawing.Point(8, 8);
     this.listOld.Name         = "listOld";
     this.listOld.Size         = new System.Drawing.Size(664, 288);
     this.listOld.TabIndex     = 2;
     this.listOld.Click       += new System.EventHandler(this.VisualizzaDescrizione);
     this.listOld.ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(this.ColumnClick);
     //
     // tabPage3
     //
     this.tabPage3.Controls.Add(this.label3);
     this.tabPage3.Controls.Add(this.txtDescFull);
     this.tabPage3.Controls.Add(this.listFull);
     this.tabPage3.Location = new System.Drawing.Point(4, 22);
     this.tabPage3.Name     = "tabPage3";
     this.tabPage3.Size     = new System.Drawing.Size(680, 428);
     this.tabPage3.TabIndex = 2;
     this.tabPage3.Text     = "Elenco completo";
     //
     // label3
     //
     this.label3.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.label3.Location = new System.Drawing.Point(8, 304);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(144, 16);
     this.label3.TabIndex = 9;
     this.label3.Text     = "Descrizione aggiornamento";
     //
     // txtDescFull
     //
     this.txtDescFull.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                                                                     | System.Windows.Forms.AnchorStyles.Right)));
     this.txtDescFull.Location   = new System.Drawing.Point(8, 328);
     this.txtDescFull.Multiline  = true;
     this.txtDescFull.Name       = "txtDescFull";
     this.txtDescFull.ReadOnly   = true;
     this.txtDescFull.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
     this.txtDescFull.Size       = new System.Drawing.Size(664, 88);
     this.txtDescFull.TabIndex   = 8;
     this.txtDescFull.Text       = "";
     //
     // listFull
     //
     this.listFull.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                   | System.Windows.Forms.AnchorStyles.Left)
                                                                  | System.Windows.Forms.AnchorStyles.Right)));
     this.listFull.Location     = new System.Drawing.Point(8, 8);
     this.listFull.Name         = "listFull";
     this.listFull.Size         = new System.Drawing.Size(664, 288);
     this.listFull.TabIndex     = 1;
     this.listFull.Click       += new System.EventHandler(this.VisualizzaDescrizione);
     this.listFull.ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(this.ColumnClick);
     //
     // frmondemand
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(688, 454);
     this.Controls.Add(this.Tab);
     this.Name = "frmondemand";
     this.Text = "frmondemand";
     ((System.ComponentModel.ISupportInitialize)(this.DS)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.DSclient)).EndInit();
     this.Tab.ResumeLayout(false);
     this.tabPage1.ResumeLayout(false);
     this.tabPage2.ResumeLayout(false);
     this.tabPage3.ResumeLayout(false);
     this.ResumeLayout(false);
 }