Esempio n. 1
0
File: Repeater.cs Progetto: ej-z/DMS
 internal void AddInput(string name, string type, string properties)
 {
     InputData.Add(new InputInfo()
     {
         Name = name, Type = type, Properties = properties
     });
     originalInput.AddInput(name, type, properties);
 }
Esempio n. 2
0
File: Repeater.cs Progetto: ej-z/DMS
        public int CloneInput()
        {
            var input = new DocInputs();

            foreach (var inputInfo in InputData)
            {
                input.AddInput(inputInfo.Name, inputInfo.Type, inputInfo.Properties);
            }
            RepeaterData.Add(input);
            return(LastPosition);
        }
Esempio n. 3
0
File: DocManp.cs Progetto: ej-z/DMS
        public DocInputs ReadDoc(string srcfilename)
        {
            DocInputs inputs = new DocInputs();

            using (var document = WordprocessingDocument.Open(srcfilename, false))
            {
                var main = document.MainDocumentPart;
                var doc  = main.Document;
                var body = doc.Body;

                foreach (TableRow row in body.Descendants <Table>().Last().Descendants <TableRow>())
                {
                    var cells = row.Descendants <TableCell>().ToArray();
                    inputs.AddInput(cells[0].InnerText, cells[1].InnerText, cells[2].InnerText);
                }
            }
            return(inputs);
        }