本文整理汇总了PHP中Message::_set方法的典型用法代码示例。如果您正苦于以下问题:PHP Message::_set方法的具体用法?PHP Message::_set怎么用?PHP Message::_set使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Message
的用法示例。
在下文中一共展示了Message::_set方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: batal
public function batal($idsharingproduct)
{
$sharingproduct = $this->orm->sharingproduct->where('idsharingproduct', $idsharingproduct);
$sharingproduct->delete();
Message::_set(TRUE, 'Batal Sharing Product Berhasil', 'Gagal');
redirect('sharing/sharing');
}
示例2: delete
public function delete($idpackage = null)
{
if ($idpackage != null) {
$package = $this->orm->package->where('idpackage', $idpackage);
$package->delete();
Message::_set(TRUE, 'Hapus Data Package Berhasil', 'Hapus Data Package Gagal');
}
redirect('package/master_package');
}
示例3: delete
public function delete()
{
$idrefgudang = $this->input->post('id', true);
if ($idrefgudang != null) {
$refgudang = $this->orm->refgudang->where('idrefgudang', $idrefgudang);
$ress = $refgudang->delete();
Message::_set($ress, 'Hapus Data Pelanggan Berhasil', 'Hapus Data Master Pelanggan Gagal');
redirect('masterdata/mastergudang');
}
}
示例4: delete
public function delete($idpelanggan = null)
{
$idpelanggan = $this->input->post('id');
if ($idpelanggan != null) {
$pelanggan = $this->orm->pelanggan->where('idpelanggan', $idpelanggan);
$ress = $pelanggan->delete();
$result = $ress == TRUE ? array('response' => 'success', 'msg' => 'Hapus Data Pelanggan Berhasil') : array('response' => 'error', 'msg' => 'Maav Hapus Data Pelanggan Gagal');
// echo json_encode($result);
Message::_set(TRUE, 'Hapus Data Pelanggan Berhasil', 'Hapus Data Master Pelanggan Gagal');
redirect('masterdata/masterpelanggan');
}
}
示例5: rollback
public function rollback($idquotationsales = null)
{
if ($idquotationsales != null) {
$dataUpdateQuotation = array('idrefstatus' => 2);
$this->quotationsales->update($idquotationsales, $dataUpdateQuotation);
Message::_set(TRUE, 'Mengembalikan Data Quotation Berhasil', 'Mengembalikan Data Quotation Gagal');
}
redirect('pemesanan/po_pemesanan');
}
示例6: delete
public function delete($idpengadaan = null)
{
Account::_valLogin();
if ($idpengadaan != null) {
$pengadaan = $this->orm->pengadaan->where('idpengadaan', $idpengadaan);
$pengadaan->delete();
$pengadaandetail = $this->orm->pengadaandetail->where('idpengadaan', $idpengadaan);
$pengadaandetail->delete();
Message::_set(TRUE, 'Hapus Data Pengadaan Berhasil', 'Hapus Data Pengadaan Gagal');
}
redirect('transaksi/pengadaan');
}
示例7: prosesreject
public function prosesreject($idquotationsales = null)
{
if ($idquotationsales == null) {
//do nothing
$redirect = 'pemesanan/do_pemesanan';
} else {
$dataUpdateQuotation = array('idrefstatus' => 9);
$this->quotationsales->update($idquotationsales, $dataUpdateQuotation);
Message::_set($idquotationsales != null ? TRUE : FALSE, 'Edit Data Delivery Order Berhasil', 'Edit Data Delivery Order Gagal');
$redirect = 'pemesanan/do_pemesanan';
}
redirect($redirect);
}
示例8: delete
public function delete()
{
$idrefbarang = $this->input->post('id', true);
if ($idrefbarang != null) {
$refbarang = $this->orm->refbarang->where('idrefbarang', $idrefbarang);
$ress = $refbarang->delete();
$result = $ress == TRUE ? array('response' => 'success', 'msg' => 'Hapus Data Barang Berhasil') : array('response' => 'error', 'msg' => 'Maav Hapus Data Barang Gagal');
//echo json_encode($result);
Message::_set(TRUE, 'Hapus Data Master Barang Berhasil', 'Hapus Data Master Barang Gagal');
redirect('masterdata/masterbarang');
}
}
示例9: batal
public function batal($idquotationsales = null)
{
if ($idquotationsales != null) {
//$quotation = $this->orm->quotationsales->where('idquotationsales', $idquotationsales);
//$quotation->update(array(''));
$dataUpdateQuotation = array('idrefstatus' => 3);
$this->quotationsales->update($idquotationsales, $dataUpdateQuotation);
Message::_set(TRUE, 'Hapus Data quotation Berhasil', 'Hapus Data quotation Gagal');
}
redirect('quotation/quotation');
}
示例10: delete
public function delete($iddeliveryorder = null)
{
/*Account::_valLogin();
if ($iddeliveryorder != null) {
$deliveryorder = $this->orm->deliveryorder->where('iddeliveryorder', $iddeliveryorder);
$deliveryorder->delete();
$deliveryorderdetail = $this->orm->deliveryorderdetail->where('iddeliveryorder', $iddeliveryorder);
$deliveryorderdetail->delete();
Message::_set(TRUE, 'Hapus Data delivery Order Berhasil', 'Hapus Data delivery Order Gagal');
}
redirect('transaksi/deliveryorder');*/
if ($idquotationsales != null) {
$quotation = $this->orm->quotationsales->where('idquotationsales', $idquotationsales);
$quotation->delete();
$quotationdetail = $this->orm->quotationsalesdetail->where('idquotationsales', $idquotationsales);
$quotationdetail->delete();
Message::_set(TRUE, 'Hapus Data Delivery Order Berhasil', 'Hapus Data Delivery Order Gagal');
}
redirect('transaksi/deliveryorder');
}