標籤

4GL (1) 人才發展 (10) 人物 (3) 太陽能 (4) 心理 (3) 心靈 (10) 文學 (31) 生活常識 (14) 光學 (1) 名句 (10) 即時通訊軟體 (2) 奇狐 (2) 音樂 (2) 產業 (5) 郭語錄 (3) 無聊 (3) 統計 (4) 新聞 (1) 經濟學 (1) 經營管理 (42) 解析度 (1) 遊戲 (5) 電學 (1) 網管 (10) 廣告 (1) 數學 (1) 機率 (1) 雜趣 (1) 證券 (4) 證券期貨 (1) ABAP (15) AD (1) agentflow (4) AJAX (1) Android (1) AnyChart (1) Apache (14) BASIS (4) BDL (1) C# (1) Church (1) CIE (1) CO (38) Converter (1) cron (1) CSS (23) DMS (1) DVD (1) Eclipse (1) English (1) excel (5) Exchange (4) Failover (1) FI (57) File Transfer (1) Firefox (2) FM (2) fourjs (1) gladiatus (1) google (1) Google Maps API (2) grep (1) Grub (1) HR (2) html (23) HTS (8) IE (1) IE 8 (1) IIS (1) IMAP (3) Internet Explorer (1) java (3) JavaScript (22) jQuery (6) JSON (1) K3b (1) LED (3) Linux (112) Linux Mint (4) Load Balance (1) Microsoft (2) MIS (2) MM (51) MSSQL (1) MySQL (27) Network (1) NFS (1) Office (1) Oracle (125) Outlook (3) PDF (6) Perl (59) PHP (33) PL/SQL (1) PL/SQL Developer (1) PM (3) Postfix (2) postfwd (1) PostgreSQL (1) PP (50) python (1) QM (1) Red Hat (4) Reporting Service (28) ruby (11) SAP (234) scp (1) SD (16) sed (1) Selenium-WebDriver (5) shell (5) SQL (4) SQL server (8) SQuirreL SQL Client (1) SSH (2) SWOT (3) Symantec (2) T-SQL (7) Tera Term (2) tip (1) tiptop (22) Tomcat (6) Trouble Shooting (1) Tuning (5) Ubuntu (33) ufw (1) utf-8 (1) VIM (11) Virtual Machine (2) vnc (3) Web Service (2) wget (1) Windows (19) Windows (1) WM (6) youtube (1) yum (2)

2014年3月31日 星期一

國中物理題目,計算電路功率比

公式:1
並聯電阻阻值的計算公式為:1/R=1/R1+1/R2+1/R3+...1/Rn
例如:10Ω、10Ω、100Ω、100Ω四隻電阻並聯後的阻值R為:
  1/R=1/10+1/10+1/100+1/100
  1/R=22/100
  R並≈4.5Ω


 公式:2
 P(功率) = IV = V平方/R

公式:3
V = IR


1. 圖中為三並聯,故V一樣,
2. 但3 and 4 為串聯,所以V會依次遞減
3. 1 and 2 V一樣,但1 and2 後V會遞減到5
4. 將並聯電阻依照公式1計算新電阻,然後和串聯電阻依照電阻比例計算電壓(公式3,因為串聯時,I一樣)
5. 依照P=V平方/R (公式2),將算出電壓除以電阻,就可得出功率

2014年3月30日 星期日

安裝 SQuirreL SQL Client

1. http://squirrel-sql.sourceforge.net/
2. download installer
3. java -jar squirrel-sql-<version>-install.jar 
4.download oracle jdbc thin driver (到Oracle web,下載Oracle client ,jdbc driver 在 stage/ext/jlib/ojdbc6.jar)
5.Drivers->Oracle Thin Driver->Extra Calss Path->Add->
ojdbc6.jar
6.中文有亂碼(big5)則以utf8 轉碼

2014年3月27日 星期四

install perl 連接 SAP及MSSQL時的作法

1. 利用ldconfig,讓linux可以讀到 SAP and freetds  library
echo "/usr/local/freetds/lib" >> /etc/ld.so.conf
echo "/usr/sap/lib" >> /etc/ld.so.conf

