Example #1
0
        private string CreateByTemplate()
        {
            string       documentid = "";
            TemplateInfo template   = new TemplateInfo("2287912848399175726");

            template.AddParameter("param1", "参数1");
            template.AddParameter("param2", "参数2");
            template.AddParameter("param3", "参数3");

            documentid = signService.Create(template, "远程模板测试合同");//有效期默认为30天,到期未完成签署,自动作废
            // documentid = signService.Create(template, "远程模板测试合同", DateTime.Now.AddDays(7));//7天后未完成签署,自动作废
            Console.WriteLine("根据模板创建合同成功,文档ID:{0}", documentid);
            return(documentid);
        }