コード例 #1
0
 private void fpFilter_CellDoubleClick(object sender, FarPoint.Win.Spread.CellClickEventArgs e)
 {
     if (e.ColumnHeader || e.RowHeader)
     {
         return;
     }
 }
コード例 #2
0
 private void fpMaterialQuery_CellDoubleClick(object sender, FarPoint.Win.Spread.CellClickEventArgs e)
 {
     if (this.isEditExpediency)  //拥有修改权限
     {
         this.Modify();
     }
 }
コード例 #3
0
 private void fpSelector_CellClick(object sender, FarPoint.Win.Spread.CellClickEventArgs e)
 {
     if (e.ColumnHeader || e.RowHeader)
     {
         e.Cancel = true;
         return;
     }
 }
コード例 #4
0
 private void fpFilter_CellDoubleClick_1(object sender, FarPoint.Win.Spread.CellClickEventArgs e)
 {
     if (e.ColumnHeader || e.RowHeader)
     {
         e.Cancel = true;
         return;
     }
     SeletctItem();
 }
コード例 #5
0
ファイル: ucTabular.cs プロジェクト: ewin66/Management-System
        private void fpSpread1_CellClick(object sender, FarPoint.Win.Spread.CellClickEventArgs e)
        {
            if (e.Row < 0 || e.RowHeader || e.ColumnHeader || e.Column < 0)
            {
                return;
            }

            this.fpSpread1_Sheet1.ActiveRowIndex = e.Row;

            CurrentRow = e.Row;
        }
コード例 #6
0
        private void fpView_CellDoubleClick(object sender, FarPoint.Win.Spread.CellClickEventArgs e)
        {
            string LOC_CLS = shtView.GetValue(shtView.ActiveRowIndex, (int)eColView.LOC_CLS).ToString();

            if (LOC_CLS != "02")
            {
                OpenLocationMaster();
            }
            else
            {
                MessageDialog.ShowBusiness(this, new Message(TKPMessages.eValidate.VLM0227.ToString()));
            }
        }
コード例 #7
0
        private void FpSpread_CellDoubleClick(object sender, FarPoint.Win.Spread.CellClickEventArgs e)
        {
            Row Row = FpSpread.ActiveSheet.ActiveRow;

            if (Row != null && Row.Tag is String && Row.Tag.ToString() != "")
            {
                LogDialog Dialog = new LogDialog(Int64.Parse(Row.Tag.ToString()));
                Form      Owner  = Cache.CustomCache[SystemString.主窗口] as Form;
                Dialog.Location = Owner.PointToScreen(Owner.ClientRectangle.Location);
                Dialog.Size     = Owner.ClientRectangle.Size;
                Dialog.ReadOnly = true;
                Dialog.ShowDialog(Owner);
            }
        }
コード例 #8
0
        private void FpSpread_CellDoubleClick(object sender, FarPoint.Win.Spread.CellClickEventArgs e)
        {
            Row Row = FpSpread.ActiveSheet.ActiveRow;

            if (Row != null && Row.Tag is String)
            {
                String[] Tokens = Row.Tag.ToString().Split(',');

                DataDialog Dialog = new DataDialog(new Guid(Tokens[0]), new Guid(Tokens[1]));
                Form       Owner  = Cache.CustomCache[SystemString.主窗口] as Form;
                Dialog.Location = Owner.PointToScreen(Owner.ClientRectangle.Location);
                Dialog.Size     = Owner.ClientRectangle.Size;
                Dialog.ReadOnly = true;
                Dialog.ShowDialog(Owner);
            }
        }
コード例 #9
0
        private void fpSpread1_CellDoubleClick(object sender, FarPoint.Win.Spread.CellClickEventArgs e)
        {
            if (this.queryModifyControl != null)
            {
                if (this.modifyControlForm == null)
                {
                    this.modifyControlForm = new Form();

                    Control c = this.queryModifyControl as Control;
                    c.Dock = DockStyle.Fill;
                    this.modifyControlForm.Controls.Add(c);
                }

                this.modifyControlForm.ShowDialog();
            }
        }
