Romce's Blog Garden
佛云:一切众生皆有如来智慧德相,只因妄想执著不能证得。
博客园
首页
社区
新随笔
联系
订阅
管理
随笔-6 评论-3 文章-7 trackbacks-0
2008年6月4日
net程序调用cmd.exe 运行程序
摘要: 今天因为程序需要运行一个EUR软件来打印条形码,必须在程序中调用cmd.exe来运行EUR软件附带的文本格式转换程序eurps.exe,在网上查了一下,调试成功。。。下面是代码1protectedvoidBu_SmallBarcode_Click(objectsender,EventArgse)2{3strings=RunCmd("cdC:\\ProgramFiles\\HITACHI\\EURP...
阅读全文
posted @ 2008-06-04 11:09 romce 阅读(410) 评论(0)
编辑
2008年4月11日
JAVASCRIPT二维数组
posted @ 2008-04-11 16:10 romce 阅读(4544) 评论(2)
编辑
javascript 结构体示例
摘要:
///用户数据结构
function _tagUser()
{
this.UserId = 0; //0-4
this.UserName = ""; //5-
this.Parse = function(VarTypeUser)
{
for (var i=0;i
VarTypeUser[i] = String.fromCharCode(VarTypeUser.charCodeAt(i)^0xFFFF);
this.UserId = VarTypeUser.substr(0,4); //0-4
this.UserName = VarTypeUser.substr(5); //4--
}
阅读全文
posted @ 2008-04-11 14:50 romce 阅读(2602) 评论(1)
编辑
2008年4月10日
DataGrid 通过内部控件获取所在控件的列索引
摘要: DataGrid 通过内部控件获取所在控件的列索引, 原来以为列所引很容易通过属性得到,没想到费了一番周转,花了不少时间,太过费劲了,不知有更简单的方法没?
foreach (DataGridItem i in this.DtGrid.Controls[0].Controls)
{
if (i.ItemType == ListItemType.Header)
{
for (int month_i = 1; month_i <= 12; month_i++)
{
Label myLabel = (Label)i.FindControl("lblMonth" + month_i.ToString());
myLabel.Text = myYear.
阅读全文
posted @ 2008-04-10 12:41 romce 阅读(134) 评论(0)
编辑
2008年4月8日
对应年月的预算映射
摘要: //对应年月的预算映射
string[] budgetArray = new string[12];
string[] actArray = new string[12];
budgetArray[0] = vi.Rows[i][vi.Budget1Column.ColumnName].ToString();
budgetArray[1] = vi.Rows[i][vi.Budget2Column.ColumnName].ToString();
budgetArray[2] = vi.Rows[i][vi.Budget3Column.ColumnName].ToString();
budgetArray[3] = vi.Rows[i][vi.Budget4Column.ColumnName].ToString();
阅读全文
posted @ 2008-04-08 12:39 romce 阅读(26) 评论(0)
编辑
2008年4月7日
datagrid纵列合计
摘要: //纵列合计
DS_PlanPrice.vi_PlanPriceRow drTotal = vi.Newvi_PlanPriceRow();
drTotal.ProductId = Convert.ToString(dtProduct.Rows[i][dtProduct.ProductIdColumn.ColumnName]);
drTotal.PriceTypeName = "Total";
foreach (DS_PlanPrice.vi_PlanPriceRow vRow in vi.Rows)
{
if (vRow.ProductId == dtProduct.Rows[i][dtProduct.ProductIdColumn.ColumnName].ToString())
阅读全文
posted @ 2008-04-07 12:43 romce 阅读(152) 评论(0)
编辑
2008年4月3日
一些小的知识点 有用的
摘要: readonly 关键字与 const 关键字不同。
1. const 字段只能在该字段的声明中初始化。
readonly 字段可以在声明或构造函数中初始化。因此,根据所使用的构造函数,readonly 字段可能具有不同的值。
2. const 字段是编译时常数,而 readonly 字段可用于运行时常数。
3. const 默认就是静态的,而 readonly 如果设置成静态的就必须显示声明。
阅读全文
posted @ 2008-04-03 01:20 romce 阅读(43) 评论(0)
编辑
2008年3月25日
一个日期控件 感觉不错
摘要: 一个日期控件 感觉不错 没准项目可以用得到http://www.cnblogs.com/my97/archive/2008/03/25/1121408.html
阅读全文
posted @ 2008-03-25 16:35 romce 阅读(84) 评论(0)
编辑
在页面显示出对应的年月
摘要: ///
/// 在页面显示出对应的年月
///
protected void YearMonthBind(string companyID, int startMonth)
{
int myYear = Convert.ToInt32(dropYear.SelectedValue);
int myMonth = startMonth;
foreach (DataGridItem i in this.DtGrid.Controls[0].Controls)
{
阅读全文
posted @ 2008-03-25 13:54 romce 阅读(24) 评论(0)
编辑
2008年3月21日
理解Javascript中类的定义
摘要: 定义类的两种基本方式:
(1) 利用函数构造类型。
function Foo(text, url) {
this.text = text;
this.url = url;
this.render = function() {
document.write('
' + this.text + '
');
}
}
阅读全文
posted @ 2008-03-21 16:00 romce 阅读(55) 评论(0)
编辑
仅列出标题
下一页
昵称:
romce
园龄:
3年10个月
粉丝:
0
关注:
0
<
2012年2月
>
日
一
二
三
四
五
六
29
30
31
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
1
2
3
4
5
6
7
8
9
10
搜索
常用链接
我的随笔
我的评论
我的参与
最新评论
我的标签
随笔分类
(2)
asp.net控件使用(1)
Castsle
Silverlight 2
程序鸡汤(1)
设计模式
随笔档案
(6)
2008年6月 (1)
2008年4月 (4)
2008年3月 (1)
文章分类
(7)
.net 控件使用(1)
asp.net
javascript(3)
随笔(1)
网页技术记录(2)
电子商务
电子商务
商业网站
最新评论
阅读排行榜
评论排行榜
推荐排行榜