Exemplo n.º 1
0
Arquivo: Repeater.cs Projeto: 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);
 }
Exemplo n.º 2
0
Arquivo: Repeater.cs Projeto: 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);
        }
Exemplo n.º 3
0
Arquivo: DocManp.cs Projeto: 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);
        }