2. 利用CPAN,直接安裝nsapnwrfc and DBD:Sybase
perl -MCPAN -e shell
force install DBD:Sybase
force install sapnwrfc

2014年3月26日 星期三

SAP PO設定列印

http://scn.sap.com/thread/830302

Hi,
You can send purchase order via e-mail in SAP system, there are some configurations and pre-requisites to do as follow:

1. You must maintain an e-mail address in the address in the vendor master.

2. The same applies to your own user master. You also have to specify an e-mail address there in order to identify the sender.

Note that it is not possible to change the e-mail address of the vendor via the SAP purchase order transaction (ME21N, ME22N, and so on). The system only uses the e-mail address of the vendor that is maintained in the vendor master!

3. For the output type for default values, a communication strategy needs to be maintained in the Customizing that supports the e-mail. You can find the definition of the communication strategy in the Customizing via the following path: (SPRO -> IMG -> SAP Web Application Server -> Basic Services -> Message Control -> Define Communication Strategy). As a default, communication strategy CS01 is delivered. This already contains the necessary entry for the external communication. Bear in mind that without a suitable communication strategy it is not possible to communicate with a partner via Medium 5 (external sending).

4. Use the standard SAP environment (program 'SAPFM06P', FORM routine 'ENTRY_NEU' and form 'MEDRUCK') as the processing routines.

5. In the condition records for the output type (for example, Transaction MN04), use medium '5' (External send).

6. You can use Transaction SCOT to trigger the output manually. The prerequisite for a correct sending is that the node is set correctly. This is not described here, but it must have already been carried out.

7. To be able to display, for example, the e-mail in Outlook, enter PDF as the format in the node.

For more details, check out the OSS note :191470

Note:

Cutomisation steps for Output of Purchase Order are

1. Condition Table
SPRO
> Material Management> Purchasing -> Message -> Output Control->Condition Tables->Define Condition Table for Purchase Order

Select:
Purchasing Doc. Type,
Purch. Organization,
Vendor
2. Access Sequences
SPRO -> Material Management-> Purchasing -> Message -> Output Control->Access Sequences->Define Condition Table for Purchase Order
3. Message Type
SPRO -> Material Management-> Purchasing -> Message -> Output Control->Message Types->Define Message Type for Purchase Order


呼叫PROGRAM中的FORM routine,而FORM routine呼叫smartForm Form
底下貼上ZSAPFM06P範例

4. Message Determination Schemas
4.1. Message Determination Schemas
SPRO -> Material Management-> Purchasing -> Message -> Output Control->Message Schema->Define Message Schema for Purchase Order-> Maintain Message Determination Schema
4.2. Assign Schema to Purchase Order
SPRO -> Material Management-> Purchasing -> Message -> Output Control->Message Schema->Define Message Schema for Purchase Order-> Assign Schema to Purchase Order

5. Partner Roles per Message Type
SPRO -> Material Management-> Purchasing -> Message -> Output Control-> Partner Roles per Message Type ->Define Partner Role for Purchase Order
6. Condition Record
Navigation Path: SAP Menu-> Logistics -> Material Management -> Purchasing-> Master data->Messages-> Purchase Order-> MN04-> Create
Now you create PO (ME21N) and save it. Go to ME22N and print the PO by giving output type.


FORM ZENTRY_NEU USING ENT_RETCO ENT_SCREEN.
  DATA: L_DRUVO LIKE T166K-DRUVO,
        L_NAST  LIKE NAST,
        L_FROM_MEMORY,
        L_DOC   TYPE MEEIN_PURCHASE_DOC_PRINT.

  CLEAR ENT_RETCO.
  IF NAST-AENDE EQ SPACE.
    L_DRUVO = '1'.
  ELSE.
    L_DRUVO = '2'.
  ENDIF.

