///<summary></summary> public static void DeleteObject(Popup popup) { if(RemotingClient.RemotingRole==RemotingRole.ClientWeb) { Meth.GetVoid(MethodBase.GetCurrentMethod(),popup); return; } Crud.PopupCrud.Delete(popup.PopupNum); }
private void butAdd_Click(object sender,EventArgs e) { FormPopupEdit FormPE=new FormPopupEdit(); Popup popup=new Popup(); popup.PatNum=PatCur.PatNum; popup.PopupLevel=EnumPopupLevel.Patient; popup.IsNew=true; FormPE.PopupCur=popup; FormPE.ShowDialog(); FillGrid(); }
///<summary></summary> public static void Update(Popup popup) { if(RemotingClient.RemotingRole==RemotingRole.ClientWeb) { Meth.GetVoid(MethodBase.GetCurrentMethod(),popup); return; } Crud.PopupCrud.Update(popup); }
///<summary></summary> public static long Insert(Popup popup) { if(RemotingClient.RemotingRole==RemotingRole.ClientWeb) { popup.PopupNum=Meth.GetLong(MethodBase.GetCurrentMethod(),popup); return popup.PopupNum; } return Crud.PopupCrud.Insert(popup); }