Exemplo n.º 1
0
        private void ultraGrid1_DoubleClickRow(object sender, DoubleClickRowEventArgs e)
        {
            rowid = ultraGrid1.ActiveRow.Index;

            if (rowid >= 0)
            {
                try
                {
                    this.txtBatchno.Text   = this.ultraGrid1.Rows[rowid].Cells["FS_BATCHNO"].Text.ToString();
                    this.txtbandno.Text    = this.ultraGrid1.Rows[rowid].Cells["FN_BANDNO"].Text.ToString();
                    this.txtreel.Text      = this.ultraGrid1.Rows[rowid].Cells["FS_REEL"].Text.ToString();
                    this.txtStoveno.Text   = this.ultraGrid1.Rows[rowid].Cells["FS_STOVENO"].Text.ToString();
                    this.txtweight.Text    = this.ultraGrid1.Rows[rowid].Cells["FN_WEIGHT"].Text.ToString();
                    this.txtykl.Text       = this.ultraGrid1.Rows[rowid].Cells["FN_YKL"].Text.ToString();
                    this.txtkhjz.Text      = this.ultraGrid1.Rows[rowid].Cells["FN_KHJZ"].Text.ToString();
                    this.txtproductno.Text = this.ultraGrid1.Rows[rowid].Cells["FS_PRODUCTNO"].Text.ToString();
                    this.txtsteeltype.Text = this.ultraGrid1.Rows[rowid].Cells["FS_STEELTYPE"].Text.ToString();
                    this.txtspec.Text      = this.ultraGrid1.Rows[rowid].Cells["FS_SPEC"].Text.ToString();
                    this.txtMemo.Text      = this.ultraGrid1.Rows[rowid].Cells["FS_MEMO"].Text.ToString();
                    strWeightno            = this.ultraGrid1.Rows[rowid].Cells["FS_WEIGHTNO"].Text.ToString();
                    strBatch = this.ultraGrid1.Rows[rowid].Cells["FS_BATCHNO"].Text.ToString();
                }

                catch
                {
                }
            }
        }
Exemplo n.º 2
0
 private void ultraGrid1_DoubleClickRow(object sender, DoubleClickRowEventArgs e)
 {
     if (this.ToolbarButtonList.Find(o => o.Key.Equals("Update")) != null)
     {
         Update();
     }
 }
Exemplo n.º 3
0
 private void ultraGrid1_DoubleClickRow(object sender, DoubleClickRowEventArgs e)
 {
     rowno = ultraGrid1.ActiveRow.Index;
     if (rowno >= 0)
     {
         IFormatProvider culture = new CultureInfo("zh-CN", true);
         try
         {
             this.tb_startWeight.Text = this.ultraGrid1.Rows[rowno].Cells["FN_STRATWEIHT"].Text;
             this.tb_endWeight.Text   = this.ultraGrid1.Rows[rowno].Cells["FN_ENDWEIGHT"].Text;
             //DateTime dtstart=new DateTime(this.ultraGrid1.Rows[rowno].Cells["FD_STARTTIME"].Text);
             //DateTime dtend = new DateTime(this.ultraGrid1.Rows[rowno].Cells["FD_ENDTIME"].Text);
             this.dateTimePicker3.Value = DateTime.ParseExact(this.ultraGrid1.Rows[rowno].Cells["FD_STARTTIME"].Text, "yyyy-MM-dd HH:mm:ss", culture);
             if (this.ultraGrid1.Rows[rowno].Cells["FD_ENDTIME"].Text != "")
             {
                 this.dateTimePicker4.Value = DateTime.ParseExact(this.ultraGrid1.Rows[rowno].Cells["FD_ENDTIME"].Text, "yyyy-MM-dd HH:mm:ss", culture);
             }
             this.cb_shift.Text = this.ultraGrid1.Rows[rowno].Cells["FS_SHIFT"].Text;
             this.cb_term.Text  = this.ultraGrid1.Rows[rowno].Cells["FS_TERM"].Text;
             strWeightno        = this.ultraGrid1.Rows[rowno].Cells["FS_WEIGHTNO"].Text;
         }
         catch (Exception e4)
         {
         }
     }
 }
Exemplo n.º 4
0
        /// <summary>
        /// Called as we double click a row in the list - this effectively causes this item to be expanded
        /// in the tree view and hence here
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void auditGridView_DoubleClickRow(object sender, DoubleClickRowEventArgs e)
        {
            // Get the DataObject from the grid as this helps identify the item being double clicked.
            object dataObject = e.Row.Cells["DataObject"].Value;

            // OK - what is it?
            // In general the dataObject may be one of:
            //	UltraTreeNode - most items - this simply holds the parent item from the tree.
            //	Asset - used only in All Assets view
            //	FileSystemFile - terminus of a File System branch identifies a specific file
            //
            //  If we double click an UltraTreeNode this causes it to be expanded
            if (dataObject is UltraTreeNode)
            {
                UltraTreeNode treeNode = dataObject as UltraTreeNode;

                // ...and cause it to be expanded
                treeNode.Expanded = true;

                // ...and select it also
                UltraTree treeControl = treeNode.Control as UltraTree;
                treeNode.BringIntoView(true);
                _displayedNode.Selected = false;
                treeNode.Selected       = true;
            }

            // Double-click on a FileSystemFile displays it's properties
            else if (dataObject is FileSystemFile)
            {
                propertiesToolStripMenuItem_Click(sender, null);
            }
        }
Exemplo n.º 5
0
        //Grid 点击事件
        private void ultraGrid3_DoubleClickRow(object sender, DoubleClickRowEventArgs e)
        {
            UltraGridRow ugr;

            ugr = this.ultraGrid3.ActiveRow;
            if (ugr == null)
            {
                return;
            }
            this.cbBF.Text  = ultraGrid3.ActiveRow.Cells["FS_POINTNAME"].Text.Trim();
            m_SelectPointID = ultraGrid3.ActiveRow.Cells["FS_Poundtype"].Text.Trim();
            m_WeightNo      = ultraGrid3.ActiveRow.Cells["FS_WEIGHTNO"].Text.Trim();

            this.tbCardNo.Text        = ultraGrid3.ActiveRow.Cells["FS_CARDNUMBER"].Text.Trim();
            this.tbCarNo.Text         = ultraGrid3.ActiveRow.Cells["FS_CARNO"].Text.Trim();
            this.cbMaterial.Text      = ultraGrid3.ActiveRow.Cells["FS_MATERIALNAME"].Text.Trim();
            this.cbSender.Text        = ultraGrid3.ActiveRow.Cells["FS_SUPPLIERNAME"].Text.Trim();
            this.cbReceiver.Text      = ultraGrid3.ActiveRow.Cells["FS_Receiver"].Text.Trim();
            this.tbSenderPlace.Text   = ultraGrid3.ActiveRow.Cells["Fs_Senderstore"].Text.Trim();
            this.tbReceiverPlace.Text = ultraGrid3.ActiveRow.Cells["FS_RECEIVERSTORE"].Text.Trim();
            this.cbTrans.Text         = ultraGrid3.ActiveRow.Cells["FS_TRANSNAME"].Text.Trim();
            this.cbFlow.Text          = ultraGrid3.ActiveRow.Cells["FS_TYPENAME"].Text.Trim();

            this.tbBZ.Text       = ultraGrid3.ActiveRow.Cells["FS_BZ"].Text.Trim();
            this.cbProvider.Text = ultraGrid3.ActiveRow.Cells["FS_PROVIDERNAME"].Text.Trim();
        }