* "***************************************************
  DATA: LS_PONUM    LIKE EKKO-EBELN.
  DATA: LF_FORMNAME TYPE TDSFNAME VALUE 'ZSFMM001',
        LF_FM_NAME  TYPE RS38L_FNAM.
  DATA  ITAB LIKE ZSMM001 OCCURS 10 WITH HEADER LINE.
  DATA  FRGKE LIKE EKKO-FRGKE.
  DATA  T_RTAX1U15 LIKE RTAX1U15 OCCURS 1 WITH HEADER LINE.   "20080407 By Matt  Calculate Tax
  DATA: IT_PDF TYPE ITCOO OCCURS 0 WITH HEADER LINE,          "@03
        PDF_TAB LIKE TLINE OCCURS 0 WITH HEADER LINE,
        BIN_FILESIZE TYPE I,
        FILE_SIZE TYPE I,
        LS_JOB_INFO TYPE SSFCRESCL,
        PATH_NAME   TYPE STRING,
        VEKORG      TYPE EKORG.
* "***************************
  CLEAR LS_PONUM .
  LS_PONUM = NAST-OBJKY+0(10) .
*
  INCLUDE MM_MESSAGES_MAC. "useful macros for message handling
  SELECT SINGLE FRGKE EKORG INTO (FRGKE, VEKORG) FROM EKKO WHERE EBELN = LS_PONUM.
  IF FRGKE EQ 'B'.                       "Block doc cannot be printed, agreed on 4/20/07' PO process meeting
    MMPUR_MESSAGE_FORCED 'E' 'ZMM01' '999' 'Unreleased document cannot be printed !'  '' '' ''.
    EXIT.
  ENDIF.
*
  SELECT H~EBELN H~LIFNR H~AEDAT H~BEDAT H~WKURS H~KUFIX
         H~WAERS H~BUKRS H~ZTERM H~INCO1 H~INCO2 H~EKGRP
         I~EBELP I~MATNR I~AFNAM I~MEINS I~MENGE I~WERKS
         I~NETPR I~PEINH I~BPRME I~NETWR I~RETPO I~PSTYP
         I~TXZ01 I~IDNLF I~MWSKZ I~ADRNR I~ADRN2 I~EMLIF I~KUNNR
    INTO CORRESPONDING FIELDS OF TABLE ITAB
    FROM EKKO AS H INNER JOIN EKPO AS I
      ON I~EBELN = H~EBELN
    WHERE H~EBELN = LS_PONUM
      AND H~LOEKZ = ' ' AND I~LOEKZ = ' '.     "2007/02/14[+1]JASON

  LOOP AT ITAB.
    IF ITAB-TXZ01 IS INITIAL .
      SELECT SINGLE MAKTX  INTO ITAB-TXZ01
        FROM MAKT         WHERE MATNR = ITAB-MATNR.
    ENDIF.

    IF ITAB-RETPO = 'X'.   "Return Item
      ITAB-NETPR = ITAB-NETPR * -1.
      ITAB-NETWR = ITAB-NETWR * -1.
    ENDIF.
*-- [ ADD BY Katy ITEM 交期 DATA +3 ]
    SELECT SINGLE EINDT
      INTO ITAB-EINDT
      FROM EKET
     WHERE EBELN = ITAB-EBELN AND EBELP = ITAB-EBELP.

*20080407 By Matt  Calculate Tax
    IF ITAB-MWSKZ NE ''.
      CALL FUNCTION 'CALCULATE_TAX_FROM_NET_AMOUNT'
        EXPORTING
          I_BUKRS = ITAB-BUKRS
          I_MWSKZ = ITAB-MWSKZ
          I_WAERS = ITAB-WAERS
          I_WRBTR = ITAB-NETWR
        TABLES
          T_MWDAT = T_RTAX1U15.
      IF SY-SUBRC <> 0.
        "MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
      ENDIF.
      ITAB-WMWST = T_RTAX1U15-WMWST.
    ENDIF.

    IF ITAB-ADRNR EQ ''.   "20091201 Ship-to Address
      IF ITAB-ADRN2 NE ''"Address
        ITAB-ADRNR = ITAB-ADRN2.
      ELSEIF ITAB-EMLIF NE ''"Vendor
        SELECT SINGLE ADRNR INTO ITAB-ADRNR FROM LFA1
         WHERE LIFNR EQ ITAB-EMLIF.
      ELSEIF ITAB-KUNNR NE ''"Customer
        SELECT SINGLE ADRNR INTO ITAB-ADRNR FROM KNA1
         WHERE KUNNR EQ ITAB-KUNNR.
      ENDIF.
    ENDIF.

    MODIFY ITAB.

  ENDLOOP.

