当前位置: 首页>>代码示例>>PHP>>正文


PHP PdoDataAccess::InsertID方法代码示例

本文整理汇总了PHP中PdoDataAccess::InsertID方法的典型用法代码示例。如果您正苦于以下问题:PHP PdoDataAccess::InsertID方法的具体用法?PHP PdoDataAccess::InsertID怎么用?PHP PdoDataAccess::InsertID使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在PdoDataAccess的用法示例。


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

示例1: ADD

 function ADD()
 {
     if (parent::insert("management_extra_bylaw", $this) === false) {
         return false;
     }
     $this->bylaw_id = parent::InsertID();
     $daObj = new DataAudit();
     $daObj->ActionType = DataAudit::Action_add;
     $daObj->MainObjectID = PdoDataAccess::InsertID();
     $daObj->TableName = "management_extra_bylaw";
     $daObj->execute();
     return true;
 }
开发者ID:jafarkhani,项目名称:rtfund,代码行数:13,代码来源:management_extra_bylaw.class.php

示例2: Add

 function Add()
 {
     if (parent::insert("bases", $this) === false) {
         return false;
     }
     $this->RowID = parent::InsertID();
     $daObj = new DataAudit();
     $daObj->ActionType = DataAudit::Action_add;
     $daObj->MainObjectID = $this->RowID;
     $daObj->TableName = "bases";
     $daObj->execute();
     return true;
 }
开发者ID:jafarkhani,项目名称:rtfund,代码行数:13,代码来源:bases.class.php

示例3: Add

 function Add()
 {
     if (parent::insert("study_fields", $this) === false) {
         return false;
     }
     $this->sfid = parent::InsertID();
     $daObj = new DataAudit();
     $daObj->ActionType = DataAudit::Action_add;
     $daObj->MainObjectID = PdoDataAccess::InsertID();
     $daObj->TableName = "study_fields";
     $daObj->execute();
     return true;
 }
开发者ID:jafarkhani,项目名称:rtfund,代码行数:13,代码来源:study_fields.class.php

示例4: AddList

 function AddList()
 {
     $result = parent::insert("pay_get_lists", $this);
     if ($result === false) {
         return false;
     }
     $this->list_id = parent::InsertID();
     $daObj = new DataAudit();
     $daObj->ActionType = DataAudit::Action_add;
     $daObj->MainObjectID = $this->list_id;
     $daObj->TableName = "pay_get_lists";
     $daObj->execute();
     return true;
 }
开发者ID:jafarkhani,项目名称:rtfund,代码行数:14,代码来源:pay_get_lists.class.php

示例5: AddDocument

 function AddDocument()
 {
     $this->RegPersonID = $_SESSION["USER"]["PersonID"];
     if (!parent::insert("DMS_documents", $this)) {
         return false;
     }
     $this->DocumentID = parent::InsertID();
     $daObj = new DataAudit();
     $daObj->ActionType = DataAudit::Action_add;
     $daObj->MainObjectID = $this->DocumentID;
     $daObj->TableName = "DMS_documents";
     $daObj->execute();
     return true;
 }
开发者ID:jafarkhani,项目名称:rtfund,代码行数:14,代码来源:dms.class.php

示例6: Add

 function Add()
 {
     $this->sbid = manage_study_branch::LastID($this->sfid) + 1;
     if (parent::insert("study_branchs", $this) === false) {
         return false;
     }
     $this->sfid = parent::InsertID();
     $daObj = new DataAudit();
     $daObj->ActionType = DataAudit::Action_add;
     $daObj->MainObjectID = PdoDataAccess::InsertID();
     $daObj->TableName = "study_branchs";
     $daObj->execute();
     return true;
 }
开发者ID:jafarkhani,项目名称:rtfund,代码行数:14,代码来源:study_branch.class.php

示例7: AddSub

 function AddSub($DB = "")
 {
     $result = parent::insert($DB . "person_subtracts", $this);
     if ($result === false) {
         return false;
     }
     $this->subtract_id = parent::InsertID();
     $daObj = new DataAudit();
     $daObj->ActionType = DataAudit::Action_add;
     $daObj->MainObjectID = $this->subtract_id;
     $daObj->TableName = "person_subtracts";
     $daObj->execute();
     return true;
 }
开发者ID:jafarkhani,项目名称:rtfund,代码行数:14,代码来源:person_subtracts.class.php

示例8: AddTax

 function AddTax()
 {
     if (!$this->date_overlap()) {
         return false;
     }
     $result = parent::insert("HRM_tax_tables", $this);
     if ($result === false) {
         return false;
     }
     $this->tax_table_id = parent::InsertID();
     $daObj = new DataAudit();
     $daObj->ActionType = DataAudit::Action_add;
     $daObj->MainObjectID = $this->tax_table_id;
     $daObj->TableName = "HRM_tax_tables";
     $daObj->execute();
     return true;
 }
开发者ID:jafarkhani,项目名称:rtfund,代码行数:17,代码来源:tax_tables.class.php

示例9: AddLoan

 function AddLoan()
 {
     if (!parent::insert("LON_loans", $this)) {
         return false;
     }
     $this->LoanID = parent::InsertID();
     $blockObj = new ACC_blocks();
     $blockObj->BlockCode = $this->LoanID;
     $blockObj->BlockDesc = $this->LoanDesc;
     $blockObj->LevelID = "2";
     $blockObj->AddBlock();
     $this->BlockID = $blockObj->BlockID;
     $this->EditLoan();
     $daObj = new DataAudit();
     $daObj->ActionType = DataAudit::Action_add;
     $daObj->MainObjectID = $this->LoanID;
     $daObj->TableName = "LON_loans";
     $daObj->execute();
     return true;
 }