Exemplo n.º 6
0
 private void DataGrid_DoubleClickRow(object sender, DoubleClickRowEventArgs e)
 {
     if (!this.userControlDataGridGODINE.DataGrid.GridLoading && ((this.userControlDataGridGODINE.DataGrid.ActiveRow != null) && (this.userControlDataGridGODINE.DataGrid.ActiveCell != null)))
     {
         this.DefaultAction();
     }
 }
Exemplo n.º 7
0
        private void groupGridView_DoubleClickRow(object sender, DoubleClickRowEventArgs e)
        {
            string assetName = e.Row.Cells["Asset"].Value.ToString();

            List <WorkItem>           workItemList    = (List <WorkItem>)workItem.RootWorkItem.WorkItems.FindByType(typeof(NetworkWorkItem));
            NetworkWorkItem           netDiscWorkItem = workItemList[0] as NetworkWorkItem;
            NetworkWorkItemController controller      = netDiscWorkItem.Controller as NetworkWorkItemController;

            NetworkExplorerView explorerView = (NetworkExplorerView)netDiscWorkItem.ExplorerView;

            Infragistics.Win.UltraWinTree.UltraTree explorerTree = explorerView.GetDisplayedTree;

            Infragistics.Win.UltraWinTree.UltraTreeNode rootNode     = explorerTree.Nodes[0];
            Infragistics.Win.UltraWinTree.UltraTreeNode selectedNode = AddMatches(rootNode, assetName);

            if (selectedNode != null)
            {
                selectedNode.BringIntoView();
                //explorerTree.SelectedNodes.Clear();

                selectedNode.Expanded = true;
                selectedNode.Selected = true;

                //controller.ActivateWorkItem();
            }
        }
Exemplo n.º 8
0
 private void ugPropiedad_DoubleClickRow(object sender, DoubleClickRowEventArgs e)
 {
     if(ugPropiedad.ActiveRow != null){
         m_PropiedadResult = Convert.ToString(ugPropiedad.ActiveRow.Tag);
     }
     Close();
 }
Exemplo n.º 9
0
        private void grdDetalleQuincena_DoubleClickRow(object sender, DoubleClickRowEventArgs e)
        {
            DetalleFactura form = new DetalleFactura();

            form.IdFactura = Convert.ToInt32(e.Row.Cells["factura"].Value);
            form.LoadGrids();
            form.ShowDialog(this);
        }
Exemplo n.º 10
0
 private void ugPropiedad_DoubleClickRow(object sender, DoubleClickRowEventArgs e)
 {
     if (ugPropiedad.ActiveRow != null)
     {
         m_PropiedadResult = Convert.ToString(ugPropiedad.ActiveRow.Tag);
     }
     Close();
 }
Exemplo n.º 11
0
 private void uGrdObra_DoubleClickRow(object sender, DoubleClickRowEventArgs e)
 {
     try
     {
         BuscaObra = (ClsObra)clsObrasBuscarBindingSource.Current;
         FrmBuscaObra.ActiveForm.Hide();
     }
     catch (Exception Ex) { MessageBox.Show(Ex.Message); }
 }
Exemplo n.º 12
0
        private void ultraGrid1_DoubleClickRow(object sender, DoubleClickRowEventArgs e)
        {
            SysEmployee     employee = e.Row.ListObject as SysEmployee;
            DlgEmployeeEdit dlg      = new DlgEmployeeEdit(employee, EditType.Update, this.Action);

            if (dlg.ShowDialog(this) == DialogResult.OK)
            {
                QueryEmployees(activeOrganizationId);
            }
        }
Exemplo n.º 13
0
        private void ultraGrid1_DoubleClickRow(object sender, DoubleClickRowEventArgs e)
        {
            UltraGridRow ugr;

            ugr = this.ultraGrid1.ActiveRow;
            if (ugr == null)
            {
                return;
            }
            chooseBaseInfo();
        }
Exemplo n.º 14
0
 private void ultraGridPolicyMetrics_DoubleClickRow(object sender, DoubleClickRowEventArgs e)
 {
     Infragistics.Win.UltraWinGrid.UltraGridRow row = e.Row;
     if (m_allowEdit && row != null && row.Cells != null)
     {
         Infragistics.Win.UltraWinGrid.UltraGridCell cell = row.Cells[Utility.Constants.POLICY_METRIC_COLUMN_IS_ENABLED];
         if (cell != null && cell.Value is bool)
         {
             cell.Value = !(bool)cell.Value;
             UpdateEnabledCount();
         }
     }
 }
Exemplo n.º 15
0
 private void uG_DanhSach_DoubleClickRow(object sender, DoubleClickRowEventArgs e)
 {
     try
     {
         if (dgv_DanhSach.ActiveCell != null)
         {
             return;
         }
         FocusCellPass();
     }
     catch (Exception ex)
     {
         Log2File.LogExceptionToFile(ex);
     }
 }
Exemplo n.º 16
0
        private void grdData_DoubleClickRow(object sender, DoubleClickRowEventArgs e)
        {
            var IdComponente = grdData.Selected.Rows[0].Cells["v_ComponenteId"].Value.ToString();

            frmSeleccionarNombreCrystal frm = new frmSeleccionarNombreCrystal(IdComponente);

            frm.ShowDialog();
            var x = frm.NombreCrystal;
            var y = frm.IdNombreCrystal;
            var o = grdData.Selected.Rows[0].Cells["v_NombreCrystal"];
            var p = grdData.Selected.Rows[0].Cells["i_NombreCrystalId"];

            o.Value = x;
            p.Value = y;
        }
Exemplo n.º 17
0
 private void ultraGrid2_DoubleClickRow(object sender, DoubleClickRowEventArgs e)
 {
     if (ultraGrid2.Rows.Count > 0 && e.Row.Index != -1)
     {
         string strEnterFacNo = this.ultraGrid2.Rows[e.Row.Index].Cells["FS_ENTERFACNO"].Value.ToString();
         //SelectIndexGird = e.Row.Index;
         if (strEnterFacNo != "")
         {
             getWeightInfo(strEnterFacNo);
         }
         else
         {
             MessageBox.Show("入出厂数据不正确!");
             return;
         }
     }
 }
