Ejemplo n.º 1
0
        //información de código de cabina
        private string ReturnCabCode(int Cabid)
        {
            string CodeCab = "";

            if (Cabid > 0)
            {
                AssignmentsDataSet ds = new AssignmentsDataSet();
                AssignmentsDataSetTableAdapters.CabInfoTableAdapter adapter = new AssignmentsDataSetTableAdapters.CabInfoTableAdapter();
                AssignmentsDataSet.CabInfoDataTable dataTable = adapter.GetDataByIdCab(Cabid);

                if (dataTable.Rows.Count > 0)
                {
                    AssignmentsDataSet.CabInfoRow row = (AssignmentsDataSet.CabInfoRow)dataTable.Rows[0];

                    CodeCab = row.Code;
                }
            }
            return(CodeCab);
        }
Ejemplo n.º 2
0
        //información de cabina
        private string ReturnCabLicensePlate(int Cabid)
        {
            string LicensePlate = "";

            if (Cabid > 0)
            {
                AssignmentsDataSet ds = new AssignmentsDataSet();
                AssignmentsDataSetTableAdapters.CabInfoTableAdapter adapter = new AssignmentsDataSetTableAdapters.CabInfoTableAdapter();
                AssignmentsDataSet.CabInfoDataTable dataTable = adapter.GetDataByIdCab(Cabid);

                if (dataTable.Rows.Count > 0)
                {
                    AssignmentsDataSet.CabInfoRow row = (AssignmentsDataSet.CabInfoRow)dataTable.Rows[0];
                    LicensePlate = row.LicensePlate;
                }
            }

            return(LicensePlate);
        }