Пример #1
0
        private void dgvDatos_DoubleClickCell(object sender, Infragistics.Win.UltraWinGrid.DoubleClickCellEventArgs e)
        {
            try
            {
                if (IdDocumento == 1 || IdDocumento == 10008 || IdDocumento == 10009)
                {
                    if (IdDocumento == 1)
                    {
                        Tipo = Convert.ToString(dgvDatos.Rows[e.Cell.Row.Index].Cells["Tipo"].Value);
                    }

                    DocEntry = Convert.ToInt32(dgvDatos.Rows[e.Cell.Row.Index].Cells["Número de documento"].Value);

                    this.DialogResult = System.Windows.Forms.DialogResult.Yes;
                }
                if (IdDocumento == 8 || IdDocumento == 9)
                {
                    DocEntry = Convert.ToInt32(dgvDatos.Rows[e.Cell.Row.Index].Cells["Número de documento"].Value);
                    Tipo     = Convert.ToString(dgvDatos.Rows[e.Cell.Row.Index].Cells["Doc"].Value);

                    this.DialogResult = System.Windows.Forms.DialogResult.Yes;
                }
                else if (IdDocumento == -1 | IdDocumento == -5 | IdDocumento == -7)
                {
                    string var = string.Empty;
                    var = Convert.ToString(dgvDatos.Rows[e.Cell.Row.Index].Cells["CardCode"].Value);

                    DocKey.Add(var);

                    Row = (from item in source.AsEnumerable()
                           where item.Field <string>("CardCode").Equals(var)
                           select item).FirstOrDefault();

                    this.DialogResult = System.Windows.Forms.DialogResult.Yes;
                }
                else if (IdDocumento == -2 | IdDocumento == -3 | IdDocumento == -6 | IdDocumento == -8)
                {
                    string var = string.Empty;

                    // dgvDatos.Selected.

                    //foreach (var item in dgvDatos.Selected.Rows)
                    //{
                    var = Convert.ToString(dgvDatos.ActiveRow.Cells["DocEntry"].Value);
                    DocKey.Add(var);
                    //}

                    this.DialogResult = System.Windows.Forms.DialogResult.Yes;
                }
                else if (IdDocumento == -4)
                {
                    ItemCode = Convert.ToString(dgvDatos.ActiveRow.Cells[0].Value);

                    this.DialogResult = System.Windows.Forms.DialogResult.Yes;
                }
            }
            catch (Exception)
            {
            }
        }
Пример #2
0
        private void uGridRawMaterial_DoubleClickCell(object sender, Infragistics.Win.UltraWinGrid.DoubleClickCellEventArgs e)
        {
            if (e.Cell.Row.Index < 0)
            {
                return;
            }
            if (e.Cell.Row.Cells["AutoID"].Value == null)
            {
                return;
            }
            var lid = e.Cell.Row.Cells["AutoID"].Value.ToString();

            if (string.IsNullOrEmpty(lid))
            {
                return;
            }
            var bdoForm = (WorkRmPrintLabel)FormIsExist("WorkRmPrintLabel");

            if (bdoForm == null)
            {
                var wrp = new WorkRmPrintLabel(lid)
                {
                    MdiParent = ParentForm
                };
                wrp.Show();
                return;
            }
            bdoForm.Activate();
            bdoForm.SetPanelVlaue(lid);
        }
Пример #3
0
 private void _grid_Logins_DoubleClickCell(object sender, Infragistics.Win.UltraWinGrid.DoubleClickCellEventArgs e)
 {
     if (m_gridCellClicked)
     {
         showProperties();
     }
 }