コード例 #10
0
        private void neuSpread1_CellDoubleClick(object sender, FarPoint.Win.Spread.CellClickEventArgs e)
        {
            //if (e.Column == 3)
            //{
            //    if (neuSpread1_Sheet1.Cells[e.Row, 3].Text.ToString() == "")
            //        return;
            //    Neusoft.HISFC.Models.Base.Spell spCode = new Neusoft.HISFC.Models.Base.Spell();
            //    Neusoft.HISFC.BizLogic.Manager.Spell mySpell = new Neusoft.HISFC.BizLogic.Manager.Spell();

            //    spCode = (Neusoft.HISFC.Models.Base.Spell)mySpell.Get(neuSpread1_Sheet1.Cells[e.Row, 3].Text.ToString());

            //    if (spCode.SpellCode.Length > 10)
            //        spCode.SpellCode = spCode.SpellCode.Substring(0, 10);
            //    if (spCode.WBCode.Length > 10)
            //        spCode.WBCode = spCode.WBCode.Substring(0, 10);

            //    this.neuSpread1_Sheet1.Cells[e.Row, 4].Value = spCode.SpellCode;
            //    this.neuSpread1_Sheet1.Cells[e.Row, 5].Value = spCode.WBCode;
            //}
        }
コード例 #11
0
ファイル: MAT070101.cs プロジェクト: trantan490/web
        private void spdData_CellClick(object sender, FarPoint.Win.Spread.CellClickEventArgs e)
        {
            if (e.Column < 2 || e.Row < 1)
            {
                return;
            }
            //if (e.Row < 1)
            //    return;
            //string strtest = spdData.ActiveSheet.Rows[e.Row].Label;
            //string strtest2 = spdData.ActiveSheet.Cells[e.Row, e.Column].Value.ToString();

            // 품목코드와 Type(입고,출고..) 을 문자열로 저장한다.
            string strMatId = spdData.ActiveSheet.Cells[e.Row, 0].Value.ToString();
            string strType  = spdData.ActiveSheet.Columns[e.Column].Label;

            DataTable dt = CmnFunction.oComm.GetFuncDataTable("DYNAMIC", MakeSqlStringForPopup(strMatId, strType));

            if (dt != null && dt.Rows.Count > 0)
            {
                System.Windows.Forms.Form frm = new MAT070101_P1(strType, cboMatType.Text, dt);
                frm.ShowDialog();
            }
        }
コード例 #12
0
 private void FpSpread_CellClick(object sender, FarPoint.Win.Spread.CellClickEventArgs e)
 {
     Button_FieldSetting.Enabled = (e.Row >= 0 && e.Column >= 0);
 }
コード例 #13
0
ファイル: InvalidReportNote.cs プロジェクト: scaperow/-V2.0
 /// <summary>
 /// 显示图片
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void fpSpread1_CellDoubleClick(object sender, FarPoint.Win.Spread.CellClickEventArgs e)
 {
     SetImageShow(e.Row, true);
 }
コード例 #14
0
 //Spread 单击行变色
 public static void Spread_CellClickChangeBColor(FarPoint.Win.Spread.FpSpread Spd, FarPoint.Win.Spread.CellClickEventArgs e, Color bColor)
 {
     if (e.Row < Spd.ActiveSheet.RowCount)
     {
         Spd.ActiveSheet.Rows[0, Spd.ActiveSheet.Rows.Count - 1].BackColor = Color.Empty;
         Spd.ActiveSheet.Rows[e.Row].BackColor = bColor;
     }
 }
コード例 #15
0
ファイル: DeviceManagement.cs プロジェクト: scaperow/-V2.0
 private void Cells_CellClick(object sender, FarPoint.Win.Spread.CellClickEventArgs e)
 {
 }