public function __construct() { parent::__construct(); $this->fdcModel = "RunTicketFdcValue"; $this->idColumn = 'ID'; $this->phaseColumn = 'FLOW_PHASE'; $this->valueModel = "RunTicketValue"; $this->keyColumns = [$this->idColumn, $this->phaseColumn, 'TANK_ID', 'OCCUR_DATE', 'TICKET_NO']; }
public function __construct() { parent::__construct(); $this->isApplyFormulaAfterSaving = true; $this->fdcModel = "EuTestDataFdcValue"; $this->idColumn = 'ID'; // $this->phaseColumn = config("constants.euFlowPhase"); $this->valueModel = "EuTestDataStdValue"; $this->theorModel = "EuTestDataValue"; $this->keyColumns = [$this->idColumn, 'EU_ID', 'EFFECTIVE_DATE']; }
public function __construct() { parent::__construct(); $this->isApplyFormulaAfterSaving = true; $this->fdcModel = "TankDataFdcValue"; $this->idColumn = config("constants.tankId"); $this->phaseColumn = config("constants.tankFlowPhase"); $this->valueModel = "TankDataValue"; $this->keyColumns = [$this->idColumn, $this->phaseColumn]; // $this->theorModel = "TankDataTheor"; }
public function __construct() { parent::__construct(); $this->isApplyFormulaAfterSaving = true; $this->fdcModel = "EnergyUnitDataFdcValue"; $this->idColumn = config("constants.euId"); $this->phaseColumn = config("constants.euFlowPhase"); $this->valueModel = "EnergyUnitDataValue"; $this->theorModel = "EnergyUnitDataTheor"; $this->keyColumns = [$this->idColumn, $this->phaseColumn]; $this->keyColumns[] = config("constants.eventType"); }
public function __construct() { parent::__construct(); $this->fdcModel = "QualityData"; $this->idColumn = config("constants.qualityId"); /* $this->phaseColumn = config("constants.flFlowPhase"); $this->valueModel = "FlowDataValue"; $this->theorModel = "FlowDataTheor"; */ // $this->isApplyFormulaAfterSaving = true; $this->keyColumns = [$this->idColumn, $this->phaseColumn]; }
public function getProperties($dcTable, $facility_id = false, $occur_date = null, $postData = null) { if ($dcTable == PdDocumentSetData::getTableName()) { $properties = collect([(object) ['data' => 'ID', 'title' => 'Action', 'width' => 50, 'INPUT_TYPE' => 3, 'DATA_METHOD' => 2, 'FIELD_ORDER' => 1], (object) ['data' => "NAME", 'title' => 'Report Name', 'width' => 150, 'INPUT_TYPE' => 1, 'DATA_METHOD' => 5, 'FIELD_ORDER' => 2]]); $uoms = []; $uoms[] = \App\Models\PdCodeOrginality::all(); $uoms[] = \App\Models\PdCodeNumber::all(); $selects = ['BaAddress' => \App\Models\BaAddress::all()]; $results = ['properties' => $properties, 'selects' => $selects, 'suoms' => $uoms]; return $results; } return parent::getProperties($dcTable, $facility_id, $occur_date, $postData); }
public function postRegister(Request $request) { $validator = $this->validator($request->all()); if ($validator->fails()) { $this->ThrowValidationException($request, $validator); } $user = $this->create($request->all()); //создаем код и записываем код $code = CodeController::generateCode(8); Code::create(['user_id' => $user->id, 'code' => $code]); //Генерируем ссылку и отправляем письмо на указанный адрес $url = url('/') . '/auth/activate?id=' . $user->id . '&code=' . $code; return redirect()->to($url); }
public function __construct() { parent::__construct(); $this->detailModel = "TerminalTimesheetData"; }
public function __construct() { parent::__construct(); $this->detailModel = "PdContractTemplateAttribute"; }
public function __construct() { parent::__construct(); $this->detailModel = "PdContractData"; }
public function __construct() { parent::__construct(); $this->extraDataSetColumns = ['TRANSIT_TYPE' => ['column' => 'PD_TRANSIT_CARRIER_ID', 'model' => 'PdTransitCarrier']]; }
public function __construct() { parent::__construct(); $this->extraDataSetColumns = ['TITLE' => ['column' => 'BA_ID', 'model' => 'BaAddress']]; }
public function __construct() { parent::__construct(); $this->extraDataSetColumns = ['TABLE_NAME' => ['column' => 'COLUMN_NAME', 'model' => 'CodeDeferCode2']]; }
public function change(Request $request) { $q = User::where('email_or_phone', $request->cur_email)->where('activated', 0)->update(['email_or_phone' => $request->new_email]); if ($q) { $code = CodeController::generateCode(5); Mail::send('emails.change', array('code' => $code), function ($m) use($request) { $m->to($request->new_email)->subject('Registration'); }); SMS::pretend('emails/sms', ['code' => $code], function ($sms) { $sms->to('+380678898544'); }); return "Email has been updated, check out for new code"; } }
public function __construct() { parent::__construct(); $this->detailModel = "PdVoyageDetail"; }
public function __construct() { parent::__construct(); }
public function __construct() { parent::__construct(); $this->extraDataSetColumns = ['DEFER_GROUP_TYPE' => ['column' => 'DEFER_TARGET', 'model' => 'DefermentGroup'], 'CODE1' => ['column' => 'CODE2', 'model' => 'CodeDeferCode2'], 'CODE2' => ['column' => 'CODE3', 'model' => 'CodeDeferCode3']]; $this->keyColumns = [$this->idColumn, $this->phaseColumn]; }