• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP StringField类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中StringField的典型用法代码示例。如果您正苦于以下问题:PHP StringField类的具体用法?PHP StringField怎么用?PHP StringField使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了StringField类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: DoBeforeCreate

 protected function DoBeforeCreate()
 {
     $this->dataset = new TableDataset(new MyConnectionFactory(), GetConnectionOptions(), '`zzz`');
     $field = new IntegerField('id');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, true);
     $field = new StringField('TravelPlan');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, false);
     $field = new IntegerField('OnePerson');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, false);
     $field = new IntegerField('TwoPeople');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, false);
     $field = new IntegerField('TwoPlusChild');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, false);
     $field = new IntegerField('TwoPlusAdult');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, false);
     $field = new IntegerField('ThreePlusChild');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, false);
     $field = new IntegerField('ThreePlusAdult');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, false);
 }
开发者ID:howareyoucolin,项目名称:demo,代码行数:28,代码来源:zzz.php


示例2: DoBeforeCreate

 protected function DoBeforeCreate()
 {
     $selectQuery = 'SELECT 
           `project`.`project_name`,
           `project`.`date_start`,
           `project`.`date_end`,
           `project`.`lead`,
           `project`.`progress`,
           `project`.`project_id`
         FROM
           `project`';
     $insertQuery = array();
     $updateQuery = array();
     $deleteQuery = array();
     $this->dataset = new QueryDataset(new MyConnectionFactory(), GetConnectionOptions(), $selectQuery, $insertQuery, $updateQuery, $deleteQuery, 'Project Time Line');
     $field = new StringField('project_name');
     $this->dataset->AddField($field, false);
     $field = new DateField('date_start');
     $this->dataset->AddField($field, false);
     $field = new DateField('date_end');
     $this->dataset->AddField($field, false);
     $field = new StringField('lead');
     $this->dataset->AddField($field, false);
     $field = new StringField('progress');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, false);
     $field = new IntegerField('project_id');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, true);
 }
开发者ID:BCDevExchange,项目名称:WORKPLAN,代码行数:30,代码来源:Project_Time_Line.php


示例3: DoBeforeCreate

 protected function DoBeforeCreate()
 {
     $this->dataset = new TableDataset(new MyPDOConnectionFactory(), GetConnectionOptions(), '`articoli`');
     $field = new IntegerField('id', null, null, true);
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, true);
     $field = new StringField('art-codart');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, false);
     $field = new StringField('art-descart');
     $this->dataset->AddField($field, false);
     $field = new StringField('art-dessup');
     $this->dataset->AddField($field, false);
     $field = new StringField('art-codprod');
     $this->dataset->AddField($field, false);
     $field = new StringField('art-codfam');
     $this->dataset->AddField($field, false);
     $field = new StringField('unita_misura');
     $this->dataset->AddField($field, false);
     $field = new StringField('art-gruppo-merc');
     $this->dataset->AddField($field, false);
     $field = new StringField('art-categoria-omogenea');
     $this->dataset->AddField($field, false);
     $field = new IntegerField('art-lungsmu');
     $this->dataset->AddField($field, false);
     $field = new DateTimeField('datains');
     $this->dataset->AddField($field, false);
     $field = new DateTimeField('datamod');
     $this->dataset->AddField($field, false);
     $this->dataset->AddLookupField('art-codfam', 'famiglie', new StringField('fam-codfam'), new StringField('fam-descriz', 'art-codfam_fam-descriz', 'art-codfam_fam-descriz_famiglie'), 'art-codfam_fam-descriz_famiglie');
 }
开发者ID:eroncalli,项目名称:atig,代码行数:31,代码来源:articoli.php


