<!DOCTYPE html>
<html>

    <head>
        <meta charset="utf-8">
        <title>无纸化集中业务管理系统</title>
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
        <link charset="utf-8" rel="stylesheet" href="/static/css/layui.css?v=1.0.0">
        <link rel="stylesheet" href="/static/css/temp.css" media="all">

        <script src="/static/js/jquery-1.8.2.min.js?v=1.0.0"></script>
        <script src="/static/js/crypto-js.js"></script>
        <script src="/static/js/layui.js?v=1.0.0"></script>
        <script src="/static/js/api.config.js"></script>
        <script src="/static/js/util.js?v=1.0.0"></script>
        <script src="/static/js/customform.js?v=1.0.0"></script>
        <script src="/static/js/url.js?v=1.0.0"></script>
        <script src="/static/js/lay/lay-config.js?v=1.0.0"></script>
        <script src="/static/css/inconfont/iconfont.js"></script>
    </head>

    <body class="bg-info">

        <div class="layui-card layui-card-form">

            <div class="layui-card-body">

                <form class="ag-form layui-form" ag-data-index="1">




                    <div>
                        <label class="layui-form-label">流程名称：</label>
                        <div class="layui-input-block">
                            <input type="text" name="procName" ag-verify="required" autocomplete="off" placeholder="流程名称"
                                class="myinput">
                        </div>
                    </div>

                    <!-- <div class="layui-inline ">
						<label class="layui-form-label">流程描述：</label>
						<div class="layui-input-block">
								<input type="text" name="processDesc" ag-verify="required" autocomplete="off" placeholder="流程描述" class="layui-input">
						</div>
					</div> -->




                </form>


            </div>

            <div class="layui-card-footer">

                <button class="layui-btn layui-btn-sm layui-btn-normal " ag-data-index="1" onclick="setFlowInfo()">
                    <i class="layui-icon layui-icon-ok-circle "></i>
                    <span class="btn-span-middle">保存</span>
                </button>
                <button class="ag-btn-cancel layui-btn layui-btn-sm layui-btn-normal">
                    <i class="layui-icon layui-icon-close "></i>
                    <span class="btn-span-middle">取消</span>
                </button>
            </div>

        </div>
    </body>
    <script>

        $(document.body).ready(function () {

		$("input[name=procName]").val(parent.processInfo["procName"]);
		$("input[name=processDesc]").val(parent.processInfo["processDesc"]);


	});

	function setFlowInfo() {
		var processName = $("input[name=procName]").val();
		var processDesc = $("input[name=processDesc]").val();

		util.closeWin();
		parent.setFlowInfo(processName, processDesc);
	}

	function delConn() {

		util.showDialog("确认删除连线么?", 3, doDelConn);

	}

	function doDelConn() {
		util.closeWin();
		parent.delConn();
	}
</script>

</html>
<style type="text/css">
    .ag-form {
        height: auto !important;
    }

    .layui-card-footer {
        border: transparent;
        position: absolute;
        bottom: 20px;
        right: 20px;
    }

    .layui-btn {
        width: 80px;
        height: 32px;
        border: transparent;
        color: #fff;
        background: #48A2FF;
        border-radius: 5px;
        outline: none;
        cursor: pointer;
        margin-left: 10px;
    }

    .layui-btn:hover {
        background: #48a2ffab;
    }

    .ag-btn-cancel {
        border: 1px solid #ddd;
        background: #fff;
        color: #999;
    }

    .ag-btn-cancel:hover {
        border: 1px solid #40B6FF;
        background: #ECF5FF;
        color: #40B6FF;
    }

    .bg-info {
        background: #fff;
    }

    .layui-card {
        box-shadow: none;
    }

    .layui-card-body {
        padding: 0;
    }

    .layui-card-form {
        margin: 0;
        padding: 20px;
        position: static;
    }

    .btn-span-middle {
        float: none;
    }

    .layui-form-label {
        height: 36px;
        line-height: 36px;
        padding: 0;
        float: none;
        display: inline-block;
        width: 15%;
        text-align: right;
    }

    .layui-input-block {
        display: inline-block;
        width: 75%;
        margin: 0;
    }

    .myinput {
        width: 100%;
        display: inline-block;
        outline: none;
        border: 1px solid #ddd;
        height: 32px;
        padding-left: 10px;
        border-radius: 5px;
    }

    .myinput:focus {
        border: 1px solid #48A2FF;
    }
</style>
