Skip to content

Instantly share code, notes, and snippets.

View kejun91's full-sized avatar

Jun Ke kejun91

  • Beijing
View GitHub Profile
/*
* Author: Steven
* Date: 2014-1-14
* Description: 做单项目中根据客户类型以及所选择的的行业类型来推荐相应的客户
*/
public class BuySellRecommendation2Controller
{
private ID projectId;
public ProjectHollyhigh__c projectc{get;set;}
public Account acc{get;set;}
<apex:page controller="BuySellRecommendation2Controller" showHeader="true">
<apex:form id="form">
<apex:pageBlock title="做单项目推荐">
<apex:outputLabel value="做单项目:{!projectc.Name}" />
<br />
<apex:outputLabel value="客户:{!acc.Name}" />
<br />
<apex:outputLabel value="客户类型:{!acc.RecordType.Name}" />
<br />
<apex:outputPanel >
@kejun91
kejun91 / gist:9894671
Created March 31, 2014 15:14
pagination in salesforce
<!-- 开发人: MI-->
<!-- 开发时间:2012-09-26 -->
<!-- 模块:联系人 -->
<!-- 编号:DEV00000076 -->
<!-- 2012/11/29 GAO修改:在新建联系人的时候,需要把客户的网址,电话、联系地址,邮编、传真带入到联系人中 -->
<apex:page standardcontroller="Account"
extensions="Anyue_ShowContactByType" showheader="false" sidebar="false">
<apex:form >
<apex:pageblock >
<apex:commandbutton onclick="javascript:window.open('{!instanceUrl}/003/e?retURL=%2F{!accountId}&accid={!accountId}&00N90000004IUwI={!Account.Website}&00N90000004KA4y={!Account.Anyue_DirectLine__c}&00N90000004IUw3={!Account.ExpressAddress__c}&00N90000004KA5I={!Account.Anyue_PostalCode__c}&00N90000004KA4u={!Account.AddressDetails__c}&00N90000004KA5C={!Account.Fax}','newwindow')"
随着金融工具的日益创新和发展,金融衍生工具已经成为当代金融市场的重要组成部分,然而金融衍生工具不仅给投资者带来巨额利润,也带来了巨大的投资风险,而风险的存在体现出信息的不对称,同时人们对经济信息获取的主要渠道是企业披露的相关会计信息。本论文将通过结合中信富泰巨额亏损案例对会计监督和披露在金融衍生工具风险管理中的作用进行分析整理,并分析其存在的问题和不足,进而提出相应的建议,维护金融市场的稳定,促进金融衍生品在我国的健康发展。
Among the innovating and developing financial tools, financial derivatives are significantly comprising the modern finance markets. Though bringing marginally profits for investors, financial derivatives are of high investment risk, which partly results from information asymmetry. Investors receive economic information mostly from relating accountancy information the company reveals. This essay will arrange and analyze the role of accountancy supervision and revelation in financial derivatives risk management. 2008 CITIC Pacific foreign exchange losses controversy will be demonstrated as a case study in the analysis. Some suggestions will be given to complement the accountancy supervision for a healthy development of financial derivatives.
@kejun91
kejun91 / gist:9906251
Created April 1, 2014 01:52
pagination 问题
分页的问题,现在有一个visualforce页面,页面上面有几个选项列表,用户选择几个值,点击搜索然后从后台查询出符合条件的客户信息
把查询出来的客户信息显示在这个visualforce页面的下方并分页
这个显示的客户信息在controller中是一个wrapper class,包括客户信息和一个复选框
用户勾选复选框,点击确认后在controller中对用户勾选的数据进行处理
现在的问题是visualforce勾选后,在controller中获取不到,不知道是什么问题
@kejun91
kejun91 / gist:9906253
Created April 1, 2014 01:52
pagination
/*
*功能:用于Temporary STR页面审批控制类
*负责人:
*时间:2014-3-9
*/
public with sharing class TemporarySTRApprovalPageController {
//存放服务器基本路径
public String baseurl{get;set;}
@kejun91
kejun91 / 20141025
Created October 26, 2014 15:11
Javascript-like
https://www.google.com/search?q=javascript+closure
https://www.google.com/search?q=javascript+module+pattern&gws_rd=ssl
http://www.adequatelygood.com/JavaScript-Module-Pattern-In-Depth.html
https://www.google.com/search?q=()#newwindow=1&q=javascript+empty+parentheses
http://stackoverflow.com/questions/8228281/what-is-the-function-construct-in-javascript (function(){}).()
http://benalman.com/news/2010/11/immediately-invoked-function-expression/
http://themeforest.net/ 16,572 Site Templates and Themes from $3
http://addyosmani.com/resources/essentialjsdesignpatterns/book/#facadepatternjavascript
https://www.udemy.com/blog/javascript-interview-questions/
http://www.toptal.com/javascript/interview-questions
http://maxkatz.org/
http://outof.me/phonegap-and-force-com-in-69-minutes/
http://blog.agupieware.com/
http://www.tgerm.com/2014/09/using-skuid-to-quickly-create-salesforce1-visualforce-pages.html
http://corycowgill.blogspot.com/2013/12/capturing-signatures-with-html5-canvas.html
https://developer.salesforce.com/page/Building_PhoneGap_Mobile_Applications_Powered_by_Database.com
https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_list_sorting_sobject.htm
https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_methods_system_list.htm#apex_System_List_sort
http://salesforce.stackexchange.com/questions/8370/how-to-sort-wrapper-list
https://www.salesforce.com/us/developer/docs/apexcode/index_Left.htm#CSHID=apex_comparable.htm|StartTopic=Content%2Fapex_comparable.htm|SkinName=webhelp
http://en.wikipedia.org/wiki/Quicksort
http://www.javaprogrammingforums.com/java-theory-questions/16452-understanding-comparable-interface.html
http://stackoverflow.com/questions/10130246/java-using-the-comparable-interface
http://salesforce.stackexchange.com/questions/35005/view-state-and-transient
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_classes_keywords_transient.htm
http://www.salesforce.com/us/developer/docs/apexcode/index_Left.htm#CSHID=apex_classes_static.htm|StartTopic=Content%2Fapex_classes_static.htm|SkinName=webhelp
@kejun91
kejun91 / Misc 20141026
Last active August 29, 2015 14:08
Misc force.com
http://www.ibm.com/mobilefirst/us/en
https://github.com/ForceDotComLabs
https://github.com/adobe-webplatform/dropcap.js
http://www.forbes.com/sites/alexkonrad/2013/07/11/salesforce-radian6-china-russia/
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_triggers_merge_statements.htm
http://www.salesforce.com/us/developer/docs/pages/index_Left.htm Visualforce Developer’s Guide
http://www.salesforce.com/us/developer/docs/apexcode/index_Left.htm Force.com Apex Code Developer's Guide
http://www.salesforce.com/us/developer/docs/salesforce1/index_Left.htm Salesforce1 Mobile App Developer Guide
http://www.salesforce.com/us/developer/docs/platform_connect/index_Left.htm Force.com Canvas Developer's Guide