Пример #4
0
        private void uGridRawMaterial_DoubleClickCell(object sender, Infragistics.Win.UltraWinGrid.DoubleClickCellEventArgs e)
        {
            if (e.Cell.Row.Cells["AutoID"].Value == null)
            {
                return;
            }
            var lid = e.Cell.Row.Cells["AutoID"].Value.ToString();

            if (string.IsNullOrEmpty(lid))
            {
                return;
            }
            var lblPrintForm = (WorkRmLabelPrint)FormIsExist("WorkRmLabelPrint");

            if (lblPrintForm == null)
            {
                var feturesOpen = new WorkRmLabelPrint(lid)
                {
                    MdiParent = ParentForm
                };
                feturesOpen.Show();
                return;
            }
            lblPrintForm.Activate();
            lblPrintForm.SetPanelVlaue(lid);
        }
Пример #5
0
 private void UltraGrid1_DoubleClickCell(object sender, Infragistics.Win.UltraWinGrid.DoubleClickCellEventArgs e)
 {
     if (e.Cell.Column.Key == "FilePath")
     {
         Process.Start(e.Cell.Row.Cells["FilePath"].Value.ToString());
     }
 }
Пример #6
0
        private void uGridCheck_DoubleClickCell(object sender, Infragistics.Win.UltraWinGrid.DoubleClickCellEventArgs e)
        {
            if (e.Cell.Row == null || e.Cell.Row.Index < 0)
            {
                return;
            }
            _cOrderNumber = e.Cell.Row.Cells["cOrderNumber"].Value.ToString();
            _iRowNo       = e.Cell.Row.Index;
            var eo = new EasOrderService.EasOrder();

            eo.Url = BaseStructure.OrderServiceUri;
            var dtTemp = eo.GetPoDetail(_cOrderNumber);

            uGridChecks.DataSource = dtTemp;
            if (dtTemp != null && dtTemp.Rows.Count > 0)
            {
                var strTemp = dtTemp.Compute("sum(FAmount)", "").ToString();
                if (decimal.TryParse(strTemp, out _iSum))
                {
                    _cSumUpper = WmsFunction.ExchangeUper(_iSum);
                }
                else
                {
                    _iSum      = 0;
                    _cSumUpper = "";
                }
            }
        }
Пример #7
0
        private void uGridCustomer_DoubleClickCell(object sender, Infragistics.Win.UltraWinGrid.DoubleClickCellEventArgs e)
        {
            if (e.Cell.Row.Index < 0)
            {
                return;
            }
            CCusCode = e.Cell.Row.Cells["FNumber"].Value.ToString();
            CCusName = e.Cell.Row.Cells["FName"].Value.ToString();

            DialogResult = DialogResult.Yes;
        }
Пример #8
0
        private void dgvDatos_DoubleClickCell(object sender, Infragistics.Win.UltraWinGrid.DoubleClickCellEventArgs e)
        {
            if (e.Cell.Band.Index == 1)
            {
                //MessageBox.Show(dgvDatos.ActiveRow.Cells["CreatedBy"].Value.ToString());

                //Constantes.Clases.LoadRPT rpt = new Constantes.Clases.LoadRPT(getPath(Convert.ToInt32(dgvDatos.ActiveRow.Cells["TransType"].Value)));
                //Constantes.frmVisor form = new Constantes.frmVisor(rpt.DocRPT);
                //rpt.GenerarPDF(dgvDatos.ActiveRow.Cells["CreatedBy"].Value.ToString());
                //form.MdiParent = this.MdiParent;
                //form.Show();
            }
        }
Пример #9
0
        private void uGridCheck_DoubleClickCell(object sender, Infragistics.Win.UltraWinGrid.DoubleClickCellEventArgs e)
        {
            if (e.Cell.Row == null || e.Cell.Row.Index < 0)
            {
                return;
            }
            _cOrderNumber = e.Cell.Row.Cells["cOrderNumber"].Value.ToString();
            _iRowNo       = e.Cell.Row.Index;
            var eo = new EasOrderService.EasOrder();

            eo.Url = BaseStructure.OrderServiceUri;
            uGridChecks.DataSource = eo.GetTransferDetail(_cOrderNumber);
        }