开发者ID:jafarkhani,项目名称:rtfund,代码行数:20,代码来源:loan.class.php

示例10: Add

 function Add()
 {
     $pdo = parent::getPdoObject();
     /*@var $pdo PDO*/
     $pdo->beginTransaction();
     $this->row_no = parent::GetLastID("HRM_person_dependent_supports", "row_no", "PersonID=:pid and master_row_no=:mrno", array(":pid" => $this->PersonID, ":mrno" => $this->master_row_no)) + 1;
     $result = parent::insert("HRM_person_dependent_supports", $this);
     if ($result === false) {
         $pdo->rollBack();
         return false;
     }
     $this->row_no = parent::InsertID();
     $daObj = new DataAudit();
     $daObj->ActionType = DataAudit::Action_add;
     $daObj->RelatedPersonID = $this->PersonID;
     $daObj->RelatedPersonType = 3;
     $daObj->MainObjectID = $this->row_no;
     $daObj->TableName = "HRM_person_dependent_supports";
     $daObj->execute();
     $pdo->commit();
     return true;
 }
开发者ID:jafarkhani,项目名称:rtfund,代码行数:22,代码来源:dependent_support.class.php

示例11: InsertCheque

 function InsertCheque($pdo = null)
 {
     if (parent::insert("ACC_ChequeBooks", $this, $pdo) === false) {
         return false;
     }
     $this->ChequeBookID = parent::InsertID($pdo);
     $daObj = new DataAudit();
     $daObj->ActionType = DataAudit::Action_add;
     $daObj->MainObjectID = $this->ChequeBookID;
     $daObj->TableName = "ACC_ChequeBooks";
     $daObj->execute($pdo);
     return true;
 }
开发者ID:jafarkhani,项目名称:rtfund,代码行数:13,代码来源:baseinfo.class.php

示例12: AddRow

 function AddRow($pdo = null)
 {
     if (!parent::insert("PLN_PlanSurvey", $this, $pdo)) {
         return false;
     }
     $this->RowID = parent::InsertID($pdo);
     $daObj = new DataAudit();
     $daObj->ActionType = DataAudit::Action_add;
     $daObj->MainObjectID = $this->RowID;
     $daObj->TableName = "PLN_PlanSurvey";
     $daObj->execute($pdo);
     return true;
 }
开发者ID:jafarkhani,项目名称:rtfund,代码行数:13,代码来源:plan.class.php

示例13: Add

 public function Add($pdo = null)
 {
     if (!parent::insert(static::TableName, $this, $pdo)) {
         ExceptionHandler::PushException(self::ERR_Add);
         return false;
     }
     $this->{static::TableKey} = parent::InsertID($pdo);
     $daObj = new DataAudit();
     $daObj->ActionType = DataAudit::Action_add;
     $daObj->MainObjectID = $this->{static::TableKey};
     $daObj->TableName = static::TableName;
     $daObj->execute();
     return true;
 }
开发者ID:jafarkhani,项目名称:rtfund,代码行数:14,代码来源:PDODataAccess.class.php

示例14: Add

 function Add()
 {
     if (empty($this->tempFlow)) {
         $this->tempFlow = 0;
     }
     if (parent::insert("person_subtract_flows", $this) === false) {
         return false;
     }
     $this->row_no = parent::InsertID();
     $daObj = new DataAudit();
     $daObj->ActionType = DataAudit::Action_add;
     $daObj->MainObjectID = $this->subtract_id;
     $daObj->SubObjectID = $this->row_no;
     $daObj->TableName = "person_subtract_flows";
     $daObj->execute();
     return true;
 }
开发者ID:jafarkhani,项目名称:rtfund,代码行数:17,代码来源:subtracts.class.php

示例15: AddPerson

 function AddPerson($staffObject, $pic = "")
 {
     $pdo = PdoDataAccess::getPdoObject();
     if ($pdo->beginTransaction()) {
         if ($this->military_from_date != NULL || $this->military_from_date != '0000-00-00') {
             $Vyear = 0;
             $Vmonth = $Vday = 0;
             $resDay = DateModules::GDateMinusGDate($this->military_to_date, $this->military_from_date);
             DateModules::day_to_ymd($resDay, $Vyear, $Vmonth, $Vday);
             $mm = $Vyear * 12 + $Vmonth;
             $dd = $Vday;
             $this->military_duration = $mm;
             $this->military_duration_day = $dd;
         }
         if (parent::insert("HRM_persons", $this, $pdo) === false) {
             parent::PushException(ER_PERSON_DONT_SAVE);
             $pdo->rollBack();
             return false;
         }
         $this->PersonID = parent::InsertID();
         $staffObject->PersonID = $this->PersonID;
         $staffObject->person_type = $this->person_type;
         $return = $staffObject->AddStaff($pdo);
         if (!$return) {
             parent::PushException(ER_PERSON_DONT_SAVE);
             $pdo->rollBack();
             return false;
         }
         if ($return) {
             $pdo->commit();
         }
         $daObj = new DataAudit();
         $daObj->ActionType = DataAudit::Action_add;
         $daObj->MainObjectID = $this->PersonID;
         $daObj->TableName = "HRM_persons";
         $daObj->execute();
         return true;
     } else {
         return false;
     }
 }
开发者ID:jafarkhani,项目名称:rtfund,代码行数:41,代码来源:person.class.php


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