Ejemplo n.º 1
0
 private void GXGiaoDanList_RowDoubleClick(object sender, RowActionEventArgs e)
 {
     if (allowShowForm)
     {
         EditRow();
     }
 }
Ejemplo n.º 2
0
 private void GridExVillage_RowDoubleClick(object sender, RowActionEventArgs e)
 {
     if (e.Row.RowType == RowType.Record)
     {
         var row = GetVillageRow(e.Row);
         World.Default.Map.EventPublisher.SelectVillages(null, row.Village, VillageTools.PinPoint);
         World.Default.Map.SetCenter(row.Village.Location);
     }
 }
Ejemplo n.º 3
0
        private void threadsGrid_CellDoubleClick(object sender, RowActionEventArgs e)
        {
            if (threadsGrid.CurrentRow != null)
            {
                GridEXRow     row    = threadsGrid.CurrentRow;
                ThreadWrapper thread = (ThreadWrapper)NuGenHelperFunctions.TaggedObjects[(String)row.Cells[1].Value + (String)row.Cells[2].Value];

                ChangeCurrentThread(thread);
            }
        }
Ejemplo n.º 4
0
        private void objectsGrid_CellDoubleClick(object sender, RowActionEventArgs e)
        {
            if (objectsGrid.CurrentRow != null)
            {
                NuGenIValueFormatter valueFormatter = NuGenHelperFunctions.TaggedObjects[(int)objectsGrid.CurrentRow.Cells[2].Value] as NuGenIValueFormatter;

                if (valueFormatter != null)
                {
                    NuGenUIHandler.Instance.ShowObjectInObjectViewer(ActiveFrame, valueFormatter.ValueRefresher, (string)objectsGrid.CurrentRow.Cells[0].Value);
                }
            }
        }
Ejemplo n.º 5
0
        private void GridEX_RowDoubleClick(object sender, RowActionEventArgs e)
        {
            var game = e.Row.DataRow as Game;

            using (var form = new GameEditForm(game, DbContext))
            {
                if (form.ShowDialog(this) == DialogResult.OK)
                {
                    GameService.UpdateGame(game);
                    GridEX.Refetch();
                }
            }
        }
Ejemplo n.º 6
0
        private void grdList_RowDoubleClick(object sender, RowActionEventArgs e)
        {
            var document = grdList.GetRow().DataRow as Document;

            if (document != null)
            {
                string downloadPath = Path.Combine(Path.GetTempPath(), "CCHDocuments", document.Name);
                string directory    = Path.GetDirectoryName(downloadPath);
                if (!Directory.Exists(directory))
                {
                    Directory.CreateDirectory(directory);
                }
                _documentRepo.DownloadDocument(document.DocumentID, directory);
                Process.Start(downloadPath);
            }
        }
Ejemplo n.º 7
0
 private void gridExAgreementsListGrouped_RowDoubleClick(object sender, RowActionEventArgs e)
 {
     if (e.Row.GroupValue != null)
     {
         this.ShowAgreementForm(Convert.ToInt32(e.Row.GroupValue));
     }
     else
     {
         if (sender == gridExAgreementsListGrouped)
         {
             this.ShowAgreementForm(Convert.ToInt32(e.Row.Cells[0].Value), Convert.ToInt32(e.Row.Cells["PozycjaId"].Value));
         }
         else
         {
             this.ShowAgreementForm(Convert.ToInt32(e.Row.Cells[0].Value), 0);
         }
     }
 }
Ejemplo n.º 8
0
 private void GxDotBiTichChiTiet_RowDoubleClick(object sender, RowActionEventArgs e)
 {
     if (this.CurrentRow == null || (this.CurrentRow.DataRow as DataRowView) == null)
     {
         return;
     }
     //if select gia dinh
     if (this.CurrentColumn != null && (this.CurrentColumn.DataMember == GiaDinhConst.MaGiaDinh ||
                                        this.CurrentColumn.DataMember == GiaDinhConst.TenGiaDinh))
     {
         //if select gia dinh
         if (this.CurrentColumn != null && (this.CurrentColumn.DataMember == GiaDinhConst.MaGiaDinh ||
                                            this.CurrentColumn.DataMember == GiaDinhConst.TenGiaDinh))
         {
             SelectGiaDinh();
             return;
         }
     }
     //if edit giao dan
     EditRow();
 }
Ejemplo n.º 9
0
 private void GxGiaDinhList_RowDoubleClick(object sender, RowActionEventArgs e)
 {
     EditRow();
 }