Exemplo n.º 18
0
        private void ultraGridall_DoubleClickRow(object sender, DoubleClickRowEventArgs e)
        {
            int    i = this.ultraGridall.ActiveRow.Index;
            int    b = this.ultraGridall.ActiveCell.Column.Index;
            string IDshopName, ID, Imrul;

            IDshopName = this.ultraGridall.Rows[i].Cells[0].Value.ToString().Trim();
            string sID = System.Text.RegularExpressions.Regex.Replace(IDshopName, @"[^0-9]+", "");



            if (b == 0)
            {
                DPImages getDpA = new Sium.DPImages(sID, IDshopName);
                getDpA.Show();
            }
            if (b == 1)
            {
                NewListZTC getDp = new Sium.NewListZTC(sID);
                getDp.Show();
            }

            if (b == 2)
            {
                DPindex getDp = new Sium.DPindex(FPPcokk, "50012100", IDshopName, sID, TTid);
                getDp.Show();
            }
            //NewListZTC
            if (b == 3)
            {
                DPList getDp = new Sium.DPList(FPPcokk, IDshopName, sID, TTid);
                getDp.Show();
            }
            if (b == 4)
            {
                NewListZTC getDp = new Sium.NewListZTC(sID);
                getDp.Show();
            }

            //else
            //{

            //    DPindex getDp = new Sium.DPindex(FPPcokk, "50012100", IDshopName, sID);
            //    getDp.Show();
            //}
        }
Exemplo n.º 19
0
        private void ultraGrid2_DoubleClickRow(object sender, DoubleClickRowEventArgs e)
        {
            if (ultraGrid2.Rows.Count > 0 && e.Row.Index != -1)
            {
                string strEnterFacNo = this.ultraGrid2.Rows[e.Row.Index].Cells["FS_ENTERFACNO"].Value.ToString();
                //SelectIndexGird = e.Row.Index;
                if (strEnterFacNo != "")
                {
                    getWeightInfo(strEnterFacNo);
                }
                else
                {
                    MessageBox.Show("入出厂数据不正确!");
                    return;
                }

            }
        }
Exemplo n.º 20
0
        private void ug1_DoubleClickRow(object sender, DoubleClickRowEventArgs e)
        {
            ResetNodeBackColor();
            if (!(e.Row.ListObject is Project proj))
            {
                return;
            }
            var node = _bll.FindNode(uTree, proj);

            if (node == null)
            {
                MsgBoxLib.ShowWarning("未找到该项目结构");
            }
            else
            {
                node.Override.NodeAppearance.BackColor = Color.DarkTurquoise;
                _nodesWithColor.Enqueue(node);
            }
        }
Exemplo n.º 21
0
        private void ultraGridcnt_DoubleClickRow(object sender, DoubleClickRowEventArgs e)
        {
            int    i          = this.ultraGridcnt.ActiveRow.Index;
            int    b          = this.ultraGridcnt.ActiveCell.Column.Index;
            string id         = this.ultraGridcnt.Rows[i].Cells[0].Value.ToString().Trim();
            string IDshopName = this.ultraGridcnt.Rows[i].Cells[1].Value.ToString().Trim();

            // MessageBox.Show(id);
            if (b == 0)
            {
                DPindex getDp = new Sium.DPindex(FPPcok, "50012100", IDshopName, id, System.Configuration.ConfigurationManager.AppSettings["TainID"]);
                getDp.Show();
            }
            if (b == 1)
            {
                DPList getDp = new Sium.DPList(FPPcok, IDshopName, id, IDshopName);
                getDp.Show();
            }


            //hqkeyword getK = new hqkeyword(FPPcok, "50012100", IDshopName, id);
            //getK.Show();
        }
        private void applicationsGridView_DoubleClickRow(object sender, DoubleClickRowEventArgs e)
        {
            // Do not allow double -click on the group by row
            if (e.Row is UltraGridGroupByRow)
            {
                return;
            }

            // Get the DataObject from the grid as this helps identify the item being double clicked.
            object dataObject = e.Row.Cells["ApplicationObject"].Value;

            //  If we double click an UltraTreeNode this causes it to be expanded
            if (dataObject is UltraTreeNode)
            {
                UltraTreeNode treeNode = dataObject as UltraTreeNode;

                // ...and cause it to be expanded
                treeNode.Expanded = true;

                // ...and select it also
                UltraTree treeControl = treeNode.Control as UltraTree;
                treeNode.BringIntoView(true);
                _displayedNode.Selected = false;
                treeNode.Selected       = true;
            }

            else
            {
                // If not an UltraTreeNode then try and display the items properties
                applicationsGridView.Selected.Rows.Clear();
                applicationsGridView.Selected.Rows.Add(e.Row);

                // ...and get it's properties
                ShowProperties();
            }
        }
Exemplo n.º 23
0
        private void ultraGrid1_DoubleClickRow(object sender, DoubleClickRowEventArgs e)
        {
            try
            {
                if (e.Row.ParentRow != null)
                {
                    string strNo = Convert.ToString(e.Row.Cells["FS_WEIGHTNO"].Value);

                    if (!strNo.Equals(_LASTNO))
                    {
                        if (this.GetPictures(strNo))
                        {
                            if (!this.ultraExpandableGroupBox1.Expanded)
                            {
                                this.ultraExpandableGroupBox1.Expanded = true;
                            }

                            _LASTNO = strNo;
                        }
                    }
                }
            }
            catch { }
        }
 /// <summary>
 /// 【列表】Grid的Row的双击事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void gdGrid_DoubleClickRow(object sender, DoubleClickRowEventArgs e)
 {
     SetGridDataToCardCtrls();
 }
Exemplo n.º 25
0
 private void listaRitenuteDoubleClickRow(object sender, DoubleClickRowEventArgs e)
 {
     var ritenutaAccontoDTO = e.Row.ListObject as RitenutaAccontoDTO;
     if (e.Row.Band.Index == 0 && ritenutaAccontoDTO != null)
         apriSpesa(ritenutaAccontoDTO);
 }
Exemplo n.º 26
0
 private void UltraGridUstanoveSkolskeGodineRazrednaOdjeljenja_DoubleClickRow(object sender, DoubleClickRowEventArgs e)
 {
     Update(null, null);
 }
Exemplo n.º 27
0
 private void ugdData_DoubleClickRow(object sender, DoubleClickRowEventArgs e)
 {
     Update(null, null);
 }
