示例#1
0
 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'];
 }
示例#2
0
 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'];
 }
示例#3
0
 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";
 }
示例#4
0
 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");
 }
示例#5
0
 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];
 }
示例#6
0
 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);
 }
示例#7
0
 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);
 }
示例#8
0
 public function __construct()
 {
     parent::__construct();
     $this->detailModel = "TerminalTimesheetData";
 }
 public function __construct()
 {
     parent::__construct();
     $this->detailModel = "PdContractTemplateAttribute";
 }
示例#10
0
 public function __construct()
 {
     parent::__construct();
     $this->detailModel = "PdContractData";
 }
示例#11
0
 public function __construct()
 {
     parent::__construct();
     $this->extraDataSetColumns = ['TRANSIT_TYPE' => ['column' => 'PD_TRANSIT_CARRIER_ID', 'model' => 'PdTransitCarrier']];
 }
示例#12
0
 public function __construct()
 {
     parent::__construct();
     $this->extraDataSetColumns = ['TITLE' => ['column' => 'BA_ID', 'model' => 'BaAddress']];
 }
示例#13
0
 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";
     }
 }
示例#15
0
 public function __construct()
 {
     parent::__construct();
     $this->detailModel = "PdVoyageDetail";
 }
示例#16
0
 public function __construct()
 {
     parent::__construct();
 }
示例#17
0
 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];
 }