This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import pyExcelerator | |
# スタイルのキャッシュ | |
styles = {}; | |
# パターン番号からスタイルを生成しキャッシュする. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ローダのメカニズムを有効化 | |
Ext.Loader.setConfig({ | |
enabled: true | |
}); | |
// Ext.uxで始まる名前のスクリプト(お手製スクリプト)は | |
// uxフォルダ以下を検索するように指示する. | |
Ext.Loader.setPath('Ext.ux', 'ux'); | |
// このページで使用するコンポーネント |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ASP.NET Ajaxの非同期通信の終了時ハンドラを登録し、 | |
// 非同期通信時のエラーを表示する | |
Sys.WebForms.PageRequestManager.getInstance() | |
.add_endRequest(function (sender, args) { | |
if (args.get_error() != undefined) { | |
// エラーが発生していれば、それを表示する. | |
var msg = args.get_error().message; | |
args.set_errorHandled(true); | |
Ext.MessageBox.show({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public partial class AspajaxPageMethodsTest: System.Web.UI.Page | |
{ | |
/* | |
* Web.configで、ASP.NET AjaxでWebMethodsを有効にする. | |
* <configuration> | |
* <system.webServer> | |
* <modules runAllManagedModulesForAllRequests="true"> | |
* <!-- <add name="MyModule1" type="aspextjs.MyModule1"/> --> | |
* <add name="ScriptModule" type="System.Web.Handlers.ScriptModule"/> | |
* </modules> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[WebMethod] | |
public static string GetComboInfo( | |
string dep, string area, string block, string dmNo, string fieldName) | |
{ | |
// パラメータの診断 | |
System.Diagnostics.Debug.Print( | |
String.Format("dep:{0}, area:{1}, block:{2}, cdmNo:{3}, changed:{4}", | |
dep, area, block, dmNo, fieldName | |
)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// カラムモデルの管理 (シングルトン) | |
Ext.define('ColumnDefApplyer', { | |
singleton: true, | |
currentColumnDefs: "", | |
currentColumnModel: null, | |
load: function () { | |
// hiddenに格納されているカラム定義のJSONを読み込む | |
var columnDefs = Ext.fly('MainContent_TableColumnModelJSON').dom.value; | |
if (columnDefs != this.currentColumnDefs) { | |
// 現在保持しているカラム定義と一致しなければ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 現在のDBFファイルの一覧 | |
select * | |
from dba_data_files | |
; | |
-- テーブルスペースと、そのデータファイルの作成 | |
create tablespace TS_TEST | |
datafile 'C:\ORACLEXE\APP\ORACLE\ORADATA\XE\TEST.DBF' | |
size 10m | |
autoextend on next 10m maxsize unlimited |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DECLARE | |
-- UTF8のOracle(NLS)表現 | |
UTF8 constant nvarchar2(250) := 'AL32UTF8'; | |
-- 改行コード | |
CRLF CONSTANT VARCHAR2(2) := chr(13) || chr(10); | |
-- タブコード | |
TAB CONSTANT VARCHAR2(1) := chr(9); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- デバッグする場合に必要な権限 | |
grant debug connect session to test; | |
grant debug any procedure to test; | |
-- Oracle11gでPL/SQLからUTL_SMTPなどネットワークを使う場合には | |
-- あらかじめACLで許可しなければならない。 | |
-- http://osm.utoronto.ca/i/doc/ja/sec_network_services.htm#BHADHHFH | |
-- http://otndnld.oracle.co.jp/document/products/oracle11g/111/doc_dvd/appdev.111/E05686-02/d_networkacl_adm.htm#BABIGEGG |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare | |
-- 32Kを超えるバイナリデータをBLOB上に作成する | |
procedure generate_message(lb in out nocopy blob, cnt number) is | |
mes varchar2(4096); | |
rd raw(4096); | |
begin | |
for idx in 1..cnt | |
loop | |
mes := 'メッセージNo. ' || to_char(idx) || chr(10); | |
rd := UTL_I18N.STRING_TO_RAW(mes, 'UTF8'); |
OlderNewer