프로젝트

일반

사용자정보

개정판 95e6fe93

ID95e6fe93ced613938f438371be785455592daf50
상위 497099f3
하위 6b6bc870

김태성이(가) 4년 이상 전에 추가함

-autoapproval 수정

Change-Id: Ic1d2983e9bfacfa5fd6bd8a284a5641978a2a098

차이점 보기:

KCOM_API/Web.config
10 10
    </sectionGroup>
11 11
  </configSections>
12 12
  <connectionStrings>
13
    <!--효성 Connection String-->
13 14
    <add name="ConnectionString"
14
      connectionString="metadata=res://*/DataModel.KCOM_Model.csdl|res://*/DataModel.KCOM_Model.ssdl|res://*/DataModel.KCOM_Model.msl;provider=System.Data.SqlClient;provider=System.Data.SqlClient;provider connection string=&quot;data source=cloud.devdoftech.co.kr,7777;initial catalog=markus;persist security info=True;user id=doftech;password=dof1073#;multipleactiveresultsets=True;App=EntityFramework&quot;"
15
      connectionString="metadata=res://*/DataModel.KCOM_Model.csdl|res://*/DataModel.KCOM_Model.ssdl|res://*/DataModel.KCOM_Model.msl;provider=System.Data.SqlClient;provider=System.Data.SqlClient;provider connection string=&quot;data source=10.11.252.2,9875;initial catalog=markus;persist security info=True;user id=ProjectPortalDBConn;password=ProjectPortalDBConn;multipleactiveresultsets=True;App=EntityFramework&quot;"
15 16
      providerName="System.Data.EntityClient"/>
16 17
    <add name="CIConnectionString"
17
      connectionString="metadata=res://*/DataModel.CIModel.csdl|res://*/DataModel.CIModel.ssdl|res://*/DataModel.CIModel.msl;provider=System.Data.SqlClient;provider=System.Data.SqlClient;provider connection string=&quot;data source=cloud.devdoftech.co.kr,7777;initial catalog=markus;persist security info=True;user id=doftech;password=dof1073#;multipleactiveresultsets=True;App=EntityFramework&quot;"
18
      connectionString="metadata=res://*/DataModel.CIModel.csdl|res://*/DataModel.CIModel.ssdl|res://*/DataModel.CIModel.msl;provider=System.Data.SqlClient;provider=System.Data.SqlClient;provider connection string=&quot;data source=10.11.252.2,9875;initial catalog=markus;persist security info=True;user id=ProjectPortalDBConn;password=ProjectPortalDBConn;multipleactiveresultsets=True;App=EntityFramework&quot;"
18 19
      providerName="System.Data.EntityClient"/>
19 20
  </connectionStrings>
20 21
  <!--
......
81 82
  <applicationSettings>
82 83
    <KCOM_API.Properties.Settings>
83 84
      <setting name="TileSoucePath" serializeAs="String">
84
        <value>http://192.168.0.67:5977/TileSource/{0}_Tile/{1}/{2}/{3}.png</value>
85
        <value>http://10.11.252.3/TileSource/{0}_Tile/{1}/{2}/{3}.png</value>
85 86
      </setting>
86 87
      <setting name="TileSoucePath_SUB" serializeAs="String">
87
        <value>http://192.168.0.67:5977/TileSource/{0}_Tile/{1}/{2}/{3}.png</value>
88
        <value>http://10.11.252.3/TileSource/{0}_Tile/{1}/{2}/{3}.png</value>
88 89
      </setting>
89 90
      <setting name="IsProjectNoPass" serializeAs="String">
90 91
        <value>True</value>
KCOM_API_AutoStamping/AutoApprovalTest.aspx
5 5
<html xmlns="http://www.w3.org/1999/xhtml">
6 6
<head runat="server">
7 7
    <title>All Approval Page</title>
8
    <script type="text/javascript" >
9
     
10
    </script>
8
    <script src="js/alertify.min.js"></script>
9
    <link rel="stylesheet" href="themes/alertify.core.css" />
10
    <link rel="stylesheet" href="themes/alertify.default.css" id="toggleCSS" />
11 11
</head>
12 12
<body>
13 13
    <form id="form1" runat="server">
14
    
14
        <input type="hidden" id="hdnNode" runat="server" />
15
        <input type="hidden" id="hdnSiteid" runat="server" />
16
        <input type="hidden" id="hdnWebid" runat="server" />
17
        <input type="hidden" id="hdnpjtno" runat="server" />
15 18
        <div>
16
        <table>
17
        <tr>
18
        <td>Project No :</td>
19
        <td>
20
       <%-- <asp:TextBox ID="txtproject_no" runat="server"></asp:TextBox>--%>
21
            <asp:DropDownList ID="PROJECT_LIST" runat="server" AutoPostBack="true"></asp:DropDownList>
22
        </td>
23
         <td>
24
         <%--    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"   
19
            <table>
20
                <tr>
21
                    <td>Project No :</td>
22
                    <td>
23
                        <%-- <asp:TextBox ID="txtproject_no" runat="server"></asp:TextBox>--%>
24
                        <asp:DropDownList ID="PROJECT_LIST" runat="server" AutoPostBack="true"></asp:DropDownList>
25
                    </td>
26
                    <%--<td>
27
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"   
25 28
            ControlToValidate="txtproject_no" ErrorMessage="Project No required" ForeColor="Red"></asp:RequiredFieldValidator>
26 29
             </td>--%>
27
        </tr>
28
        <tr>
29
        <td>Slip No :</td>
30
        <td>
31
        <asp:TextBox ID="txtslip_no" runat="server"></asp:TextBox>
32
        </td>
33
              <td>
34
             <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"   
35
            ControlToValidate="txtslip_no" ErrorMessage="Slip No required" ForeColor="Red"></asp:RequiredFieldValidator>
36
             </td>
37
        </tr>
38
        </tr>
39
        <tr>
40
        <td>User ID :</td>
41
        <td>
42
        <asp:TextBox ID="txtuser_id" AutoPostBack="true" runat="server"></asp:TextBox>
43
        </td>
44
              <td>
45
             <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server"   
46
            ControlToValidate="txtuser_id" ErrorMessage="User ID required" ForeColor="Red"></asp:RequiredFieldValidator>
47
             </td>
48
        </tr>
49
        </table>
30
                </tr>
31
                <tr>
32
                    <td>Slip No :</td>
33
                    <td>
