摘要: 是公司一个项目,要求显示不同的sku,然后根据sku组合显示不同的价格区间,根据填写的数量落在哪个价格区间,然后进行计算。实际截图如下:前端JS如下: 1 大家看看,有没有什么可以优化的地方? 阅读全文
posted @ 2013-08-02 12:08 thanks 阅读(1007) 评论(5) 推荐(1)
摘要: Coding HardlyIt is hard to describe how difficultly in program coding. At first, sales signed the contract with customer without technical support on the spot. So, what the content write on the contract is unknown to developers. Second, the time for developing is unique; commonly 6 month term is red 阅读全文
posted @ 2012-08-24 17:55 thanks 阅读(288) 评论(0) 推荐(0)
摘要: 日前在專案中有需要從題庫中隨機挑選題目的需求,加上最近在MSDN論壇看到有人在問隨機取得不重複的數值的問題,為了避免之後又不小心忘記這個方便的寫法,特別寫文章來紀錄一下。首先,請直接看這個範例(請別把這個範例當作明牌產生器喔!!槓龜我可不負責~):接著看看原始碼:MainPage.xaml <UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml&quo 阅读全文
posted @ 2012-02-14 10:05 thanks 阅读(456) 评论(0) 推荐(0)
摘要: 此解法来自博客园思想瞭望者开设之“sql精英群”对话。iceline(43417365) 11:36:59 现在PATH的上下级关系是对了,我如何更新parentIDthanks(305380844) 12:54:12 做出来了,试试update test set parentid = b.parentidbfrom test ,(select a.id, a.parentid, a.path , b.id as parentidb, b.path as bpathfrom test a cross join test bwhere len(REPLACE(a.path, b.path, &# 阅读全文
posted @ 2012-01-17 09:33 thanks 阅读(403) 评论(0) 推荐(1)
摘要: select p.name, m.definitionfrom sys.procedures p inner join sys.sql_modules mon p.object_id = m.object_idwhere m.definition like '%关键字%' 阅读全文
posted @ 2012-01-10 15:34 thanks 阅读(175) 评论(0) 推荐(0)
摘要: -----------------------------------Author: liangCK 小梁--Title : 查每个分组前N条记录--Date : 2008-11-13 17:19:23-----------------------------------> 生成测试数据: #TIFOBJECT_ID('tempdb.dbo.#T')ISNOTNULLDROPTABLE#TCREATETABLE#T (IDVARCHAR(3),GIDINT,AuthorVARCHAR(29),TitleVARCHAR(39),DateDATETIME)INSERTINTO 阅读全文
posted @ 2011-12-14 15:07 thanks 阅读(272) 评论(0) 推荐(0)
摘要: [广州]fm(309148970) 16:56:41SET QUOTED_IDENTIFIER ON GOSET ANSI_NULLS ON GOcreate procedure dbo.fm_update_basename@basetable varchar(100),@columlist varchar(255),@basecolum varchar(100)as-----调试用---set ... 阅读全文
posted @ 2010-10-21 17:01 thanks 阅读(228) 评论(0) 推荐(0)
摘要: List<int> val1 = new List<int> { 1, 2, 3, 4 };List<int> val2 = new List<int> { 2, 3 };选择val1中有val2中也有的值:第一种:var item = from v1 in val1 from v2 in val2 where v1 == v2 select v1;第二种:var item = val1.Where(v => val2.IndexOf(v) > -1);第三种:var item = val1.Join(val2, v1 => v 阅读全文
posted @ 2010-10-21 10:12 thanks 阅读(337) 评论(0) 推荐(0)
摘要: 一个练习的程序,分为两部分。左边列表显示算出的素数,右边显示每个偶数的两个奇素数之和。程序很简陋,还请大家多提意见。Form1.Designer.cs[代码]Form1.cs[代码]运行效果图 阅读全文
posted @ 2010-09-22 20:26 thanks 阅读(538) 评论(4) 推荐(2)
摘要: 我给我们公司做的,新的网站~~ http://www.ai-bank.com 请大家多提提意见 阅读全文
posted @ 2009-02-16 10:46 thanks 阅读(396) 评论(9) 推荐(0)