private bool AlterOutBarcode() { bsCreate.EndEdit(); bool bResult = false; string strError = string.Empty; if (!CheckCreate()) { return(false); } bResult = Print_Func.SaveOutBarcode(ref parameter, ref strError); bsCreate.DataSource = parameter; if (!bResult || !string.IsNullOrEmpty(strError)) { return(Common.Common_Func.ErrorMessage(strError, "替换失败")); } if (parameter == null || parameter.ID <= 0) { return(Common.Common_Func.ErrorMessage("未获取到任何数据", "替换失败")); } lstBarcode = new List <Barcode_Model>(); lstBarcode.Add(parameter); return(true); }