34
                        <asp:TextBox ID="txtslip_no" runat="server"></asp:TextBox>
35
                    </td>
36
                    <td>
37
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
38
                            ControlToValidate="txtslip_no" ErrorMessage="Slip No required" ForeColor="Red"></asp:RequiredFieldValidator>
39
                    </td>
40
                </tr>
41
                <tr>
42
                    <td>User ID :</td>
43
                    <td>
44
                        <asp:TextBox ID="txtuser_id" AutoPostBack="true" runat="server"></asp:TextBox>
45
                    </td>
46
                    <td>
47
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server"
48
                            ControlToValidate="txtuser_id" ErrorMessage="User ID required" ForeColor="Red"></asp:RequiredFieldValidator>
49
                    </td>
50
                </tr>
51
            </table>
50 52
        </div>
51 53
        <p>
52
           <asp:Button ID="Button1" runat="server" Text="All Approval" 
53
                onclick="Button1_Click" /> 
54
    <%--        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
55
            <asp:UpdatePanel ID="up1" runat="server">
56
                <ContentTemplate>--%>
57
                    <asp:Button runat="server" ID="BtnHiddenYes" ClientIDMode="Static" Style="display: none;" />
58
                    <asp:Button  ID="Button2" runat="server"  Text="All Approval" CausesValidation="true"  OnClientClick=" jsConfirm(); return false;"/>
59
                    <%--<input id="Button1" type="button" runat="server" value="All Approval" onclick="Confirm(); return false;" />--%>
60
        <%--        </ContentTemplate>
61
            </asp:UpdatePanel>--%>
54 62
        </p>
55 63
    </form>
64
    <script>
65

  
66
        var confirm_value = document.createElement("INPUT");
67
        confirm_value.type = "hidden";
68
        confirm_value.name = "confirm_value";
69

  
70
        function jsConfirm() {
71
            // A confirm dialog
72
     
73
            alertify.set({ buttonReverse: true });
74
        <%--    alertify.set({
75
                confirm : function () {
76
                        "<%if(!IsPostBack)Page.Validate();%>"
77
                }
78
            });--%>
79

  
80
            alertify.confirm("VP에 Comment가 있어도 이를 무시하고 Approval stamp만 찍고 Merged PDF를 생성합니다.<br>그래도 작업하시겠습니까 ?<br>Even if there is a comment in the VP, ignore it and take only the approval stamp and create a Merged PDF.<br>Would you like to work anyway ? ", function (e) {
81
                if (e) {
82
                    document.getElementById("BtnHiddenYes").click();
83
                    confirm_value.value = "Yes";
84
                } else {
85
                    confirm_value.value = "No";
86
                }
87
            });
88
        }
89
    </script>
56 90
</body>
57
</html>
91
</html>
KCOM_API_AutoStamping/AutoApprovalTest.aspx.cs
87 87
                //catch (Exception ex)
88 88
                //{
89 89
                //}
90

  
90 91
            }
92

  
93
            BtnHiddenYes.Click += Button1_Click;
91 94
        }
92 95

  
93 96
        protected void Button1_Click(object sender, EventArgs e)
......
110 113
            client.Headers.Add(HttpRequestHeader.ContentType, "text/xml");
111 114
            client.Headers.Add("SOAPAction", "urn:Common/AutoStamping");
112 115

  
113
            string _result = client.UploadString(new Uri($"http://{Request.Url.Host.ToString()}:{Request.Url.Port}/AutoStamping.svc"), reqstr);
116
           string _result = client.UploadString(new Uri($"http://{Request.Url.Host.ToString()}:{Request.Url.Port}/AutoStamping.svc"), reqstr);
117
            //string _result = client.UploadString(new Uri("http://10.11.252.3:9877/AutoStamping.svc"), reqstr);
114 118
            XmlTextReader reader = new XmlTextReader(new System.IO.StringReader(_result));
115

  
116
            string msg = "Success\\naaaa";
119
            string msg = "Success!\\nAfer a while, please check the generation of Merged PDFs on the VP Circulation inquiry screen.";
117 120

  
118 121
            while (reader.Read())
119 122
            {
......
130 133
                }
131 134
            }
132 135

  
136
            SaveCookies(cookieKeySelectPrj, project_no);
137

  
133 138
            Response.Write("<script language='Javascript'> ");
134
            Response.Write("alert('" + msg + "'); ");
139
            Response.Write("alertify.alert('" + msg + "'); ");
135 140
            Response.Write("</script>");
136
            SaveCookies(cookieKeySelectPrj, project_no);
137 141
        }
138 142

  
139 143
        private void SaveCookies(string Key,string value)