**@04 2012/12/21 Add APPROVE_ID For 串簽名檔 (Begin) ===========================**
  DATA: I_PURID1(12TYPE C,
        I_PURID2(12TYPE C.

  SELECT SINGLE APPROVE_ID INTO I_PURID1 FROM ZTMM019
    WHERE DOC_NO EQ LS_PONUM AND SERIAL_NO EQ 1 AND DOC_TYPE EQ 'PO'.

  SELECT SINGLE APPROVE_ID INTO I_PURID2 FROM ZTMM019
    WHERE DOC_NO EQ LS_PONUM AND SERIAL_NO EQ 2 AND DOC_TYPE EQ 'PO'.

  CONCATENATE 'ZPUR_' I_PURID1 INTO I_PURID1.
  CONCATENATE 'ZPUR_' I_PURID2 INTO I_PURID2.
**@04 2012/12/21 Add APPROVE_ID For 串簽名檔 (End)    ===========================**

* "**************************************
  CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
      FORMNAME           = TNAPR-SFORM             "Smartform name - Get from IMG 041207'
    IMPORTING
      FM_NAME            = LF_FM_NAME
    EXCEPTIONS
      NO_FORM            = 1
      NO_FUNCTION_MODULE = 2
      OTHERS             = 3.
  IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.

  IF LF_FM_NAME IS INITIAL .
    LF_FM_NAME = '/1bcdwb/sf00000001' .
  ENDIF.

  DATA ST_SFCTRLOP LIKE SSFCTRLOP.
  DATA LS_COMPOSER_PARAM TYPE SSFCOMPOP.

  LS_COMPOSER_PARAM-TDNEWID = 'X'.      "CREATE NEW SPOOL ID  EVERYTIME

  IF TNAPR-FORMTYPE = '2'.              "@03  Convert as PDF
    ST_SFCTRLOP-GETOTF = 'X'.
    ST_SFCTRLOP-NO_DIALOG = 'X'.
  ENDIF.

  ST_SFCTRLOP-LANGU = NAST-SPRAS.
  CALL FUNCTION LF_FM_NAME
    EXPORTING
      CONTROL_PARAMETERS = ST_SFCTRLOP
      OUTPUT_OPTIONS     = LS_COMPOSER_PARAM
      I_PURID1           = I_PURID1                 "@04
      I_PURID2           = I_PURID2                 "@04
    IMPORTING
      JOB_OUTPUT_INFO    = LS_JOB_INFO
    TABLES
      ITAB               = ITAB
    EXCEPTIONS
      FORMATTING_ERROR   = 1
      INTERNAL_ERROR     = 2
      SEND_ERROR         = 3
      USER_CANCELED      = 4.

  IF TNAPR-FORMTYPE = '2'.          "@03 Convert as PDF file
    PERFORM DOWNLOAD_AS_PDF TABLES LS_JOB_INFO-OTFDATA
                             USING VEKORG.
  ENDIF.

ENDFORM.                    "ZENTRY_NEU 

SAP 設定DN 列印

http://sap.ittoolbox.com/groups/technical-functional/sap-log-sd/printing-delivery-note-automatically-after-goods-issue-351055

1.
V/34 - I'm assuming you already have the output type set up ?
Ensure that the 'send time' on the output type is '4 - immediately
with update'
Include an access in the output type of appropriate data . If a
suitable one doesn't already exist create it in V/50.
Check the output type is fully configured in V/36, V/49, V/G9
就是設定message的呼叫PROGRAM and routine


V/50 - Whatever access sequence you chose, set a requirement '1 - Delivery
GI posted' to make the output automatic when and only when the GI is
posted. Good idea to make it exclusive as well.

VV22 - Create condition records for the access

VP01SHP - Assign the printers and ensure that the 'Print Immediately'
checkbox is set here.

2014年3月20日 星期四

perl pack/unpack 在中文轉換的用法


將四轉為16進位
tyruan@Ubuntu-TY ~ $ perl
print unpack("H*","四");
__END__
e59b9b

 將abc轉為16進位
tyruan@Ubuntu-TY ~ $ perl
print unpack("H*","abc");
__END__
616263

將61轉為字串 (只轉前碼)
tyruan@Ubuntu-TY ~ $ perl
print pack("H2","616263");
__END__
a

 將616263轉為字串
tyruan@Ubuntu-TY ~ $ perl
print pack("H*","616263");
__END__
abc




e59b9b轉為字串
tyruan@Ubuntu-TY ~ $ perl
print pack("H*","e59b9b");
__END__

sap tips (交接)


  1. 在會計科目設定 reconciliation type =d,在客戶主檔要選reconciliation account時才會出現此會計科
  2. 客戶主檔 payment transaction 標籤頁的payment history record打勾,系統會檢查有否重複開invoice
  3. 客戶主檔的billing document 標籤頁的account assignment group會和movement type影響出貨的會計科目
  4. dn actual gi date
    過賬時,會基於actual gi date決定material document 的posting date
  5. dn轉invoice tcode: vf04。list出來後選individual billing...的按鈕,畫面就會帶到billing畫面
  6. billing reference放我們公司的統一發票號碼
  7. billing document : release to accounting(menu) 就會切會計傳票
  8. 切傳票的會計科目是基於acct assignment...決定。有兩個acct assignment group,一為客戶的,一為料號的。
  9. pi可以一張單據有不同plant,但so如果有不同plant,則要不同so。

Linux 顯示/編輯 16 進位 HEX MODE

http://linux.vbird.org/linux_basic/0220filemanager/0220filemanager-fc4.php

非純文字檔: od
我們上面提到的,都是在查閱純文字檔 (ASCII 格式的檔案) 的內容。 那麼萬一我們想要查閱非文字檔,舉例來說,例如 /usr/bin/passwd 這個執行檔的內容時, 又該如何去讀出資訊呢?事實上,由於執行檔通常是 binary file ,使用上頭提到的指令來讀取他的內容時, 確實會產生類似亂碼的資料啊!那怎麼辦?沒關係,我們可以利用 od 這個指令來讀取喔!

[root@linux ~]# od [-t TYPE] 檔案
參數:
-t  :後面可以接各種『類型 (TYPE)』的輸出,例如:
      a       :利用預設的字元來輸出;
      c       :使用 ASCII 字元來輸出
      d[size] :利用十進位(decimal)來輸出資料,每個整數佔用 size bytes ;
      f[size] :利用浮點數值(floating)來輸出資料,每個數佔用 size bytes ;
      o[size] :利用八進位(octal)來輸出資料,每個整數佔用 size bytes ;
      x[size] :利用十六進位(hexadecimal)來輸出資料,每個整數佔用 size bytes ;
範例:
[root@linux ~]# od -t c /usr/bin/passwd
0000000 177   E   L   F 001 001 001  \0  \0  \0  \0  \0  \0  \0  \0  \0
0000020 002  \0 003  \0 001  \0  \0  \0 260 225 004  \b   4  \0  \0  \0
0000040 020   E  \0  \0  \0  \0  \0  \0   4  \0      \0  \a  \0   (  \0
0000060 035  \0 034  \0 006  \0  \0  \0   4  \0  \0  \0   4 200 004  \b
0000100   4 200 004  \b 340  \0  \0  \0 340  \0  \0  \0 005  \0  \0  \0
.....中間省略.......
利用這個指令,可以將 data file 或者是 binary file 的內容資料給他讀出來喔! 雖然讀出的來數值預設是使用非文字檔,亦即是 16 進位的數值來顯示的, 不過,我們還是可以透過 -t c 的參數來將資料內的字元以 ASCII 類型的字元來顯示, 雖然對於一般使用者來說,這個指令的用處可能不大,但是對於工程師來說, 這個指令可以將 binary file 的內容作一個大致的輸出,他們可以看得出東西的啦~ ^_^


 http://dragonspring.pixnet.net/blog/post/33146613-%5Blinux%5D%5Btips%5D%E5%8E%BB%E9%99%A4dos%E6%AA%94%E6%A1%88%E8%A1%8C%E5%B0%BE%E7%9A%84%5Em
如果你在Linux環境底下用vi開啟DOS/Windows檔案的話,很有可能你在每行的結尾會看到一個『^M』的符號。若只是一般文字檔的話, 只會造成閱讀的困擾,倒還沒有其他問題。但是如果是shell script 的話,這可會造成執行錯誤。對於第一次遇到這個問題的人,恐怕是一頭霧水。
為了瞭解這個問題,首先我們來看看Linux的每行結尾和DOS/Windows有什麼不一樣。我們做了兩個檔案:Linux 格式的linux_file和DOS格式的dos_file,分別用hexdump來看看檔案結尾。
首先是Linux的檔案,從紅色部分的標示可以看出來檔案結尾是十六進位的0x0a:
$ hexdump -C linux_file
00000000  4c 69 6e 75 78 2d 66 6f  72 6d 61 74 20 66 69 6c  |Linux-format fil|
00000010  65 2e 0a 45 6e 64 65 64  20 77 69 74 68 20 30 61  |e..Ended with 0a|
00000020  2e 0a                                             |..|
00000022
$

 
再來是DOS的檔案,從紅色部分的標示可以看出來檔案結尾是十六進位的0x0d 0x0a:
$ hexdump -C dos_file
00000000  44 4f 53 2d 66 6f 72 6d  61 74 20 66 69 6c 65 2e  |DOS-format file.|
00000010  0d 0a 45 6e 64 65 64 20  77 69 74 68 20 30 64 20  |..Ended with 0d |
00000020  30 61 2e 0d 0a                                    |0a...|
00000025
$

因為DOS的檔案格式比Linux的格式多了個0x0d,所以會在vi裡面多了一個^M的符號(M是第13個字母,而0x0d就是十進位的13).
0x0d 和 0x0a 這兩個十六進位值除了用控制字元來表示以外,通常也用跳脫字元(Escape character)的 \n 和 \r 來表示。  整理之後,可以得到以下這個表格:
行尾(end of line) 表示法
檔案格式
十六進位
控制字元 (Control character)
跳脫字元 (Escape character)
ASCII 名稱
Linux
0x0a
^J
\n
LF
DOS/Windows
0x0d 0x0a
^M ^J
\r \n
CR LF

知道了Linux與DOS檔案格式的差別之後,要處理這個問題也就呼之欲出了。在Linux的shell 命令裡,有兩個簡單的方法可以消除這個^M。
第一種方法,是利用sed的替換命令,將\r換成空字元:
sed  "s/\r//" dos_file  > dos_file_linux

第二種方法,是利用tr的刪除命令,將\r刪除:
tr -d "\r" < dos_file  > dos_file_linux

任何一種方法做完之後,DOS的行尾已經轉換成Linux行尾:
$ hexdump -C dos_file_linux
00000000  44 4f 53 2d 66 6f 72 6d  61 74 20 66 69 6c 65 2e  |DOS-format file.|
00000010  0a 45 6e 64 65 64 20 77  69 74 68 20 30 64 20 30  |.Ended with 0d 0|
00000020  61 2e 0a                                          |a..|
00000023
$

(2012/10/16 Update) 在某些系統上可能會有dos2unix這個方便的小程式,以下的例子把 DOS 格式的 a.txt轉換成Linux格式的b.txt

dos2unix a.txt b.txt


http://changyy.pixnet.net/blog/post/25633298-%E4%BD%BF%E7%94%A8-vim-%E9%80%B2%E8%A1%8C-hex-mode-%E7%B7%A8%E8%BC%AF-%2816%E9%80%B2%E4%BD%8D%E7%B7%A8%E8%BC%AF%29

想說以前都用 UltraEdit 編輯遊戲存檔,沒想到 VIM 也能這樣做。
只要編輯時,下 :%! xxd ,就會以 Hex Mode 顯示檔案,然後編輯完想返回可以再用 :%! xxd -r 接著再存檔囉

2014年3月19日 星期三

2014年3月15日 星期六

How to Install Slidewall Wallpaper Changer on Ubuntu, Linux Mint

http://ubuntuhandbook.org/index.php/2013/07/install-slidewall-ubuntu-linux-mint/

To install this app, press Ctrl+Alt+T to open terminal, then follow the below steps:
1.) Copy and paste this command and run. It adds the ppa repository to your system:
sudo add-apt-repository ppa:fioan89/slidewall
2.) Update package lists to make it available:
sudo apt-get update
3.) Finally install the software:
sudo apt-get install slidewall