Пример #10
0
 private void dgvDatos_DoubleClickCell(object sender, Infragistics.Win.UltraWinGrid.DoubleClickCellEventArgs e)
 {
     try
     {
         SDK.Documentos.frmTransferencia forulario = new SDK.Documentos.frmTransferencia(4);
         forulario.txtNumero.Text = Convert.ToInt32(dgvDatos.ActiveRow.Cells[0].Value).ToString();
         forulario.IsSolicitud    = true;
         forulario.MdiParent      = this.MdiParent;
         var kea = new KeyPressEventArgs(Convert.ToChar(13));
         forulario.txtNumero_KeyPress(sender, kea);
         forulario.Show();
     }
     catch (Exception)
     {
     }
 }
Пример #11
0
        private void dgvDatos_DoubleClickCell(object sender, Infragistics.Win.UltraWinGrid.DoubleClickCellEventArgs e)
        {
            try
            {
                Int32 docEntry = Convert.ToInt32(dgvDatos.Rows[e.Cell.Row.Index].Cells[(int)Columnas.Docnum].Value);

                SDK.Documentos.frmDocumentos formulario = new SDK.Documentos.frmDocumentos(1);
                formulario.MdiParent     = this.MdiParent;
                formulario.txtFolio.Text = docEntry.ToString();
                var kea = new KeyPressEventArgs(Convert.ToChar(13));
                formulario.txtFolio_KeyPress(sender, kea);
                formulario.Show();
            }
            catch (Exception)
            {
            }
        }
Пример #12
0
        private void uGridShiftDetail_DoubleClickCell(object sender, Infragistics.Win.UltraWinGrid.DoubleClickCellEventArgs e)
        {
            var wf  = new WmsFunction(BaseStructure.WmsCon);
            var cmd = new SqlCommand("select * from RmLabel where cInvCode=@cInvCode and cLotNo=@cLotNo");

            cmd.Parameters.AddWithValue("@cInvCode", e.Cell.Row.Cells["cInvCode"].Value.ToString());
            cmd.Parameters.AddWithValue("@cLotNo", e.Cell.Row.Cells["FBatchNo"].Value.ToString());

            var dt = wf.GetSqlTable(cmd);

            if (dt == null || dt.Rows.Count < 1)
            {
                MessageBox.Show(@"当前批号,未在原料标签打印记录中,请手动在原料标签打印中,打印!", @"异常", MessageBoxButtons.OK, MessageBoxIcon.Warning);

                return;
            }
            PrintDialogRm("print", e.Cell.Row, dt);
        }
Пример #13
0
        private void uGridCheck_DoubleClickCell(object sender, Infragistics.Win.UltraWinGrid.DoubleClickCellEventArgs e)
        {
            if (e.Cell.Row == null || e.Cell.Row.Index < 0)
            {
                return;
            }
            _cOrderNumber = e.Cell.Row.Cells["FBillNo"].Value.ToString();
            _iRowNo       = e.Cell.Row.Index;
            if (!int.TryParse(e.Cell.Row.Cells["FinterID"].Value.ToString(), out _FinterID))
            {
                return;
            }
            var cmd =
                new SqlCommand(
                    @"select POInstockEntry.FItemID,POInstockEntry.FEntryID,FShortNumber,FNumber,FModel,FName,FQty 
from POInstockEntry inner join t_ICItem on POInstockEntry.FItemID=t_ICItem.FItemID
where FInterID=@FinterID and FAuxConCommitQty = 0");

            cmd.Parameters.AddWithValue("@FinterID", _FinterID);
            var wmf = new WmsFunction(BaseStructure.KisConstring);

            uGridChecks.DataSource = wmf.GetSqlTable(cmd);
        }
Пример #14
0
 private void grd_DoubleClickCell(object sender, Infragistics.Win.UltraWinGrid.DoubleClickCellEventArgs e)
 {
     GetGridValue();
     this.Close();
 }