KCOM_API_AutoStamping/AutoApprovalTest.aspx.designer.cs
13 13
    public partial class AutoApprovalTest {
14 14
        
15 15
        /// <summary>
16
        /// toggleCSS 컨트롤입니다.
17
        /// </summary>
18
        /// <remarks>
19
        /// 자동 생성 필드입니다.
20
        /// 수정하려면 디자이너 파일에서 코드 숨김 파일로 필드 선언을 이동하세요.
21
        /// </remarks>
22
        protected global::System.Web.UI.HtmlControls.HtmlLink toggleCSS;
23
        
24
        /// <summary>
16 25
        /// form1 컨트롤입니다.
17 26
        /// </summary>
18 27
        /// <remarks>
......
22 31
        protected global::System.Web.UI.HtmlControls.HtmlForm form1;
23 32
        
24 33
        /// <summary>
34
        /// hdnNode 컨트롤입니다.
35
        /// </summary>
36
        /// <remarks>
37
        /// 자동 생성 필드입니다.
38
        /// 수정하려면 디자이너 파일에서 코드 숨김 파일로 필드 선언을 이동하세요.
39
        /// </remarks>
40
        protected global::System.Web.UI.HtmlControls.HtmlInputHidden hdnNode;
41
        
42
        /// <summary>
43
        /// hdnSiteid 컨트롤입니다.
44
        /// </summary>
45
        /// <remarks>
46
        /// 자동 생성 필드입니다.
47
        /// 수정하려면 디자이너 파일에서 코드 숨김 파일로 필드 선언을 이동하세요.
48
        /// </remarks>
49
        protected global::System.Web.UI.HtmlControls.HtmlInputHidden hdnSiteid;
50
        
51
        /// <summary>
52
        /// hdnWebid 컨트롤입니다.
53
        /// </summary>
54
        /// <remarks>
55
        /// 자동 생성 필드입니다.
56
        /// 수정하려면 디자이너 파일에서 코드 숨김 파일로 필드 선언을 이동하세요.
57
        /// </remarks>
58
        protected global::System.Web.UI.HtmlControls.HtmlInputHidden hdnWebid;
59
        
60
        /// <summary>
61
        /// hdnpjtno 컨트롤입니다.
62
        /// </summary>
63
        /// <remarks>
64
        /// 자동 생성 필드입니다.
65
        /// 수정하려면 디자이너 파일에서 코드 숨김 파일로 필드 선언을 이동하세요.
66
        /// </remarks>
67
        protected global::System.Web.UI.HtmlControls.HtmlInputHidden hdnpjtno;
68
        
69
        /// <summary>
25 70
        /// PROJECT_LIST 컨트롤입니다.
26 71
        /// </summary>
27 72
        /// <remarks>
......
67 112
        protected global::System.Web.UI.WebControls.RequiredFieldValidator RequiredFieldValidator3;
68 113
        
69 114
        /// <summary>
70
        /// Button1 컨트롤입니다.
115
        /// BtnHiddenYes 컨트롤입니다.
116
        /// </summary>
117
        /// <remarks>
118
        /// 자동 생성 필드입니다.
119
        /// 수정하려면 디자이너 파일에서 코드 숨김 파일로 필드 선언을 이동하세요.
120
        /// </remarks>
121
        protected global::System.Web.UI.WebControls.Button BtnHiddenYes;
122
        
123
        /// <summary>
124
        /// Button2 컨트롤입니다.
71 125
        /// </summary>
72 126
        /// <remarks>
73 127
        /// 자동 생성 필드입니다.
74 128
        /// 수정하려면 디자이너 파일에서 코드 숨김 파일로 필드 선언을 이동하세요.
75 129
        /// </remarks>
76
        protected global::System.Web.UI.WebControls.Button Button1;
130
        protected global::System.Web.UI.WebControls.Button Button2;
77 131
    }
78 132
}
KCOM_API_AutoStamping/AutoStamping.svc.cs
133 133

  
134 134
                        var user = GetSelectMember(cIEntity, project_no, slip_no, user_id);
135 135

  
136

  
137 136
                        if (user.SLIP_COUNT == 0)
138 137
                        {
139 138
                            result = "Slip No does not exist.";
......
194 193

  
195 194
                                            cIEntity.MARKUP_INFO_VERSION.AddObject(mARKUPINFOVERSION);
196 195

  
197
                                            Point startPoint = new Point(15, 15);
196
                                            Point startPoint = new Point(30, 30);
198 197

  
199 198
                                            var symCtrl = GetSymNControl(Convert.ToDouble(pageInfo.PAGE_WIDTH), Convert.ToDouble(pageInfo.PAGE_HEIGHT), mARKUPINFO.USER_ID, mARKUPINFO.ID, startPoint, _stampData);
200 199

  
201 200
                                            var bottom = Rect.Offset(symCtrl.ItemRect, new Vector(0, symCtrl.ItemRect.Height));
202 201

  
203 202
                                            var txtOriginator = GetTextControl(Convert.ToDouble(pageInfo.PAGE_WIDTH), Convert.ToDouble(pageInfo.PAGE_HEIGHT), mARKUPINFO.USER_ID, mARKUPINFO.ID
204
                                                           , userName, 20, System.Windows.Media.Color.FromArgb(255, 0, 0, 255), FontWeights.Bold, TextAlignment.Center, bottom, bottom.Top + 3);
203
                                                           , userName, 36, System.Windows.Media.Color.FromArgb(255, 0, 0, 255), FontWeights.Bold, TextAlignment.Center, bottom, bottom.Top + 3);
205 204

  
206 205
                                            var dtfi = new System.Globalization.DateTimeFormatInfo { DateSeparator = "-", ShortDatePattern = @"yyyy/MM/dd" };
207 206

  
208 207
                                            var txtDate = GetTextControl(Convert.ToDouble(pageInfo.PAGE_WIDTH), Convert.ToDouble(pageInfo.PAGE_HEIGHT), mARKUPINFO.USER_ID, mARKUPINFO.ID
209
                                                           , DateTime.Now.ToString("d", dtfi), 20, System.Windows.Media.Color.FromArgb(255, 255, 0, 0), FontWeights.Bold, TextAlignment.Center, bottom, txtOriginator.StartPoint.Y + txtOriginator.BoxHeight + 2);
208
                                                           , DateTime.Now.ToString("d", dtfi), 36, System.Windows.Media.Color.FromArgb(255, 255, 0, 0), FontWeights.Bold, TextAlignment.Center, bottom, txtOriginator.StartPoint.Y + txtOriginator.BoxHeight + 2);
210 209

  
211 210
                                            var symData = symCtrl.GetMarkupData(mARKUPINFO.USER_ID, 1, mARKUPINFOVERSION.ID);
212 211
                                            cIEntity.MARKUP_DATA.AddObject(symData);
......
430 429

  
431 430
            try
