<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4400122150726207273</id><updated>2024-03-19T05:04:22.048-07:00</updated><category term="oracle erp"/><category term="flex"/><category term="AP"/><category term="flash"/><category term="glassfish"/><category term="GL"/><category term="java"/><category term="CDB"/><category term="JPA"/><category term="air"/><category term="asp.net"/><category term="asp.net MVC"/><category term="clear toolkit"/><category term="ext js 4"/><category term="作品"/><category term="PO"/><category term="WEB ADI"/><category term="flex 4"/><category term="flex builder"/><category term="java script"/><category term="mongodb"/><category term="oauth"/><category term="oauth for spring security"/><category term="LINQ"/><category term="R12"/><category term="alivepdf"/><category term="entity framework"/><category term="flash builder"/><category term="flash player 10.1"/><category term="html5"/><category term="mobile"/><category term="sql"/><category term="system profile"/><category term=".Net"/><category term="Adobe LifeCycle ES 2"/><category term="Drag Drop"/><category term="EclipseLink"/><category term="EntityManager"/><category term="Error creating AIR file"/><category term="FMG"/><category term="FMS"/><category term="FormsAuthentication"/><category term="HTTP 405"/><category term="MASTER ORGANIZATION ID"/><category term="MVC model bindler"/><category term="NM"/><category term="Navigator"/><category term="ODAC"/><category term="ObjectUtil"/><category term="PPR"/><category term="RSL"/><category term="SIP"/><category term="URIEncoding"/><category term="URLRequest"/><category term="URLRequestMethod"/><category term="UTF-8"/><category term="air 2.5 URLRequest IOError"/><category term="ajax"/><category term="applet"/><category term="blazeds"/><category term="burrito"/><category term="charset"/><category term="chart"/><category term="ckeditor"/><category term="ckfinder"/><category term="clone"/><category term="close period"/><category term="css"/><category term="drill down"/><category term="dynamic series"/><category term="farata"/><category term="filereference charset"/><category term="flex charset"/><category term="free"/><category term="google speech api"/><category term="hero"/><category term="html"/><category term="iText"/><category term="iTextAsian"/><category term="iframe"/><category term="iis"/><category term="javamail"/><category term="jdbcrealm"/><category term="nvl"/><category term="oauth2"/><category term="openMQ"/><category term="opensso"/><category term="oracle"/><category term="oracle fulltext index"/><category term="owner vs parent"/><category term="p2p"/><category term="pdf"/><category term="realm"/><category term="secondary ledger"/><category term="servlet"/><category term="tomcat"/><category term="tomcat datasource"/><category term="updatepanel"/><category term="web service"/><category term="web service security"/><category term="中文"/><category term="中文參數"/><title type='text'>Catton的IT分享</title><subtitle type='html'>如果我從別人身上有所收獲，那我應該再把它跟別人分享</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://cattonitcareer.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4400122150726207273/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://cattonitcareer.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/4400122150726207273/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03904899640663376912</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>149</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4400122150726207273.post-5166420404916408349</id><published>2014-07-16T02:24:00.001-07:00</published><updated>2014-07-16T02:24:20.545-07:00</updated><title type='text'>換網址囉</title><content type='html'>改換到這一個囉&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #6aa84f;&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;a href=&quot;http://cattoncareer.blogspot.tw/&quot; target=&quot;_blank&quot;&gt;Catton IT Career&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
應該不會再這個 blog發表文章了。&lt;br /&gt;
&lt;br /&gt;
以後先會把學習放在 mongoDB上，有任何收獲會與大家分享</content><link rel='replies' type='application/atom+xml' href='http://cattonitcareer.blogspot.com/feeds/5166420404916408349/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://cattonitcareer.blogspot.com/2014/07/blog-post.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4400122150726207273/posts/default/5166420404916408349'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4400122150726207273/posts/default/5166420404916408349'/><link rel='alternate' type='text/html' href='http://cattonitcareer.blogspot.com/2014/07/blog-post.html' title='換網址囉'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03904899640663376912</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4400122150726207273.post-3399411107544524926</id><published>2014-05-30T02:59:00.004-07:00</published><updated>2014-05-30T02:59:54.057-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="oracle erp"/><title type='text'>如何讓 Procedure的 Concurrent Status可以變成 Warning 或 Error</title><content type='html'>參考文章：&lt;a href=&quot;http://www.oracleerpappsguide.com/2013/01/errbuf-and-retcode-in-concurrent-program.html&quot; target=&quot;_blank&quot;&gt;ERRBUF and RETCODE in Concurrent Program&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;因為是&amp;nbsp;Concurrent是呼叫 Procedure的話，第一個、第二個參數為&lt;br /&gt;
&amp;nbsp;errbuf out varchar2 &amp;nbsp;,retcode out varchar2&lt;br /&gt;
&lt;br /&gt;
所以可以利用 retcode&lt;br /&gt;
retcode &amp;nbsp;:= 1 ERP Request Status就會是 Warning，&lt;br /&gt;
retcode &amp;nbsp;:= 2 就會是 Error</content><link rel='replies' type='application/atom+xml' href='http://cattonitcareer.blogspot.com/feeds/3399411107544524926/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://cattonitcareer.blogspot.com/2014/05/procedure-concurrent-status-warning.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4400122150726207273/posts/default/3399411107544524926'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4400122150726207273/posts/default/3399411107544524926'/><link rel='alternate' type='text/html' href='http://cattonitcareer.blogspot.com/2014/05/procedure-concurrent-status-warning.html' title='如何讓 Procedure的 Concurrent Status可以變成 Warning 或 Error'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03904899640663376912</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4400122150726207273.post-8414215812420400442</id><published>2014-05-28T01:28:00.002-07:00</published><updated>2014-05-28T01:30:55.068-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AP"/><category scheme="http://www.blogger.com/atom/ns#" term="oracle erp"/><title type='text'>Doc ID 1489862.1 R12 Generic Data Fix (GDF) Patch for COMMONLY OCCURING INVOICE ISSUES 無法解決 Mat 3</title><content type='html'>前一陣子有用 single_trx.sql找出一筆 invoice需要作 data fix，使用&amp;nbsp;ap_one_off_scripts_sel(fix).sql來解決，於更新了 patch也執行了 fix程式，但此筆的問題還是存在，而且重新執行 single_trx.sql還是會建議你用相同的 datafix 解決，後來可行的作法就是&lt;br /&gt;
1.先請使用者先將 invoice line作 discard後存檔&lt;br /&gt;
2.我再跑一次 single_trx.sql，結果發現另一個 datafix的建議&amp;nbsp;R12: Generic Data Fix (GDF) Patch - Unable to Discard PO Matched Invoice Lines [ID 982072.1]&lt;br /&gt;
3.執行&amp;nbsp;&amp;nbsp;ap_sync_po_qty_amt_sel(fix).sql後&lt;br /&gt;
4.重新 match就正常了。</content><link rel='replies' type='application/atom+xml' href='http://cattonitcareer.blogspot.com/feeds/8414215812420400442/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://cattonitcareer.blogspot.com/2014/05/doc-id-14898621-r12-generic-data-fix.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4400122150726207273/posts/default/8414215812420400442'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4400122150726207273/posts/default/8414215812420400442'/><link rel='alternate' type='text/html' href='http://cattonitcareer.blogspot.com/2014/05/doc-id-14898621-r12-generic-data-fix.html' title='Doc ID 1489862.1 R12 Generic Data Fix (GDF) Patch for COMMONLY OCCURING INVOICE ISSUES 無法解決 Mat 3'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03904899640663376912</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4400122150726207273.post-6078718134799885360</id><published>2014-05-28T01:21:00.000-07:00</published><updated>2014-05-28T01:34:58.215-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="oauth for spring security"/><category scheme="http://www.blogger.com/atom/ns#" term="oauth2"/><title type='text'>Spring Security OAuth2 Client anonymous 存取 Oauth2 resource</title><content type='html'>&lt;a href=&quot;https://github.com/spring-projects/spring-security-oauth&quot; target=&quot;_blank&quot;&gt;spring-projects/spring-security-oauth&lt;/a&gt;&amp;nbsp;在這個專案有 OAuth1, OAuth2的 Server, Client實作，在 OAuth1 Client 存取 Server resource時是可以直接存取的，但在 OAuth2 Client的設計是要先登入才能存取 Server resource，如果要直接存取的話，則會出現錯誤如下&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #eaeff0; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 14px; line-height: 15.399999618530273px; white-space: pre;&quot;&gt;org.springframework.security.authentication.InsufficientAuthenticationException: Authentication is required to obtain an access token (anonymous not allowed)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #eaeff0; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 14px; line-height: 15.399999618530273px; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #eaeff0; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 14px; line-height: 15.399999618530273px; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
這邊有一邊文章 (&lt;a href=&quot;http://blog.comsysto.com/author/dmitterdorfer/&quot; target=&quot;_blank&quot;&gt;Integrating Google Calendar into a Wicket Application&lt;/a&gt;) 可以達到直接存取的目的，&lt;br /&gt;
作法大約如下：&lt;br /&gt;
&lt;br /&gt;
1.實作一 class extends AbstractAuthenticationProcessingFilter, 最主要是在&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; attemptAuthentication 內產生一個 TestingAuthenticationToken，只要是作為 anonymous登入用&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;public class AnoAuthenicationProcessingFilter extends AbstractAuthenticationProcessingFilter {&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;private static java.util.logging.Logger log1 = java.util.logging.Logger.getLogger(&quot;&quot;);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; protected AnoAuthenicationProcessingFilter() {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt; //super內的參數不可為空白&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; super(&quot;/login.jsp&quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; @Override&lt;br /&gt;
&amp;nbsp; &amp;nbsp; public Authentication attemptAuthentication(HttpServletRequest request, HttpServletResponse response) throws AuthenticationException, IOException, ServletException {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //Authentication authentication = new TestingAuthenticationToken(request.getRemoteAddr(), request.getRemoteAddr(), &quot;ROLE_ANONYMOUS&quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Authentication authentication = SecurityContextHolder.getContext().getAuthentication();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;if ( authentication == null) {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; log1.log(Level.WARNING,&quot;.........establish a new tem Test token for &quot;+ request.getRemoteAddr());&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;authentication = new TestingAuthenticationToken(request.getRemoteAddr(), request.getRemoteAddr(), &quot;ROLE_ANONYMOUS&quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; authentication.setAuthenticated(true);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return getAuthenticationManager().authenticate(authentication);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; throws IOException, ServletException {&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (SecurityContextHolder.getContext().getAuthentication() == null) {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SecurityContextHolder.getContext().setAuthentication(attemptAuthentication((HttpServletRequest) req, (HttpServletResponse) res));&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (logger.isDebugEnabled()) {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; logger.debug(&quot;Populated SecurityContextHolder with dummy token: &#39;&quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + SecurityContextHolder.getContext().getAuthentication() + &quot;&#39;&quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } else {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (logger.isDebugEnabled()) {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; logger.debug(&quot;SecurityContextHolder not populated with dummy token, as it already contained: &#39;&quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + SecurityContextHolder.getContext().getAuthentication() + &quot;&#39;&quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; chain.doFilter(req, res);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
2.實作&amp;nbsp;implements AuthenticationProvider&lt;br /&gt;
&amp;nbsp; &amp;nbsp; 我希望使用者部份功能需要帳號密碼才能使用，所以在這邊有判斷 Authentication是那一種類&lt;br /&gt;
&amp;nbsp; &amp;nbsp; 別，在實作 support時就要加上可允許的 token類別&lt;br /&gt;
&lt;br /&gt;
public class CattonOAuthClientProvider implements AuthenticationProvider{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;private static java.util.logging.Logger log1 = java.util.logging.Logger.getLogger(&quot;&quot;);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public CattonOAuthClientProvider() {&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;super();&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public Authentication authenticate(Authentication authentication) &amp;nbsp; &amp;nbsp;throws AuthenticationException {&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; log1.log(Level.WARNING,&quot;authentication class type............. &quot; +authentication.getClass().toString());&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (authentication instanceof UsernamePasswordAuthenticationToken) &amp;nbsp;{&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;‧‧‧‧‧&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ‧‧‧‧&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;log1.log(Level.WARNING, &quot;...login by account password...................&quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;System.out.println(&quot;...login by account password...................&quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }else if (authentication instanceof TestingAuthenticationToken ) {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;log1.log(Level.WARNING, &quot;...anonymous..............&quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } else {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;log1.log(Level.WARNING, &quot;faile to authenicate in provder..............&quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return authentication;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;public boolean supports(Class authentication) {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return TestingAuthenticationToken.class.isAssignableFrom(authentication)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt; &amp;nbsp; &amp;nbsp;|| UsernamePasswordAuthenticationToken.class.isAssignableFrom(authentication);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;3.修改 spring-servlet.xml&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; 在 custom-filter after=&quot;EXCEPTION_TRANSLATION_FILTER&quot; ref=&quot;oauth2ClientFilter&quot; 之前加上&lt;br /&gt;
&amp;nbsp; &amp;nbsp;  custom-filter before=&quot;ANONYMOUS_FILTER&quot; ref=&quot;authProcessingFilter&quot; &lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; 之後再加上&lt;br /&gt;
&amp;nbsp; &amp;nbsp;  bean class=&quot;com.catton.spring.security.AnoAuthenicationProcessingFilter&quot; id=&quot;authProcessingFilter&quot; &lt;br /&gt;
property name=&quot;authenticationManager&quot; ref=&quot;defaultAuthenticationManager&quot; &lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;  bean id=&quot;authenticationProvider&quot; &amp;nbsp; class=&quot;com.catton.spring.security.provider.CattonOAuthClientProvider&quot;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; 最後再修改&amp;nbsp;authentication-manager 設定為&amp;nbsp;authentication-provider ref=&quot;authenticationProvider&quot; 即&lt;br /&gt;
&amp;nbsp; &amp;nbsp; 可&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://cattonitcareer.blogspot.com/feeds/6078718134799885360/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://cattonitcareer.blogspot.com/2014/05/spring-security-oauth2-client-anonymous.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4400122150726207273/posts/default/6078718134799885360'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4400122150726207273/posts/default/6078718134799885360'/><link rel='alternate' type='text/html' href='http://cattonitcareer.blogspot.com/2014/05/spring-security-oauth2-client-anonymous.html' title='Spring Security OAuth2 Client anonymous 存取 Oauth2 resource'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03904899640663376912</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4400122150726207273.post-1035703890809254305</id><published>2014-05-28T00:14:00.001-07:00</published><updated>2014-05-28T01:22:07.827-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AP"/><category scheme="http://www.blogger.com/atom/ns#" term="oracle erp"/><title type='text'>AP Invoice Hold Troubleshooting</title><content type='html'>可參考如下連結：&lt;a href=&quot;http://receipts/26-MAY-14/5843778&quot; target=&quot;_blank&quot;&gt;12: Invoice HOLDS: Causes and Troubleshooting [Video] (Doc ID 1472606.1)&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
今天有碰到使用者問我一張 invoice有一個 Matching Required的 hold，但我沒遇過，所以找到這篇文件，上面有寫到 supplier site設定上有一個參數&amp;nbsp;&lt;span style=&quot;background-color: white; font-family: Tahoma, Verdana, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-style: italic; text-decoration: underline;&quot;&gt;Unmatched Invoices &lt;/span&gt;如果有打勾，代表 invoice line一定都要經過 match產生才可以，如果手動增加且沒有match就會出現這個 hold。 &amp;nbsp;如果還有其它 hold的問題可以來這邊找找看如何解決。&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://cattonitcareer.blogspot.com/feeds/1035703890809254305/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://cattonitcareer.blogspot.com/2014/05/ap-invoice-hold-troubleshooting.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4400122150726207273/posts/default/1035703890809254305'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4400122150726207273/posts/default/1035703890809254305'/><link rel='alternate' type='text/html' href='http://cattonitcareer.blogspot.com/2014/05/ap-invoice-hold-troubleshooting.html' title='AP Invoice Hold Troubleshooting'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03904899640663376912</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4400122150726207273.post-8863015469621678931</id><published>2014-03-17T03:09:00.002-07:00</published><updated>2014-03-17T03:09:50.416-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="oracle erp"/><category scheme="http://www.blogger.com/atom/ns#" term="PPR"/><title type='text'>大批付款一直無法捉取負項 AP Invoice</title><content type='html'>一般可能都是銀行帳戶沒有維護好的問題，可以先檢查 Reject Report看看被 Reject的有那些，
再來查詢 Selected Payment Schedules Report內 Unselected Scheduled Payments and Credits，
如果有出現 Credit reduces payment amount below zero的話，請先檢查該供應商所有該付的 Invoice，不管正、負， 
Schedule Payment內銀行帳號是否都有值或是正確的，如果沒有的話，請先維護正確，再重新跑一次看看是否問題解決了沒。</content><link rel='replies' type='application/atom+xml' href='http://cattonitcareer.blogspot.com/feeds/8863015469621678931/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://cattonitcareer.blogspot.com/2014/03/ap-invoice.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4400122150726207273/posts/default/8863015469621678931'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4400122150726207273/posts/default/8863015469621678931'/><link rel='alternate' type='text/html' href='http://cattonitcareer.blogspot.com/2014/03/ap-invoice.html' title='大批付款一直無法捉取負項 AP Invoice'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03904899640663376912</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4400122150726207273.post-2233564551309856692</id><published>2014-02-11T00:22:00.001-08:00</published><updated>2014-02-11T00:22:50.713-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AP"/><category scheme="http://www.blogger.com/atom/ns#" term="oracle erp"/><title type='text'>為何更改 AP Invoice date但 due date確不會自動更新</title><content type='html'>&lt;br /&gt;
請至 supplier設定功能先檢查 Invoice Management ==&amp;gt; Term ==&amp;gt; Terms Date Basis是不是有設定正確，如果想要更改 invoice date後 due date就會自動更新的話，請把它設為 Invoice，其它值的話，請就參考下列的文章&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
參考文件：&lt;span style=&quot;background-color: white; font-family: Tahoma, Verdana, Helvetica, sans-serif; font-size: 14.545454025268555px; font-weight: bold; text-align: right;&quot;&gt;&lt;a href=&quot;https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-state=4drvekkk3_9&amp;amp;_afrLoop=459715090059113&quot; target=&quot;_blank&quot;&gt;R12: How is a Payables Invoice Due Date Calculated? (Doc ID 1136143.1)&lt;/a&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://cattonitcareer.blogspot.com/feeds/2233564551309856692/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://cattonitcareer.blogspot.com/2014/02/ap-invoice-date-due-date.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4400122150726207273/posts/default/2233564551309856692'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4400122150726207273/posts/default/2233564551309856692'/><link rel='alternate' type='text/html' href='http://cattonitcareer.blogspot.com/2014/02/ap-invoice-date-due-date.html' title='為何更改 AP Invoice date但 due date確不會自動更新'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03904899640663376912</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4400122150726207273.post-5514691374996503181</id><published>2013-10-23T21:09:00.003-07:00</published><updated>2013-10-23T21:09:32.973-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ext js 4"/><category scheme="http://www.blogger.com/atom/ns#" term="google speech api"/><title type='text'>Extjs 4 使用 google speech api</title><content type='html'>&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhySG_yqxCLV9HRoh2vaXfXLRJ081E1MnDP8RwYslHOQeksK4a8QqlPp5KJDCk_c6n7sQouAI_6Nb_iZvm_NQxuVmbRY55W_GLq2VmBygmPUt0yL_buAMm-e4nAo1jKoMxnpLcA3Dc4K0E/s1600/extjs_google_speech_api.JPG&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhySG_yqxCLV9HRoh2vaXfXLRJ081E1MnDP8RwYslHOQeksK4a8QqlPp5KJDCk_c6n7sQouAI_6Nb_iZvm_NQxuVmbRY55W_GLq2VmBygmPUt0yL_buAMm-e4nAo1jKoMxnpLcA3Dc4K0E/s640/extjs_google_speech_api.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
想要在自行開發的網頁上能使用 google speech api 的話，input 要加上&amp;nbsp;x-webkit-speec 和&amp;nbsp;speech，&lt;br /&gt;
那如果使用 Extjs上要如何作呢。&lt;br /&gt;
&lt;br /&gt;
因為我是使用 Extjs MVC，所以原本要在 Controller上加上 render function，但都沒有作用，所以還是把 render移回到 view上，程式碼如下&lt;br /&gt;
&lt;br /&gt;
View ：原本程式碼加上 listener&lt;br /&gt;
&lt;br /&gt;
xtype: &#39;textfield&#39;,&lt;br /&gt;
,renderTo: Ext.getBody()&lt;br /&gt;
,listeners:: {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; render: function(cmp) {&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cmp.el.dom.firstChild.firstChild.lastChild.firstChild.setAttribute(&quot;x-webkit-speech&quot;,&quot;x-webkit-speech&quot;);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cmp.el.dom.firstChild.firstChild.lastChild.firstChild.setAttribute(&quot;speech&quot;,&quot;speech&quot;);&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
Controller: 加上 webkitspeechchange function&lt;br /&gt;
&lt;br /&gt;
init: function() {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; this.control({&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&#39;tellist textfield[name=param]&#39; :{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt; &amp;nbsp; &amp;nbsp; /* for google speech api*/&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;,webkitspeechchange: function(fld,e) {&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt; this.doFetchTel();&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }); &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
這樣應該就可以使用了&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://cattonitcareer.blogspot.com/feeds/5514691374996503181/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://cattonitcareer.blogspot.com/2013/10/extjs-4-google-speech-api.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4400122150726207273/posts/default/5514691374996503181'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4400122150726207273/posts/default/5514691374996503181'/><link rel='alternate' type='text/html' href='http://cattonitcareer.blogspot.com/2013/10/extjs-4-google-speech-api.html' title='Extjs 4 使用 google speech api'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03904899640663376912</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhySG_yqxCLV9HRoh2vaXfXLRJ081E1MnDP8RwYslHOQeksK4a8QqlPp5KJDCk_c6n7sQouAI_6Nb_iZvm_NQxuVmbRY55W_GLq2VmBygmPUt0yL_buAMm-e4nAo1jKoMxnpLcA3Dc4K0E/s72-c/extjs_google_speech_api.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4400122150726207273.post-4251851848761592282</id><published>2013-09-09T01:00:00.001-07:00</published><updated>2013-09-09T01:00:33.057-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AP"/><category scheme="http://www.blogger.com/atom/ns#" term="oracle erp"/><title type='text'>已收料但後來 cancel 的 po還可以作退料嗎</title><content type='html'>跟據原廠的文件，答案是 no cancel line or line 是 final close的狀態，就不能作任何收退料的交易了。&lt;br /&gt;
&lt;br /&gt;
Use the Receiving Returns window to return delivered items to receiving and to return received or delivered externally sourced items to the supplier if the purchase order has neither been cancelled nor final closed. </content><link rel='replies' type='application/atom+xml' href='http://cattonitcareer.blogspot.com/feeds/4251851848761592282/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://cattonitcareer.blogspot.com/2013/09/cancel-po.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4400122150726207273/posts/default/4251851848761592282'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4400122150726207273/posts/default/4251851848761592282'/><link rel='alternate' type='text/html' href='http://cattonitcareer.blogspot.com/2013/09/cancel-po.html' title='已收料但後來 cancel 的 po還可以作退料嗎'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03904899640663376912</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4400122150726207273.post-3403979639406586396</id><published>2013-08-07T01:50:00.000-07:00</published><updated>2013-09-09T01:02:53.769-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="GL"/><category scheme="http://www.blogger.com/atom/ns#" term="oracle erp"/><title type='text'>GL 主帳本 reversed journal 不設定自動轉至次帳本的可能原因</title><content type='html'>&lt;a href=&quot;http://cattonitcareer.blogspot.tw/2013/02/primary-ledger-reversed.html&quot; target=&quot;_blank&quot;&gt;主帳本(Primary ledger) reversed 的Journal是否會自動拋至次帳本(Secondary Ledger)&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
上一次有說如何設定自動拋轉，但我們公司的設定是不自動拋轉，可能的原因之一就是在 FA有建立 Tax Book而且資料會拋至 GL，這樣在 GL 的主帳本和次帳本都會有由 FA Corporate Book, Tax Book的 Journal，使用者就可以在 GL主帳本把 FA Tax Book的資料作 reverse，然後再去 GL次帳本把 FA Corporate Book的資料作 reverse。在不同的 GL帳本就可以用來看不同 FA的帳本了。</content><link rel='replies' type='application/atom+xml' href='http://cattonitcareer.blogspot.com/feeds/3403979639406586396/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://cattonitcareer.blogspot.com/2013/08/gl-reversed-journal.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4400122150726207273/posts/default/3403979639406586396'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4400122150726207273/posts/default/3403979639406586396'/><link rel='alternate' type='text/html' href='http://cattonitcareer.blogspot.com/2013/08/gl-reversed-journal.html' title='GL 主帳本 reversed journal 不設定自動轉至次帳本的可能原因'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03904899640663376912</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4400122150726207273.post-8565272358140492730</id><published>2013-06-20T20:52:00.000-07:00</published><updated>2013-09-09T01:02:29.025-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="oracle erp"/><category scheme="http://www.blogger.com/atom/ns#" term="WEB ADI"/><title type='text'>WEB ADI Oracle.Jbo.Toomanyobjectsexception 可解決的方式之一</title><content type='html'>如果有碰到這個問題，可以先更新&amp;nbsp;&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: black; display: inline !important; float: none; font: small Tahoma, Verdana, Helvetica, sans-serif; letter-spacing: normal; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;Patch&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;a href=&quot;https://support.oracle.com/epmos/faces/ui/patch/PatchDetail.jspx?patchId=12992932&quot; style=&quot;-webkit-text-stroke-width: 0px; background-color: white; font: small Tahoma, Verdana, Helvetica, sans-serif; letter-spacing: normal; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;&quot; target=&quot;_blank&quot;&gt;12992932&lt;/a&gt;看看&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://support.oracle.com/epmos/faces/ui/km/SearchDocDisplay.jspx?returnToSrId=&amp;amp;_afrLoop=728328467137055&amp;amp;srnum=&amp;amp;type=DOCUMENT&amp;amp;id=1389445.1&amp;amp;displayIndex=2&amp;amp;_afrWindowMode=0&amp;amp;_adf.ctrl-state=ecssdzuta_117&quot; target=&quot;_blank&quot;&gt;R12: Error &quot;Oracle.Jbo.Toomanyobjectsexception: JBO-27120 OR JBO-25013: Too Many Objects Match The Primary Key&quot; When Viewing Seeded Integrators [ID 1389445.1]&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://cattonitcareer.blogspot.com/feeds/8565272358140492730/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://cattonitcareer.blogspot.com/2013/06/web-adi-oraclejbotoomanyobjectsexception.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4400122150726207273/posts/default/8565272358140492730'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4400122150726207273/posts/default/8565272358140492730'/><link rel='alternate' type='text/html' href='http://cattonitcareer.blogspot.com/2013/06/web-adi-oraclejbotoomanyobjectsexception.html' title='WEB ADI Oracle.Jbo.Toomanyobjectsexception 可解決的方式之一'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03904899640663376912</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4400122150726207273.post-5114749422015119676</id><published>2013-06-20T20:47:00.002-07:00</published><updated>2013-09-09T00:53:53.959-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="oracle erp"/><category scheme="http://www.blogger.com/atom/ns#" term="WEB ADI"/><title type='text'>WEB ADI Supplier, Supplier Site Java Component範例</title><content type='html'>這邊有一個範例可以參考，讓 Supplier Site可以針對所選的 Supplier而透出相對應的 Site，實作後是可行的，不過針對第四點好像只能透過這個指令執行，而不能在 ERP define component的網頁上設定。 而目前我碰到最大的問題是重新compile java code後 (我要加上 org_id的條件)，系統還是會執行舊的程式，必需要重新 bounce( reboot)&amp;nbsp;ERP，我有參考 bne cache clear的文件，但還是沒用，所以只好重開。 目前正常 work。&lt;br /&gt;
&lt;br /&gt;
參考文件&lt;br /&gt;
&lt;a href=&quot;http://sagarkatratoracleapps.blogspot.tw/2012/09/DependentLOVOracleWebADI.html&quot; target=&quot;_blank&quot;&gt;Dependent LOV(List of Values) in Oracle Web ADI with steps and source code&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://arunmudragada.weebly.com/2/post/2011/06/bne-cache-clear-for-desktop-integrator.html&quot; target=&quot;_blank&quot;&gt;BNE Cache clear for Desktop Integrator&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://cattonitcareer.blogspot.com/feeds/5114749422015119676/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://cattonitcareer.blogspot.com/2013/06/web-adi-supplier-supplier-site-java.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4400122150726207273/posts/default/5114749422015119676'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4400122150726207273/posts/default/5114749422015119676'/><link rel='alternate' type='text/html' href='http://cattonitcareer.blogspot.com/2013/06/web-adi-supplier-supplier-site-java.html' title='WEB ADI Supplier, Supplier Site Java Component範例'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03904899640663376912</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4400122150726207273.post-8319205085294178350</id><published>2013-06-20T20:38:00.000-07:00</published><updated>2013-09-09T00:54:06.214-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="oracle erp"/><category scheme="http://www.blogger.com/atom/ns#" term="WEB ADI"/><title type='text'>WEB ADI tourial</title><content type='html'>目前使用者想透過 adi 方式上傳 AP Invoice的資料，但&amp;nbsp; ERP沒有針對 AP有標準的 ADI, 所以我這邊要客制一個，這邊有一個文件可以參考，對我的幫助很大。&lt;br /&gt;
&lt;br /&gt;
參考文件&lt;br /&gt;
&lt;a href=&quot;http://www.oracle.com/webfolder/technetwork/tutorials/obe/ebs/ebs121/atg/ImporterAPIReturningMsgs.pdf&quot; target=&quot;_blank&quot;&gt;How to Define an Importer Returning Error Messages to the Oracle Web Applications Desktop Integrator Document&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://cattonitcareer.blogspot.com/feeds/8319205085294178350/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://cattonitcareer.blogspot.com/2013/06/web-adi-tourial.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4400122150726207273/posts/default/8319205085294178350'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4400122150726207273/posts/default/8319205085294178350'/><link rel='alternate' type='text/html' href='http://cattonitcareer.blogspot.com/2013/06/web-adi-tourial.html' title='WEB ADI tourial'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03904899640663376912</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4400122150726207273.post-5306441066847590306</id><published>2013-06-20T18:21:00.003-07:00</published><updated>2013-06-20T18:21:11.728-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="mongodb"/><title type='text'>MongoDB - video</title><content type='html'>&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;315&quot; src=&quot;http://www.youtube.com/embed/b1BZ9YFsd2o&quot; width=&quot;560&quot;&gt;&lt;/iframe&gt;</content><link rel='replies' type='application/atom+xml' href='http://cattonitcareer.blogspot.com/feeds/5306441066847590306/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://cattonitcareer.blogspot.com/2013/06/mongodb-video.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4400122150726207273/posts/default/5306441066847590306'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4400122150726207273/posts/default/5306441066847590306'/><link rel='alternate' type='text/html' href='http://cattonitcareer.blogspot.com/2013/06/mongodb-video.html' title='MongoDB - video'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03904899640663376912</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/b1BZ9YFsd2o/default.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4400122150726207273.post-5839178544676745004</id><published>2013-06-20T18:14:00.001-07:00</published><updated>2013-06-20T18:14:12.464-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="mongodb"/><title type='text'>Optimizing MongoDB - Video</title><content type='html'>&lt;iframe width=&quot;420&quot; height=&quot;315&quot; src=&quot;http://www.youtube.com/embed/lnY8D3TL_tM&quot; frameborder=&quot;0&quot; allowfullscreen&gt;&lt;/iframe&gt;</content><link rel='replies' type='application/atom+xml' href='http://cattonitcareer.blogspot.com/feeds/5839178544676745004/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://cattonitcareer.blogspot.com/2013/06/optimizing-mongodb-video.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4400122150726207273/posts/default/5839178544676745004'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4400122150726207273/posts/default/5839178544676745004'/><link rel='alternate' type='text/html' href='http://cattonitcareer.blogspot.com/2013/06/optimizing-mongodb-video.html' title='Optimizing MongoDB - Video'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03904899640663376912</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/lnY8D3TL_tM/default.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4400122150726207273.post-3399575037154431189</id><published>2013-05-02T00:17:00.001-07:00</published><updated>2013-05-02T00:17:17.318-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="GL"/><category scheme="http://www.blogger.com/atom/ns#" term="oracle erp"/><title type='text'>GL Journal Document Number為空值如何解決 ?</title><content type='html'>如果使用者在維護 Document Sequence沒有作好的話，在產生傳票 (Journal)時 ， document number可能就會空白，這樣的話要如何補上呢 ?&lt;br /&gt;
&lt;br /&gt;
1.至 document assign找出這個 category 是使用那一個 document &amp;nbsp;(FND_DOCUMENT_SEQUENCES)&lt;br /&gt;
&lt;br /&gt;
2. SELECT * &amp;nbsp; FROM FND_DOCUMENT_SEQUENCES&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; WHERE (NAME = &#39;document name&#39;) order by name&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; 找出 DB_SEQUENCE_NAME 使用系統的那一個 DB Sequence&lt;br /&gt;
&lt;br /&gt;
3.找出來之後，把傳票欄位 DOC_SEQUENCE_ID 填入 , DOC_SEQUENCE_VALUE 填入 DB Sequence最大值&lt;br /&gt;
&lt;br /&gt;
4. 更改 DB Sequence 的 next number的值 (+1)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://cattonitcareer.blogspot.com/feeds/3399575037154431189/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://cattonitcareer.blogspot.com/2013/05/gl-journal-document-number.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4400122150726207273/posts/default/3399575037154431189'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4400122150726207273/posts/default/3399575037154431189'/><link rel='alternate' type='text/html' href='http://cattonitcareer.blogspot.com/2013/05/gl-journal-document-number.html' title='GL Journal Document Number為空值如何解決 ?'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03904899640663376912</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4400122150726207273.post-3529940969902091542</id><published>2013-04-28T20:28:00.003-07:00</published><updated>2013-09-09T00:55:19.541-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="glassfish"/><title type='text'>glassfish domain 無法啟動 - CLI156 Could not start the domain</title><content type='html'>我使用的是 Glassfish 2 V1的版本，已經跑了3年以上了，不過今天發生如下的錯誤訊息，一直無法開啟。&lt;br /&gt;
&lt;br /&gt;
上網查了一下，有的人建議動新建立一個新的 domain, 不過有人建議如下&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://stackoverflow.com/questions/641255/glassfish-hangs-on-os-x-10-5-java-6&quot; target=&quot;_blank&quot;&gt;Glassfish hangs on OS X 10.5/Java 6&lt;/a&gt;&lt;br /&gt;
先檢查目錄&amp;nbsp;&lt;span style=&quot;background-color: white; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; line-height: 18px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #783f04;&quot;&gt;/glassfish/domains/domain1/imq/instances/imqbroker/ &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; line-height: 18px;&quot;&gt;是否有個檔案叫&lt;/span&gt;&lt;span style=&quot;font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; line-height: 18px;&quot;&gt;&lt;span style=&quot;background-color: #0c343d;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt; &lt;b&gt;&lt;span style=&quot;color: #4c1130;&quot;&gt;lock&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;(要把隱藏檔顯示)，如果有，請把它刪除後再重新啟動看看。&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; line-height: 18px;&quot;&gt;很幸運的，我有這個檔案而且刪除之後就可以正常啟動了。&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;lang-java prettyprint prettyprinted&quot; style=&quot;background-color: #eeeeee; border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; font-size: 14px; line-height: 18px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto;&quot;&gt;&lt;code style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;typ&quot; style=&quot;background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Timeout&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; waiting &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;for&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; domain domain1 to go to starting state&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
CLI156 &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Could&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; not start the domain domain1&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
</content><link rel='replies' type='application/atom+xml' href='http://cattonitcareer.blogspot.com/feeds/3529940969902091542/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://cattonitcareer.blogspot.com/2013/04/glassfish-domain-cli156-could-not-start.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4400122150726207273/posts/default/3529940969902091542'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4400122150726207273/posts/default/3529940969902091542'/><link rel='alternate' type='text/html' href='http://cattonitcareer.blogspot.com/2013/04/glassfish-domain-cli156-could-not-start.html' title='glassfish domain 無法啟動 - CLI156 Could not start the domain'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03904899640663376912</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4400122150726207273.post-1683946908159969843</id><published>2013-04-25T01:50:00.000-07:00</published><updated>2013-09-09T00:57:25.888-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="flex"/><category scheme="http://www.blogger.com/atom/ns#" term="flex 4"/><title type='text'>Flex 3 Dashboard migrate to Flex 4</title><content type='html'>之前有改參考這個程式改寫一個 AIR的程式，今天有看到把 flex 3的程式碼改寫成 flex 4的，可以參考看看&lt;br /&gt;
&lt;br /&gt;
&lt;a class=&quot;ot-anchor&quot; href=&quot;http://www.adobe.com/devnet/flex/articles/migrating-flex-apps-part1.html&quot; rel=&quot;nofollow&quot; style=&quot;background-color: white; color: #3366cc; cursor: pointer; font-family: arial, sans-serif; font-size: 13px; line-height: 18px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Migrating Flex 3 applications to Flex 4.5 – Part 1: Importing the Flex 3 Dashboard application into Flash Builder 4.5&lt;/a&gt;&lt;br /&gt;
&lt;br style=&quot;background-color: white;&quot; /&gt;
&lt;a class=&quot;ot-anchor&quot; href=&quot;http://www.adobe.com/devnet/flex/articles/migrating-flex-apps-part2.html&quot; rel=&quot;nofollow&quot; style=&quot;background-color: white; color: #3366cc; cursor: pointer; font-family: arial, sans-serif; font-size: 13px; line-height: 18px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Migrating Flex 3 applications to Flex 4.5 – Part 2: Beginning migration of the Dashboard application to Flex 4.5&lt;/a&gt;&lt;br /&gt;
&lt;br style=&quot;background-color: white;&quot; /&gt;
&lt;a class=&quot;ot-anchor&quot; href=&quot;http://www.adobe.com/devnet/flex/articles/migrating-flex-apps-part3.html&quot; rel=&quot;nofollow&quot; style=&quot;background-color: white; color: #3366cc; cursor: pointer; font-family: arial, sans-serif; font-size: 13px; line-height: 18px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Migrating Flex 3 applications to Flex 4.5 – Part 3: Introducing Spark components and simple skins&lt;/a&gt;&lt;br /&gt;
&lt;br style=&quot;background-color: white;&quot; /&gt;
&lt;a class=&quot;ot-anchor&quot; href=&quot;http://www.adobe.com/devnet/flex/articles/migrating-flex-apps-part4.html&quot; rel=&quot;nofollow&quot; style=&quot;background-color: white; color: #3366cc; cursor: pointer; font-family: arial, sans-serif; font-size: 13px; line-height: 18px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Migrating Flex 3 applications to Flex 4.5 – Part 4: Using Spark Panel, List, DataGrid, and VGroup components and adding custom skins and states&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://cattonitcareer.blogspot.com/feeds/1683946908159969843/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://cattonitcareer.blogspot.com/2013/04/flex-3-dashboard-migrate-to-flex-4.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4400122150726207273/posts/default/1683946908159969843'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4400122150726207273/posts/default/1683946908159969843'/><link rel='alternate' type='text/html' href='http://cattonitcareer.blogspot.com/2013/04/flex-3-dashboard-migrate-to-flex-4.html' title='Flex 3 Dashboard migrate to Flex 4'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03904899640663376912</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4400122150726207273.post-8702948902920560886</id><published>2013-04-18T19:17:00.000-07:00</published><updated>2013-09-09T00:56:35.926-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="asp.net MVC"/><category scheme="http://www.blogger.com/atom/ns#" term="ckeditor"/><category scheme="http://www.blogger.com/atom/ns#" term="ckfinder"/><category scheme="http://www.blogger.com/atom/ns#" term="mongodb"/><category scheme="http://www.blogger.com/atom/ns#" term="MVC model bindler"/><title type='text'>MongoDB 和 Asp.Net MVC </title><content type='html'>&lt;a href=&quot;http://www.joe-stevens.com/2011/10/02/a-mongodb-tutorial-using-c-and-asp-net-mvc/&quot; target=&quot;_blank&quot;&gt;A MONGODB TUTORIAL USING C# AND ASP.NET MVC&lt;/a&gt;&amp;nbsp;使用 ASP.NET MVC 3和 MONGODB實作了一個 BLOG網站，大家可以試試看，我自己還在消化，有幾點可以和大家分享&lt;br /&gt;
&lt;br /&gt;
我使用是 APS.NET MVC 4 和 MONGODB C# DRIVER 1.8.1.20和一個 MONGODB 是放在 SERVER上，所以使用宓碼連結&lt;br /&gt;
&lt;br /&gt;
連結 MONGO的寫法要改成如下&lt;br /&gt;
&lt;br /&gt;
var client = new MongoClient(&quot;mongodb://userName:passWord@ipaddress/dbName&quot;);&lt;br /&gt;
var server = client.GetServer();&lt;br /&gt;
var db = server.GetDatabase(&quot;dbName&quot;);&lt;br /&gt;
&lt;br /&gt;
可以成功執行後，我想要讓 CKEDITOR 可以上傳圖片，就 ASP.NET MVC來說，還是要使用 CK FINDER FOR ASP.NET的版本&lt;br /&gt;
&lt;br /&gt;
可以在 CKEDITOR 的 config.js 內加上&lt;br /&gt;
config.filebrowserImageBrowseUrl = &#39;/Scripts/ckfinder/ckfinder.html?type=Images&#39;;&lt;br /&gt;
config.filebrowserUploadUrl= &#39;/Scripts/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&amp;amp;type=Files&#39;;&lt;br /&gt;
config.filebrowserImageUploadUrl= &#39;/UploadImage/Upload&#39;; &amp;nbsp;//controller/actionName&lt;br /&gt;
&lt;br /&gt;
在 CKFINDER的 config.ascx&lt;br /&gt;
&lt;br /&gt;
public override bool CheckAuthentication() 依權限 return true;&lt;br /&gt;
&lt;br /&gt;
public override void SetConfig()&lt;br /&gt;
我的 CKFINDER是放在 Scripts的目錄，所以 BaseUrl = &quot;~/Scripts/ckfinder/userfiles/&quot;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
客制的 UPLOAD CONTROLLER&lt;br /&gt;
&lt;pre class=&quot;lang-cs prettyprint prettyprinted&quot; style=&quot;background-color: #eeeeee; border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; font-size: 14px; line-height: 18px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto;&quot;&gt;&lt;code style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;public&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;ActionResult&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Upload&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;HttpPostedFileBase&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; upload&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;string&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;CKEditorFuncNum&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;string&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;CKEditor&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;string&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; langCode&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
        &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;string&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; url&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;background-color: transparent; border: 0px; color: grey; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;// url to return&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
        &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;string&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; message&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;background-color: transparent; border: 0px; color: grey; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;// message to display (optional)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
        &lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;background-color: transparent; border: 0px; color: grey; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;//CODE FOR SAVE IMAGE HERE&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
        url &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;/&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; path &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;/&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; filename&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;string&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; output &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;span class=&quot;str&quot; style=&quot;background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;@&quot;&lt;html&gt;&lt;body&gt;&lt;script&gt;window.parent.CKEDITOR.tools.callFunction(&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; margin: 0px; padding: 0px; border: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; margin: 0px; padding: 0px; border: 0px; vertical-align: baseline;&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; margin: 0px; padding: 0px; border: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;background-color: transparent; margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; color: rgb(43, 145, 175);&quot;&gt;CKEditorFuncNum&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; margin: 0px; padding: 0px; border: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; margin: 0px; padding: 0px; border: 0px; vertical-align: baseline;&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; margin: 0px; padding: 0px; border: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;background-color: transparent; margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; color: rgb(128, 0, 0);&quot;&gt;&quot;, \&quot;&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; margin: 0px; padding: 0px; border: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; margin: 0px; padding: 0px; border: 0px; vertical-align: baseline;&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; margin: 0px; padding: 0px; border: 0px; vertical-align: baseline;&quot;&gt; url &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; margin: 0px; padding: 0px; border: 0px; vertical-align: baseline;&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; margin: 0px; padding: 0px; border: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;background-color: transparent; margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; color: rgb(128, 0, 0);&quot;&gt;&quot;\&quot;, \&quot;&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; margin: 0px; padding: 0px; border: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; margin: 0px; padding: 0px; border: 0px; vertical-align: baseline;&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; margin: 0px; padding: 0px; border: 0px; vertical-align: baseline;&quot;&gt; message &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; margin: 0px; padding: 0px; border: 0px; vertical-align: baseline;&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; margin: 0px; padding: 0px; border: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;background-color: transparent; margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; color: rgb(128, 0, 0);&quot;&gt;&quot;\&quot;);&lt;/script&gt;&lt;/body&gt;&lt;/html&gt;&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;

            &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;return&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Content&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;output&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
        &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
參數有三個&lt;span style=&quot;background-color: white; color: #7f7e7e; font-size: 12px; line-height: 1.2em;&quot;&gt;CKEditor&lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;border: 0px; color: #339933; font-family: inherit; font-size: 12px; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #7f7e7e; font-size: 12px; line-height: 1.2em;&quot;&gt;editor1&lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;border: 0px; color: #339933; font-family: inherit; font-size: 12px; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #7f7e7e; font-size: 12px; line-height: 1.2em;&quot;&gt;CKEditorFuncNum&lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;border: 0px; color: #339933; font-family: inherit; font-size: 12px; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot; style=&quot;border: 0px; color: #cc66cc; font-family: inherit; font-size: 12px; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;border: 0px; color: #339933; font-family: inherit; font-size: 12px; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #7f7e7e; font-size: 12px; line-height: 1.2em;&quot;&gt;langCode&lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;border: 0px; color: #339933; font-family: inherit; font-size: 12px; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #7f7e7e; font-size: 12px; line-height: 1.2em;&quot;&gt;en&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://download.cksource.com/CKFinder/CKFinder%20for%20ASP.NET/2.3.1/ckfinder_aspnet_2.3.1.zip&quot; target=&quot;_blank&quot;&gt;CK Finder for asp.net V2.3.1 download&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
參考網址&lt;br /&gt;
&lt;a href=&quot;http://www.joe-stevens.com/2011/10/02/a-mongodb-tutorial-using-c-and-asp-net-mvc/&quot; target=&quot;_blank&quot;&gt;A MONGODB TUTORIAL USING C# AND ASP.NET MVC&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://docs.mongodb.org/ecosystem/tutorial/use-csharp-driver/#csharp-driver-tutorial-downloading&quot; target=&quot;_blank&quot;&gt;CSharp Driver Tutorial&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://docs.mongodb.org/ecosystem/tutorial/authenticate-with-csharp-driver/&quot; target=&quot;_blank&quot;&gt;Authenticate to MongoDB with the C# Driver&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://stackoverflow.com/questions/10827478/integration-of-ckfinder-with-ckeditor-failed-in-my-asp-net-mvc3-how-can-i-succes&quot; target=&quot;_blank&quot;&gt;Integration of CkFinder with Ckeditor failed in my Asp.net mvc3.How can i successfully integrate it?&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://docs.cksource.com/CKEditor_3.x/Developers_Guide/File_Browser_(Uploader)/Custom_File_Browser&quot; target=&quot;_blank&quot;&gt;Integrating CKEditor with a Custom File Browser&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.hanselman.com/blog/SplittingDateTimeUnitTestingASPNETMVCCustomModelBinders.aspx&quot; target=&quot;_blank&quot;&gt;Splitting DateTime - Unit Testing ASP.NET MVC Custom Model Binders&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.codeproject.com/Articles/551576/ASP-NET-MVC-Model-Binding-and-Data-Annotation&quot; target=&quot;_blank&quot;&gt;ASP.NET MVC Model Binding and Data Annotation&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.cnblogs.com/fish-li/archive/2011/06/26/2090800.html&quot; target=&quot;_blank&quot;&gt;MongoDB实战开发&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://cattonitcareer.blogspot.com/feeds/8702948902920560886/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://cattonitcareer.blogspot.com/2013/04/mongodb-aspnet-mvc.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4400122150726207273/posts/default/8702948902920560886'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4400122150726207273/posts/default/8702948902920560886'/><link rel='alternate' type='text/html' href='http://cattonitcareer.blogspot.com/2013/04/mongodb-aspnet-mvc.html' title='MongoDB 和 Asp.Net MVC '/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03904899640663376912</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4400122150726207273.post-1821400484142731008</id><published>2013-04-11T00:12:00.002-07:00</published><updated>2013-04-11T00:12:49.085-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="GL"/><category scheme="http://www.blogger.com/atom/ns#" term="oracle erp"/><title type='text'>GL 會科節段(Segment) 的 Account Type選錯了怎麼辦</title><content type='html'>如果一開始在維護會科節段(Segment)時， Account Type如果選錯的話，比如正確的為 Asset，但選成 Expense，如果已經有產生一個 code combination，其 Type應該為 Expense，但如果後來又再去改會科節段(Segment)的Account Type變成 Asset，這時 已產生code combination的 Type是不會變的，新產生的code combination的 Type才會是正確的，解決的方式如下&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: Tahoma, Verdana, Helvetica, sans-serif; font-size: x-small;&quot;&gt;You can open a new account with the required account type and then transfer the balance from the previous account to the new account.&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: Tahoma, Verdana, Helvetica, sans-serif; font-size: small;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Tahoma, Verdana, Helvetica, sans-serif; font-size: x-small;&quot;&gt;Alternatively you can follow the steps to correct a misclassified account to change the account type.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
可以參考&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: Tahoma, Verdana, Helvetica, sans-serif; font-size: 14.545454025268555px; font-weight: bold; text-align: right;&quot;&gt;&lt;a href=&quot;https://support.oracle.com/epmos/faces/ui/km/DocumentDisplay.jspx?_afrLoop=236637033654614&amp;amp;id=872162.1&amp;amp;_afrWindowMode=0&amp;amp;_adf.ctrl-state=heqywlo8m_181&quot;&gt;R12: Troubleshooting Misclassified Accounts in General Ledger [ID 872162.1]&lt;/a&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://cattonitcareer.blogspot.com/feeds/1821400484142731008/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://cattonitcareer.blogspot.com/2013/04/gl-segment-account-type.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4400122150726207273/posts/default/1821400484142731008'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4400122150726207273/posts/default/1821400484142731008'/><link rel='alternate' type='text/html' href='http://cattonitcareer.blogspot.com/2013/04/gl-segment-account-type.html' title='GL 會科節段(Segment) 的 Account Type選錯了怎麼辦'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03904899640663376912</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4400122150726207273.post-8538703660617863612</id><published>2013-02-24T17:51:00.002-08:00</published><updated>2013-02-24T17:51:51.972-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AP"/><category scheme="http://www.blogger.com/atom/ns#" term="oracle erp"/><title type='text'>Build Payments 出現 ORA-06502</title><content type='html'>使用者在作大批付款 Payment Process Request，當執行到 Build Payments出現錯誤&lt;br /&gt;
view log 如下&lt;br /&gt;
&lt;br /&gt;
Ｅxception occured when building payments. Payment creation will be aborted and no payments will be committed for payment request 146440&lt;br /&gt;
SQLCODE: -6502&lt;br /&gt;
SQLERRM: ORA-06502: PL/SQL: numeric or value error: character string buffer too small&lt;br /&gt;
Build program error: Exception occured when attempting to create payments from the documents payable of the provided payment service request.&lt;br /&gt;
&lt;br /&gt;
可能是 bug所造成的，但這一次不是&lt;br /&gt;
我的作法如下&lt;br /&gt;
1.啟用 FND Log机制&lt;br /&gt;
2.請使用者再作一次 Payment Process Request&lt;br /&gt;
3.檢示 FND Log 出現 ORA-06502的地方，找出 party id，再利用 party id找出是那一個 supplier&lt;br /&gt;
4.至 supplier維護畫面，看看 bank detail是否有些問題&lt;br /&gt;
&lt;br /&gt;
最後被我找到是使用者把 bank account number和 bank account name的值相反了，而 account number太長了，所以造成錯誤。 &amp;nbsp;請使用者把資料改成正確即可。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://cattonitcareer.blogspot.com/feeds/8538703660617863612/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://cattonitcareer.blogspot.com/2013/02/build-payments-ora-06502.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4400122150726207273/posts/default/8538703660617863612'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4400122150726207273/posts/default/8538703660617863612'/><link rel='alternate' type='text/html' href='http://cattonitcareer.blogspot.com/2013/02/build-payments-ora-06502.html' title='Build Payments 出現 ORA-06502'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03904899640663376912</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4400122150726207273.post-1082874798264117434</id><published>2013-02-19T22:12:00.000-08:00</published><updated>2013-09-09T00:57:37.019-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="GL"/><category scheme="http://www.blogger.com/atom/ns#" term="oracle erp"/><category scheme="http://www.blogger.com/atom/ns#" term="secondary ledger"/><title type='text'>主帳本(Primary ledger) reversed 的Journal是否會自動拋至次帳本(Secondary Ledger)</title><content type='html'>如果是使用版本&amp;nbsp;&lt;span style=&quot;background-color: white; font-family: Tahoma, Verdana, Helvetica, sans-serif;&quot;&gt;12.1.3的話，應該預設就會有這個功能，如果是之前的版本的話，就要根據參考文件，更新 patch&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: Tahoma, Verdana, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Tahoma, Verdana, Helvetica, sans-serif;&quot;&gt;更新完之後，請至 Accounting Setup Manager內，找出主帳本的 Setup&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Tahoma, Verdana, Helvetica, sans-serif;&quot;&gt;將&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Tahoma, Verdana, Helvetica, sans-serif; font-size: x-small;&quot;&gt;Synchronize Reversals between Primary and Secondary Ledger(s) &lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Tahoma, Verdana, Helvetica, sans-serif;&quot;&gt;打勾即可。&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlEmrXTh8iN60_2L7mdHs583oR6BF3CnoalBjObmlKkAVsz3x-AT8OD7sLMMyPsbzYo41ftTqYmLrJKO7HgXxGIyrb8fCiMg-e-wUB8dYrNWKLDlrqZco9dqb56eVbO2WW4uAMN6tTI9w/s1600/gl_PS_syn_reverals_setting.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlEmrXTh8iN60_2L7mdHs583oR6BF3CnoalBjObmlKkAVsz3x-AT8OD7sLMMyPsbzYo41ftTqYmLrJKO7HgXxGIyrb8fCiMg-e-wUB8dYrNWKLDlrqZco9dqb56eVbO2WW4uAMN6tTI9w/s640/gl_PS_syn_reverals_setting.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
參考文件&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: Tahoma, Verdana, Helvetica, sans-serif; font-size: 14.545454025268555px; font-weight: bold; text-align: right;&quot;&gt;&lt;a href=&quot;https://support.oracle.com/epmos/faces/ui/km/SearchDocDisplay.jspx?_afrLoop=1542807436670774&amp;amp;type=DOCUMENT&amp;amp;id=428196.1&amp;amp;displayIndex=8&amp;amp;_afrWindowMode=0&amp;amp;_adf.ctrl-state=1bvp7ifkfa_98&quot; target=&quot;_blank&quot;&gt;R12: Posting Reversal Journal in Primary Ledger not Creating the Reversal Journal in Secondary Ledger [ID 428196.1]&lt;/a&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://cattonitcareer.blogspot.com/feeds/1082874798264117434/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://cattonitcareer.blogspot.com/2013/02/primary-ledger-reversed.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4400122150726207273/posts/default/1082874798264117434'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4400122150726207273/posts/default/1082874798264117434'/><link rel='alternate' type='text/html' href='http://cattonitcareer.blogspot.com/2013/02/primary-ledger-reversed.html' title='主帳本(Primary ledger) reversed 的Journal是否會自動拋至次帳本(Secondary Ledger)'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03904899640663376912</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlEmrXTh8iN60_2L7mdHs583oR6BF3CnoalBjObmlKkAVsz3x-AT8OD7sLMMyPsbzYo41ftTqYmLrJKO7HgXxGIyrb8fCiMg-e-wUB8dYrNWKLDlrqZco9dqb56eVbO2WW4uAMN6tTI9w/s72-c/gl_PS_syn_reverals_setting.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4400122150726207273.post-3389530475313711708</id><published>2013-01-27T16:55:00.001-08:00</published><updated>2013-02-19T22:13:34.002-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AP"/><category scheme="http://www.blogger.com/atom/ns#" term="NM"/><category scheme="http://www.blogger.com/atom/ns#" term="oracle erp"/><title type='text'>Voided 的 Payment 是否會拋至 NM</title><content type='html'>Voided 的 Payment 是否會拋至 NM ?&lt;br /&gt;
&lt;br /&gt;
這要看 void前是否已經拋至 NM，如果使用者在一筆 Payment還沒作 void時已經拋至 NM的話，那之後再作 void，則 NM就會相對應產生一筆負數的資料。&lt;br /&gt;
&lt;br /&gt;
如果使用者先 void一筆 Payment後再作 NM拋轉的動作，則這一筆就不會拋至 NM。</content><link rel='replies' type='application/atom+xml' href='http://cattonitcareer.blogspot.com/feeds/3389530475313711708/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://cattonitcareer.blogspot.com/2013/01/voided-payment-nm.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4400122150726207273/posts/default/3389530475313711708'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4400122150726207273/posts/default/3389530475313711708'/><link rel='alternate' type='text/html' href='http://cattonitcareer.blogspot.com/2013/01/voided-payment-nm.html' title='Voided 的 Payment 是否會拋至 NM'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03904899640663376912</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4400122150726207273.post-5420586172013628815</id><published>2012-12-26T20:06:00.002-08:00</published><updated>2013-09-09T00:59:32.972-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="asp.net"/><title type='text'>ASP.NET Forms Authentication Role-based Security </title><content type='html'>參考網址&lt;a href=&quot;http://www.blogger.com/%C2%A0http://www.codeproject.com/Articles/2905/Role-based-Security-with-Forms-Authentication&quot; target=&quot;_blank&quot;&gt;&amp;nbsp;http://www.codeproject.com/Articles/2905/Role-based-Security-with-Forms-Authentication&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
標準的asp.net 和 MVC都適用&lt;br /&gt;
&lt;br /&gt;
驗證密碼後所要作的事，把資料寫入 cookie中&lt;br /&gt;
&lt;br /&gt;
&lt;pre id=&quot;pre2&quot; lang=&quot;html&quot; style=&quot;background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; overflow: auto; padding: 6px; white-space: pre-wrap; word-wrap: break-word;&quot;&gt; FormsAuthenticationTicket ticket = &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;new&lt;/span&gt; FormsAuthenticationTicket(
        &lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;1&lt;/span&gt;, &lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt; Ticket version
&lt;/span&gt;        Username.Value, &lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt; Username associated with ticket
&lt;/span&gt;        DateTime.Now, &lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt; Date/time issued
&lt;/span&gt;        DateTime.Now.AddMinutes(&lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;30&lt;/span&gt;), &lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt; Date/time to expire
&lt;/span&gt;        &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;true&lt;/span&gt;, &lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt; &quot;true&quot; for a persistent user cookie
&lt;/span&gt;        reader.GetString(&lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;0&lt;/span&gt;), &lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt; User-data, in this case the roles
&lt;/span&gt;        FormsAuthentication.FormsCookiePath);&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt; Path cookie valid for
&lt;/span&gt;
     &lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt; Encrypt the cookie using the machine key for secure transport
&lt;/span&gt;     &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;string&lt;/span&gt; hash = FormsAuthentication.Encrypt(ticket);
     HttpCookie cookie = &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;new&lt;/span&gt; HttpCookie(FormsAuthentication.FormsCookieName, hash);&amp;nbsp;&lt;/pre&gt;
&lt;pre id=&quot;pre2&quot; lang=&quot;html&quot; style=&quot;background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; overflow: auto; padding: 6px; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;     &lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt; Set the cookie&#39;s expiration time to the tickets expiration time
&lt;/span&gt;     &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;if&lt;/span&gt; (ticket.IsPersistent) cookie.Expires = ticket.Expiration;

     &lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt; Add the cookie to the list for outgoing response
&lt;/span&gt;     Response.Cookies.Add(cookie);&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
最重要的是要在&amp;nbsp;&lt;em style=&quot;background-color: white; border: 0px; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px; margin: 0px; padding: 0px;&quot;&gt;Global.asax&lt;/em&gt;&lt;span style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;&amp;nbsp;加上這些程式碼&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre id=&quot;pre3&quot; lang=&quot;cs&quot; style=&quot;background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; overflow: auto; padding: 6px; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;protected&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;void&lt;/span&gt; Application_AuthenticateRequest(&lt;span class=&quot;code-SDKkeyword&quot; style=&quot;border: 0px; color: #339999; margin: 0px; padding: 0px;&quot;&gt;Object&lt;/span&gt; sender,
EventArgs e)
{
  &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;if&lt;/span&gt; (HttpContext.Current.User != &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;null&lt;/span&gt;)
  {
    &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;if&lt;/span&gt; (HttpContext.Current.User.Identity.IsAuthenticated)
    {
     &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;if&lt;/span&gt; (HttpContext.Current.User.Identity &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;is&lt;/span&gt; FormsIdentity)
     {
        FormsIdentity id =
            (FormsIdentity)HttpContext.Current.User.Identity;
        FormsAuthenticationTicket ticket = id.Ticket;

        &lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt; Get our roles from user Data
&lt;/span&gt;        &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;string&lt;/span&gt; userData = ticket.UserData;
        &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;string&lt;/span&gt;[] roles = userData.Split(&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;,&#39;&lt;/span&gt;);
        HttpContext.Current.User = &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;new&lt;/span&gt; GenericPrincipal(id, roles);
     }
    }
  }
}&lt;/pre&gt;
</content><link rel='replies' type='application/atom+xml' href='http://cattonitcareer.blogspot.com/feeds/5420586172013628815/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://cattonitcareer.blogspot.com/2012/12/aspnet-forms-authentication-role-based.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4400122150726207273/posts/default/5420586172013628815'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4400122150726207273/posts/default/5420586172013628815'/><link rel='alternate' type='text/html' href='http://cattonitcareer.blogspot.com/2012/12/aspnet-forms-authentication-role-based.html' title='ASP.NET Forms Authentication Role-based Security '/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03904899640663376912</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4400122150726207273.post-8643672015757809723</id><published>2012-12-24T23:03:00.002-08:00</published><updated>2013-09-09T00:57:06.302-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".Net"/><title type='text'>.Net 的基本技巧</title><content type='html'>&lt;br /&gt;
&lt;pre style=&quot;background-color: #f4f4f4; border-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 10pt; line-height: 12pt; margin: 0em; overflow: visible; padding: 0px; width: 864.296875px;&quot;&gt;建構子constructor 的相互呼叫&amp;nbsp;&lt;/pre&gt;
&lt;pre style=&quot;background-color: #f4f4f4; border-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 10pt; line-height: 12pt; margin: 0em; overflow: visible; padding: 0px; width: 864.296875px;&quot;&gt;建構子後面會加上 :this 的方式來呼叫另一個建構子，如下一個沒有參數的建構子會帶一個參數給另一個有帶參數的建構子&lt;/pre&gt;
&lt;pre style=&quot;background-color: #f4f4f4; border-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 10pt; line-height: 12pt; margin: 0em; overflow: visible; padding: 0px; width: 864.296875px;&quot;&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-color: #f4f4f4; border-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 10pt; line-height: 12pt; margin: 0em; overflow: visible; padding: 0px; width: 864.296875px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt; Constructor1()&lt;span style=&quot;background-color: white; font-size: 10pt; line-height: 12pt;&quot;&gt;: &lt;/span&gt;&lt;span style=&quot;color: blue; font-size: 10pt; line-height: 12pt;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;background-color: white; font-size: 10pt; line-height: 12pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: 10pt; line-height: 12pt;&quot;&gt;string1&lt;/span&gt;&lt;span style=&quot;background-color: white; font-size: 10pt; line-height: 12pt;&quot;&gt;)&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-color: #f4f4f4; border-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 10pt; line-height: 12pt; margin: 0em; overflow: visible; padding: 0px; width: 864.296875px;&quot;&gt;  {&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 10pt; line-height: 12pt; margin: 0em; overflow: visible; padding: 0px; width: 864.296875px;&quot;&gt;  }&lt;/pre&gt;
&lt;pre style=&quot;background-color: #f4f4f4; border-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 10pt; line-height: 12pt; margin: 0em; overflow: visible; padding: 0px; width: 864.296875px;&quot;&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 10pt; line-height: 12pt; margin: 0em; overflow: visible; padding: 0px; width: 864.296875px;&quot;&gt;  &lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;background-color: #f4f4f4; font-size: 10pt; line-height: 12pt;&quot;&gt;Constructor1&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; line-height: 12pt;&quot;&gt;(String string1)&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-color: #f4f4f4; border-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 10pt; line-height: 12pt; margin: 0em; overflow: visible; padding: 0px; width: 864.296875px;&quot;&gt;  {&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 10pt; line-height: 12pt; margin: 0em; overflow: visible; padding: 0px; width: 864.296875px;&quot;&gt;      ....          &lt;/pre&gt;
&lt;pre style=&quot;background-color: #f4f4f4; border-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 10pt; line-height: 12pt; margin: 0em; overflow: visible; padding: 0px; width: 864.296875px;&quot;&gt;  }&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
Constraints on Type Parameters&lt;/h4&gt;
&lt;h3&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;在新增&amp;nbsp;&lt;span style=&quot;color: #2a2a2a; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; line-height: 18px;&quot;&gt;generic class 時可以限制其類別為何, 如下&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;pre style=&quot;background-color: white; border-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; line-height: 12pt; margin: 0em; overflow: visible; padding: 0px; width: 864.296875px;&quot;&gt;&lt;span style=&quot;color: blue; font-size: 10pt;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue; font-size: 10pt;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; Repository1&lt;tentity&gt; &lt;/tentity&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: blue; line-height: 12pt;&quot;&gt;where&lt;/span&gt;&lt;span style=&quot;background-color: #f4f4f4; line-height: 12pt;&quot;&gt; TEntity : &lt;/span&gt;&lt;span style=&quot;color: blue; line-height: 12pt;&quot;&gt;class&lt;/span&gt;&lt;/b&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; border-style: none; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; line-height: 12pt; margin: 0em; overflow: visible; padding: 0px; width: 864.296875px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: blue; line-height: 12pt;&quot;&gt;
&lt;/span&gt;&lt;/b&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
http://msdn.microsoft.com/en-us/library/d5x73970.aspx&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h2 style=&quot;background-color: white; border-bottom-color: rgb(67, 149, 188); border-bottom-style: dotted; border-bottom-width: 1px; color: #0c72a2; font-family: Georgia, &#39;Times New Roman&#39;, Times, serif; font-weight: lighter; line-height: 1em; margin: 0px 0px 2px; padding-bottom: 3px; width: 540px;&quot;&gt;
&lt;span style=&quot;background-color: #f0fde2; border-bottom-color: rgb(12, 114, 162); border-bottom-style: solid; border-bottom-width: 1px; color: #0c72a2; font-size: small; text-decoration: initial;&quot;&gt;&lt;a href=&quot;http://www.jaltiere.com/index.php/2012/02/15/dynamic-entity-framework-queries-with-predicate-builder/&quot; rel=&quot;bookmark&quot; style=&quot;background-color: #f0fde2; border-bottom-color: rgb(12, 114, 162); border-bottom-style: solid; border-bottom-width: 1px; color: #0c72a2; text-decoration: initial;&quot; target=&quot;_blank&quot; title=&quot;Permanent Link: Dynamic Entity Framework Queries with Predicate Builder&quot;&gt;Dynamic Entity Framework Queries with Predicate Builder&lt;/a&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h2 style=&quot;background-color: white; border-bottom-color: rgb(67, 149, 188); border-bottom-style: dotted; border-bottom-width: 1px; margin: 0px 0px 2px; padding-bottom: 3px; width: 540px;&quot;&gt;
&lt;span style=&quot;color: #0c72a2; font-family: Georgia, Times New Roman, Times, serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-weight: normal; line-height: 24px;&quot;&gt;http://www.jaltiere.com/index.php/2012/02/15/dynamic-entity-framework-queries-with-predicate-builder/&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h2 align=&quot;left&quot; style=&quot;background-color: #f6f6f6; color: #bf2c19; font-family: arial, sans-serif; margin-bottom: 0.5em; margin-top: 1.3em;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Dynamically Composing Expression Predicates -&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 22px;&quot;&gt;Using PredicateBuilder&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
http://www.albahari.com/nutshell/predicatebuilder.aspx&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://cattonitcareer.blogspot.com/feeds/8643672015757809723/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://cattonitcareer.blogspot.com/2012/12/net.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4400122150726207273/posts/default/8643672015757809723'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4400122150726207273/posts/default/8643672015757809723'/><link rel='alternate' type='text/html' href='http://cattonitcareer.blogspot.com/2012/12/net.html' title='.Net 的基本技巧'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03904899640663376912</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>