Exemplo n.º 28
0
 private void contiDoubleClickRow(object sender, DoubleClickRowEventArgs e)
 {
     if (e.Row.IsDataRow && e.Row.Band.Index == 0)
     {
         var conto = e.Row.ListObject as ContoDTO;
         if (conto != null)
         {
             if(conto.ID > 0)
             {
                 var form = new DettaglioConto(conto, _esercizio);
                 form.Show();
             }
             else
                 CommonMessages.DisplayWarning("Per aprire il dettaglio del conto occorre eseguire prima confermare il nuovo conto");
         }
     }
 }
Exemplo n.º 29
0
        private void ultraGrid3_DoubleClickRow(object sender, DoubleClickRowEventArgs e)
        {
            UltraGridRow ugr;
            ugr = this.ultraGrid3.ActiveRow;
            if (ugr == null)
                return;
            this.cbBF.Text = ultraGrid3.ActiveRow.Cells["FS_POINTNAME"].Text.Trim();
            m_SelectPointID = ultraGrid3.ActiveRow.Cells["FS_Poundtype"].Text.Trim(); ;
            m_WeightNo = ultraGrid3.ActiveRow.Cells["FS_WEIGHTNO"].Text.Trim();

            this.tbCardNo.Text = ultraGrid3.ActiveRow.Cells["FS_CARDNUMBER"].Text.Trim();
            this.tbCarNo.Text = ultraGrid3.ActiveRow.Cells["FS_CARNO"].Text.Trim();
            this.cbWLMC.Text = ultraGrid3.ActiveRow.Cells["FS_MATERIALNAME"].Text.Trim();
            this.cbFHDW.Text = ultraGrid3.ActiveRow.Cells["FS_SUPPLIERNAME"].Text.Trim();
            this.cbSHDW.Text = ultraGrid3.ActiveRow.Cells["FS_Receiver"].Text.Trim();
            this.tbSenderPlace.Text = ultraGrid3.ActiveRow.Cells["Fs_Senderstore"].Text.Trim();
            //this.tbReceiverPlace.Text = ultraGrid3.ActiveRow.Cells["FS_RECEIVERSTORE"].Text.Trim();
            this.cbCYDW.Text = ultraGrid3.ActiveRow.Cells["FS_TRANSNAME"].Text.Trim();
            this.cbFlow.Text = ultraGrid3.ActiveRow.Cells["FS_TYPENAME"].Text.Trim();
            this.tbReceiverPlace.Text = ultraGrid3.ActiveRow.Cells["FS_RECEIVERSTORE"].Text.Trim();
            this.tbWeight.Text = ultraGrid3.ActiveRow.Cells["FN_WEIGHT"].Text.Trim();
            this.tbBZ.Text = ultraGrid3.ActiveRow.Cells["FS_BZ"].Text.Trim();
            //this.cbProvider.Text = ultraGrid3.ActiveRow.Cells["FS_PROVIDERNAME"].Text.Trim();
            //this.txtCZH.Text = ultraGrid3.ActiveRow.Cells["Fd_Weighttime"].Text.Trim();
        }
Exemplo n.º 30
0
        void uGridUser_DoubleClickRow(object sender, DoubleClickRowEventArgs e)
        {
            var val = e.Row.Cells["Emp_Mobile"].Value;

            if (val != null)
            {
                string mobile = val.ToString();
                SendMsg(mobile);
                this.Close();
                //GSMModem modem = new GSMModem();
                //modem.ComPort = System.Configuration.ConfigurationSettings.AppSettings["COMStr"];
                //modem.BaudRate = 9600;
                //try
                //{
                //    if (!modem.IsOpen)
                //    {
                //        modem.Open();
                //        modem.SendMsg(mobile, string.Format(Map.Map_Object1, TemlateKey.Template_Name));
                //        modem.Close();
                //        this.Close();
                //    }
                //    else
                //    {
                //        modem.SendMsg(mobile, string.Format(Map.Map_Object1, TemlateKey.Template_Name));
                //        modem.Close();
                //        this.Close();
                //    }
                //}
                //catch (Exception ex)
                //{
                //    modem.Close();
                //    this.Close();
                //    //throw ex;
                //}
            }
            else
            {
                this.Close();
            }
        }
Exemplo n.º 31
0
        private void ultraGrid1_DoubleClickRow(object sender, DoubleClickRowEventArgs e)
        {
            rowid = ultraGrid1.ActiveRow.Index;

            if (rowid >= 0)
            {
                try
                {
                    this.txtBatchno.Text = this.ultraGrid1.Rows[rowid].Cells["FS_BATCHNO"].Text.ToString();
                    this.txtbandno.Text = this.ultraGrid1.Rows[rowid].Cells["FN_BANDNO"].Text.ToString();
                    this.txtreel.Text = this.ultraGrid1.Rows[rowid].Cells["FS_REEL"].Text.ToString();
                    this.txtStoveno.Text = this.ultraGrid1.Rows[rowid].Cells["FS_STOVENO"].Text.ToString();
                    this.txtweight.Text = this.ultraGrid1.Rows[rowid].Cells["FN_WEIGHT"].Text.ToString();
                    this.txtykl.Text = this.ultraGrid1.Rows[rowid].Cells["FN_YKL"].Text.ToString();
                    this.txtkhjz.Text = this.ultraGrid1.Rows[rowid].Cells["FN_KHJZ"].Text.ToString();
                    this.txtproductno.Text = this.ultraGrid1.Rows[rowid].Cells["FS_PRODUCTNO"].Text.ToString();
                    this.txtsteeltype.Text = this.ultraGrid1.Rows[rowid].Cells["FS_STEELTYPE"].Text.ToString();
                    this.txtspec.Text = this.ultraGrid1.Rows[rowid].Cells["FS_SPEC"].Text.ToString();
                    this.txtMemo.Text = this.ultraGrid1.Rows[rowid].Cells["FS_MEMO"].Text.ToString();
                    strWeightno = this.ultraGrid1.Rows[rowid].Cells["FS_WEIGHTNO"].Text.ToString();
                    strBatch = this.ultraGrid1.Rows[rowid].Cells["FS_BATCHNO"].Text.ToString();
                }

                catch
                {
                }
            }
        }
Exemplo n.º 32
0
 private void uG_DanhSach_DoubleClickRow(object sender, DoubleClickRowEventArgs e)
 {
     try
     {
         if (dgv_DanhSach.ActiveCell != null) return;
         FocusCellPass();
     }
     catch (Exception ex)
     {
         Log2File.LogExceptionToFile(ex);
     }
 }
