lunes, 30 de junio de 2014
miércoles, 25 de junio de 2014
Para la elaboracion de aplicaciones
System.Environment.CurrentDirectory (Obtener la ruta de la Aplicacion)
viernes, 20 de junio de 2014
martes, 10 de junio de 2014
lunes, 9 de junio de 2014
logo de la impresora fiscal
public frmMainForm()
{
System.Threading.Thread.CurrentThread.CurrentUICulture = new CultureInfo(_myMainFormCtrl.MyUtil.CultureInfo);
InitializeComponent();
this._myServiDataProduct = new ServiceDataPlu();
this._myServiDataFooter = new ServiceDataFoot();
this._myServiDataHeader = new ServiceDataHead();
this._myServiDataCountry = new ServiceDataCountry();
this.QuantityLine = 1.00;
this.AmountPayment = 0.00;
this.TotalAmount = 0.00;
this.TypeDocFiscal = 0;
///Nuevo
//_myMainFormCtrl._myLogoInfo.MytbrBrightness = this.tbrBrightness;
//_myMainFormCtrl._myLogoInfo.MytbrZoom = this.tbrZoom;
_myMainFormCtrl._myLogo.tbrBrilloLogo = this.tbrBrightness;
_myMainFormCtrl._myLogo.tbrZoomLogo = this.tbrZoom;
}
{
System.Threading.Thread.CurrentThread.CurrentUICulture = new CultureInfo(_myMainFormCtrl.MyUtil.CultureInfo);
InitializeComponent();
this._myServiDataProduct = new ServiceDataPlu();
this._myServiDataFooter = new ServiceDataFoot();
this._myServiDataHeader = new ServiceDataHead();
this._myServiDataCountry = new ServiceDataCountry();
this.QuantityLine = 1.00;
this.AmountPayment = 0.00;
this.TotalAmount = 0.00;
this.TypeDocFiscal = 0;
///Nuevo
//_myMainFormCtrl._myLogoInfo.MytbrBrightness = this.tbrBrightness;
//_myMainFormCtrl._myLogoInfo.MytbrZoom = this.tbrZoom;
_myMainFormCtrl._myLogo.tbrBrilloLogo = this.tbrBrightness;
_myMainFormCtrl._myLogo.tbrZoomLogo = this.tbrZoom;
}
sábado, 7 de junio de 2014
Operaciones con Combobox
String commandString = "SELECT descripcion from departamentos";
MySqlCommand command = new MySqlCommand(commandString, conexionBD.getConexion());
MySqlDataAdapter myAdapter = new MySqlDataAdapter(command);
DataSet myds = new DataSet();
myAdapter.Fill(myds, "plu");
dataGridView1.DataSource = myds.Tables["plu"].DefaultView;
//int tablas = myds.Tables[0].Rows.Count;
//comboBox1.DataSource = myds.Tables[0].Columns;
comboBox1.DataSource = myds.Tables["plu"].DefaultView;
comboBox1.DisplayMember = myds.Tables["plu"].Columns[0].ToString();
Investigar value commited combobox!! http://msdn.microsoft.com/en-us/library/ms753382(v=vs.85).aspx#combobox_styling
Cuando se intenta leer el valor de un combobox y no importa si el valor que este contiene se haya hecho commit, se puede utilizar el EditedFormattedValue para obtener dicho valor
MySqlCommand command = new MySqlCommand(commandString, conexionBD.getConexion());
MySqlDataAdapter myAdapter = new MySqlDataAdapter(command);
DataSet myds = new DataSet();
myAdapter.Fill(myds, "plu");
dataGridView1.DataSource = myds.Tables["plu"].DefaultView;
//int tablas = myds.Tables[0].Rows.Count;
//comboBox1.DataSource = myds.Tables[0].Columns;
comboBox1.DataSource = myds.Tables["plu"].DefaultView;
comboBox1.DisplayMember = myds.Tables["plu"].Columns[0].ToString();
Investigar value commited combobox!! http://msdn.microsoft.com/en-us/library/ms753382(v=vs.85).aspx#combobox_styling
Cuando se intenta leer el valor de un combobox y no importa si el valor que este contiene se haya hecho commit, se puede utilizar el EditedFormattedValue para obtener dicho valor
jueves, 5 de junio de 2014
REviSAR EMULADOR VFP
Revisar PC
C:\PrgramFile\Java\jre7\bin
si estan: rxtxSerial.dll y rxtxParaller.dll de la Java/jre7/bin/
Si estan esas dlls, consola
C:\VFPHKA2.0\dist> java -jar VFPHKA.jar
Ver que se imprime por consola
Chequear tambien
C:\com0com
C:\PrgramFile\Java\jre7\bin
si estan: rxtxSerial.dll y rxtxParaller.dll de la Java/jre7/bin/
Si estan esas dlls, consola
C:\VFPHKA2.0\dist> java -jar VFPHKA.jar
Ver que se imprime por consola
Chequear tambien
C:\com0com
martes, 3 de junio de 2014
NOTAS
datagridviewcomboboxcolumn si se le carga una lista de valores y luego se le pasa un valor ?contenido? en formato string, este se elige en la lista del combobox existente.
un componente como un datagridview tiene por defecto o porque esta contenido dentro de otro componente, ciertas caracteristicas como Font Bold, pero si en un columna que esta heredando esta caracteristica por defecto, se le configura alguna caracteristica como Font Bold en false, este aceptara esta propiedad y valdra en su campo.
Suscribirse a:
Comentarios (Atom)