///<summary></summary> public static void Update(GradingScaleItem gradingScaleItem){ if(RemotingClient.RemotingRole==RemotingRole.ClientWeb){ Meth.GetVoid(MethodBase.GetCurrentMethod(),gradingScaleItem); return; } Crud.GradingScaleItemCrud.Update(gradingScaleItem); }
///<summary></summary> public static long Insert(GradingScaleItem gradingScaleItem){ if(RemotingClient.RemotingRole==RemotingRole.ClientWeb){ gradingScaleItem.GradingScaleItemNum=Meth.GetLong(MethodBase.GetCurrentMethod(),gradingScaleItem); return gradingScaleItem.GradingScaleItemNum; } return Crud.GradingScaleItemCrud.Insert(gradingScaleItem); }
private void butAdd_Click(object sender,EventArgs e) { GradingScaleItem gradingScaleItemNew=new GradingScaleItem(); gradingScaleItemNew.GradingScaleNum=_gradingScaleCur.GradingScaleNum;//Must be set prior to edit window being open if a new item. gradingScaleItemNew.IsNew=true; FormGradingScaleItemEdit FormGSIE=new FormGradingScaleItemEdit(gradingScaleItemNew); FormGSIE.ShowDialog(); FillGrid(); }
///<summary></summary> public static void Update(GradingScaleItem gradingScaleItem) { if (RemotingClient.RemotingRole == RemotingRole.ClientWeb) { Meth.GetVoid(MethodBase.GetCurrentMethod(), gradingScaleItem); return; } Crud.GradingScaleItemCrud.Update(gradingScaleItem); }
///<summary></summary> public static long Insert(GradingScaleItem gradingScaleItem) { if (RemotingClient.RemotingRole == RemotingRole.ClientWeb) { gradingScaleItem.GradingScaleItemNum = Meth.GetLong(MethodBase.GetCurrentMethod(), gradingScaleItem); return(gradingScaleItem.GradingScaleItemNum); } return(Crud.GradingScaleItemCrud.Insert(gradingScaleItem)); }
public FormGradingScaleItemEdit(GradingScaleItem gradingScaleItemCur) { InitializeComponent(); Lan.F(this); _gradingScaleItemCur=gradingScaleItemCur; }