432 431
            {
433
                double height = 80;
434
                double itemWidth = 180;
432
                double height = 110;
433
                double itemWidth = 280;
435 434

  
436 435
                System.Windows.Point startPoint = new System.Windows.Point(startPosition.X, startPosition.Y);
437 436
                System.Windows.Point endPoint = new System.Windows.Point(startPosition.X + itemWidth, startPosition.Y + height);
......
721 720

  
722 721
    public class SelectMember
723 722
    {
723
        public string USER_ID { get; set; }
724

  
724 725
        public string USER_NAME { get; set; }
725 726

  
726 727
        /// <summary>
KCOM_API_AutoStamping/KCOM_API_AutoStamping.csproj
77 77
  <ItemGroup>
78 78
    <Content Include="AutoApprovalTest.aspx" />
79 79
    <Content Include="AutoStamping.svc" />
80
    <Content Include="js\alertify.min.js" />
81
    <Content Include="Themes\alertify.bootstrap.css" />
82
    <Content Include="Themes\alertify.core.css" />
83
    <Content Include="Themes\alertify.default.css" />
80 84
    <Content Include="Web.config">
81 85
      <SubType>Designer</SubType>
82 86
    </Content>
KCOM_API_AutoStamping/Themes/alertify.bootstrap.css
1
/**
2
 * Twitter Bootstrap Look and Feel
3
 * Based on http://twitter.github.com/bootstrap/
4
 */
5
.alertify,
6
.alertify-log {
7
	font-family: sans-serif;
8
}
9
.alertify {
10
	background: #FFF;
11
	border: 1px solid #8E8E8E; /* browsers that don't support rgba */
12
	border: 1px solid rgba(0,0,0,.3);
13
	border-radius: 6px;
14
	box-shadow: 0 3px 7px rgba(0,0,0,.3);
15
	-webkit-background-clip: padding;     /* Safari 4? Chrome 6? */
16
	   -moz-background-clip: padding;     /* Firefox 3.6 */
17
	        background-clip: padding-box; /* Firefox 4, Safari 5, Opera 10, IE 9 */
18
}
19
.alertify-dialog {
20
	padding: 0;
21
}
22
	.alertify-inner {
23
		text-align: left;
24
	}
25
		.alertify-message {
26
			padding: 15px;
27
			margin: 0;
28
		}
29
		.alertify-text-wrapper {
30
			padding: 0 15px;
31
		}
32
			.alertify-text {
33
				color: #555;
34
				border-radius: 4px;
35
				padding: 8px;
36
				background-color: #FFF;
37
				border: 1px solid #CCC;
38
				box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
39
			}
40
			.alertify-text:focus {
41
				border-color: rgba(82,168,236,.8);
42
				outline: 0;
43
				box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6);
44
			}
45

  
46
		.alertify-buttons {
47
			padding: 14px 15px 15px;
48
			background: #F5F5F5;
49
			border-top: 1px solid #DDD;
50
			border-radius: 0 0 6px 6px;
51
			box-shadow: inset 0 1px 0 #FFF;
52
			text-align: right;
53
		}
54
			.alertify-button,
55
			.alertify-button:hover,
56
			.alertify-button:focus,
57
			.alertify-button:active {
58
				margin-left: 10px;
59
				border-radius: 4px;
60
				font-weight: normal;
61
				padding: 4px 12px;
62
				text-decoration: none;
63
				box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 1px 2px rgba(0, 0, 0, .05);
64
				background-image: -webkit-linear-gradient(top, rgba(255,255,255,.3), rgba(255,255,255,0));
65
				background-image:    -moz-linear-gradient(top, rgba(255,255,255,.3), rgba(255,255,255,0));
66
				background-image:     -ms-linear-gradient(top, rgba(255,255,255,.3), rgba(255,255,255,0));
67
				background-image:      -o-linear-gradient(top, rgba(255,255,255,.3), rgba(255,255,255,0));
68
				background-image:         linear-gradient(top, rgba(255,255,255,.3), rgba(255,255,255,0));
69
			}
70
			.alertify-button:focus {
71
				outline: none;
72
				box-shadow: 0 0 5px #2B72D5;
73
			}
74
			.alertify-button:active {
75
				position: relative;
76
				box-shadow: inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05);
77
			}
78
				.alertify-button-cancel,
79
				.alertify-button-cancel:hover,
80
				.alertify-button-cancel:focus,