示例4: DoBeforeCreate

 protected function DoBeforeCreate()
 {
     $this->dataset = new TableDataset(new PgConnectionFactory(), GetConnectionOptions(), '"public"."office"');
     $field = new IntegerField('id');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, true);
     $field = new StringField('title');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, false);
     $field = new IntegerField('num_positions');
     $this->dataset->AddField($field, false);
     $field = new StringField('responsibilities');
     $this->dataset->AddField($field, false);
     $field = new IntegerField('term_length_months');
     $this->dataset->AddField($field, false);
     $field = new StringField('filing_fee');
     $this->dataset->AddField($field, false);
     $field = new BooleanField('partisan');
     $this->dataset->AddField($field, false);
     $field = new StringField('age_requirements');
     $this->dataset->AddField($field, false);
     $field = new StringField('res_requirements');
     $this->dataset->AddField($field, false);
     $field = new StringField('prof_requirements');
     $this->dataset->AddField($field, false);
     $field = new IntegerField('salary');
     $this->dataset->AddField($field, false);
     $field = new StringField('notes');
     $this->dataset->AddField($field, false);
     $field = new IntegerField('office_rank');
     $this->dataset->AddField($field, false);
 }
开发者ID:blakeHelm,项目名称:BallotPath,代码行数:32,代码来源:public.office.php


示例5: DoBeforeCreate

 protected function DoBeforeCreate()
 {
     $this->dataset = new TableDataset(new MyConnectionFactory(), GetConnectionOptions(), '`act_ordenes`');
     $field = new IntegerField('idAct_Ordenes', null, null, true);
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, true);
     $field = new IntegerField('NumOrden');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, false);
     $field = new StringField('idAct_Movimiento');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, false);
     $field = new StringField('Fecha');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, false);
     $field = new StringField('Entrega');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, false);
     $field = new StringField('Recibe');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, false);
     $field = new StringField('Usuarios_idUsuarios');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, false);
     $field = new StringField('Origen');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, false);
     $field = new StringField('Destino');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, false);
     $field = new IntegerField('Cerrada');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, false);
 }
开发者ID:Kenovix,项目名称:san-miguel,代码行数:34,代码来源:act_ordenes.php


示例6: DoBeforeCreate

 protected function DoBeforeCreate()
 {
     $this->dataset = new TableDataset(new MyConnectionFactory(), GetConnectionOptions(), '`kardexmercancias`');
     $field = new IntegerField('idKardexMercancias', null, null, true);
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, true);
     $field = new StringField('Fecha');
     $this->dataset->AddField($field, false);
     $field = new StringField('Movimiento');
     $this->dataset->AddField($field, false);
     $field = new StringField('Detalle');
     $this->dataset->AddField($field, false);
     $field = new StringField('idDocumento');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, false);
     $field = new StringField('Cantidad');
     $this->dataset->AddField($field, false);
     $field = new StringField('ValorUnitario');
     $this->dataset->AddField($field, false);
     $field = new StringField('ValorTotal');
     $this->dataset->AddField($field, false);
     $field = new IntegerField('ProductosVenta_idProductosVenta');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, false);
 }
开发者ID:Kenovix,项目名称:san-miguel,代码行数:25,代码来源:kardexmercancias.php


示例7: DoBeforeCreate

 protected function DoBeforeCreate()
 {
     $selectQuery = 'SELECT DISTINCT 
           `task`.`assigned_to`,
           SUM(`task`.`hrs`) AS `total_hrs`,
           `staff`.`username`,`staff`.`staff_id`
         FROM
           `staff`,
           `task`
           
         WHERE
           `staff`.`staff_id` = `task`.`assigned_to`
         GROUP BY
             `staff`.`username`';
     $insertQuery = array();
     $updateQuery = array();
     $deleteQuery = array();
     $this->dataset = new QueryDataset(new MyConnectionFactory(), GetConnectionOptions(), $selectQuery, $insertQuery, $updateQuery, $deleteQuery, 'total allocated hours small');
     $field = new StringField('assigned_to');
     $this->dataset->AddField($field, false);
     $field = new StringField('total_hrs');
     $this->dataset->AddField($field, false);
     $field = new StringField('username');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, false);
     $field = new IntegerField('staff_id');
     if (!$this->GetSecurityInfo()->AdminGrant()) {
         $field->SetReadOnly(true, GetApplication()->GetCurrentUserId());
     }
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, true);
 }
