Ejemplo n.º 1
0
 private void grid_CellDoubleClick(object sender, DevComponents.DotNetBar.SuperGrid.GridCellDoubleClickEventArgs e)
 {
     if (e.GridCell.ColumnIndex < 0 || e.GridCell.RowIndex < 0)
     {
         return;
     }
     _selectedData = (TL_NOTIFY)e.GridCell.GridRow.DataItem;
     CloseNotify();
 }
Ejemplo n.º 2
0
        private void superGridControl1_CellDoubleClick(object sender, DevComponents.DotNetBar.SuperGrid.GridCellDoubleClickEventArgs e)
        {
            GridRow gridRow = (sender as SuperGridControl).PrimaryGrid.ActiveRow as GridRow;

            if (gridRow == null)
            {
                return;
            }

            SampleInfo entity = (gridRow.DataItem as SampleInfo);

            if (entity != null)
            {
                _Form1.CurrentSampleInfo = entity;
                isExit = false;
                this.Close();
            }
        }
Ejemplo n.º 3
0
        private void superGridControl1_CellDoubleClick(object sender, DevComponents.DotNetBar.SuperGrid.GridCellDoubleClickEventArgs e)
        {
            GridRow gridRow = (sender as SuperGridControl).PrimaryGrid.ActiveRow as GridRow;

            if (gridRow == null)
            {
                return;
            }

            SampleInfo entity = (gridRow.DataItem as SampleInfo);

            if (entity == null)
            {
                return;
            }

            this.Output       = (gridRow.DataItem as SampleInfo);
            this.DialogResult = DialogResult.OK;
            this.Close();
        }
Ejemplo n.º 4
0
        private void superGridControl1_CellDoubleClick(object sender, DevComponents.DotNetBar.SuperGrid.GridCellDoubleClickEventArgs e)
        {
            GridRow gridRow = (sender as SuperGridControl).PrimaryGrid.ActiveRow as GridRow;

            if (gridRow == null)
            {
                return;
            }

            CmcsInFactoryBatch entity = (gridRow.DataItem as CmcsInFactoryBatch);

            if (entity != null)
            {
                IList <CmcsRCSampling> rCSample = cZYHandlerDAO.GetRGSamplingByBatchId(entity.Id);
                if (rCSample != null && rCSample.Count > 0)
                {
                    DataTable dt = cZYHandlerDAO.GetSampleInfo(rCSample[0].Id);
                    listSampleInfo.Clear();
                    foreach (DataRow drSample in dt.Rows)
                    {
                        listSampleInfo.Add(new SampleInfo()
                        {
                            Id               = drSample["Id"].ToString(),
                            Batch            = drSample["Batch"].ToString(),
                            BatchId          = drSample["BatchId"].ToString(),
                            SupplierName     = drSample["SupplierName"].ToString(),
                            MineName         = drSample["MineName"].ToString(),
                            KindName         = drSample["KindName"].ToString(),
                            StationName      = drSample["StationName"].ToString(),
                            FactarriveDate   = DateTime.Parse(drSample["FactarriveDate"].ToString()),
                            SampleCode       = drSample["SampleCode"].ToString(),
                            SamplingDate     = DateTime.Parse(drSample["SamplingDate"].ToString()),
                            SamplingType     = drSample["SamplingType"].ToString(),
                            BatchType        = drSample["InFactoryType"].ToString(),
                            FuelSupplierName = drSample["FuelSupplierName"].ToString(),
                        });
                        _Form1.CurrentSampleInfo = listSampleInfo[0];
                    }
                }
                else
                {
                    if (MessageBoxEx.Show("该批次没有人工采样单,是否生成人工采样?", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
                    {
                        // 生成采制化数据记录
                        CmcsRCSampling rCSampling = CommonDAO.GetInstance().GCSamplingMakeAssay(entity, eSamplingType.人工采样.ToString(), "由人工制样室自动创建", eAssayType.级编码化验, SelfVars.LoginUser.UserName);
                        DataTable      dt         = cZYHandlerDAO.GetSampleInfo(rCSampling.Id);
                        listSampleInfo.Clear();
                        foreach (DataRow drSample in dt.Rows)
                        {
                            listSampleInfo.Add(new SampleInfo()
                            {
                                Id               = drSample["Id"].ToString(),
                                Batch            = drSample["Batch"].ToString(),
                                BatchId          = drSample["BatchId"].ToString(),
                                SupplierName     = drSample["SupplierName"].ToString(),
                                MineName         = drSample["MineName"].ToString(),
                                KindName         = drSample["KindName"].ToString(),
                                StationName      = drSample["StationName"].ToString(),
                                FactarriveDate   = DateTime.Parse(drSample["FactarriveDate"].ToString()),
                                SampleCode       = drSample["SampleCode"].ToString(),
                                SamplingDate     = DateTime.Parse(drSample["SamplingDate"].ToString()),
                                SamplingType     = drSample["SamplingType"].ToString(),
                                BatchType        = drSample["InFactoryType"].ToString(),
                                FuelSupplierName = drSample["FuelSupplierName"].ToString(),
                            });
                            _Form1.CurrentSampleInfo = listSampleInfo[0];
                        }
                    }
                }

                isExit = false;
                this.Close();
            }
        }
Ejemplo n.º 5
0
 private void gList_CellDoubleClick(object sender, GridCellDoubleClickEventArgs e)       
 {                                                                                       
                                                          
 }                                                                                       
Ejemplo n.º 6
0
 private void gList_CellDoubleClick(object sender, GridCellDoubleClickEventArgs e)       
 {                                                                                       
     btnGhiDuLieu.PerformClick();                                                       
 }                                                                                       
Ejemplo n.º 7
0
 private void gList_CellDoubleClick(object sender, GridCellDoubleClickEventArgs e)
 {
     btnXemChiTiet.PerformClick();
 }
Ejemplo n.º 8
0
 private void supergrid_CellDoubleClick(object sender, DevComponents.DotNetBar.SuperGrid.GridCellDoubleClickEventArgs e)
 {
     UpdateBindings(context);
     superTabControl1.SelectedTab = stbidetail;
 }
Ejemplo n.º 9
0
        /// <summary>
        /// Handles invocation of CellInfoDoubleClick events
        /// </summary>
        internal void DoCellInfoDoubleClickEvent(GridCell gridCell, MouseEventArgs e)
        {
            if (CellInfoDoubleClick != null)
            {
                GridCellDoubleClickEventArgs ev = new
                    GridCellDoubleClickEventArgs(gridCell.GridPanel, gridCell, e);

                CellInfoDoubleClick(this, ev);
            }
        }
Ejemplo n.º 10
0
        /// <summary>
        /// Handles invocation of CellDoubleClick events
        /// </summary>
        internal bool DoCellDoubleClickEvent(GridCell gridCell, MouseEventArgs e)
        {
            if (CellDoubleClick != null)
            {
                GridCellDoubleClickEventArgs ev = new
                    GridCellDoubleClickEventArgs(gridCell.GridPanel, gridCell, e);

                CellDoubleClick(this, ev);

                return (ev.Cancel);
            }

            return (false);
        }
Ejemplo n.º 11
0
 private void gridDevice_CellDoubleClick(object sender, GridCellDoubleClickEventArgs e)
 {
     if (e.GridCell.ColumnIndex == 1)
     {
         e.GridCell.EditorType = typeof(GridImageCombo);
         e.GridCell.EditorParams = new object[] { deviceImageListCombo, deviceTypeDict, deviceImageListCombo.ImageSize.Width * 2 };
     }
 }