Ejemplo n.º 10
0
 private void gridEX1_RowDoubleClick(object sender, RowActionEventArgs e)
 {
     MessageBox.Show(e.Row.Cells[5].Value.ToString());
 }
Ejemplo n.º 11
0
 private void grdData_RowDoubleClick(object sender, RowActionEventArgs e)
 {
     RequireUpdate();
 }
Ejemplo n.º 12
0
 private void grdData_RowDoubleClick(object sender, RowActionEventArgs e)
 {
     SelectRecord();
 }
Ejemplo n.º 13
0
 private void grdPatients_RowDoubleClick(object sender, RowActionEventArgs e)
 {
     LoadAllResult();
 }
Ejemplo n.º 14
0
 private void GxRaoHonPhoiList_RowDoubleClick(object sender, RowActionEventArgs e)
 {
     EditRow(false);
 }
Ejemplo n.º 15
0
 private void gridExSettlementsList_RowDoubleClick(object sender, RowActionEventArgs e)
 {
     this.ShowSettlementEditForm();
 }
Ejemplo n.º 16
0
 /// <summary>
 /// PinPoint the village
 /// </summary>
 private void GridExVillage_RowDoubleClick(object sender, RowActionEventArgs e)
 {
     if (e.Row.RowType == RowType.Record)
     {
         var row = e.Row.GetDataRow<PolygonDataSet.VILLAGERow>();
         World.Default.Map.EventPublisher.SelectVillages(null, row.Village, VillageTools.PinPoint);
         World.Default.Map.SetCenter(row.Village.Location);
     }
 }
Ejemplo n.º 17
0
 private void grdList_RowDoubleClick(object sender, RowActionEventArgs e)
 {
     var document = grdList.GetRow().DataRow as Document;
     if (document != null)
     {
         string downloadPath = Path.Combine(Path.GetTempPath(), "CCHDocuments", document.Name);
         string directory = Path.GetDirectoryName(downloadPath);
         if (!Directory.Exists(directory))
         {
             Directory.CreateDirectory(directory);
         }
         _documentRepo.DownloadDocument(document.DocumentID, directory);
         Process.Start(downloadPath);
     }
 }
 void grdMoiGioiCuocGoiThap_RowDoubleClick(object sender, RowActionEventArgs e)
 {
     LoadRowDetail();
 }
