public object UpdateObject() { try { Ecm.WebReferences.WareService.Ware_Phieu_Thu objWare_Phieu_Thu = GetEditValue(); objWareService.Update_Ware_Phieu_Thu(objWare_Phieu_Thu); return(true); } catch (Exception ex) { GoobizFrame.Windows.TrayMessage.TrayMessage.Status = new GoobizFrame.Windows.TrayMessage.TrayMessageInfo(MessageBoxIcon.Asterisk, ex.Message, ex.ToString()); return(false); } }
public object InsertObject() { try { Ecm.WebReferences.WareService.Ware_Phieu_Thu objWare_Phieu_Thu = GetEditValue(); object identity = objWareService.Insert_Ware_Phieu_Thu(objWare_Phieu_Thu); Current_Id_Phieu_Thu = identity; SelectedWare_Phieu_Thu = objWare_Phieu_Thu; SelectedWare_Phieu_Thu.Id_Phieu_Thu = identity; return(true); } catch (Exception ex) { GoobizFrame.Windows.TrayMessage.TrayMessage.Status = new GoobizFrame.Windows.TrayMessage.TrayMessageInfo(MessageBoxIcon.Asterisk, ex.Message, ex.ToString()); return(false); } }