private object[] GetAllItem() { string fileName = string.Empty; fileName = this.ViewState["UploadedFileName"].ToString(); string configFile = this.getParseConfigFileName(); BenQGuru.eMES.Web.Helper.DataFileParser parser = new BenQGuru.eMES.Web.Helper.DataFileParser(); parser.FormatName = "OutDataMO_Piece"; parser.ConfigFile = configFile; items = parser.Parse(fileName); ValidateItems(); return(items); }
private object[] GetAllItem(string fileName) { try { string configFile = this.getParseConfigFileName(); BenQGuru.eMES.Web.Helper.DataFileParser parser = new BenQGuru.eMES.Web.Helper.DataFileParser(); parser.FormatName = "OutDataSoftWareVersion_Piece"; parser.ConfigFile = configFile; items = parser.Parse(fileName); } catch { } return(items); }
private object[] GetAllItem() { try { string fileName = string.Empty; fileName = this.ViewState["UploadedFileName"].ToString(); string configFile = this.getParseConfigFileName(); BenQGuru.eMES.Web.Helper.DataFileParser parser = new BenQGuru.eMES.Web.Helper.DataFileParser(); parser.FormatName = "WarehouseStock"; parser.ConfigFile = configFile; items = parser.Parse(fileName); } catch {} return(items); }
private object[] GetAllItem() { try { string fileName = string.Empty; fileName = this.ViewState["UploadedFileName"].ToString(); string configFile = this.getParseConfigFileName(); BenQGuru.eMES.Web.Helper.DataFileParser parser = new BenQGuru.eMES.Web.Helper.DataFileParser(); parser.FormatName = this.ddlImportType.SelectedValue; parser.ConfigFile = configFile; items = parser.Parse(fileName); ValidateItems(); } catch {} return(items); }
private object[] GetAllItem() { try { string fileName = string.Empty; if (this.ViewState["UploadedFileName"] == null) { BenQGuru.eMES.Common.ExceptionManager.Raise(this.GetType().BaseType, "$Error_UploadFileIsEmpty"); } fileName = this.ViewState["UploadedFileName"].ToString(); string configFile = this.getParseConfigFileName(); BenQGuru.eMES.Web.Helper.DataFileParser parser = new BenQGuru.eMES.Web.Helper.DataFileParser(); parser.FormatName = "SMTMachineDiscard"; parser.ConfigFile = configFile; items = parser.Parse(fileName); if (items != null) { for (int i = 0; i < items.Length; i++) { SMTMachineDiscard item = (SMTMachineDiscard)items[i]; item.MOCode = item.MOCode.ToUpper(); item.StepSequenceCode = item.StepSequenceCode.ToUpper(); item.MaterialCode = item.MaterialCode.ToUpper(); item.MachineStationCode = item.MachineStationCode.ToUpper(); } } } catch (Exception e) { throw e; } return(items); }