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


PHP Organization::setAllVar方法代码示例

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


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

示例1: IN

        if ($res) {
            $var_msg = $smarty->get_template_vars('MSG_STATUS_SENT_SUCC');
        } else {
            $var_msg = $smarty->get_template_vars('MSG_STATUS_SENT_ERR');
        }
    }
} else {
    $where = "AND iOrganizationID IN ({$val})";
    $arr = $orgObj->getDetails('*', $where);
    foreach ($arr as $k => $v) {
        if ($v['eStatus'] == 'Active' || $v['eStatus'] == 'Inactive') {
            $data['eStatus'] = 'Delete';
            $data['iModifiedByID'] = $sess_id;
            $data['eModifiedBy'] = $_SESSION['SESS_' . PRJ_CONST_PREFIX . '_USER_TYPE_SHORT'];
            $data['dModifiedDate'] = date('Y-m-d H:i:s');
            $orgObj->setAllVar($data);
            $where = "iOrganizationID IN (" . $v['iOrganizationID'] . ")";
            $res = $orgObj->updateData($data, $where);
            $data = $v;
            $data['eStatus'] = 'Delete';
            $data['iModifiedByID'] = $sess_id;
            $data['eModifiedBy'] = $_SESSION['SESS_' . PRJ_CONST_PREFIX . '_USER_TYPE_SHORT'];
            $data['dModifiedDate'] = date('Y-m-d H:i:s');
            $orgvrfObj->setAllVar($data);
            $res = $orgvrfObj->insert();
            $where = 'AND iOrganizationID = ' . $v['iOrganizationID'] . '';
            $orderby = ' iVerifiedID Desc';
            $vrfid = $orgvrfObj->getDetails('iVerifiedID', $where, $orderby);
            // ---------------------  ORGANIZATION DATA FETCHED ------------------------------------------//
            $cname = $v['vCompanyName'];
            $regno = $v['vCompanyRegNo'];
开发者ID:nstungxd,项目名称:F2CA5,代码行数:31,代码来源:aj_organizationlist_a.php

示例2: if

 $Data['dCreateFromIP'] = $_SERVER['REMOTE_ADDR'];
 // $vOrganizationCode = $generalobj->UniqueID("ORG",PRJ_DB_PREFIX."_organization_master","vOrganizationCode",$charlimit="10");
 $vOrganizationCode = $orgObj->getUniqueCode($Data['eOrganizationType']);
 // echo $vOrganizationCode; exit;
 $code = $Data['vOrganizationCode'] = $vOrganizationCode;
 //	  $vCompanyRegNo = $generalobj->UniqueID("",PRJ_DB_PREFIX."_organization_master","vCompanyRegNo",$charlimit="10");
 $regno = $Data['vCompanyRegNo'];
 // = $vCompanyRegNo;
 $compcode = $Data['vCompCode'];
 // if(count($arr)>0) {
 $Data['eStatus'] = "Need to Verify";
 /*} else {
 	 $Data['eStatus'] = "Active";
   }*/
 // prints($Data);exit;
 $orgObj->setAllVar($Data);
 $iOrganizationID = $res = $orgObj->insert();
 //INSERT THIS RECORD IN ORGANIZATION_MASTER_TOVERIFY TABLE
 $insID = $gdbobj->getMaxId(PRJ_DB_PREFIX . "_organization_master", 'iOrganizationID');
 $Data1 = $Data;
 $iOrganizationID = $Data1['iOrganizationID'] = $insID[0]['id'];
 $orgvrfObj->setAllVar($Data1);
 $res = $orgvrfObj->insert();
 /*	 if($res){
 		  $orgdtls = $orgObj->select($iOrganizationID);
 		  if($orgdtls[0]['eOrganizationType'] == 'Supplier'){
 				$opdt['vOrderStatusLevel'] = '';
 				$rs = $orgprefObj->updateData($opdt,"iOrganizationID=$iOrganizationID");
 		  } else if($orgdtls[0]['eOrganizationType'] == 'Buyer'){
 				$opdt['vInvoiceStatusLevel'] = '';
 				$rs = $orgprefObj->updateData($opdt,"iOrganizationID=$iOrganizationID");
开发者ID:nstungxd,项目名称:F2CA5,代码行数:31,代码来源:createorganization_a.php


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