<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Yuzifu Studio &#187; ERP</title>
	<atom:link href="http://blog.yuzifu.net/index.php/category/erp/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.yuzifu.net</link>
	<description>Welcome to Yuzifu&#039;s website!</description>
	<lastBuildDate>Sun, 05 Sep 2010 14:48:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>软件通过审核</title>
		<link>http://blog.yuzifu.net/index.php/2010/08/%e8%bd%af%e4%bb%b6%e9%80%9a%e8%bf%87%e5%ae%a1%e6%a0%b8/</link>
		<comments>http://blog.yuzifu.net/index.php/2010/08/%e8%bd%af%e4%bb%b6%e9%80%9a%e8%bf%87%e5%ae%a1%e6%a0%b8/#comments</comments>
		<pubDate>Tue, 31 Aug 2010 01:06:07 +0000</pubDate>
		<dc:creator>yuzifu</dc:creator>
				<category><![CDATA[ERP]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[NHibernate]]></category>
		<category><![CDATA[SQL SERVER]]></category>
		<category><![CDATA[wpf]]></category>

		<guid isPermaLink="false">http://blog.yuzifu.net/?p=466</guid>
		<description><![CDATA[软件名称: 运营管理系统
版         本: 3.0
开发语言: C# + WPF + SQL SERVER + .net 4.0 + NH2.1.2
运行结构: Browse Application
<span class="readmore"><a href="http://blog.yuzifu.net/index.php/2010/08/%e8%bd%af%e4%bb%b6%e9%80%9a%e8%bf%87%e5%ae%a1%e6%a0%b8/" title="软件通过审核" target="_blank">阅读全文——共360字</a></span>]]></description>
			<content:encoded><![CDATA[<p><strong>软件名称:</strong> 运营管理系统<br />
<strong>版         本:</strong> 3.0<br />
<strong>开发语言:</strong> C# + WPF + SQL SERVER + .net 4.0 + NH2.1.2<br />
<strong>运行结构:</strong> Browse Application<br />
<strong>开发周期:</strong> 120天(coding)<br />
<strong>总   代 码:</strong> 61000行<br />
<strong>功        能:</strong> 商品管理<br />
                   采购管理<br />
                   销售管理<br />
                   促销活动管理<br />
                   顾客信息管理<br />
                   现金、库存报表<br />
                   通知管理<br />
                   考勤打卡<br />
                   权限管理<br />
                   指纹验证<br />
                   条码打印</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.yuzifu.net/index.php/2010/08/%e8%bd%af%e4%bb%b6%e9%80%9a%e8%bf%87%e5%ae%a1%e6%a0%b8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WPF DataGrid神异的现象</title>
		<link>http://blog.yuzifu.net/index.php/2010/07/wpf-datagrid%e7%a5%9e%e5%bc%82%e7%9a%84%e7%8e%b0%e8%b1%a1/</link>
		<comments>http://blog.yuzifu.net/index.php/2010/07/wpf-datagrid%e7%a5%9e%e5%bc%82%e7%9a%84%e7%8e%b0%e8%b1%a1/#comments</comments>
		<pubDate>Thu, 29 Jul 2010 16:32:00 +0000</pubDate>
		<dc:creator>yuzifu</dc:creator>
				<category><![CDATA[ERP]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[datagrid]]></category>
		<category><![CDATA[wpf]]></category>

		<guid isPermaLink="false">http://blog.yuzifu.net/index.php/2010/07/wpf-datagrid%e7%a5%9e%e5%bc%82%e7%9a%84%e7%8e%b0%e8%b1%a1/</guid>
		<description><![CDATA[一个WPF的DataGrid，绑定到一个集合List&#60;MyClass&#62;，模式为OneWay，从DataGrid里选择一行，传递到另个弹出页面，并绑定到TextBox等控件，模式为TwoWay，这个神异的现象是这样子的：
我添加了两条测试数据到List&#60;MyClass&#62;集合里，这时DataGrid显示两条记录，我选择第一条记录，传递到弹出页面显示，我在这里修改其中的任何数据，DataGrid的显示数据都不会随着修改而发生变化。
然而，当我在DataGrid里选择的是第二条记录，并传递到弹出页面显示，我在这里修改的任何数据，都会同步反映到DataGrid里。
我又尝试更换这两条记录的位置，还是编辑位于第一条的记录时不能同步。
<span class="readmore"><a href="http://blog.yuzifu.net/index.php/2010/07/wpf-datagrid%e7%a5%9e%e5%bc%82%e7%9a%84%e7%8e%b0%e8%b1%a1/" title="WPF DataGrid神异的现象" target="_blank">阅读全文——共414字</a></span>]]></description>
			<content:encoded><![CDATA[<p>一个WPF的DataGrid，绑定到一个集合List&lt;MyClass&gt;，模式为OneWay，从DataGrid里选择一行，传递到另个弹出页面，并绑定到TextBox等控件，模式为TwoWay，这个神异的现象是这样子的：</p>
<p>我添加了两条测试数据到List&lt;MyClass&gt;集合里，这时DataGrid显示两条记录，我选择第一条记录，传递到弹出页面显示，我在这里修改其中的任何数据，DataGrid的显示数据都不会随着修改而发生变化。</p>
<p>然而，当我在DataGrid里选择的是第二条记录，并传递到弹出页面显示，我在这里修改的任何数据，都会同步反映到DataGrid里。</p>
<p>我又尝试更换这两条记录的位置，还是编辑位于第一条的记录时不能同步。</p>
<p>有个页面的DataGrid，只有第三条记录能同步显示，其余记录在修改时均不能同步显示。</p>
<p>有两个页面的DataGrid所有记录都能同步显示。</p>
<p>另外，即使不能同步显示，但DataGrid里记录的值其实是修改后的值。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.yuzifu.net/index.php/2010/07/wpf-datagrid%e7%a5%9e%e5%bc%82%e7%9a%84%e7%8e%b0%e8%b1%a1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL字符类型介绍</title>
		<link>http://blog.yuzifu.net/index.php/2008/09/sql%e5%ad%97%e7%ac%a6%e7%b1%bb%e5%9e%8b%e4%bb%8b%e7%bb%8d/</link>
		<comments>http://blog.yuzifu.net/index.php/2008/09/sql%e5%ad%97%e7%ac%a6%e7%b1%bb%e5%9e%8b%e4%bb%8b%e7%bb%8d/#comments</comments>
		<pubDate>Fri, 26 Sep 2008 07:48:11 +0000</pubDate>
		<dc:creator>yuzifu</dc:creator>
				<category><![CDATA[ERP]]></category>
		<category><![CDATA[Note]]></category>

		<guid isPermaLink="false">http://blog.yuzifu.net/?p=154</guid>
		<description><![CDATA[一，名词定义
char为 定长字符型，如char(10)，你实际数据是‘hello’，这时Sql  Server   会自动补充空格，填满10位。varchar：可变长字符，没有上述问题，是多长就保存多长的数据。另外, char  和 varchar 在存储数据时,每个英文字符和数字都占一个字节,而一个中文的字符会占两个字节.
nchar 与 nvarchar 的用法基本相同,只不过在存储数据时采用的是 Unicode元码, 一个英文字符和一个中文字符所占的空间是相同的.都是两个字节.
二、名词解释
<span class="readmore"><a href="http://blog.yuzifu.net/index.php/2008/09/sql%e5%ad%97%e7%ac%a6%e7%b1%bb%e5%9e%8b%e4%bb%8b%e7%bb%8d/" title="SQL字符类型介绍" target="_blank">阅读全文——共1570字</a></span>]]></description>
			<content:encoded><![CDATA[<p><strong><span style="#0000ff;"><span style="color: #0000ff;"><span style="#0000ff;">一，名词定义</span></span><br />
</span></strong>char为 定长字符型，如char(10)，你实际数据是‘hello’，这时Sql  Server   会自动补充空格，填满10位。varchar：可变长字符，没有上述问题，是多长就保存多长的数据。另外, char  和 varchar 在存储数据时,每个英文字符和数字都占一个字节,而一个中文的字符会占两个字节.</p>
<p>nchar 与 nvarchar 的用法基本相同,只不过在存储数据时采用的是 Unicode元码, 一个英文字符和一个中文字符所占的空间是相同的.都是两个字节.</p>
<p><span style="color: #0000ff;"><strong><span style="#0000ff;"><span style="#0000ff;">二、名词解释</span></span></strong></span><br />
1、当使用非unicode时慎用以下这种查询：<br />
select f from t where f = N&#8217;xx&#8217;<br />
原因：无法利用到索引，因为数据库会将f先转换到unicode再和N&#8217;xx&#8217;比较</p>
<p>2、char 和相同长度的varchar处理速度差不多（后面还有说明）</p>
<p>3、varchar的长度不会影响处理速度（看后面解释）</p>
<p>4、索引中列总长度最多支持总为900字节，所以长度大于900的varchar、char和大于450的nvarchar,nchar将无法创建索引</p>
<p>5、text、ntext上是无法创建索引的</p>
<p>6、O/R Mapping中对应实体的属性类型一般是以string居多，用char[]的非常少，所以如果按mapping的合理性来说，可变长度的类型更加吻合</p>
<p>7、一般基础资料表中的name在实际查询中基本上全部是使用like &#8216;%xx%&#8217;这种方式，而这种方式是无法利用索引的，所以如果对于此种字段，索引建了也白建</p>
<p>8、其它一些像remark的字段则是根本不需要查询的，所以不需要索引</p>
<p>9、varchar的存放和string是一样原理的，即length {block}这种方式，所以varchar的长度和它实际占用空间是无关的</p>
<p>10、对于固定长度的字段，是需要额外空间来存放NULL标识的，所以如果一个char字段中出现非常多的NULL，那么很不幸，你的占用空间比没有NULL的大，这时候，你可以使用特殊标识来存放，如：&#8217;NV&#8217;</p>
<p>11、同上，所以对于这种NULL查询，索引是无法生效的，假如你使用了NULL标识替代的话，那么恭喜你，你可以利用到索引了</p>
<p>12、char和varchar的比较成本是一样的，现在关键就看它们的索引查找的成本了，因为查找策略都一样，因此应该比较谁占用空间小。在存放相同数量的字符情况下，如果数量小，那么char占用长度是小于varchar的，但如果数量稍大，则varchar完全可能小于char，而且要看实际填充数值的充实度，比如说varchar(3)和char(3)，那么理论上应该是char快了，但如果是char(10)和varchar(10)，充实度只有30%的情况下，理论上就应该是varchar快了。因为varchar需要额外空间存放块长度，所以只要length(1-fillfactor)大于这个存放空间（好像是2字节)，那么它就会比相同长度的char快了。</p>
<p>13、nvarchar比varchar要慢上一些，而且对于非unicode字符它会占用双倍的空间，那么这么一种类型推出来是为什么呢？对，就是为了国际化，对于unicode类型的数据，排序规则对它们是不起作用的，而非unicode字符在处理不同语言的数据时，必须指定排序规则才能正常工作，所以n类型就这么一点好处。</p>
<p><span style="color: #0000ff;"><strong><span style="#0000ff;"><span style="#0000ff;">三、名词总结</span></span></strong></span><br />
1、如果数据量非常大，又能100%确定长度且保存只是ansi字符，那么char<br />
2、能确定长度又不一定是ansi字符或者，那么用nchar；<br />
3、不确定长度，要查询且希望利用索引的话，用nvarchar类型吧，将它们设到400；<br />
4、不查询的话没什么好说的，用nvarchar(4000)<br />
5、性格豪爽的可以只用3和4，偶尔用用1，毕竟这是一种额外说明，等于告诉别人说，我一定需要长度为X位的数据</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.yuzifu.net/index.php/2008/09/sql%e5%ad%97%e7%ac%a6%e7%b1%bb%e5%9e%8b%e4%bb%8b%e7%bb%8d/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>按回车键跳到下一输入框或激活按钮事件的方法</title>
		<link>http://blog.yuzifu.net/index.php/2008/09/%e6%8c%89%e5%9b%9e%e8%bd%a6%e9%94%ae%e8%b7%b3%e5%88%b0%e4%b8%8b%e4%b8%80%e8%be%93%e5%85%a5%e6%a1%86%e6%88%96%e6%bf%80%e6%b4%bb%e6%8c%89%e9%92%ae%e4%ba%8b%e4%bb%b6%e7%9a%84%e6%96%b9%e6%b3%95/</link>
		<comments>http://blog.yuzifu.net/index.php/2008/09/%e6%8c%89%e5%9b%9e%e8%bd%a6%e9%94%ae%e8%b7%b3%e5%88%b0%e4%b8%8b%e4%b8%80%e8%be%93%e5%85%a5%e6%a1%86%e6%88%96%e6%bf%80%e6%b4%bb%e6%8c%89%e9%92%ae%e4%ba%8b%e4%bb%b6%e7%9a%84%e6%96%b9%e6%b3%95/#comments</comments>
		<pubDate>Wed, 24 Sep 2008 03:33:24 +0000</pubDate>
		<dc:creator>yuzifu</dc:creator>
				<category><![CDATA[ERP]]></category>
		<category><![CDATA[Note]]></category>

		<guid isPermaLink="false">http://blog.yuzifu.net/?p=152</guid>
		<description><![CDATA[登录窗口有两个输入框：txtUserName、txtPassWrod，两个按钮：btnOK、btnCancel
现需实现txtUserName输入回车键时光标跳到txtPassWord，办法是添加txtUserName组件的KeyPress事件
        private void txtUserName_KeyPress(object sender, KeyPressEventArgs e)
        {
<span class="readmore"><a href="http://blog.yuzifu.net/index.php/2008/09/%e6%8c%89%e5%9b%9e%e8%bd%a6%e9%94%ae%e8%b7%b3%e5%88%b0%e4%b8%8b%e4%b8%80%e8%be%93%e5%85%a5%e6%a1%86%e6%88%96%e6%bf%80%e6%b4%bb%e6%8c%89%e9%92%ae%e4%ba%8b%e4%bb%b6%e7%9a%84%e6%96%b9%e6%b3%95/" title="按回车键跳到下一输入框或激活按钮事件的方法" target="_blank">阅读全文——共438字</a></span>]]></description>
			<content:encoded><![CDATA[<p>登录窗口有两个输入框：txtUserName、txtPassWrod，两个按钮：btnOK、btnCancel</p>
<p>现需实现txtUserName输入回车键时光标跳到txtPassWord，办法是添加txtUserName组件的KeyPress事件</p>
<p>        private void txtUserName_KeyPress(object sender, KeyPressEventArgs e)<br />
        {<br />
            if (e.KeyChar == (char)13)<br />
            {<br />
                txtPassWord.Focus();<br />
            }<br />
        }</p>
<p>另需实现txtPassWord输入回车键时激活btnOK的Click事件，开始也想用上面的办法，后google到更简单的办法：</p>
<p>设置窗体的属性AcceptButton为btnOK即可！<br />
同样道理，设置窗体的属性CancelButton为btnCancel，就可以响应Esc键了！</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.yuzifu.net/index.php/2008/09/%e6%8c%89%e5%9b%9e%e8%bd%a6%e9%94%ae%e8%b7%b3%e5%88%b0%e4%b8%8b%e4%b8%80%e8%be%93%e5%85%a5%e6%a1%86%e6%88%96%e6%bf%80%e6%b4%bb%e6%8c%89%e9%92%ae%e4%ba%8b%e4%bb%b6%e7%9a%84%e6%96%b9%e6%b3%95/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>2009.09.07小帖士</title>
		<link>http://blog.yuzifu.net/index.php/2008/09/20090907%e5%b0%8f%e5%b8%96%e5%a3%ab/</link>
		<comments>http://blog.yuzifu.net/index.php/2008/09/20090907%e5%b0%8f%e5%b8%96%e5%a3%ab/#comments</comments>
		<pubDate>Sun, 07 Sep 2008 06:33:03 +0000</pubDate>
		<dc:creator>yuzifu</dc:creator>
				<category><![CDATA[ERP]]></category>
		<category><![CDATA[Note]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://blog.yuzifu.net/?p=145</guid>
		<description><![CDATA[1,Chrome现阶段的windows环境程序默认是不支持windows2003的, 但如果在启动的快捷方式里加上参数&#8211;single-process就可以了, 不过这也有局限性, 当设置Chrome为默认浏览器时, 外部程序引用网页时启动的Chrome还是不能启动.
2,24900+的产品, 分别导入到compiere3.1和adempiere3.41中去, 花费的时间分别是:
compiere 10:30 am &#8211; 3:50 pm = 320&#8242;
adempiere 16:58 pm &#8211; 17:40 pm =  42&#8242;
<span class="readmore"><a href="http://blog.yuzifu.net/index.php/2008/09/20090907%e5%b0%8f%e5%b8%96%e5%a3%ab/" title="2009.09.07小帖士" target="_blank">阅读全文——共420字</a></span>]]></description>
			<content:encoded><![CDATA[<p>1,Chrome现阶段的windows环境程序默认是不支持windows2003的, 但如果在启动的快捷方式里加上参数&#8211;single-process就可以了, 不过这也有局限性, 当设置Chrome为默认浏览器时, 外部程序引用网页时启动的Chrome还是不能启动.</p>
<p>2,24900+的产品, 分别导入到compiere3.1和adempiere3.41中去, 花费的时间分别是:</p>
<p>compiere 10:30 am &#8211; 3:50 pm = 320&#8242;<br />
adempiere 16:58 pm &#8211; 17:40 pm =  42&#8242;</p>
<p>在订单中使用扫描条码的方式找出某产品, compiere需要20&#8221;±, 而adempiere只需要&lt;1&#8221;.</p>
<p>3,openerp中的报表可以直接在openoffice writer中设置并上传, 而所需要的准备工作仅仅是给openoffice安装一个扩展. adempiere的报表设计是由ireport来完成, 不过相比openerp, 它上传并使用定制的报表要复杂许多.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.yuzifu.net/index.php/2008/09/20090907%e5%b0%8f%e5%b8%96%e5%a3%ab/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>edb无法启动</title>
		<link>http://blog.yuzifu.net/index.php/2008/08/edb%e6%97%a0%e6%b3%95%e5%90%af%e5%8a%a8/</link>
		<comments>http://blog.yuzifu.net/index.php/2008/08/edb%e6%97%a0%e6%b3%95%e5%90%af%e5%8a%a8/#comments</comments>
		<pubDate>Wed, 27 Aug 2008 03:27:41 +0000</pubDate>
		<dc:creator>yuzifu</dc:creator>
				<category><![CDATA[ERP]]></category>
		<category><![CDATA[Note]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://blog.yuzifu.net/?p=141</guid>
		<description><![CDATA[安装完毕后无法启动，查系统日志：
事件类型: 错误
事件来源: PostgreSQL
事件种类: 无
<span class="readmore"><a href="http://blog.yuzifu.net/index.php/2008/08/edb%e6%97%a0%e6%b3%95%e5%90%af%e5%8a%a8/" title="edb无法启动" target="_blank">阅读全文——共673字</a></span>]]></description>
			<content:encoded><![CDATA[<p>安装完毕后无法启动，查系统日志：</p>
<blockquote><p>事件类型: 错误<br />
事件来源: PostgreSQL<br />
事件种类: 无<br />
事件 ID: 0<br />
日期:  2008-8-27<br />
事件:  11:08:05<br />
用户:  N/A<br />
计算机: LYN<br />
描述:<br />
事件 ID ( 0 )的描述(在资源( PostgreSQL )中)无法找到。本地计算机可能没有必要的注册信息或消息 DLL 文件来从远程计算机显示消息。您可能可以使用 /AUXSOURCE= 标识来检索词描述；查看帮助和支持以了解详细信息。下列信息是事件的一部分: edb-postgres: 无法找到数据库系统<br />
预期在目录 &#8220;D:/enterprisedb/data&#8221; 找到,<br />
但是无法打开文件 &#8220;D:/enterprisedb/data/global/pg_control&#8221;: No such file or directory<br />
.</p></blockquote>
<p>感觉是数据库初始化问题，于是清空数据目录D:/enterprisedb/data，再手动初始化：</p>
<blockquote><p>D:\enterprisedb\dbserver\bin&gt;initdb -D d:\enterprisedb\data -E UTF8 &#8211;locale=C<br />
属于此数据库系统的文件宿主为用户 &#8220;it&#8221;.<br />
此用户也必须为服务器进程的宿主.<br />
数据库簇将带有 locale C 初始化.</p>
<p>修复已存在目录 d:/enterprisedb/data 的权限 &#8230; initdb: 无法改变目录 &#8220;d:/enterpri<br />
sedb/data&#8221; 的权限: Permission denied</p>
<p> </p></blockquote>
<p>看来是d:\enterprisedb\data目录权限开放的不够，于是手工修改它的权限为最高，再次执行数据库初始化就成功了。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.yuzifu.net/index.php/2008/08/edb%e6%97%a0%e6%b3%95%e5%90%af%e5%8a%a8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XE、APEX、Compiere、Session</title>
		<link>http://blog.yuzifu.net/index.php/2008/07/xe%e3%80%81apex%e3%80%81session%e3%80%81compiere/</link>
		<comments>http://blog.yuzifu.net/index.php/2008/07/xe%e3%80%81apex%e3%80%81session%e3%80%81compiere/#comments</comments>
		<pubDate>Wed, 09 Jul 2008 01:35:18 +0000</pubDate>
		<dc:creator>yuzifu</dc:creator>
				<category><![CDATA[ERP]]></category>
		<category><![CDATA[Note]]></category>

		<guid isPermaLink="false">http://blog.yuzifu.net/index.php/2008/07/09/xe%e3%80%81apex%e3%80%81session%e3%80%81compiere/</guid>
		<description><![CDATA[这是一个顺序，是折腾了我许久的问题，在我快要发狂的时候，得出了这么一个顺序。
修改XE的session必须在升级至APEX3.1.1之后，否则升级APEX会报错。同时，也必须是在安装完Compiere之后，否则导入数据库阶段就像是老牛拉破车。而在升级至APEX3.1.1之后，安装Compiere的导入数据库阶段必须要有活跃的网卡。
而始终没有解决的问题是：升级到APEX3.1.1之后，http://localhost:8080/apex/已经不能管理用户了。
]]></description>
			<content:encoded><![CDATA[<p>这是一个顺序，是折腾了我许久的问题，在我快要发狂的时候，得出了这么一个顺序。</p>
<p>修改XE的session必须在升级至APEX3.1.1之后，否则升级APEX会报错。同时，也必须是在安装完Compiere之后，否则导入数据库阶段就像是老牛拉破车。而在升级至APEX3.1.1之后，安装Compiere的导入数据库阶段必须要有活跃的网卡。</p>
<p>而始终没有解决的问题是：升级到APEX3.1.1之后，<a href="http://localhost:8080/apex/">http://localhost:8080/apex/</a>已经不能管理用户了。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.yuzifu.net/index.php/2008/07/xe%e3%80%81apex%e3%80%81session%e3%80%81compiere/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PostgreSQL on Ubuntu使用更多的内存</title>
		<link>http://blog.yuzifu.net/index.php/2008/06/postgresql-on-ubuntu%e4%bd%bf%e7%94%a8%e6%9b%b4%e5%a4%9a%e7%9a%84%e5%86%85%e5%ad%98/</link>
		<comments>http://blog.yuzifu.net/index.php/2008/06/postgresql-on-ubuntu%e4%bd%bf%e7%94%a8%e6%9b%b4%e5%a4%9a%e7%9a%84%e5%86%85%e5%ad%98/#comments</comments>
		<pubDate>Tue, 24 Jun 2008 02:08:55 +0000</pubDate>
		<dc:creator>yuzifu</dc:creator>
				<category><![CDATA[ERP]]></category>
		<category><![CDATA[Note]]></category>
		<category><![CDATA[Unix/Linux]]></category>

		<guid isPermaLink="false">http://blog.yuzifu.net/index.php/2008/06/24/postgresql-on-ubuntu%e4%bd%bf%e7%94%a8%e6%9b%b4%e5%a4%9a%e7%9a%84%e5%86%85%e5%ad%98/</guid>
		<description><![CDATA[/etc/sysctl.conf

fs.file-max = 65535
kernel.shmall = 4235264
<span class="readmore"><a href="http://blog.yuzifu.net/index.php/2008/06/postgresql-on-ubuntu%e4%bd%bf%e7%94%a8%e6%9b%b4%e5%a4%9a%e7%9a%84%e5%86%85%e5%ad%98/" title="PostgreSQL on Ubuntu使用更多的内存" target="_blank">阅读全文——共281字</a></span>]]></description>
			<content:encoded><![CDATA[<p>/etc/sysctl.conf</p>
<blockquote><p>
fs.file-max = 65535<br />
kernel.shmall = 4235264<br />
kernel.shmmax = 4294967296<br />
kernel.shmmni = 8192<br />
kernel.sem = 8192 4194304 8192 512</p></blockquote>
<p>/etc/postgresql/8.2/main/postgresql.conf</p>
<blockquote><p>
max_connections = 4096<br />
shared_buffers = 1GB<br />
temp_buffers = 2GB<br />
work_mem = 512MB<br />
maintenance_work_mem = 4GB<br />
effective_cache_size = 4GB</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://blog.yuzifu.net/index.php/2008/06/postgresql-on-ubuntu%e4%bd%bf%e7%94%a8%e6%9b%b4%e5%a4%9a%e7%9a%84%e5%86%85%e5%ad%98/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adempiere Tips</title>
		<link>http://blog.yuzifu.net/index.php/2008/06/adempiere-tips/</link>
		<comments>http://blog.yuzifu.net/index.php/2008/06/adempiere-tips/#comments</comments>
		<pubDate>Wed, 04 Jun 2008 02:57:33 +0000</pubDate>
		<dc:creator>yuzifu</dc:creator>
				<category><![CDATA[ERP]]></category>
		<category><![CDATA[Note]]></category>

		<guid isPermaLink="false">http://blog.yuzifu.net/index.php/2008/06/04/adempiere-tips/</guid>
		<description><![CDATA[1，国家至少要保留“US”，否则登录时会无反应。
2，导入格式文件.csv中，表头的列标题要去掉。
3，需要“业务伙伴组”或“业务伙伴”中设置好价格表，否则销售订单中无法列出价格表。
4，“付款条件”一定要设置有“默认”，否则，销售订单无法保存，提示“强制付款条件”。
<span class="readmore"><a href="http://blog.yuzifu.net/index.php/2008/06/adempiere-tips/" title="Adempiere Tips" target="_blank">阅读全文——共422字</a></span>]]></description>
			<content:encoded><![CDATA[<p>1，国家至少要保留“US”，否则登录时会无反应。</p>
<p>2，导入格式文件.csv中，表头的列标题要去掉。</p>
<p>3，需要“业务伙伴组”或“业务伙伴”中设置好价格表，否则销售订单中无法列出价格表。</p>
<p>4，“付款条件”一定要设置有“默认”，否则，销售订单无法保存，提示“强制付款条件”。</p>
<p>5，默认情况下，服务端会以主机名而非IP命令主机地址，这将导致客户端使用IP连接服务端时，无法连接应用服务器；默认情况下，服务端使用最小内存64M，最大内存512M。要修改以上两点情况，编辑Adempiere/utils/myEnvironment.sh(win环境下还要修改Adempiere/jboss/bin/run.bat)文件修改相关部份即可。</p>
<p>6，当从ZK版的webUI登录到Adempiere的时候，显示第一页是有可能要很久时间的，因为第一页其实是<a href="http://www.adempiere.com">www.adempiere.com</a>网站。</p>
<p>7，“税类”中须设置有“默认”项，否则使用导入工具导入产品时会报“无税类”的错误。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.yuzifu.net/index.php/2008/06/adempiere-tips/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Import Adempiere_pg.dmg to PostgreSQL on Linux</title>
		<link>http://blog.yuzifu.net/index.php/2008/06/import-adempiere_pgdmg-to-postgresql-on-linux/</link>
		<comments>http://blog.yuzifu.net/index.php/2008/06/import-adempiere_pgdmg-to-postgresql-on-linux/#comments</comments>
		<pubDate>Tue, 03 Jun 2008 06:04:57 +0000</pubDate>
		<dc:creator>yuzifu</dc:creator>
				<category><![CDATA[ERP]]></category>
		<category><![CDATA[Note]]></category>
		<category><![CDATA[Unix/Linux]]></category>

		<guid isPermaLink="false">http://blog.yuzifu.net/index.php/2008/06/03/import-adempiere_pgdmg-to-postgresql-on-linux/</guid>
		<description><![CDATA[不管是在win还是在linux下，最早的时候是在终端下使用psql命令来完成的，后来发现Adempiere/utils目录下有一下ImportAdempiere.bat文件，遂试用之，发现它会根据运行Adempiere/RUN_setup.bat所给定的参数来添加用户和数据库，且自动把Adempiere/data/Adempiere_pg.dmg文件导入数据库，这下可省事不少，但当我在linux下使用这个脚本时，却发生了意外。
错误信息为“用户postgres认证错误”、“用户adempiere认证错误”、无法连接postgresql数据库，我想这是pg_hba.conf文件设置有问题，win环境下这个文件是这样：
<span class="readmore"><a href="http://blog.yuzifu.net/index.php/2008/06/import-adempiere_pgdmg-to-postgresql-on-linux/" title="Import Adempiere_pg.dmg to PostgreSQL on Linux" target="_blank">阅读全文——共712字</a></span>]]></description>
			<content:encoded><![CDATA[<p>不管是在win还是在linux下，最早的时候是在终端下使用psql命令来完成的，后来发现Adempiere/utils目录下有一下ImportAdempiere.bat文件，遂试用之，发现它会根据运行Adempiere/RUN_setup.bat所给定的参数来添加用户和数据库，且自动把Adempiere/data/Adempiere_pg.dmg文件导入数据库，这下可省事不少，但当我在linux下使用这个脚本时，却发生了意外。</p>
<p>错误信息为“用户postgres认证错误”、“用户adempiere认证错误”、无法连接postgresql数据库，我想这是pg_hba.conf文件设置有问题，win环境下这个文件是这样：</p>
<blockquote><p>
host    all         all         127.0.0.1/32          md5<br />
host    all         all         0.0.0.0/0             md5</p></blockquote>
<p>而linux环境下，这个文件是这样：</p>
<blockquote><p>
local   all         all                               ident sameuser<br />
host    all         all         127.0.0.1/32          md5<br />
host    all         all         0.0.0.0/0      md5
</p></blockquote>
<p>在CU里查得一篇关于PostgreSQL认证方面的文章后，把第一行改为：</p>
<blockquote><p>
local   all         all                               trust</p></blockquote>
<p>然后重启数据库，当再次执行导入脚本时一切顺利！</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.yuzifu.net/index.php/2008/06/import-adempiere_pgdmg-to-postgresql-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