Exemplo n.º 33
0
        private void listaDoubleClickRow(object sender, DoubleClickRowEventArgs e)
        {
            var doc = e.Row.ListObject as DocumentoDTO;
            if (doc != null)
            {
                try
                {
                    if (doc.FileExtension != "Archiva")
                    {
                        if (doc.FileName != string.Empty)
                        {
                            try
                            {
                                if (getDocumentoService().IsEditabile(doc, null))
                                {
                                    openDocument(doc);
                                }
                                else
                                {
                                    var form = new ExecuteLoadDataObjectAsync<bool>("Il documento è in corso di caricamento ....." + Environment.NewLine + "Si prega di attendere.");
                                    Func<bool> loadDati = () => openDocument(doc);
                                    form.LoadData(loadDati);
                                    form.ShowDialog();
                                    form.Dispose();
                                }
                            }
                            catch (Exception ex)
                            {
                                _log.ErrorFormat("Errore inaspettato durante l'apertura del documento - {0} - documento:{1}", ex, Gipasoft.Library.Utility.GetMethodDescription(), doc.FileName);
                            }
                        }
                        else
                        {
                            _log.ErrorFormat("Non trovato il percorso del documento - {0} - documento:{1}", Gipasoft.Library.Utility.GetMethodDescription(), doc.FileName);
                        }
                    }
                    else
                    {
                        var identificativoArchiviazioneOttica = string.Empty;
                        if (!string.IsNullOrEmpty(doc.IdentificativoArchiviazioneOttica))
                            identificativoArchiviazioneOttica = doc.IdentificativoArchiviazioneOttica.Trim();

                        var result = getArchiviazioneOtticaService().ShowDocumento(doc, TipoDocumento.Contratto, null, identificativoArchiviazioneOttica);
                        if (!string.IsNullOrEmpty(result))
                            CommonMessages.DisplayWarning(result);
                    }

                }
                catch (Exception ex)
                {
                    _log.ErrorFormat("Errore nell'apertura del documento - {0} - documento:{1} - azienda:{2}", ex, Gipasoft.Library.Utility.GetMethodDescription(), doc.ID, Security.Login.Instance.CurrentLogin().Azienda);
                }
            }
        }
Exemplo n.º 34
0
 /// <summary>
 /// Called as we double click on a row - depending on the row selected we can view the properties of the item
 /// contained within the row.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void applicationsGridView_DoubleClickRow(object sender, DoubleClickRowEventArgs e)
 {
     propertiesToolStripMenuItem_Click(sender, null);
 }
Exemplo n.º 35
0
        private void ultraGrid1_DoubleClickRow(object sender, DoubleClickRowEventArgs e)
        {
            try
            {
                if (e.Row.ParentRow != null)
                {
                    string strNo = Convert.ToString(e.Row.Cells["FS_WEIGHTNO"].Value);

                    if (!strNo.Equals(_LASTNO))
                    {
                        if (this.GetPictures(strNo))
                        {
                            if (!this.ultraExpandableGroupBox1.Expanded)
                            {
                                this.ultraExpandableGroupBox1.Expanded = true;
                            }

                            _LASTNO = strNo;
                        }
                    }
                }
            }
            catch { }
        }
Exemplo n.º 36
0
        private void listaDoubleClickRow(object sender, DoubleClickRowEventArgs e)
        {
            try
            {
                var documento = e.Row.ListObject as DocumentoDTO;
                if (documento != null)
                {
                    if (documento.FileExtension != "Archiva")
                    {
                        openDocument(documento);
                        //var form = new ExecuteLoadDataObjectAsync<bool>("Il documento è in corso di caricamento ....." + Environment.NewLine + "Si prega di attendere.");
                        //Func<bool> loadDati = () => openDocument(documento);
                        //form.LoadData(loadDati);
                        //form.ShowDialog();
                    }
                    else if (!string.IsNullOrEmpty(documento.IdentificativoArchiviazioneOttica))
                    {
                        TipoDocumento tipo;
                        int? anno = null;
                        string id;
                        switch (documento.Tipo)
                        {
                            case "Fattura":
                                anno = int.Parse(documento.Checksum);
                                id = documento.IdentificativoArchiviazioneOttica.Trim();
                                tipo = TipoDocumento.FatturaPassiva;
                                break;
                            default:
                                id = documento.IdentificativoArchiviazioneOttica.Trim();
                                tipo = TipoDocumento.Contratto;
                                break;
                        }

                        if (getAziendaService().GetAperturaDocumentoPdf() == TipoAperturaDocumentoEnum.BuiltInViewer)
                        {
                            getArchiviazioneOtticaService().ShowDocumento(documento, tipo, anno, id);
                            return;
                        }

                        var form = new ExecuteLoadDataObjectAsync<string>("Il documento è in corso di caricamento ....." + Environment.NewLine + "Si prega di attendere.");
                        Func<string> loadDati = () => getArchiviazioneOtticaService().ShowDocumento(documento, tipo, anno, id);
                        form.LoadData(loadDati);
                        form.ShowDialog();
                        if (!string.IsNullOrEmpty(form.DataSourceObject))
                            CommonMessages.DisplayWarning(form.DataSourceObject);
                        form.Dispose();
                    }
                    else
                        CommonMessages.DisplayWarning("Non è possibile aprire il documento selezionato." + Environment.NewLine + "L'identificativo di archiviazione non è presente.");
                }

            }
            catch (Exception ex)
            {
                _log.ErrorFormat("Errore nell'apertura di un documento - {0} - azienda:{1}", ex, Utility.GetMethodDescription(), Login.Instance.CurrentLogin().Azienda);
                CommonMessages.DisplayWarning("Non è possibile aprire il documento selezionato.");
            }

        }
Exemplo n.º 37
0
 private void _grid_Tags_DoubleClickRow(object sender, DoubleClickRowEventArgs e)
 {
     EditTag(null, null);
 }
Exemplo n.º 38
0
 private void UltraGrid1_DoubleClickRow(object sender, DoubleClickRowEventArgs e)
 {
     this.Odaberi();
 }
Exemplo n.º 39
0
 private void DataGrid_DoubleClickRow(object sender, DoubleClickRowEventArgs e)
 {
 }
Exemplo n.º 40
0
        private void listaDoubleClickRow(object sender, DoubleClickRowEventArgs e)
        {
            var contratto = (AssicurazioneContrattoDTO)e.Row.ListObject;

            Form form;
            switch (contratto.Tipo)
            { 
                case Sfera.Enums.TipoPolizza.GlobaleFabbricati:
                    form = new DettaglioAssicurazioneGlobaleUI(contratto);
                    ((DettaglioAssicurazioneGlobaleUI)form).AfterDelete += listaAssicurazioniContrattiUCAfterDelete;
                    ((DettaglioAssicurazioneGlobaleUI)form).LoadFornitori();
                    break;
                case Sfera.Enums.TipoPolizza.Incendio:
                    form = new DettaglioAssicurazioneGlobaleUI(contratto);
                    ((DettaglioAssicurazioneGlobaleUI)form).AfterDelete += listaAssicurazioniContrattiUCAfterDelete;
                    ((DettaglioAssicurazioneGlobaleUI)form).LoadFornitori();
                    break;
                default:
                    form = new DettaglioAssicurazioneContrattoUI(contratto);
                    ((DettaglioAssicurazioneContrattoUI)form).AfterDelete += listaAssicurazioniContrattiUCAfterDelete;
                    ((DettaglioAssicurazioneContrattoUI)form).LoadFornitori();
                    break;
            }

            var parentForm = ParentForm;
            if (parentForm != null) 
                form.MdiParent = parentForm.MdiParent;
            form.Show();
            LoadData(_condominio, false);
        }
