/**
  * Updates a particular model.
  * If update is successful, the browser will be redirected to the 'view' page.
  * @param integer $id the ID of the model to be updated
  */
 public function actionUpdate()
 {
     parent::actionUpdate();
     $parentmatgroup = new Materialgroup('searchwstatus');
     $parentmatgroup->unsetAttributes();
     // clear any default values
     if (isset($_GET['Parentmatgroup'])) {
         $parentmatgroup->attributes = $_GET['Parentmatgroup'];
     }
     $materialtype = new Materialtype('searchwstatus');
     $materialtype->unsetAttributes();
     // clear any default values
     if (isset($_GET['Materialtype'])) {
         $materialtype->attributes = $_GET['Materialtype'];
     }
     $id = $_POST['id'];
     $model = $this->loadModel($id[0]);
     if ($model != null) {
         if ($this->CheckDataLock($this->menuname, $id[0]) == false) {
             $this->InsertLock($this->menuname, $id[0]);
             echo CJSON::encode(array('status' => 'success', 'materialgroupid' => $model->materialgroupid, 'materialgroupcode' => $model->materialgroupcode, 'description' => $model->description, 'parentmatgroupid' => $model->parentmatgroupid, 'parentmatgroupcode' => $model->parentmatgroup !== null ? $model->parentmatgroup->materialgroupcode : "", 'materialtypeid' => $model->materialtypeid, 'materialtypename' => $model->materialtype !== null ? $model->materialtype->description : "", 'recordstatus' => $model->recordstatus, 'div' => $this->renderPartial('_form', array('model' => $model, 'parentmatgroup' => $parentmatgroup, 'materialtype' => $materialtype), true)));
             Yii::app()->end();
         }
     }
 }
 /**
  * Updates a particular model.
  * If update is successful, the browser will be redirected to the 'view' page.
  * @param integer $id the ID of the model to be updated
  */
 public function actionUpdate()
 {
     parent::actionUpdate();
     $id = $_POST['id'];
     $model = $this->loadModel($id[0]);
     if (Yii::app()->request->isAjaxRequest) {
         echo CJSON::encode(array('status' => 'success', 'absstatusid' => $model->absstatusid, 'shortstat' => $model->shortstat, 'longstat' => $model->longstat, 'isin' => $model->isin, 'priority' => $model->priority, 'recordstatus' => $model->recordstatus, 'div' => $this->renderPartial('_form', array('model' => $model), true)));
         Yii::app()->end();
     }
 }
 /**
  * Updates a particular model.
  * If update is successful, the browser will be redirected to the 'view' page.
  * @param integer $id the ID of the model to be updated
  */
 public function actionUpdate()
 {
     parent::actionUpdate();
     $id = $_POST['id'];
     $model = $this->loadModel($id[0]);
     $this->lookupdata();
     if (Yii::app()->request->isAjaxRequest) {
         echo CJSON::encode(array('status' => 'success', 'userfavid' => $model->userfavid, 'useraccessid' => $model->useraccessid, 'realname' => $model->useraccess->realname, 'menuaccessid' => $model->menuaccessid, 'menuname' => $model->menuaccess->menuname, 'div' => $this->renderPartial('_form', array('model' => $model, 'menuaccess' => $this->menuaccess, 'useraccess' => $this->useraccess), true)));
         Yii::app()->end();
     }
 }
 /**
  * Updates a particular model.
  * If update is successful, the browser will be redirected to the 'view' page.
  * @param integer $id the ID of the model to be updated
  */
 public function actionUpdate()
 {
     parent::actionUpdate();
     $this->lookupdata();
     $id = $_POST['id'];
     $model = $this->loadModel($id[0]);
     if (Yii::app()->request->isAjaxRequest) {
         echo CJSON::encode(array('status' => 'success', 'giheaderid' => $model->giheaderid, 'gino' => $model->gino, 'gidate' => date(Yii::app()->params['dateviewfromdb'], strtotime($model->gidate)), 'postdate' => date(Yii::app()->params['dateviewfromdb'], strtotime($model->postdate)), 'soheaderid' => $model->soheaderid, 'sono' => $model->soheader !== null ? $model->soheader->sono : "", 'deliveryadviceid' => $model->deliveryadviceid, 'dano' => $model->deliveryadvice !== null ? $model->deliveryadvice->dano : "", 'location' => $model->location, 'div' => $this->renderPartial('_form', array('model' => $model, 'gidetail' => $this->gidetail), true)));
         Yii::app()->end();
     }
 }
 /**
  * Updates a particular model.
  * If update is successful, the browser will be redirected to the 'view' page.
  * @param integer $id the ID of the model to be updated
  */
 public function actionUpdate()
 {
     parent::actionUpdate();
     $this->lookupdata();
     $id = $_POST['id'];
     $model = $this->loadModel($id[0]);
     //$this->performAjaxValidation($model);
     if (Yii::app()->request->isAjaxRequest) {
         echo CJSON::encode(array('status' => 'success', 'onleavetypeid' => $model->onleavetypeid, 'onleavename' => $model->onleavename, 'cutimax' => $model->cutimax, 'cutistart' => $model->cutistart, 'snroid' => $model->snroid, 'description' => $model->snro->description, 'absstatusid' => $model->absstatusid, 'shortstat' => $model->absstatus->shortstat, 'recordstatus' => $model->recordstatus, 'div' => $this->renderPartial('_form', array('model' => $model, 'snro' => $this->snro, 'absstatus' => $this->absstatus), true)));
         Yii::app()->end();
     }
 }
 /**
  * Updates a particular model.
  * If update is successful, the browser will be redirected to the 'view' page.
  * @param integer $id the ID of the model to be updated
  */
 public function actionUpdate()
 {
     parent::actionUpdate();
     $id = $_POST['id'];
     $model = $this->loadModel($id[0]);
     if ($model != null) {
         if ($this->CheckDataLock($this->menuname, $id[0]) == false) {
             $this->InsertLock($this->menuname, $id[0]);
             echo CJSON::encode(array('status' => 'success', 'useraccessid' => $model->useraccessid, 'username' => $model->username, 'password' => $model->password, 'realname' => $model->realname, 'email' => $model->email, 'phoneno' => $model->phoneno, 'languageid' => $model->languageid, 'languagename' => $model->language !== null ? $model->language->languagename : "", 'recordstatus' => $model->recordstatus, 'div' => $this->renderPartial('_form', array('model' => $model), true)));
             Yii::app()->end();
         }
     }
 }
 /**
  * Updates a particular model.
  * If update is successful, the browser will be redirected to the 'view' page.
  * @param integer $id the ID of the model to be updated
  */
 public function actionUpdate()
 {
     parent::actionUpdate();
     $id = $_POST['id'];
     $model = $this->loadModel($id[0]);
     if ($model != null) {
         if ($this->CheckDataLock($this->menuname, $id[0]) == false) {
             $this->InsertLock($this->menuname, $id[0]);
             echo CJSON::encode(array('status' => 'success', 'usergroupid' => $model->usergroupid, 'useraccessid' => $model->useraccessid, 'username' => $model->useraccess->username, 'groupaccessid' => $model->groupaccessid, 'groupname' => $model->groupaccess->groupname, 'recordstatus' => $model->recordstatus, 'div' => $this->renderPartial('_form', array('model' => $model, 'useraccess' => $this->useraccess, 'groupaccess' => $this->groupaccess), true)));
             Yii::app()->end();
         }
     }
 }
 /**
  * Updates a particular model.
  * If update is successful, the browser will be redirected to the 'view' page.
  * @param integer $id the ID of the model to be updated
  */
 public function actionUpdate()
 {
     parent::actionUpdate();
     $id = $_POST['id'];
     $model = $this->loadModel($id[0]);
     if ($model != null) {
         if ($this->CheckDataLock($this->menuname, $id[0]) == false) {
             $this->InsertLock($this->menuname, $id[0]);
             echo CJSON::encode(array('status' => 'success', 'addressbookid' => $model->addressbookid, 'fullname' => $model->fullname, 'iscustomer' => $model->iscustomer, 'isemployee' => $model->isemployee, 'isapplicant' => $model->isapplicant, 'isvendor' => $model->isvendor, 'isinsurance' => $model->isinsurance, 'isbank' => $model->isbank, 'ishospital' => $model->ishospital, 'iscatering' => $model->iscatering, 'isstudent' => $model->isstudent, 'recordstatus' => $model->recordstatus, 'taxno' => $model->taxno, 'abno' => $model->abno, 'accpiutangid' => $model->accpiutangid, 'acchutangid' => $model->acchutangid, 'div' => $this->renderPartial('_form', array('model' => $model), true)));
             Yii::app()->end();
         }
     }
 }
 /**
  * Updates a particular model.
  * If update is successful, the browser will be redirected to the 'view' page.
  * @param integer $id the ID of the model to be updated
  */
 public function actionUpdate()
 {
     parent::actionUpdate();
     $id = $_POST['id'];
     $model = $this->loadModel($id[0]);
     if ($model != null) {
         if ($this->CheckDataLock($this->menuname, $id[0]) == false) {
             $this->InsertLock($this->menuname, $id[0]);
             echo CJSON::encode(array('status' => 'success', 'snrodid' => $model->snrodid, 'snroid' => $model->snroid, 'curdd' => $model->curdd, 'curmm' => $model->curmm, 'curyy' => $model->curyy, 'curvalue' => $model->curvalue, 'div' => $this->renderPartial('_form', array('model' => $model), true)));
             Yii::app()->end();
         }
     }
 }
 /**
  * Updates a particular model.
  * If update is successful, the browser will be redirected to the 'view' page.
  * @param integer $id the ID of the model to be updated
  */
 public function actionUpdate()
 {
     parent::actionUpdate();
     $id = $_POST['id'];
     $model = $this->loadModel($id[0]);
     if ($model != null) {
         if ($this->CheckDataLock($this->menuname, $id[0]) == false) {
             $this->InsertLock($this->menuname, $id[0]);
             echo CJSON::encode(array('status' => 'success', 'taxid' => $model->taxid, 'taxcode' => $model->taxcode, 'taxvalue' => $model->taxvalue, 'description' => $model->description, 'recordstatus' => $model->recordstatus, 'div' => $this->renderPartial('_form', array('model' => $model), true)));
             Yii::app()->end();
         }
     }
 }
 /**
  * Updates a particular model.
  * If update is successful, the browser will be redirected to the 'view' page.
  * @param integer $id the ID of the model to be updated
  */
 public function actionUpdate()
 {
     parent::actionUpdate();
     $id = $_POST['id'];
     $model = $this->loadModel($id[0]);
     if ($model != null) {
         if ($this->CheckDataLock($this->menuname, $id[0]) == false) {
             $this->InsertLock($this->menuname, $id[0]);
             echo CJSON::encode(array('status' => 'success', 'wfstatusid' => $model->wfstatusid, 'workflowid' => $model->workflowid, 'wfname' => $model->workflow !== null ? $model->workflow->wfname : "", 'wfstatusname' => $model->wfstatusname, 'wfstat' => $model->wfstat, 'div' => $this->renderPartial('_form', array('model' => $model), true)));
             Yii::app()->end();
         }
     }
 }
 /**
  * Updates a particular model.
  * If update is successful, the browser will be redirected to the 'view' page.
  * @param integer $id the ID of the model to be updated
  */
 public function actionUpdate()
 {
     parent::actionUpdate();
     $id = $_POST['id'];
     $model = $this->loadModel($id[0]);
     if ($model != null) {
         if ($this->CheckDataLock($this->menuname, $id[0]) == false) {
             $this->InsertLock($this->menuname, $id[0]);
             echo CJSON::encode(array('status' => 'success', 'subdistrictid' => $model->subdistrictid, 'cityid' => $model->cityid, 'cityname' => $model->city !== null ? $model->city->cityname : "", 'subdistrictname' => $model->subdistrictname, 'zipcode' => $model->zipcode, 'recordstatus' => $model->recordstatus, 'div' => $this->renderPartial('_form', array('model' => $model), true)));
             Yii::app()->end();
         }
     }
 }
 /**
  * Updates a particular model.
  * If update is successful, the browser will be redirected to the 'view' page.
  * @param integer $id the ID of the model to be updated
  */
 public function actionUpdate()
 {
     parent::actionUpdate();
     $id = $_POST['id'];
     $model = $this->loadModel($id[0]);
     if ($model != null) {
         if ($this->CheckDataLock($this->menuname, $id[0]) == false) {
             $this->InsertLock($this->menuname, $id[0]);
             echo CJSON::encode(array('status' => 'success', 'accperiodid' => $model->accperiodid, 'period' => date(Yii::app()->params['dateviewfromdb'], strtotime($model->period)), 'recordstatus' => $model->recordstatus, 'div' => $this->renderPartial('_form', array('model' => $model), true)));
             Yii::app()->end();
         }
     }
 }
 /**
  * Updates a particular model.
  * If update is successful, the browser will be redirected to the 'view' page.
  * @param integer $id the ID of the model to be updated
  */
 public function actionUpdate()
 {
     parent::actionUpdate();
     $this->lookupdata();
     $id = $_POST['id'];
     $model = $this->loadModel($id[0]);
     if ($model != null) {
         if ($this->CheckDataLock($this->menuname, $id[0]) == false) {
             $this->InsertLock($this->menuname, $id[0]);
             echo CJSON::encode(array('status' => 'success', 'employeetypeid' => $model->employeetypeid, 'employeetypename' => $model->employeetypename, 'snroid' => $model->snroid, 'snroname' => $model->snro->description, 'sicksnroid' => $model->sicksnroid, 'sicksnroname' => $model->sicksnro->description, 'sickstatusid' => $model->sickstatusid, 'sickstatusname' => $model->sickstatus->shortstat, 'recordstatus' => $model->recordstatus, 'div' => $this->renderPartial('_form', array('model' => $model, 'snro' => $this->snro, 'sicksnro' => $this->sicksnro, 'sickstatus' => $this->sickstatus), true)));
             Yii::app()->end();
         }
     }
 }
 /**
  * Updates a particular model.
  * If update is successful, the browser will be redirected to the 'view' page.
  * @param integer $id the ID of the model to be updated
  */
 public function actionUpdate()
 {
     parent::actionUpdate();
     $this->lookupdata();
     $id = $_POST['id'];
     $model = $this->loadModel($id[0]);
     if ($model != null) {
         if ($this->CheckDataLock($this->menuname, $id[0]) == false) {
             $this->InsertLock($this->menuname, $id[0]);
             echo CJSON::encode(array('status' => 'success', 'absruleid' => $model->absruleid, 'absscheduleid' => $model->absscheduleid, 'absschedulename' => $model->absschedule !== null ? $model->absschedule->absschedulename : "", 'difftimein' => $model->difftimein, 'difftimeout' => $model->difftimeout, 'absstatusid' => $model->absstatus !== null ? $model->absstatus->absstatusid : "", 'shortstat' => $model->absstatus !== null ? $model->absstatus->shortstat : "", 'recordstatus' => $model->recordstatus, 'div' => $this->renderPartial('_form', array('model' => $model, 'absschedule' => $this->absschedule, 'absstatus' => $this->absstatus), true)));
             Yii::app()->end();
         }
     }
 }
 /**
  * Updates a particular model.
  * If update is successful, the browser will be redirected to the 'view' page.
  * @param integer $id the ID of the model to be updated
  */
 public function actionUpdate()
 {
     parent::actionUpdate();
     $this->lookupdata();
     $id = $_POST['id'];
     $model = $this->loadModel($id[0]);
     if ($model != null) {
         if ($this->CheckDataLock($this->menuname, $id[0]) == false) {
             $this->InsertLock($this->menuname, $id[0]);
             echo CJSON::encode(array('status' => 'success', 'soheaderid' => $model->soheaderid, 'sodate' => date(Yii::app()->params['dateviewfromdb'], strtotime($model->sodate)), 'addressbookid' => $model->addressbookid, 'fullname' => $model->customer !== null ? $model->customer->fullname : "", 'paymentmethodid' => $model->paymentmethodid, 'paycode' => $model->paymentmethod !== null ? $model->paymentmethod->paycode : "", 'headernote' => $model->headernote, 'recordstatus' => $model->recordstatus, 'div' => $this->renderPartial('_form', array('model' => $model, 'sodetail' => $this->sodetail), true)));
             Yii::app()->end();
         }
     }
 }
 /**
  * Updates a particular model.
  * If update is successful, the browser will be redirected to the 'view' page.
  * @param integer $id the ID of the model to be updated
  */
 public function actionUpdate()
 {
     parent::actionUpdate();
     $this->lookupdata();
     $id = $_POST['id'];
     $model = $this->loadModel($id[0]);
     if ($model != null) {
         if ($this->CheckDataLock($this->menuname, $id[0]) == false) {
             $this->InsertLock($this->menuname, $id[0]);
             echo CJSON::encode(array('status' => 'success', 'jobsid' => $model->jobsid, 'orgstructureid' => $model->orgstructureid, 'structurename' => $model->orgstructure !== null ? $model->orgstructure->structurename : "", 'positionid' => $model->positionid, 'positionname' => $model->position !== null ? $model->position->positionname : "", 'jobdesc' => $model->jobdesc, 'qualification' => $model->qualification, 'recordstatus' => $model->recordstatus, 'div' => $this->renderPartial('_form', array('model' => $model, 'orgstructure' => $this->orgstructure, 'position' => $this->position), true)));
             Yii::app()->end();
         }
     }
 }
 /**
  * Updates a particular model.
  * If update is successful, the browser will be redirected to the 'view' page.
  * @param integer $id the ID of the model to be updated
  */
 public function actionUpdate()
 {
     parent::actionUpdate();
     $id = $_POST['id'];
     $model = $this->loadModel($id[0]);
     $this->lookupdata();
     if ($model != null) {
         if ($this->CheckDataLock($this->menuname, $id[0]) == false) {
             $this->InsertLock($this->menuname, $id[0]);
             echo CJSON::encode(array('status' => 'success', 'groupmenuid' => $model->groupmenuid, 'groupaccessid' => $model->groupaccessid, 'groupname' => $model->groupaccess->groupname, 'menuaccessid' => $model->menuaccessid, 'menuname' => $model->menuaccess->menuname, 'isread' => $model->isread, 'iswrite' => $model->iswrite, 'ispost' => $model->ispost, 'isreject' => $model->isreject, 'isupload' => $model->isupload, 'isdownload' => $model->isdownload, 'div' => $this->renderPartial('_form', array('model' => $model, 'groupaccess' => $this->groupaccess, 'menuaccess' => $this->menuaccess), true)));
             Yii::app()->end();
         }
     }
 }
 /**
  * Updates a particular model.
  * If update is successful, the browser will be redirected to the 'view' page.
  * @param integer $id the ID of the model to be updated
  */
 public function actionUpdate()
 {
     parent::actionUpdate();
     $this->lookupdata();
     $id = $_POST['id'];
     $model = $this->loadModel($id[0]);
     if ($model != null) {
         if ($this->CheckDataLock($this->menuname, $id[0]) == false) {
             $this->InsertLock($this->menuname, $id[0]);
             echo CJSON::encode(array('status' => 'success', 'genjournalid' => $model->genjournalid, 'referenceno' => $model->referenceno, 'journaldate' => date(Yii::app()->params['dateviewfromdb'], strtotime($model->journaldate)), 'journalnote' => $model->journalnote, 'postdate' => date(Yii::app()->params['dateviewfromdb'], strtotime($model->postdate)), 'recordstatus' => $model->recordstatus, 'div' => $this->renderPartial('_form', array('model' => $model, 'journaldetail' => $this->journaldetail), true)));
             Yii::app()->end();
         }
     }
 }
 /**
  * Updates a particular model.
  * If update is successful, the browser will be redirected to the 'view' page.
  * @param integer $id the ID of the model to be updated
  */
 public function actionUpdate()
 {
     parent::actionUpdate();
     $this->lookupdata();
     $id = $_POST['id'];
     $model = $this->loadModel($id[0]);
     if ($model != null) {
         if ($this->CheckDataLock($this->menuname, $id[0]) == false) {
             $this->InsertLock($this->menuname, $id[0]);
             echo CJSON::encode(array('status' => 'success', 'wfgroupid' => $model->wfgroupid, 'groupaccessid' => $model->groupaccessid, 'groupname' => $model->groupaccess !== null ? $model->groupaccess->groupname : "", 'workflowid' => $model->workflowid, 'wfdesc' => $model->workflow->wfdesc, 'wfbefstat' => $model->wfbefstat, 'wfrecstat' => $model->wfrecstat, 'recordstatus' => $model->recordstatus, 'div' => $this->renderPartial('_form', array('model' => $model, 'workflow' => $this->workflow, 'groupaccess' => $this->groupaccess), true)));
             Yii::app()->end();
         }
     }
 }
 /**
  * Updates a particular model.
  * If update is successful, the browser will be redirected to the 'view' page.
  * @param integer $id the ID of the model to be updated
  */
 public function actionUpdate()
 {
     parent::actionUpdate();
     $this->lookupdata();
     $id = $_POST['id'];
     $model = $this->loadModel($id[0]);
     if ($model != null) {
         if ($this->CheckDataLock($this->menuname, $id[0]) == false) {
             $this->InsertLock($this->menuname, $id[0]);
             echo CJSON::encode(array('status' => 'success', 'employeescheduleid' => $model->employeescheduleid, 'employeeid' => $model->employeeid, 'fullname' => $model->employee->fullname, 'month' => $model->month, 'year' => $model->year, 'd1' => $model->d1, 'd1_name' => $model->d100 !== null ? $model->d100->absschedulename : "", 'd2' => $model->d2, 'd2_name' => $model->d200 !== null ? $model->d200->absschedulename : "", 'd3' => $model->d3, 'd3_name' => $model->d300 !== null ? $model->d300->absschedulename : "", 'd4' => $model->d4, 'd4_name' => $model->d400 !== null ? $model->d400->absschedulename : "", 'd5' => $model->d5, 'd5_name' => $model->d500 !== null ? $model->d500->absschedulename : "", 'd6' => $model->d6, 'd6_name' => $model->d600 !== null ? $model->d600->absschedulename : "", 'd7' => $model->d7, 'd7_name' => $model->d700 !== null ? $model->d700->absschedulename : "", 'd8' => $model->d8, 'd8_name' => $model->d800 !== null ? $model->d800->absschedulename : "", 'd9' => $model->d9, 'd9_name' => $model->d900 !== null ? $model->d900->absschedulename : "", 'd10' => $model->d10, 'd10_name' => $model->d1000 !== null ? $model->d1000->absschedulename : "", 'd11' => $model->d11, 'd11_name' => $model->d1100 !== null ? $model->d1100->absschedulename : "", 'd12' => $model->d12, 'd12_name' => $model->d1200 !== null ? $model->d1200->absschedulename : "", 'd13' => $model->d13, 'd13_name' => $model->d1300 !== null ? $model->d1300->absschedulename : "", 'd14' => $model->d14, 'd14_name' => $model->d1400 !== null ? $model->d1400->absschedulename : "", 'd15' => $model->d15, 'd15_name' => $model->d1500 !== null ? $model->d1500->absschedulename : "", 'd16' => $model->d16, 'd16_name' => $model->d1600 !== null ? $model->d1600->absschedulename : "", 'd17' => $model->d17, 'd17_name' => $model->d1700 !== null ? $model->d1700->absschedulename : "", 'd18' => $model->d18, 'd18_name' => $model->d1800 !== null ? $model->d1800->absschedulename : "", 'd19' => $model->d19, 'd19_name' => $model->d1900 !== null ? $model->d1900->absschedulename : "", 'd20' => $model->d20, 'd20_name' => $model->d2000 !== null ? $model->d2000->absschedulename : "", 'd21' => $model->d21, 'd21_name' => $model->d2100 !== null ? $model->d2100->absschedulename : "", 'd22' => $model->d22, 'd22_name' => $model->d2200 !== null ? $model->d2200->absschedulename : "", 'd23' => $model->d23, 'd23_name' => $model->d2300 !== null ? $model->d2300->absschedulename : "", 'd24' => $model->d24, 'd24_name' => $model->d2400 !== null ? $model->d2400->absschedulename : "", 'd25' => $model->d25, 'd25_name' => $model->d2500 !== null ? $model->d2500->absschedulename : "", 'd26' => $model->d26, 'd26_name' => $model->d2600 !== null ? $model->d2600->absschedulename : "", 'd27' => $model->d27, 'd27_name' => $model->d2700 !== null ? $model->d2700->absschedulename : "", 'd28' => $model->d28, 'd28_name' => $model->d2800 !== null ? $model->d2800->absschedulename : "", 'd29' => $model->d29, 'd29_name' => $model->d2900 !== null ? $model->d2900->absschedulename : "", 'd30' => $model->d30, 'd30_name' => $model->d3000 !== null ? $model->d3000->absschedulename : "", 'd31' => $model->d31, 'd31_name' => $model->d3100 !== null ? $model->d3100->absschedulename : "", 'recordstatus' => $model->employee->addressbook->recordstatus, 'div' => $this->renderPartial('_form', array('model' => $model, 'employee' => $this->employee), true)));
             Yii::app()->end();
         }
     }
 }
 /**
  * Updates a particular model.
  * If update is successful, the browser will be redirected to the 'view' page.
  * @param integer $id the ID of the model to be updated
  */
 public function actionUpdate()
 {
     parent::actionUpdate();
     $this->lookupdata();
     $id = $_POST['id'];
     $model = $this->loadModel($id[0]);
     if ($model != null) {
         if ($this->CheckDataLock($this->menuname, $id[0]) == false) {
             $this->InsertLock($this->menuname, $id[0]);
             echo CJSON::encode(array('status' => 'success', 'accounttypeid' => $model->accounttypeid, 'accounttypename' => $model->accounttypename, 'parentaccounttypeid' => $model->parentaccounttypeid, 'parentaccounttypename' => $model->parentaccounttype !== null ? $model->parentaccounttype->accounttypename : "", 'recordstatus' => $model->recordstatus, 'div' => $this->renderPartial('_form', array('model' => $model, 'parentaccounttype' => $this->parentaccounttype), true)));
             Yii::app()->end();
         }
     }
 }
 /**
  * Updates a particular model.
  * If update is successful, the browser will be redirected to the 'view' page.
  * @param integer $id the ID of the model to be updated
  */
 public function actionUpdate()
 {
     parent::actionUpdate();
     $this->lookupdata();
     $id = $_POST['id'];
     $model = $this->loadModel($id[0]);
     // Uncomment the following line if AJAX validation is needed
     if ($model != null) {
         if ($this->CheckDataLock($this->menuname, $id[0]) == false) {
             $this->InsertLock($this->menuname, $id[0]);
             echo CJSON::encode(array('status' => 'success', 'prheaderid' => $model->prheaderid, 'prdate' => date(Yii::app()->params['dateviewfromdb'], strtotime($model->prdate)), 'headernote' => $model->headernote, 'deliveryadviceid' => $model->deliveryadviceid, 'dano' => $model->deliveryadvice !== null ? $model->deliveryadvice->dano : "", 'slocid' => $model->slocid, 'sloccode' => $model->sloc !== null ? $model->sloc->description : "", 'div' => $this->renderPartial('_form', array('model' => $model, 'prmaterial' => $this->prmaterial), true)));
             Yii::app()->end();
         }
     }
 }
 /**
  * Updates a particular model.
  * If update is successful, the browser will be redirected to the 'view' page.
  * @param integer $id the ID of the model to be updated
  */
 public function actionUpdate()
 {
     parent::actionUpdate();
     // Uncomment the following line if AJAX validation is needed
     // $this->performAjaxValidation($model);
     $id = $_POST['id'];
     $model = $this->loadModel($id[0]);
     if ($model != null) {
         if ($this->CheckDataLock($this->menuname, $id[0]) == false) {
             $this->InsertLock($this->menuname, $id[0]);
             echo CJSON::encode(array('status' => 'success', 'sexid' => $model->sexid, 'sexname' => $model->sexname, 'recordstatus' => $model->recordstatus, 'div' => $this->renderPartial('_form', array('model' => $model), true)));
             Yii::app()->end();
         }
     }
 }
 /**
  * Updates a particular model.
  * If update is successful, the browser will be redirected to the 'view' page.
  * @param integer $id the ID of the model to be updated
  */
 public function actionUpdate()
 {
     parent::actionUpdate();
     $id = $_POST['id'];
     $model = $this->loadModel($id[0]);
     if ($model != null) {
         if ($this->CheckDataLock($this->menuname, $id[0]) == false) {
             $this->InsertLock($this->menuname, $id[0]);
             if (Yii::app()->request->isAjaxRequest) {
                 echo CJSON::encode(array('status' => 'success', 'positionid' => $model->positionid, 'positionname' => $model->positionname, 'recordstatus' => $model->recordstatus, 'div' => $this->renderPartial('_form', array('model' => $model), true)));
                 Yii::app()->end();
             }
         }
     }
 }
 /**
  * Updates a particular model.
  * If update is successful, the browser will be redirected to the 'view' page.
  * @param integer $id the ID of the model to be updated
  */
 public function actionUpdate()
 {
     parent::actionUpdate();
     $grdetail = new Grdetail('search');
     $grdetail->unsetAttributes();
     // clear any default values
     if (isset($_GET['Grdetail'])) {
         $grdetail->attributes = $_GET['Grdetail'];
     }
     $id = $_POST['id'];
     $model = $this->loadModel($id[0]);
     // Uncomment the following line if AJAX validation is needed
     if (Yii::app()->request->isAjaxRequest) {
         echo CJSON::encode(array('status' => 'success', 'grheaderid' => $model->grheaderid, 'grno' => $model->grno, 'grdate' => date(Yii::app()->params['dateviewfromdb'], strtotime($model->grdate)), 'postdate' => date(Yii::app()->params['dateviewfromdb'], strtotime($model->postdate)), 'poheaderid' => $model->poheaderid, 'pono' => $model->poheader !== null ? $model->poheader->pono : "", 'giheaderid' => $model->giheaderid, 'gino' => $model->giheader !== null ? $model->giheader->gino : "", 'headernote' => $model->headernote, 'recordstatus' => $model->recordstatus, 'div' => $this->renderPartial('_form', array('model' => $model, 'grdetail' => $grdetail), true)));
         Yii::app()->end();
     }
 }
 /**
  * Updates a particular model.
  * If update is successful, the browser will be redirected to the 'view' page.
  * @param integer $id the ID of the model to be updated
  */
 public function actionUpdate()
 {
     parent::actionUpdate();
     $parent = new Orgstructure('searchwstatus');
     $parent->unsetAttributes();
     // clear any default values
     if (isset($_GET['Orgstructure'])) {
         $parent->attributes = $_GET['Orgstructure'];
     }
     $id = $_POST['id'];
     $model = $this->loadModel($id[0]);
     if ($model != null) {
         if ($this->CheckDataLock($this->menuname, $id[0]) == false) {
             $this->InsertLock($this->menuname, $id[0]);
             echo CJSON::encode(array('status' => 'success', 'orgstructureid' => $model->orgstructureid, 'structurename' => $model->structurename, 'parentid' => $model->parentid, 'parentstructurename' => $model->parent !== null ? $model->parent->structurename : "", 'recordstatus' => $model->recordstatus, 'div' => $this->renderPartial('_form', array('model' => $model, 'parent' => $parent), true)));
             Yii::app()->end();
         }
     }
 }
 /**
  * Updates a particular model.
  * If update is successful, the browser will be redirected to the 'view' page.
  * @param integer $id the ID of the model to be updated
  */
 public function actionUpdate()
 {
     parent::actionUpdate();
     $snro = new Snro('searchwstatus');
     $snro->unsetAttributes();
     // clear any default values
     if (isset($_GET['Snro'])) {
         $snro->attributes = $_GET['Snro'];
     }
     $id = $_POST['id'];
     $model = $this->loadModel($id[0]);
     if ($model != null) {
         if ($this->CheckDataLock($this->menuname, $id[0]) == false) {
             $this->InsertLock($this->menuname, $id[0]);
             echo CJSON::encode(array('status' => 'success', 'permitinid' => $model->permitinid, 'permitinname' => $model->permitinname, 'snroid' => $model->snroid, 'description' => $model->snro !== null ? $model->snro->description : "", 'recordstatus' => $model->recordstatus, 'div' => $this->renderPartial('_form', array('model' => $model, 'snro' => $snro), true)));
             Yii::app()->end();
         }
     }
 }
 /**
  * Updates a particular model.
  * If update is successful, the browser will be redirected to the 'view' page.
  * @param integer $id the ID of the model to be updated
  */
 public function actionUpdate()
 {
     parent::actionUpdate();
     $subdistrict = new Subdistrict('searchwstatus');
     $subdistrict->unsetAttributes();
     // clear any default values
     if (isset($_GET['Subdistrict'])) {
         $subdistrict->attributes = $_GET['Subdistrict'];
     }
     $id = $_POST['id'];
     $model = $this->loadModel($id[0]);
     if ($model != null) {
         if ($this->CheckDataLock($this->menuname, $id[0]) == false) {
             $this->InsertLock($this->menuname, $id[0]);
             echo CJSON::encode(array('status' => 'success', 'kelurahanid' => $model->kelurahanid, 'subdistrictid' => $model->subdistrictid, 'subdistrictname' => $model->subdistrict->subdistrictname, 'kelurahanname' => $model->kelurahanname, 'recordstatus' => $model->recordstatus, 'div' => $this->renderPartial('_form', array('model' => $model, 'subdistrict' => $subdistrict), true)));
             Yii::app()->end();
         }
     }
 }
 /**
  * Updates a particular model.
  * If update is successful, the browser will be redirected to the 'view' page.
  * @param integer $id the ID of the model to be updated
  */
 public function actionUpdate()
 {
     parent::actionUpdate();
     $purchasingorg = new Purchasingorg('searchwstatus');
     $purchasingorg->unsetAttributes();
     // clear any default values
     if (isset($_GET['Purchasingorg'])) {
         $purchasingorg->attributes = $_GET['Purchasingorg'];
     }
     $id = $_POST['id'];
     $model = $this->loadModel($id[0]);
     if ($model != null) {
         if ($this->CheckDataLock($this->menuname, $id[0]) == false) {
             $this->InsertLock($this->menuname, $id[0]);
             echo CJSON::encode(array('status' => 'success', 'purchasinggroupid' => $model->purchasinggroupid, 'purchasingorgid' => $model->purchasingorgid, 'purchasingorgcode' => $model->purchasingorg->purchasingorgcode, 'purchasinggroupcode' => $model->purchasinggroupcode, 'description' => $model->description, 'recordstatus' => $model->recordstatus, 'div' => $this->renderPartial('_form', array('model' => $model, 'purchasingorg' => $purchasingorg), true)));
             Yii::app()->end();
         }
     }
 }