Ejemplo n.º 19
0
        private void gridEX1_RowDoubleClick(object sender, RowActionEventArgs e)
        {
            try
            {
                uiPanel2.Closed = true;

                if (gridEX1.GetRow().RowType == RowType.Record)
                {
                    string  TblName;
                    DataRow dr = (DataRow)((DataRowView)gridEX1.GetRow().DataRow).Row;
                    TblName       = (string)dr["TableName"];
                    uiPanel1.Text = TblName;

                    for (int i = cGridEX.RootTable.Columns.Count - 1; i >= 0; i--)
                    {
                        cGridEX.RootTable.Columns.Remove(cGridEX.RootTable.Columns[i]);
                    }

                    obe = AtMng.GetCodeTableBE(TblName);
                    obe.Load();
                    cGridEX.DataSource = obe.myDT;
                    int y = 0;
                    for (int i = 0; obe.myDT.Columns.Count > i; i++)
                    {
                        if ((obe.myDT.Columns[i].ColumnName == "entryUser") ||
                            (obe.myDT.Columns[i].ColumnName == "entryDate") ||
                            (obe.myDT.Columns[i].ColumnName == "updateUser") ||
                            (obe.myDT.Columns[i].ColumnName == "updateDate") ||
                            (obe.myDT.Columns[i].ColumnName == "ts"))
                        {
                        }
                        else
                        {
                            if (cGridEX.RootTable.Columns.Count > i)
                            {
                            }
                            else
                            {
                                cGridEX.RootTable.Columns.Add();
                            }
                            cGridEX.RootTable.Columns[y].DataMember   = obe.myDT.Columns[i].ColumnName;
                            cGridEX.RootTable.Columns[y].Key          = obe.myDT.Columns[i].ColumnName;
                            cGridEX.RootTable.Columns[y].AutoSizeMode = ColumnAutoSizeMode.AllCellsAndHeader;

                            if (obe.myDT.Columns[i].DataType == System.Type.GetType("System.Boolean"))
                            {
                                cGridEX.RootTable.Columns[y].ColumnType = ColumnType.CheckBox;
                                cGridEX.RootTable.Columns[y].EditType   = EditType.CheckBox;
                            }
                            if (TblName == "AccountType")
                            {
                                switch (i)
                                {
                                case 1:
                                    cGridEX.RootTable.Columns[y].Caption = "Code";
                                    break;

                                case 2:
                                    cGridEX.RootTable.Columns[y].Caption = "Desc Eng";
                                    break;

                                case 3:
                                    cGridEX.RootTable.Columns[y].Caption = "Desc Fre";
                                    break;

                                default:
                                    cGridEX.RootTable.Columns[y].Caption = obe.myDT.Columns[i].ColumnName;
                                    break;
                                }
                            }
                            else
                            {
                                cGridEX.RootTable.Columns[y].Caption = obe.myDT.Columns[i].ColumnName;
                                if (obe.myDT.Columns[i].ColumnName == "WFBGColor")
                                {
                                    cGridEX.RootTable.Columns[y].Selectable = false;
                                    uiPanel2.Closed = false;
                                    cGridEX.RootTable.Columns.Add("BGColor");
                                }
                            }
                            y++;
                        }
                    }
                    cGridEX.RootTable.SortKeys.Add(cGridEX.RootTable.Columns[0], Janus.Windows.GridEX.SortOrder.Ascending);

                    if (cGridEX.RootTable.Columns.Contains("Obsolete"))
                    {
                        Janus.Windows.GridEX.GridEXFormatCondition gfc2 = new GridEXFormatCondition(cGridEX.RootTable.Columns["Obsolete"], ConditionOperator.Equal, true);
                        Janus.Windows.GridEX.GridEXFormatStyle     gfs2 = new GridEXFormatStyle();
                        gfs2.FontStrikeout = TriState.True;
                        gfc2.FormatStyle   = gfs2;
                        cGridEX.RootTable.FormatConditions.Add(gfc2);
                    }
                    if (cGridEX.RootTable.Columns.Contains("ReadOnly"))
                    {
                        Janus.Windows.GridEX.GridEXFormatCondition gfc = new GridEXFormatCondition(cGridEX.RootTable.Columns["ReadOnly"], ConditionOperator.Equal, true);
                        Janus.Windows.GridEX.GridEXFormatStyle     gfs = new GridEXFormatStyle();
                        gfs.BackColor   = Color.Gainsboro;
                        gfs.ForeColor   = SystemColors.ControlDarkDark;
                        gfc.FormatStyle = gfs;
                        cGridEX.RootTable.FormatConditions.Add(gfc);
                    }
                    cGridEX.AutoSizeColumns();
                }
            }
            catch (Exception x)
            {
                UIHelper.HandleUIException(x);
            }
        }
Ejemplo n.º 20
0
		private void objectsGrid_CellDoubleClick(object sender, RowActionEventArgs e)
		{
			if (objectsGrid.CurrentRow != null)
			{
				NuGenIValueFormatter valueFormatter = NuGenHelperFunctions.TaggedObjects[(int)objectsGrid.CurrentRow.Cells[2].Value] as NuGenIValueFormatter;

				if (valueFormatter != null)
				{
					NuGenUIHandler.Instance.ShowObjectInObjectViewer(ActiveFrame, valueFormatter.ValueRefresher, (string)objectsGrid.CurrentRow.Cells[0].Value);
				}
			}
		}
Ejemplo n.º 21
0
 private void gridExAgreementsListGrouped_RowDoubleClick(object sender, RowActionEventArgs e)
 {
     this.ShowAgreementForm(Convert.ToInt32(e.Row.Cells["IdUmowy"].Value), Convert.ToInt32(e.Row.Cells["PozycjaId"].Value));
 }
Ejemplo n.º 22
0
 private void actionsGrid1_RowDoubleClick(object sender, RowActionEventArgs e)
 {
     Logger.LogUserAction();
     EditAction();
 }
Ejemplo n.º 23
0
 private void grdPatients_RowDoubleClick(object sender, RowActionEventArgs e)
 {
     LoadAllResult();
 }
 private void gridExport_RowDoubleClick(object sender, RowActionEventArgs e)
 {
     LoadRowDetail();
 }
Ejemplo n.º 25
0
		private void threadsGrid_CellDoubleClick(object sender, RowActionEventArgs e)
		{
			if (threadsGrid.CurrentRow != null)
			{
                GridEXRow row = threadsGrid.CurrentRow;
                ThreadWrapper thread = (ThreadWrapper)NuGenHelperFunctions.TaggedObjects[(String)row.Cells[1].Value + (String)row.Cells[2].Value];

				ChangeCurrentThread(thread);
			}
		}