2014年3月13日 星期四

tax codes configuration

 http://scn.sap.com/thread/1162746

 tax codes configuration

1.Define Tax Procedure -- OBQ3
2.Assign country to Calculation Procedure --OBBG
3.Creation of tax codes---FTXP
4.Assign 0% tax codes for non-taxable transactions---OBCL
5.Assignment of Accounts----OB40
Here you will double click MWS and give Chart of Accounts and give tax code and sale tax account and VST , give tax code and purchase tax account.
6.Assign Tax Codes in Sales Account(G/L Account)----FS00

Tax Rate 稅率
Type Of Tax 稅類型
Tax Separate or Tax Included 外加稅或內含稅

IMG path : 財務會計(新) ->財務會計通用設定(新)->進項/銷項稅->計算->定義營業稅代碼

wget example

wget -m -k "http://www.gnu.org/software/wget/" -e robots=off
wget -r http://law.moj.gov.tw/LawClass/LawAll.aspx -e robots=off 全國法規資料庫
wget -r http://www.iosh.gov.tw/Law/Law.aspx#TopData0 勞工安全衛生研究所
wget -r http://ivy5.epa.gov.tw/epalaw/ 環保署
 wget -r http://ivy5.epa.gov.tw/epalaw/Left.aspx 環保署
wget 