开发者ID:CivicInfoBC,项目名称:workplan.gov_ver_1.19,代码行数:32,代码来源:total_allocated_hours_small.php


示例8: DoBeforeCreate

 protected function DoBeforeCreate()
 {
     $this->dataset = new TableDataset(new SqlSrvConnectionFactory(), GetConnectionOptions(), '[dbo].[AlterLog]');
     $field = new IntegerField('Id', null, null, true);
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, true);
     $field = new StringField('EventType');
     $this->dataset->AddField($field, false);
     $field = new StringField('ObjectName');
     $this->dataset->AddField($field, false);
     $field = new StringField('ObjectType');
     $this->dataset->AddField($field, false);
     $field = new StringField('TSQLCommand');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, false);
     $field = new DateTimeField('EventTime');
     $this->dataset->AddField($field, false);
     $field = new StringField('LoginName');
     $this->dataset->AddField($field, false);
     $field = new StringField('ServerName');
     $this->dataset->AddField($field, false);
     $field = new StringField('DatabaseName');
     $this->dataset->AddField($field, false);
     $field = new StringField('SchemaName');
     $this->dataset->AddField($field, false);
     $field = new StringField('HostName');
     $this->dataset->AddField($field, false);
     $field = new StringField('IPAddress');
     $this->dataset->AddField($field, false);
     $field = new StringField('ProgramName');
     $this->dataset->AddField($field, false);
     $field = new StringField('IPAddressClient');
     $this->dataset->AddField($field, false);
 }
开发者ID:jorgedison,项目名称:Audit-Database,代码行数:34,代码来源:Detalle+Objetos.php


示例9: DoBeforeCreate

 protected function DoBeforeCreate()
 {
     $this->dataset = new TableDataset(new MyPDOConnectionFactory(), GetConnectionOptions(), '`listino_voci`');
     $field = new IntegerField('id');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, false);
     $field = new StringField('ivo-codart');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, true);
     $field = new IntegerField('ivo-codvoc');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, true);
     $field = new IntegerField('ivo-przunit');
     $this->dataset->AddField($field, false);
     $field = new StringField('ivo-flagart');
     $this->dataset->AddField($field, false);
     $field = new StringField('ivo-flagsmu');
     $this->dataset->AddField($field, false);
     $field = new StringField('ivo-tiposmu');
     $this->dataset->AddField($field, false);
     $field = new DateTimeField('ivo-dataini');
     $this->dataset->AddField($field, false);
     $field = new DateTimeField('ivo-datafin');
     $this->dataset->AddField($field, false);
     $field = new DateTimeField('datains');
     $this->dataset->AddField($field, false);
     $field = new DateTimeField('datamod');
     $this->dataset->AddField($field, false);
 }
开发者ID:eroncalli,项目名称:atig,代码行数:29,代码来源:query_listino_voci.php


示例10: DoBeforeCreate

 protected function DoBeforeCreate()
 {
     $this->dataset = new TableDataset(new OracleConnectionFactory(), GetConnectionOptions(), '"GE"."webreport_style"');
     $field = new IntegerField('report_style_id');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, true);
     $field = new StringField('type');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, false);
     $field = new IntegerField('field');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, false);
     $field = new IntegerField('group');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, false);
     $field = new BlobField('style_str');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, false);
     $field = new IntegerField('uniq');
     $this->dataset->AddField($field, false);
     $field = new StringField('repname');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, false);
     $field = new StringField('styletype');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, false);
 }
开发者ID:kcallow,项目名称:MatchMe,代码行数:27,代码来源:GE.webreport_style.php