Exemplo n.º 41
0
 private void listaDoubleClickRow(object sender, DoubleClickRowEventArgs e)
 {
     if (e.Row.Band.Index == 0 && e.Row.ListObject is PersonaContattoDTO)
         apriDettaglioPersona((PersonaContattoDTO)e.Row.ListObject);
 }
Exemplo n.º 42
0
        private void ultraGrid3_DoubleClickRow(object sender, DoubleClickRowEventArgs e)
        {
            UltraGridRow ugr;
            ugr = this.ultraGrid3.ActiveRow;
            if (ugr == null)
                return;
            //this.cbBF.Text = ultraGrid3.ActiveRow.Cells["FS_POINTNAME"].Text.Trim();
            try
            {
                this.cbBF.SelectedValue = ultraGrid3.ActiveRow.Cells["FS_TarePoint"].Text.Trim();
            }
            catch (Exception ex1)
            {
            }

            m_SelectPointID = ultraGrid3.ActiveRow.Cells["FS_TarePoint"].Text.Trim();
            m_WeightNo = ultraGrid3.ActiveRow.Cells["FS_WEIGHTNO"].Text.Trim();

            this.tbCardNo.Text = ultraGrid3.ActiveRow.Cells["FS_CARDNUMBER"].Text.Trim();
            this.tbCarNo.Text = ultraGrid3.ActiveRow.Cells["FS_CARNO"].Text.Trim();
            this.cbWLMC.Text = ultraGrid3.ActiveRow.Cells["FS_MATERIALNAME"].Text.Trim();
            this.cbFHDW.Text = ultraGrid3.ActiveRow.Cells["FS_SUPPLIERNAME"].Text.Trim();
            this.cbSHDW.Text = ultraGrid3.ActiveRow.Cells["FS_Receiver"].Text.Trim();
            this.tbSenderPlace.Text = ultraGrid3.ActiveRow.Cells["Fs_Senderstore"].Text.Trim();
            this.tbReceiverPlace.Text = ultraGrid3.ActiveRow.Cells["FS_RECEIVERSTORE"].Text.Trim();
            this.cbCYDW.Text = ultraGrid3.ActiveRow.Cells["FS_TRANSNAME"].Text.Trim();
            this.cbFlow.Text = ultraGrid3.ActiveRow.Cells["FS_TYPENAME"].Text.Trim();

            this.tbGrossWeight.Text = ultraGrid3.ActiveRow.Cells["FN_GrossWEIGHT"].Text.Trim();
            this.tbTareWeight.Text = ultraGrid3.ActiveRow.Cells["FN_TareWEIGHT"].Text.Trim();

            this.tbContractNo.Text = ultraGrid3.ActiveRow.Cells["FS_CONTRACTNO"].Text.Trim();
            this.tbStoveNo.Text = ultraGrid3.ActiveRow.Cells["FS_STOVENO"].Text.Trim();
            this.tbCount.Text = ultraGrid3.ActiveRow.Cells["FN_COUNT"].Text.Trim();
            //this.txtCZH.Text = ultraGrid3.ActiveRow.Cells["Fd_Weighttime"].Text.Trim();

            this.tbBZ.Text = ultraGrid3.ActiveRow.Cells["FS_BZ"].Text.Trim();
            //this.cbProvider.Text = ultraGrid3.ActiveRow.Cells["FS_PROVIDERNAME"].Text.Trim();

            this.tbYKL.Text = ultraGrid3.ActiveRow.Cells["FS_YKL"].Text.Trim();
            this.tbYKBL.Text = ultraGrid3.ActiveRow.Cells["FS_YKBL"].Text.Trim();
            this.tb_sendGross.Text = ultraGrid3.ActiveRow.Cells["FN_SENDGROSSWEIGHT"].Text.Trim();
            this.tb_sendTare.Text = ultraGrid3.ActiveRow.Cells["FN_SENDTAREWEIGHT"].Text.Trim();
        }
Exemplo n.º 43
0
 private void ugDetails_DoubleClickRow(object sender, DoubleClickRowEventArgs e)
 {
     FrmMain.ModificarEntidad();
 }
Exemplo n.º 44
0
 private void UltraGridStavke_DoubleClickRow(object sender, DoubleClickRowEventArgs e)
 {
     btnIzmjeniStavku_Click(null, null);
 }
Exemplo n.º 45
0
 private void grdQuery_DoubleClickRow(object sender, DoubleClickRowEventArgs e)
 {
 }
Exemplo n.º 46
0
 private void ultraGrid1_DoubleClickRow(object sender, DoubleClickRowEventArgs e)
 {
     strCurID = this.ultraGrid1.ActiveRow.Cells["FN_ID"].Text.Trim();
     this.tbx_standard.Text = this.ultraGrid1.ActiveRow.Cells["FS_STANDARD"].Text.Trim();
     this.tbx_steeltype.Text = this.ultraGrid1.ActiveRow.Cells["FS_STEELTYPE"].Text.Trim();
 }
