protected void btnEdit_Click(object sender, DirectEventArgs e) { int ID = int.Parse(selectID.Text); BusinessLogic.ManageProject.XMLogisticsFeeDetail entity = XMLogisticsFeeDetailService.GetXMLogisticsFeeDetailByID(ID); entity.Fee = decimal.Parse(numPrice.Text); entity.Note = taNote.Text; entity.UpdateID = HozestERPContext.Current.User.CustomerID; entity.UpdateDate = DateTime.Now; XMLogisticsFeeDetailService.UpdateXMLogisticsFeeDetail(entity); }
protected void rowCommand(object sender, DirectEventArgs e) { int ID = int.Parse(e.ExtraParams["ID"]); BusinessLogic.ManageProject.XMLogisticsFeeDetail entity = XMLogisticsFeeDetailService.GetXMLogisticsFeeDetailByID(ID); if (entity == null) { Ext.Net.ExtNet.Msg.Alert("提示", "数据记录不存在").Show(); return; } XMLogisticsFeeDetailService.DeleteXMLogisticsFeeDetail(ID); }