81
				.alertify-button-cancel:active {
82
					text-shadow: 0 -1px 0 rgba(255,255,255,.75);
83
					background-color: #E6E6E6;
84
					border: 1px solid #BBB;
85
					color: #333;
86
					background-image: -webkit-linear-gradient(top, #FFF, #E6E6E6);
87
					background-image:    -moz-linear-gradient(top, #FFF, #E6E6E6);
88
					background-image:     -ms-linear-gradient(top, #FFF, #E6E6E6);
89
					background-image:      -o-linear-gradient(top, #FFF, #E6E6E6);
90
					background-image:         linear-gradient(top, #FFF, #E6E6E6);
91
				}
92
				.alertify-button-cancel:hover,
93
				.alertify-button-cancel:focus,
94
				.alertify-button-cancel:active {
95
					background: #E6E6E6;
96
				}
97
				.alertify-button-ok,
98
				.alertify-button-ok:hover,
99
				.alertify-button-ok:focus,
100
				.alertify-button-ok:active {
101
					text-shadow: 0 -1px 0 rgba(0,0,0,.25);
102
					background-color: #04C;
103
					border: 1px solid #04C;
104
					border-color: #04C #04C #002A80;
105
					border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
106
					color: #FFF;
107
				}
108
				.alertify-button-ok:hover,
109
				.alertify-button-ok:focus,
110
				.alertify-button-ok:active {
111
					background: #04C;
112
				}
113

  
114
.alertify-log {
115
	background: #D9EDF7;
116
	padding: 8px 14px;
117
	border-radius: 4px;
118
	color: #3A8ABF;
119
	text-shadow: 0 1px 0 rgba(255,255,255,.5);
120
	border: 1px solid #BCE8F1;
121
}
122
	.alertify-log-error {
123
		color: #B94A48;
124
		background: #F2DEDE;
125
		border: 1px solid #EED3D7;
126
	}
127
	.alertify-log-success {
128
		color: #468847;
129
		background: #DFF0D8;
130
		border: 1px solid #D6E9C6;
131
	}
KCOM_API_AutoStamping/Themes/alertify.core.css
1
.alertify,
2
.alertify-show,
3
.alertify-log {
4
	-webkit-transition: all 500ms cubic-bezier(0.175, 0.885, 0.320, 1.275);
5
	   -moz-transition: all 500ms cubic-bezier(0.175, 0.885, 0.320, 1.275);
6
	    -ms-transition: all 500ms cubic-bezier(0.175, 0.885, 0.320, 1.275);
7
	     -o-transition: all 500ms cubic-bezier(0.175, 0.885, 0.320, 1.275);
8
	        transition: all 500ms cubic-bezier(0.175, 0.885, 0.320, 1.275); /* easeOutBack */
9
}
10
.alertify-hide {
11
	-webkit-transition: all 250ms cubic-bezier(0.600, -0.280, 0.735, 0.045);
12
	   -moz-transition: all 250ms cubic-bezier(0.600, -0.280, 0.735, 0.045);
13
	    -ms-transition: all 250ms cubic-bezier(0.600, -0.280, 0.735, 0.045);
14
	     -o-transition: all 250ms cubic-bezier(0.600, -0.280, 0.735, 0.045);
15
	        transition: all 250ms cubic-bezier(0.600, -0.280, 0.735, 0.045); /* easeInBack */
16
}
17
.alertify-log-hide {
18
	-webkit-transition: all 500ms cubic-bezier(0.600, -0.280, 0.735, 0.045);
19
	   -moz-transition: all 500ms cubic-bezier(0.600, -0.280, 0.735, 0.045);
20
	    -ms-transition: all 500ms cubic-bezier(0.600, -0.280, 0.735, 0.045);
21
	     -o-transition: all 500ms cubic-bezier(0.600, -0.280, 0.735, 0.045);
22
	        transition: all 500ms cubic-bezier(0.600, -0.280, 0.735, 0.045); /* easeInBack */
23
}
24
.alertify-cover {
25
	position: fixed; z-index: 99999;
26
	top: 0; right: 0; bottom: 0; left: 0;
27
	background-color:white;
28
	filter:alpha(opacity=0);
29
	opacity:0;
30
}
31
	.alertify-cover-hidden {
32
		display: none;
33
	}
34
.alertify {
35
	position: fixed; z-index: 99999;
36
	top: 50px; left: 50%;
37
	width:auto;
38
	margin-left: -275px;
39
	opacity: 1;
40
}
41
	.alertify-hidden {
42
		-webkit-transform: translate(0,-150px);
43
		   -moz-transform: translate(0,-150px);
44
		    -ms-transform: translate(0,-150px);
45
		     -o-transform: translate(0,-150px);
46
		        transform: translate(0,-150px);
47
		opacity: 0;
48
		display: none;
49
	}
50
	/* overwrite display: none; for everything except IE6-8 */
51
	:root *> .alertify-hidden {
52
		display: block;
53
		visibility: hidden;
54
	}
55
.alertify-logs {
56
	position: fixed;
57
	z-index: 5000;
58
	bottom: 10px;
59
	right: 10px;
60
	width: 300px;
61
}
62
.alertify-logs-hidden {
63
	display: none;
64
}
65
	.alertify-log {
66
		display: block;
67
		margin-top: 10px;
68
		position: relative;
69
		right: -300px;
70
		opacity: 0;
71
	}
72
	.alertify-log-show {
73
		right: 0;
74
		opacity: 1;
75
	}
76
	.alertify-log-hide {
77
		-webkit-transform: translate(300px, 0);
78
		   -moz-transform: translate(300px, 0);
79
		    -ms-transform: translate(300px, 0);
80
		     -o-transform: translate(300px, 0);
81
		        transform: translate(300px, 0);
82
		opacity: 0;
83
	}
84
	.alertify-dialog {
85
		padding: 25px;
86
	}
87
		.alertify-resetFocus {
88
			border: 0;
89
			clip: rect(0 0 0 0);
90
			height: 1px;
91
			margin: -1px;
92
			overflow: hidden;
93
			padding: 0;
94
			position: absolute;
95
			width: 1px;
96
		}
97
        .alertify-inner {
98
            text-align: left;
99
        }
100

  
101
        .alertify-text {
102
            margin-bottom: 15px;
103
            width: 100%;
104
            -webkit-box-sizing: border-box;
105
            -moz-box-sizing: border-box;
106
            box-sizing: border-box;
107
            font-size: 100%;
108
        }
109
		.alertify-buttons {
110
		}
111
			.alertify-button,
112
			.alertify-button:hover,
113
			.alertify-button:active,
114
			.alertify-button:visited {
115
				background: none;
116
				text-decoration: none;
117
				border: none;
118
				/* line-height and font-size for input button */
119
				line-height: 1.5;
120
				font-size: 100%;
121
				display: inline-block;
122
				cursor: pointer;
123
				margin-left: 5px;
124
			}
125

  
126
@media only screen and (max-width: 800px) {
127
	.alertify,
128
	.alertify-logs {
129
		width: 90%;
130
		-webkit-box-sizing: border-box;
131
		   -moz-box-sizing: border-box;
132
		        box-sizing: border-box;
133
	}
134
	.alertify {
135
		left: 5%;
136
		margin: 0;
137
	}
138
}
KCOM_API_AutoStamping/Themes/alertify.default.css
1
/**
2
 * Default Look and Feel
3
 */
4
.alertify,
5
.alertify-log {
6
	font-family: sans-serif;
7
}
8
.alertify {
9
	background: #FFF;
10
	border: 10px solid #333; /* browsers that don't support rgba */
11
	border: 10px solid rgba(0,0,0,.7);
12
	border-radius: 8px;
13
	box-shadow: 0 3px 3px rgba(0,0,0,.3);
14
	-webkit-background-clip: padding;     /* Safari 4? Chrome 6? */
15
	   -moz-background-clip: padding;     /* Firefox 3.6 */
16
	        background-clip: padding-box; /* Firefox 4, Safari 5, Opera 10, IE 9 */
17
}
18
	.alertify-text {
19
		border: 1px solid #CCC;
20
		padding: 10px;
21
		border-radius: 4px;
22
	}
23
	.alertify-button {
24
		border-radius: 4px;
25
		color: #FFF;
26
		font-weight: bold;
27
		padding: 6px 15px;
28
		text-decoration: none;
29
		text-shadow: 1px 1px 0 rgba(0,0,0,.5);
30
		box-shadow: inset 0 1px 0 0 rgba(255,255,255,.5);
31
		background-image: -webkit-linear-gradient(top, rgba(255,255,255,.3), rgba(255,255,255,0));
32
		background-image:    -moz-linear-gradient(top, rgba(255,255,255,.3), rgba(255,255,255,0));
33
		background-image:     -ms-linear-gradient(top, rgba(255,255,255,.3), rgba(255,255,255,0));
34
		background-image:      -o-linear-gradient(top, rgba(255,255,255,.3), rgba(255,255,255,0));
35
		background-image:         linear-gradient(top, rgba(255,255,255,.3), rgba(255,255,255,0));
36
	}
37
	.alertify-button:hover,
38
	.alertify-button:focus {
39
		outline: none;
40
		background-image: -webkit-linear-gradient(top, rgba(0,0,0,.1), rgba(0,0,0,0));
41
		background-image:    -moz-linear-gradient(top, rgba(0,0,0,.1), rgba(0,0,0,0));
42
		background-image:     -ms-linear-gradient(top, rgba(0,0,0,.1), rgba(0,0,0,0));
43
		background-image:      -o-linear-gradient(top, rgba(0,0,0,.1), rgba(0,0,0,0));
44
		background-image:         linear-gradient(top, rgba(0,0,0,.1), rgba(0,0,0,0));
45
	}
46
	.alertify-button:focus {
47
		box-shadow: 0 0 15px #2B72D5;
48
	}
49
	.alertify-button:active {
50
		position: relative;
51
		box-shadow: inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05);
52
	}
53
		.alertify-button-cancel,
54
		.alertify-button-cancel:hover,
55
		.alertify-button-cancel:focus {
56
			background-color: #FE1A00;
57
			border: 1px solid #D83526;
58
		}
59
		.alertify-button-ok,
60
		.alertify-button-ok:hover,
61
		.alertify-button-ok:focus {
62
			background-color: #5CB811;
63
			border: 1px solid #3B7808;
64
		}
65

  
66
.alertify-log {
67
	background: #1F1F1F;
68
	background: rgba(0,0,0,.9);
69
	padding: 15px;
70
	border-radius: 4px;
71
	color: #FFF;
72
	text-shadow: -1px -1px 0 rgba(0,0,0,.5);
73
}
74
	.alertify-log-error {
75
		background: #FE1A00;
76
		background: rgba(254,26,0,.9);
77
	}
78
	.alertify-log-success {
79
		background: #5CB811;
80
		background: rgba(92,184,17,.9);
81
	}
KCOM_API_AutoStamping/js/alertify.min.js
1
/*! alertify - v0.3.11 - 2013-10-08 */
2
!function(a,b){"use strict";var c,d=a.document;c=function(){var c,e,f,g,h,i,j,k,l,m,n,o,p,q={},r={},s=!1,t={ENTER:13,ESC:27,SPACE:32},u=[];return r={buttons:{holder:'<nav class="alertify-buttons">{{buttons}}</nav>',submit:'<button type="submit" class="alertify-button alertify-button-ok" id="alertify-ok">{{ok}}</button>',ok:'<button class="alertify-button alertify-button-ok" id="alertify-ok">{{ok}}</button>',cancel:'<button class="alertify-button alertify-button-cancel" id="alertify-cancel">{{cancel}}</button>'},input:'<div class="alertify-text-wrapper"><input type="text" class="alertify-text" id="alertify-text"></div>',message:'<p class="alertify-message">{{message}}</p>',log:'<article class="alertify-log{{class}}">{{message}}</article>'},p=function(){var a,c,e=!1,f=d.createElement("fakeelement"),g={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend",transition:"transitionend"};for(a in g)if(f.style[a]!==b){c=g[a],e=!0;break}return{type:c,supported:e}},c=function(a){return d.getElementById(a)},q={labels:{ok:"OK",cancel:"Cancel"},delay:5e3,buttonReverse:!1,buttonFocus:"ok",transition:b,addListeners:function(a){var b,c,i,j,k,l="undefined"!=typeof f,m="undefined"!=typeof e,n="undefined"!=typeof o,p="",q=this;b=function(b){return"undefined"!=typeof b.preventDefault&&b.preventDefault(),i(b),"undefined"!=typeof o&&(p=o.value),"function"==typeof a&&("undefined"!=typeof o?a(!0,p):a(!0)),!1},c=function(b){return"undefined"!=typeof b.preventDefault&&b.preventDefault(),i(b),"function"==typeof a&&a(!1),!1},i=function(){q.hide(),q.unbind(d.body,"keyup",j),q.unbind(g,"focus",k),l&&q.unbind(f,"click",b),m&&q.unbind(e,"click",c)},j=function(a){var d=a.keyCode;(d===t.SPACE&&!n||n&&d===t.ENTER)&&b(a),d===t.ESC&&m&&c(a)},k=function(){n?o.focus():!m||q.buttonReverse?f.focus():e.focus()},this.bind(g,"focus",k),this.bind(h,"focus",k),l&&this.bind(f,"click",b),m&&this.bind(e,"click",c),this.bind(d.body,"keyup",j),this.transition.supported||this.setFocus()},bind:function(a,b,c){"function"==typeof a.addEventListener?a.addEventListener(b,c,!1):a.attachEvent&&a.attachEvent("on"+b,c)},handleErrors:function(){if("undefined"!=typeof a.onerror){var b=this;return a.onerror=function(a,c,d){b.error("["+a+" on line "+d+" of "+c+"]",0)},!0}return!1},appendButtons:function(a,b){return this.buttonReverse?b+a:a+b},build:function(a){var b="",c=a.type,d=a.message,e=a.cssClass||"";switch(b+='<div class="alertify-dialog">',b+='<a id="alertify-resetFocusBack" class="alertify-resetFocus" href="#">Reset Focus</a>',"none"===q.buttonFocus&&(b+='<a href="#" id="alertify-noneFocus" class="alertify-hidden"></a>'),"prompt"===c&&(b+='<div id="alertify-form">'),b+='<article class="alertify-inner">',b+=r.message.replace("{{message}}",d),"prompt"===c&&(b+=r.input),b+=r.buttons.holder,b+="</article>","prompt"===c&&(b+="</div>"),b+='<a id="alertify-resetFocus" class="alertify-resetFocus" href="#">Reset Focus</a>',b+="</div>",c){case"confirm":b=b.replace("{{buttons}}",this.appendButtons(r.buttons.cancel,r.buttons.ok)),b=b.replace("{{ok}}",this.labels.ok).replace("{{cancel}}",this.labels.cancel);break;case"prompt":b=b.replace("{{buttons}}",this.appendButtons(r.buttons.cancel,r.buttons.submit)),b=b.replace("{{ok}}",this.labels.ok).replace("{{cancel}}",this.labels.cancel);break;case"alert":b=b.replace("{{buttons}}",r.buttons.ok),b=b.replace("{{ok}}",this.labels.ok)}return l.className="alertify alertify-"+c+" "+e,k.className="alertify-cover",b},close:function(a,b){var c,d,e=b&&!isNaN(b)?+b:this.delay,f=this;this.bind(a,"click",function(){c(a)}),d=function(a){a.stopPropagation(),f.unbind(this,f.transition.type,d),m.removeChild(this),m.hasChildNodes()||(m.className+=" alertify-logs-hidden")},c=function(a){"undefined"!=typeof a&&a.parentNode===m&&(f.transition.supported?(f.bind(a,f.transition.type,d),a.className+=" alertify-log-hide"):(m.removeChild(a),m.hasChildNodes()||(m.className+=" alertify-logs-hidden")))},0!==b&&setTimeout(function(){c(a)},e)},dialog:function(a,b,c,e,f){j=d.activeElement;var g=function(){m&&null!==m.scrollTop&&k&&null!==k.scrollTop||g()};if("string"!=typeof a)throw new Error("message must be a string");if("string"!=typeof b)throw new Error("type must be a string");if("undefined"!=typeof c&&"function"!=typeof c)throw new Error("fn must be a function");return this.init(),g(),u.push({type:b,message:a,callback:c,placeholder:e,cssClass:f}),s||this.setup(),this},extend:function(a){if("string"!=typeof a)throw new Error("extend method must have exactly one paramter");return function(b,c){return this.log(b,a,c),this}},hide:function(){var a,b=this;u.splice(0,1),u.length>0?this.setup(!0):(s=!1,a=function(c){c.stopPropagation(),b.unbind(l,b.transition.type,a)},this.transition.supported?(this.bind(l,this.transition.type,a),l.className="alertify alertify-hide alertify-hidden"):l.className="alertify alertify-hide alertify-hidden alertify-isHidden",k.className="alertify-cover alertify-cover-hidden",j.focus())},init:function(){d.createElement("nav"),d.createElement("article"),d.createElement("section"),null==c("alertify-cover")&&(k=d.createElement("div"),k.setAttribute("id","alertify-cover"),k.className="alertify-cover alertify-cover-hidden",d.body.appendChild(k)),null==c("alertify")&&(s=!1,u=[],l=d.createElement("section"),l.setAttribute("id","alertify"),l.className="alertify alertify-hidden",d.body.appendChild(l)),null==c("alertify-logs")&&(m=d.createElement("section"),m.setAttribute("id","alertify-logs"),m.className="alertify-logs alertify-logs-hidden",d.body.appendChild(m)),d.body.setAttribute("tabindex","0"),this.transition=p()},log:function(a,b,c){var d=function(){m&&null!==m.scrollTop||d()};return this.init(),d(),m.className="alertify-logs",this.notify(a,b,c),this},notify:function(a,b,c){var e=d.createElement("article");e.className="alertify-log"+("string"==typeof b&&""!==b?" alertify-log-"+b:""),e.innerHTML=a,m.appendChild(e),setTimeout(function(){e.className=e.className+" alertify-log-show"},50),this.close(e,c)},set:function(a){var b;if("object"!=typeof a&&a instanceof Array)throw new Error("args must be an object");for(b in a)a.hasOwnProperty(b)&&(this[b]=a[b])},setFocus:function(){o?(o.focus(),o.select()):i.focus()},setup:function(a){var d,j=u[0],k=this;s=!0,d=function(a){a.stopPropagation(),k.setFocus(),k.unbind(l,k.transition.type,d)},this.transition.supported&&!a&&this.bind(l,this.transition.type,d),l.innerHTML=this.build(j),g=c("alertify-resetFocus"),h=c("alertify-resetFocusBack"),f=c("alertify-ok")||b,e=c("alertify-cancel")||b,i="cancel"===q.buttonFocus?e:"none"===q.buttonFocus?c("alertify-noneFocus"):f,o=c("alertify-text")||b,n=c("alertify-form")||b,"string"==typeof j.placeholder&&""!==j.placeholder&&(o.value=j.placeholder),a&&this.setFocus(),this.addListeners(j.callback)},unbind:function(a,b,c){"function"==typeof a.removeEventListener?a.removeEventListener(b,c,!1):a.detachEvent&&a.detachEvent("on"+b,c)}},{alert:function(a,b,c){return q.dialog(a,"alert",b,"",c),this},confirm:function(a,b,c){return q.dialog(a,"confirm",b,"",c),this},extend:q.extend,init:q.init,log:function(a,b,c){return q.log(a,b,c),this},prompt:function(a,b,c,d){return q.dialog(a,"prompt",b,c,d),this},success:function(a,b){return q.log(a,"success",b),this},error:function(a,b){return q.log(a,"error",b),this},set:function(a){q.set(a)},labels:q.labels,debug:q.handleErrors}},"function"==typeof define?define([],function(){return new c}):"undefined"==typeof a.alertify&&(a.alertify=new c)}(this);
KCOM_API_AutoStamping/old/AutoApprovalTest.aspx
1
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AutoApprovalTest.aspx.cs" Inherits="AutoApprovalTest" %>
2

  
3

  
4
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
5
<html xmlns="http://www.w3.org/1999/xhtml">
6
<head runat="server">
7
    <title>All Approval Page</title>
8
    <script type="text/javascript" >
9
     
10
    </script>
11
</head>
12
<body>
13
     <form id="form1" runat="server">
14
     <input type="hidden" id="hdnNode" runat="server" />
15
    <input type="hidden" id="hdnSiteid" runat="server" />
16
    <input type="hidden" id="hdnWebid" runat="server" />
17
     <input type="hidden" id="hdnpjtno" runat="server" />
18
        <div>
19
        <table>
20
        <tr>
21
        <td>Project No :</td>
22
        <td>
23
       <%-- <asp:TextBox ID="txtproject_no" runat="server"></asp:TextBox>--%>
24
            <asp:DropDownList ID="PROJECT_LIST" runat="server" AutoPostBack="true"></asp:DropDownList>
25
        </td>
26
         <td>
27
         <%--    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"   
28
            ControlToValidate="txtproject_no" ErrorMessage="Project No required" ForeColor="Red"></asp:RequiredFieldValidator>
29
             </td>--%>
30
        </tr>
31
        <tr>
32
        <td>Slip No :</td>
33
        <td>
34
        <asp:TextBox ID="txtslip_no" runat="server"></asp:TextBox>
35
        </td>
36
              <td>
37
             <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"   
38
            ControlToValidate="txtslip_no" ErrorMessage="Slip No required" ForeColor="Red"></asp:RequiredFieldValidator>
39
             </td>
40
        </tr>
41
        </tr>
42
        <tr>
43
        <td>User ID :</td>
44
        <td>
45
        <asp:TextBox ID="txtuser_id" AutoPostBack="true" runat="server"></asp:TextBox>
46
        </td>
47
              <td>
48
             <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server"   
49
            ControlToValidate="txtuser_id" ErrorMessage="User ID required" ForeColor="Red"></asp:RequiredFieldValidator>
50
             </td>
51
        </tr>
52
        </table>
53
        </div>
54
        <p>
55
           <asp:Button ID="Button1" runat="server" Text="All Approval" 
56
                onclick="Button1_Click" /> 
57
        </p>
58
    </form>
59
</body>
60
</html>
KCOM_API_AutoStamping/old/AutoApprovalTest.aspx.cs
1
using System;
2
using System.Data;
3
using System.Configuration;
4
using System.Web;
5
using System.Web.Security;
6
using System.Web.UI;
7
using System.Web.UI.WebControls;
8
using System.Web.UI.WebControls.WebParts;
9
using System.Web.UI.HtmlControls;
10

  
11
using Microsoft.SharePoint;
12
using System.Net;
13
using System.Xml;
14

  
15
public partial class AutoApprovalTest: System.Web.UI.Page 
16
{
17
    public string sSiteId = string.Empty;
18
    public string sWebId = string.Empty;
19
    public string sType = string.Empty;
20
    private const string cookieName = "autoStampCookie";
21
    private const string cookieKeySelectPrj = "SelectProject";
22

  
23
    protected void Page_Load(object sender, EventArgs e)
24
    {
25
            if (!IsPostBack)
26
            {
27
                DataSet ds = new DataSet();
28

  
29
                WebClient client = new WebClient();
30
                string reqstr = "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\">"
31
                                + "<soapenv:Header/>"
32
                                + "<soapenv:Body>"
33
                                + "</soapenv:Body>"
34
                                + "</soapenv:Envelope>";
35
                client.Headers.Add(HttpRequestHeader.ContentType, "text/xml");
36
                client.Headers.Add("SOAPAction", "urn:Common/GetProjectList");
37

  
38

  
39
                string _result = client.UploadString(new Uri("http://10.11.252.3:9877/AutoStamping.svc"), reqstr);
40

  
41
                XmlTextReader reader = new XmlTextReader(new System.IO.StringReader(_result));
42
                ds.ReadXml(reader);
43

  
44
                PROJECT_LIST.DataSource = ds.Tables["ProjectInfo"];
45
                PROJECT_LIST.DataTextField = "Name";
46
                PROJECT_LIST.DataValueField = "No";
47
                PROJECT_LIST.DataBind();
48

  
49
                var selectPrj = LoadCookies(cookieKeySelectPrj);
50

  
51
                if (selectPrj == null)
52
                {
53
                    PROJECT_LIST.SelectedIndex = 0;
54
                }
55
                else
56
                {
57
                    PROJECT_LIST.SelectedValue = selectPrj;
58
                }
59

  
60
                try
61
                {
62
                    
63
                    if (Request.QueryString["siteId"] != null)
64
                        hdnSiteid.Value = Request.QueryString["siteId"].ToString();
65

  
66
                    if (Request.QueryString["webId"] != null)
67
                        hdnWebid.Value = Request.QueryString["webId"].ToString();
68

  
69
                    if (Request.QueryString["NODE"] != null)
70
                        hdnNode.Value = Request.QueryString["NODE"].ToString();
71

  
72
                    if (Request.QueryString["pjtno"] != null)
73
                        hdnpjtno.Value = Request.QueryString["pjtno"].ToString();
74

  
75
                    //Guid guidSite = new Guid(hdnSiteid.Value);
76
                    //Guid guidWeb = new Guid(hdnWebid.Value);
77

  
78

  
79
                    string sspURL = "http://www.hsdh2.com";
80

  
81
                    SPSite site = new SPSite(sspURL);
82

  
83
                    SPWeb web = site.OpenWeb();
84
                    
85
                    SPUser user = web.CurrentUser;
86

  
87
                    txtuser_id.Text = (user == null) ? web.Description : user.LoginName.Split('\\')[1].ToUpper();
88
                 
89
                }
90
                catch (Exception ex)
91
                {
92
                }
93
            }
94
    }
95

  
96
    protected void Button1_Click(object sender, EventArgs e)
97
    {
98
        string project_no = this.PROJECT_LIST.SelectedValue.Trim().ToString();
99
        string slip_no = this.txtslip_no.Text.Trim().ToString();
100
        string user_id = this.txtuser_id.Text.Trim().ToString();
101

  
102
        WebClient client = new WebClient();
103
        string reqstr = "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\">"
104
                        + "<soapenv:Header/>"
105
                        + "<soapenv:Body>"
106
                        + "<AutoStamping>"
107
                        + "<project_no>" + project_no + "</project_no>"
108
                        + "<slip_no>" + slip_no + "</slip_no>"
109
                        + "<user_id>" + user_id + "</user_id>"
110
                        + "</AutoStamping>"
111
                        + "</soapenv:Body>"
112
                        + "</soapenv:Envelope>";
113
        client.Headers.Add(HttpRequestHeader.ContentType, "text/xml");
114
        client.Headers.Add("SOAPAction", "urn:Common/AutoStamping");
115

  
116
        string _result = client.UploadString(new Uri("http://10.11.252.3:9877/AutoStamping.svc"), reqstr);
117
        XmlTextReader reader = new XmlTextReader(new System.IO.StringReader(_result));
118
        string msg = "Success!\\nAfer a while, please check the generation of Merged PDFs on the VP Circulation inquiry screen.";
119

  
120
        while (reader.Read())
121
        {
122
            switch (reader.NodeType)
123
            {
124
                case XmlNodeType.Element:
125
                    if (reader.Name == "AutoStampingResult")
126
                    {
127
                        reader.Read();
128
                        if (!string.IsNullOrEmpty(reader.Value))
129
                            msg = "Error:"+reader.Value;
130
                    }
131
                    break;
132
            }
133
        }
134

  
135
        SaveCookies(cookieKeySelectPrj, project_no);
136

  
137
        Response.Write("<script language='Javascript'> ");
138
        Response.Write("alert('" + msg + "'); ");
139
        Response.Write("</script>");
140
    }
141

  
142
    private void SaveCookies(string Key, string value)
143
    {
144
        HttpCookie cookies = new HttpCookie(Key, value);
145
        cookies.Expires = DateTime.Now.AddDays(10);
146

  
147
        Response.Cookies[Key].Expires = DateTime.Now.AddDays(10);
148
        Response.Cookies.Add(cookies);
149
    }
150

  
151
    private string LoadCookies(string Key)
152
    {
153
        return (Request.Cookies[Key] != null) ? Request.Cookies[Key].Value : null;
154
    }
155
}

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)