Exemplo n.º 47
0
        private void ultraGrid1_DoubleClickRow(object sender, DoubleClickRowEventArgs e)
        {
            UltraGridRow ugr;
            ugr = this.ultraGrid1.ActiveRow;
            if (ugr == null)
            {
                return;
            }
            ultraGrid1.ActiveRow.Selected = true;

            this.txtYBH.Text = ultraGrid1.ActiveRow.Cells["FS_PLANCODE"].Text.Trim();
            this.txtCZH.Text = ultraGrid1.ActiveRow.Cells["FS_CARDNUMBER"].Text.Trim();
            string CH = ultraGrid1.ActiveRow.Cells["FS_CARNO"].Text.Trim();
            if (CH != "")
            {
                string status = ultraGrid1.ActiveRow.Cells["FS_STATUS"].Text.Trim();
                if (CH.Length < 7)
                {
                    string CH1 = CH.Substring(0, 1);
                    this.cbCH1.Text = CH1;

                    string CH2 = CH.Substring(1);
                    this.cbCH2.Text = CH2;
                }
                else
                {
                    string CH1 = CH.Substring(0, 2);
                    this.cbCH1.Text = CH1;

                    string CH2 = CH.Substring(2);
                    this.cbCH2.Text = CH2;
                }
            }
            this.cbBF.SelectedValue = ultraGrid1.ActiveRow.Cells["FS_POUNDTYPE"].Text.Trim();
            //this.cbBF.Text = ultraGrid1.ActiveRow.Cells["FS_POINTNAME"].Text.Trim();
            this.txtHTH.Text = ultraGrid1.ActiveRow.Cells["FS_CONTRACTNO"].Text.Trim();
            dtHTH.Clear();
            if (dtHTH.Columns.Count > 0)
            {
                DataRow newDr = dtHTH.NewRow();
                newDr[0] = ultraGrid1.ActiveRow.Cells["FS_CONTRACTITEM"].Text.Trim().ToString();
                dtHTH.Rows.Add(newDr);
            }

            this.cbWLMC.SelectedValue = ultraGrid1.ActiveRow.Cells["FS_MATERIAL"].Text.Trim();

            this.txtHTXMH.Text = ultraGrid1.ActiveRow.Cells["FS_CONTRACTITEM"].Text.Trim();
            this.cbWLMC.Text = ultraGrid1.ActiveRow.Cells["FS_MATERIALNAME"].Text.Trim();
            this.txtZS.Text = ultraGrid1.ActiveRow.Cells["FN_BILLETCOUNT"].Text.Trim();
            this.cbFHDW.Text = ultraGrid1.ActiveRow.Cells["FS_SENDER"].Text.Trim();
            this.cbSHDW.Text = ultraGrid1.ActiveRow.Cells["FS_RECEIVERFACTORY"].Text.Trim();
            this.cbCYDW.Text = ultraGrid1.ActiveRow.Cells["FS_TRANSNO"].Text.Trim();
            this.cbFHDWKCD.Text = ultraGrid1.ActiveRow.Cells["FS_SENDERSTORE"].Text.Trim();
            this.cbReceiverStore.Text = ultraGrid1.ActiveRow.Cells["FS_RECEIVERSTORE"].Text.Trim();
            this.cbLX.Text = ultraGrid1.ActiveRow.Cells["FS_WEIGHTTYPE"].Text.Trim();
            this.txtLH.Text = ultraGrid1.ActiveRow.Cells["FS_STOVENO"].Text.Trim();
            this.dateDQSJ.Text = ultraGrid1.ActiveRow.Cells["FS_OVERTIME"].Text.Trim();
            this.txtYBZZ.Text = ultraGrid1.ActiveRow.Cells["FN_SENDGROSSWEIGHT"].Text.Trim();
            this.txtYBPZ.Text = ultraGrid1.ActiveRow.Cells["FN_SENDTAREWEIGHT"].Text.Trim();
            this.txtYBJZ.Text = ultraGrid1.ActiveRow.Cells["FN_SENDNETWEIGHT"].Text.Trim();
            this.txt_jhcs.Text = ultraGrid1.ActiveRow.Cells["FN_TIMES"].Text.Trim();
            this.txtYJLCS.Text = ultraGrid1.ActiveRow.Cells["FN_WEIGHTTIMES"].Text.Trim();
            this.cbBC.Text = ultraGrid1.ActiveRow.Cells["FS_SHIFT"].Text.Trim();
            this.cbYBLXR.Text = ultraGrid1.ActiveRow.Cells["FS_PLANUSER"].Text.Trim();
            this.cbYBLXDH.Text = ultraGrid1.ActiveRow.Cells["FS_PLANTEL"].Text.Trim();
            this.cbYXJ.Text = ultraGrid1.ActiveRow.Cells["FS_LEVEL"].Text.Trim();

            this.txtJSYXM.Text = ultraGrid1.ActiveRow.Cells["FS_DRIVERNAME"].Text.Trim();
            this.txtJSYSFZ.Text = ultraGrid1.ActiveRow.Cells["FS_DRIVERIDCARD"].Text.Trim();
            this.txtBZ.Text = ultraGrid1.ActiveRow.Cells["FS_DRIVERREMARK"].Text.Trim();

            this.cbProvider.Text = ultraGrid1.ActiveRow.Cells["FS_PROVIDER"].Text.Trim();

            if (cbYXJ.Text == "是")
            {
                this.checkBox3.Checked = true;
            }
            else
            {
                checkBox3.Checked = false;
            }

            this.cbYXJ.Text = ultraGrid1.ActiveRow.Cells["FS_IFSAMPLING"].Text.Trim();
            if (cbYXJ.Text == "是")
            {
                checkBox1.Checked = true;
            }
            else
            {
                checkBox1.Checked = false;
            }

            //this.cbYXJ.Text = ultraGrid1.ActiveRow.Cells["FS_IFACCEPT"].Text.Trim();
            //if (cbYXJ.Text == "1")
            //{
            //    checkBox2.Checked = true;
            //}
            //else
            //{
            //    checkBox2.Checked = false;
            //}

            index = ultraGrid1.ActiveRow.Index; //删除索引

            //cbCH1.Text = "";
        }
Exemplo n.º 48
0
 private void listaModelliDoubleClickRow(object sender, DoubleClickRowEventArgs e)
 {
     if (e.Row.IsDataRow && e.Row.ListObject != null && e.Row.ListObject is ModelloListaRegistrazioneContabileDTO)
     {
         var dettaglio = new DettaglioModelloContabileUI((ModelloListaRegistrazioneContabileDTO)e.Row.ListObject, _condominio, _esercizio);
         var parentForm = ParentForm;
         if (parentForm != null) dettaglio.MdiParent = parentForm.MdiParent;
         dettaglio.Show();
     }
 }
Exemplo n.º 49
0
 private void listaMovimentiDoubleClickRow(object sender, DoubleClickRowEventArgs e)
 {
     if (e.Row.IsDataRow)
     {
         var movimento = (MovimentiBancariDTO)e.Row.ListObject;
         var form = new DettaglioMovimentoBancario(movimento);
         form.LoadData();
         form.ShowDialog();
         form.Dispose();
     }
 }
 private void grdDiagnosticos_DoubleClickRow(object sender, DoubleClickRowEventArgs e)
 {
     AddInterconsultation();
 }
Exemplo n.º 51
0
 private void ultraGridDelegation_DoubleClickRow(object sender, DoubleClickRowEventArgs e)
 {
     try
     {
         UltraGridRow row = this.ultraGridDelegation.ActiveRow;
         if (row != null)
         {
             _presenter.UpdateDelegation(row.Cells["DelegationValueId"].Text);
         }
     }
     catch (Exception exception)
     {
         if (ExceptionManager.Handle(exception)) throw;
     }
     finally
     {
         this.Cursor = Cursors.Default;
     }
 }