2014年3月11日 星期二

Unknown encoding: gb18030

use Encode::HanExtra;


安裝方式
 [dwmgr@misdwp01 mail]$ sudo perl -MCPAN -e shell
 cpan[1]> install Encode::HanExtra
...
...
...
 cpan[1]> exit

2014年3月10日 星期一

如何使用HTML OnClick() event 在 agentflow 使物件enable/disable

1. DynamicForm.Button1.disabled=true;   (反白)
2. DynamicForm.Button1.disabled=false;
3. DynamicForm.Button1.disabled = ! DynamicForm.Button1.disabled;

2014年3月6日 星期四

安裝Linux Mint 後,自行再安裝的軟體

openconnect / Cisco AnyConnect VPN Client
Dropbox
Vinagre 遠端桌面
gMTP : for android file transfer

http://hyperrate.com/thread.php?tid=28044
gcin輸入法

 1. 打開gnome-terminal
 apt-get install gcin
2.  gnome-language-selector
 選擇gcin
3. sudo im-switch
 選擇gcin

設定gcin:
1. 右下角gcin小圖示->設定/工具->內定輸入法&開啟/關閉->詞音/拼音(第一次內定) ==> 這樣CTRL+SPACE才會變成詞音/拼音
2.  gcin注音/詞音/拼音 設定->詞音輸入預選詞視窗 ==> 打勾拿掉,否則預選詞出現對我反而困擾

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 835AB0E3
software-properties-gtk
到 Other software (其他軟體) → Add


APT line : deb http://hyperrate.com/debian eliu release
會加入兩列,把 gcin source code 那個取消掉,目前 沒有提供 source,沒弄會造成錯誤。
$ sudo apt-get update
$ sudo apt-get install gcin

Unity: 右上角的齒輪→系統設定值→語言支援→鍵盤輸入法系統→gcin
或是執行 /usr/bin/gnome-language-selector→鍵盤輸入法系統→gcin
可能還要參考

gcin icon 狀態顯示圖示

我自己的經驗是在 12.10 仍然可以在 terminal 用
gsettings set com.canonical.Unity.Panel systray-whitelist "['all']"
關閉後登出再登入就可以使用 gcin 了。以後 gcin 如果有更新也會自動更新。
$ 為 bash 的命令提示字元,複製時不要選到。

Audacity
TeighaViewer (AutoCAD viewer)