示例11: DoBeforeCreate

 protected function DoBeforeCreate()
 {
     $this->dataset = new TableDataset(new MySqlIConnectionFactory(), GetConnectionOptions(), '`objeto_refactorizacion`');
     $field = new IntegerField('id', null, null, true);
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, true);
     $field = new StringField('id_paquete');
     $this->dataset->AddField($field, false);
     $field = new StringField('ruta');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, false);
     $field = new StringField('nombre');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, false);
     $field = new StringField('tipo');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, false);
     $field = new StringField('aplicacion');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, false);
     $field = new StringField('nuevo');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, false);
     $field = new StringField('id_noconforme');
     $this->dataset->AddField($field, false);
 }
开发者ID:outsourcinggithub,项目名称:outsourcing,代码行数:26,代码来源:objeto_refactorizacion.php


示例12: DoBeforeCreate

 protected function DoBeforeCreate()
 {
     $this->dataset = new TableDataset(new MyConnectionFactory(), GetConnectionOptions(), '`taskview`');
     $field = new IntegerField('task_id');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, true);
     $field = new IntegerField('project_id');
     $this->dataset->AddField($field, true);
     $field = new StringField('assigned_to');
     $this->dataset->AddField($field, true);
     $field = new DateField('date_start');
     $this->dataset->AddField($field, true);
     $field = new DateField('date_end');
     $this->dataset->AddField($field, true);
     $field = new StringField('task_name');
     $this->dataset->AddField($field, true);
     $field = new StringField('notes');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, false);
     $field = new IntegerField('hrs');
     $this->dataset->AddField($field, true);
     $field = new StringField('wo');
     $this->dataset->AddField($field, true);
     $field = new IntegerField('staff_id');
     $this->dataset->AddField($field, true);
     $field = new StringField('Task');
     $this->dataset->AddField($field, false);
     $field = new StringField('Assigned');
     $this->dataset->AddField($field, true);
 }
开发者ID:BCDevExchange,项目名称:WORKPLAN,代码行数:30,代码来源:taskview.php


示例13: DoBeforeCreate

 protected function DoBeforeCreate()
 {
     $this->dataset = new TableDataset(new MyPDOConnectionFactory(), GetConnectionOptions(), '`voci_costo`');
     $field = new IntegerField('id', null, null, true);
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, true);
     $field = new IntegerField('voc-codvoce');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, false);
     $field = new StringField('voc-descriz');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, false);
     $field = new IntegerField('voc-semanual');
     $this->dataset->AddField($field, false);
     $field = new IntegerField('voc-formula');
     $this->dataset->AddField($field, false);
     $field = new StringField('voc-flagart');
     $this->dataset->AddField($field, false);
     $field = new IntegerField('voc-przunit');
     $this->dataset->AddField($field, false);
     $field = new DateTimeField('datains');
     $this->dataset->AddField($field, false);
     $field = new DateTimeField('datamod');
     $this->dataset->AddField($field, false);
     $this->dataset->AddLookupField('voc-formula', 'formule_calcolo', new IntegerField('codice'), new StringField('formula', 'voc-formula_formula', 'voc-formula_formula_formule_calcolo'), 'voc-formula_formula_formule_calcolo');
 }
开发者ID:eroncalli,项目名称:atig,代码行数:26,代码来源:voci_costo.php


示例14: DoBeforeCreate

 protected function DoBeforeCreate()
 {
     $this->dataset = new TableDataset(new MyConnectionFactory(), GetConnectionOptions(), '`empresa`');
     $field = new IntegerField('id', null, null, true);
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, true);
     $field = new StringField('habilitacion');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, false);
     $field = new StringField('nit');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, false);
     $field = new StringField('nombre');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, false);
     $field = new StringField('tipo');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, false);
     $field = new StringField('direccion');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, false);
     $field = new StringField('telefono');
     $this->dataset->AddField($field, false);
     $field = new StringField('depto');
     $this->dataset->AddField($field, false);
     $field = new StringField('mupio');
     $this->dataset->AddField($field, false);
 }
开发者ID:Kenovix,项目名称:san-miguel,代码行数:28,代码来源:empresa.php