Exemplo n.º 52
0
 private void listaDoubleClickRow(object sender, DoubleClickRowEventArgs e)
 {
     if (e.Row.Band.Index == 0 && e.Row.Cells.Exists("IdSpesa") && e.Row.Cells["IdSpesa"].Value != null)
     {
         apriSpesa((DisposizionePagamentoDTO)e.Row.ListObject);
     }
 }
Exemplo n.º 53
0
        private void listaDoubleClickRow(object sender, DoubleClickRowEventArgs e)
        {
            try
            {
                if (e.Row?.ListObject is UnitaImmobiliareListaDTO)
                {
                    var unitaImmobiliare = (UnitaImmobiliareListaDTO)e.Row.ListObject;
                    var key = new FormKey(unitaImmobiliare.Id, "DettaglioUnitaImmobiliare" + "_" + unitaImmobiliare);
                    Form form = null;
                    if (ParentForm?.MdiParent != null)
                        form = WinFormControlsLibrary.GetChildForm(ParentForm.MdiParent.MdiChildren, key);
                    if (form == null)
                    {
                        form = new DettaglioUnitaImmobiliareUI(unitaImmobiliare);

                        ((DettaglioUnitaImmobiliareUI)form).AfterUpdate += listaUnitaImmobiliariUCAfterUpdate;
                        ((DettaglioUnitaImmobiliareUI)form).AfterUpdateSoggetto += listaUnitaImmobiliariUCAfterUpdateSoggetto;
                        _formAfterUpdateEventHandler.Add((DettaglioUnitaImmobiliareUI)form);

                        if (ParentForm != null) form.MdiParent = ParentForm.MdiParent;

                        var prop = new CustomFormProperties {Key = key};
                        if (form.Tag != null)
                            prop = (CustomFormProperties)form.Tag;
                        form.Tag = prop;

                        form.Show();
                    }

                    form.BringToFront();
                }
            }
            catch (Exception ex)
            {
                _log.ErrorFormat("Errore durante l'apertura della unità immobiliare - {0} - azienda:{1}", ex, Utility.GetMethodDescription(), Login.Instance.CurrentLogin().Azienda);
            }
        }
Exemplo n.º 54
0
 void comGrid_DoubleClickRow(object sender, DoubleClickRowEventArgs e)
 {
     //双击查看
     top_tool_bar_LookClicked(null, null);
 }
Exemplo n.º 55
0
 private void listaErroriDoubleClickRow(object sender, DoubleClickRowEventArgs e)
 {
     try
     {
         if (e.Row.ListObject is IdMessage)
         {
             var item = (IdMessage)e.Row.ListObject;
             if (item.Tipo == TipoNominativo.Fornitore)
             {
                 var form = getDettaglioFornitoreService().GetFormDettaglio(item.Id);
                 if (form != null)
                 {
                     form.ShowDialog();
                     var messageList = getGestioneFiscaleService().IsAllowGenerazioneModello770(_ritenuteVersateService.GetCondominio(), _ritenuteVersateService.GetAnno(), sceltaFornitoreCombo1.SelectedListaFornitore, getFirmatarioDichiarazione(), getIntermediarioDichiarazione());
                     idMessageBindingSource.DataSource = messageList;
                     if (idMessageBindingSource.Count == 0)
                     {
                         _avanzamento = AvanzamentoWizard.SceltaRitenute;
                         wizardGenerazione770.Tabs["errori"].Visible = false;
                         btnAvantiClick(sender, EventArgs.Empty);
                     }
                     form.Dispose();
                 }
             }
         }
     }
     catch (Exception ex)
     {
         _log.ErrorFormat("Errore nell'apertura del dettaglio dell'errore - {0} - azienda:{1}", ex, Utility.GetMethodDescription(), Login.Instance.CurrentLogin().Azienda);                
         throw;
     }
 }
Exemplo n.º 56
0
 private void listaDoubleClickRow(object sender, DoubleClickRowEventArgs e)
 {
     if (e.Row.Band.Index == 0 && e.Row.ListObject != null && e.Row.ListObject is MovimentoContabileListaDTO)
         apriSpesa((MovimentoContabileListaDTO) e.Row.ListObject);
 }
Exemplo n.º 57
0
 private void ultraGrid1_DoubleClickRow(object sender, DoubleClickRowEventArgs e)
 {
     UltraGridRow ugr;
     ugr = this.ultraGrid1.ActiveRow;
     if (ugr == null)
     {
         return;
     }
     chooseBaseInfo();
 }
Exemplo n.º 58
0
        private void ultraGrid1_DoubleClickRow(object sender, DoubleClickRowEventArgs e)
        {
            rowno = ultraGrid1.ActiveRow.Index;
            if (rowno < 0)
            {
                return;
            }

            strWeightNo = ultraGrid1.Rows[rowno].Cells["FS_WEIGHTNO"].Text.ToString();
            cbWeightPoint.Text=ultraGrid1.Rows[rowno].Cells["FS_WEIGHTPOINT"].Text.ToString();
            cbFlow.Text=ultraGrid1.Rows[rowno].Cells["FS_WEIGHTTYPE"].Text.ToString();
            cbMaterial.Text = ultraGrid1.Rows[rowno].Cells["FS_MATERIALNAME"].Text.ToString();
            cbTrans.Text = ultraGrid1.Rows[rowno].Cells["FS_TRANS"].Text.ToString();
            cbSender.Text = ultraGrid1.Rows[rowno].Cells["FS_SENDER"].Text.ToString();
            cbReceiver.Text = ultraGrid1.Rows[rowno].Cells["FS_RECEIVER"].Text.ToString();
            txtTRAINNO.Text = ultraGrid1.Rows[rowno].Cells["FS_TRAINNO"].Text.ToString();
        }
Exemplo n.º 59
0
 private void listaDoubleClickRow(object sender, DoubleClickRowEventArgs e)
 {
     var dto = e.Row.ListObject as StoricoMessaggioDTO;
     if (dto != null)
     {
         var messaggio = dto;
         if (messaggio.Tipo != TipoMessaggio.Sms)
             apriAllegati(dto);
     }
 }
Exemplo n.º 60
0
 private void listaDoubleClickRow(object sender, DoubleClickRowEventArgs e)
 {
     _modelloAperto = (ModelloLetteraDTO)lista.ActiveRow.ListObject;
     if (_modelloAperto.Id == 0)
     {
         if(string.IsNullOrEmpty(_modelloAperto.Descrizione))
              _modelloAperto.Descrizione = "modello";
         if(string.IsNullOrEmpty(_modelloAperto.Tipo))
             _modelloAperto.Tipo = TipoModelloLetteraEnum.Messaggistica.ToString();
     }
     _modelloLetteraService.OpenModello(_modelloAperto);
 }