private void ToolStripButton_Save_Click(object sender, EventArgs e) { StockTemplate template = GetSelectTemplate(); if (template == null) { return; } if (_spotDataSource.Count <= 0) { return; } int ret = _templateBLL.Replace(template.TemplateId, _spotDataSource.ToList()); if (ret > 0) { SwitchTemplateStockSave(false); //更新时间 template.DModifiedDate = DateTime.Now; this.tempGridView.Invalidate(); } }
private void ToolStripButton_Save_Click(object sender, EventArgs e) { StockTemplate template = GetSelectTemplate(); if (template == null) { return; } if (_spotDataSource.Count <= 0) { return; } int ret = _templateBLL.Replace(template.TemplateId, _spotDataSource.ToList()); if (ret > 0) { SwitchTemplateStockSave(false); } }