示例15: DoBeforeCreate

 protected function DoBeforeCreate()
 {
     $this->dataset = new TableDataset(new OracleConnectionFactory(), GetConnectionOptions(), '"GE"."webreports"');
     $field = new IntegerField('rpt_id');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, true);
     $field = new StringField('rpt_name');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, false);
     $field = new StringField('rpt_title');
     $this->dataset->AddField($field, false);
     $field = new DateField('rpt_cdate');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, false);
     $field = new DateField('rpt_mdate');
     $this->dataset->AddField($field, false);
     $field = new BlobField('rpt_content');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, false);
     $field = new StringField('rpt_owner');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, false);
     $field = new StringField('rpt_status');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, false);
     $field = new StringField('rpt_type');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, false);
 }
开发者ID:kcallow,项目名称:MatchMe,代码行数:29,代码来源:GE.webreports.php


示例16: DoBeforeCreate

 protected function DoBeforeCreate()
 {
     $this->dataset = new TableDataset(new MyConnectionFactory(), GetConnectionOptions(), '`staff`');
     $field = new IntegerField('staff_id', null, null, true);
     if (!$this->GetSecurityInfo()->AdminGrant()) {
         $field->SetReadOnly(true, GetApplication()->GetCurrentUserId());
     }
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, true);
     $field = new StringField('username');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, false);
     $field = new StringField('email');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, false);
     $field = new StringField('picture');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, false);
     $field = new StringField('password');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, false);
     $field = new IntegerField('dept_id');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, false);
     $field = new StringField('position');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, false);
     $field = new StringField('emp_number');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, false);
 }
开发者ID:BCDevExchange,项目名称:WORKPLAN,代码行数:31,代码来源:staff.php


示例17: DoBeforeCreate

 protected function DoBeforeCreate()
 {
     $this->dataset = new TableDataset(new SqlSrvConnectionFactory(), GetConnectionOptions(), '[dbo].[procesosbd]');
     $field = new IntegerField('Process ID');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, true);
     $field = new StringField('HostName');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, true);
     $field = new StringField('User');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, true);
     $field = new StringField('Database');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, true);
     $field = new StringField('Query');
     $this->dataset->AddField($field, true);
     $field = new StringField('Status');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, true);
     $field = new IntegerField('Open Transactions');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, true);
     $field = new StringField('Command');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, true);
     $field = new StringField('ApplicatiON');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, true);
     $field = new IntegerField('Wait Time');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, true);
     $field = new StringField('Wait Type');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, true);
     $field = new IntegerField('CPU');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, true);
     $field = new IntegerField('Physical IO');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, true);
     $field = new IntegerField('Memory Usage');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, true);
     $field = new DateTimeField('Login Time');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, true);
     $field = new DateTimeField('Last Batch');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, true);
     $field = new IntegerField('Blocked By');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, true);
     $field = new StringField('Blocked By Query');
     $this->dataset->AddField($field, true);
     $field = new IntegerField('Blocking');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, true);
 }
开发者ID:jorgedison,项目名称:Audit-Database,代码行数:59,代码来源:Sesiones.php


示例18: DoBeforeCreate

 protected function DoBeforeCreate()
 {
     $selectQuery = 'SELECT task.task_name,
                       project.project_name,
                       timesheet.name,
                       timesheet.date,
                       timesheet.hours,
                       timesheet.staff_id,
                       pay_period.start_date,
                       pay_period.end_date,
                       pay_period.pay_period_number,
                       pay_period.YEAR,
                       staff.position,
                       staff.emp_number
         FROM timesheet
           LEFT JOIN task ON timesheet.task_id = task.task_id
           LEFT JOIN project ON task.project_id = project.project_id
           LEFT JOIN staff ON timesheet.staff_id = staff.staff_id
           LEFT JOIN pay_period ON timesheet.date BETWEEN pay_period.start_date AND pay_period.end_date';
     $insertQuery = array();
     $updateQuery = array();
     $deleteQuery = array();
     $this->dataset = new QueryDataset(new MyConnectionFactory(), GetConnectionOptions(), $selectQuery, $insertQuery, $updateQuery, $deleteQuery, 'View Pay Period');
     $field = new StringField('task_name');
     $this->dataset->AddField($field, false);
     $field = new StringField('project_name');
     $this->dataset->AddField($field, false);
     $field = new StringField('name');
     $this->dataset->AddField($field, false);
     $field = new DateField('date');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, true);
     $field = new StringField('hours');
     $this->dataset->AddField($field, true);
     $field = new IntegerField('staff_id');
     if (!$this->GetSecurityInfo()->AdminGrant()) {
         $field->SetReadOnly(true, GetApplication()->GetCurrentUserId());
     }
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, true);
     $field = new DateTimeField('start_date');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, true);
     $field = new DateTimeField('end_date');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, true);
     $field = new IntegerField('pay_period_number');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, true);
     $field = new IntegerField('YEAR');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, true);
     $field = new StringField('position');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, true);
     $field = new StringField('emp_number');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, true);
 }
开发者ID:BCDevExchange,项目名称:WORKPLAN,代码行数:59,代码来源:View_Pay_Period.php


示例19: DoBeforeCreate

 protected function DoBeforeCreate()
 {
     $this->dataset = new TableDataset(new MyPDOConnectionFactory(), GetConnectionOptions(), '`elenco_articoli_view`');
     $field = new StringField('art-codart');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, true);
     $field = new StringField('descrizione');
     $this->dataset->AddField($field, false);
 }
开发者ID:eroncalli,项目名称:atig,代码行数:9,代码来源:elenco_articoli_view.php


示例20: DoBeforeCreate

 protected function DoBeforeCreate()
 {
     $selectQuery = 'SELECT 
           `project`.`project_name`,
           `project`.`date_start` AS project_date_start,
           `project`.`date_end` AS project_date_end,
           `project`.`lead`,
           `project`.`year`,
           `project`.`progress`,
           `project`.`project_id`,
           `task`.`task_id`,
           `task`.`project_id` AS task_project_id,
           `task`.`assigned_to`,
           `task`.`date_start` AS task_date_start,
           `task`.`date_end` AS task_date_end,
           `task`.`task_name`,
           `task`.`staff_id`
         FROM
           `project`
           INNER JOIN `task` ON (`project`.`project_id` = `task`.`project_id`)';
     $insertQuery = array();
     $updateQuery = array();
     $deleteQuery = array();
     $this->dataset = new QueryDataset(new MyConnectionFactory(), GetConnectionOptions(), $selectQuery, $insertQuery, $updateQuery, $deleteQuery, 'project_timeline_detail');
     $field = new StringField('project_name');
     $this->dataset->AddField($field, false);
     $field = new DateField('project_date_start');
     $this->dataset->AddField($field, false);
     $field = new DateField('project_date_end');
     $this->dataset->AddField($field, false);
     $field = new StringField('lead');
     $this->dataset->AddField($field, false);
     $field = new StringField('year');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, false);
     $field = new StringField('progress');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, false);
     $field = new IntegerField('project_id');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, true);
     $field = new IntegerField('task_id');
     $field->SetIsNotNull(true);
     $this->dataset->AddField($field, true);
     $field = new IntegerField('task_project_id');
     $this->dataset->AddField($field, false);
     $field = new StringField('assigned_to');
     $this->dataset->AddField($field, false);
     $field = new DateField('task_date_start');
     $this->dataset->AddField($field, false);
     $field = new DateField('task_date_end');
     $this->dataset->AddField($field, false);
     $field = new StringField('task_name');
     $this->dataset->AddField($field, false);
     $field = new IntegerField('staff_id');
     $this->dataset->AddField($field, false);
 }
开发者ID:BCDevExchange,项目名称:WORKPLAN,代码行数:57,代码来源:project_timeline_detail.php



注:本文中的StringField类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP StringHelper类代码示例发布时间:2022-05-23
下一篇:
PHP String类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap