01 2013 档案
摘要://-------------------导出pdf----------------------------------------------------------------------------------private void ExportReportDataToPdf() {//需要去下载dll CrystalDecisions.CrystalReports.Engine.ReportDocument RptDoc = new CrystalDecisions.CrystalReports.Engine.ReportDocument(); CrystalDecisions.Sh
阅读全文
摘要://----------------gridPtckView中的checkbox是否有选择(最少也要一个)-------------------------------------------jQuery("#btnSavePrInfro").click(function () { if (jQuery("#gridPtckView tr").length > 0) { if (jQuery("input[type='checkbox']:checked").length > 0) { return tru
阅读全文
摘要://主的喂狗class Program { static void Main(string[] args) { //我们来模拟一个主人养狗动物的例子 首先创建一个主人对象,同时主人买了条狗 //买来条狗,主人一喂,狗会吃东西 Person person = new Person(); Dog dog = new Dog(); person.feed(dog);//主人喂狗 } }// 主人类class Person { //主人喂狗 public void feed(Dog dog) { dog.eat(); } }//狗类class Dog { //狗吃东西动作 public v...
阅读全文
摘要:select TestA.CID, (case when QTY2 != QTY then QTY2 else QTY end ) as QTYfrom TestA left join TestB on TestA.CID = TestB.CID
阅读全文
摘要:select *from sysobjectssysobjects 系统对象表。 保存当前数据库的对象,如 用户表、约束、默认值、日志、规则、存储过程等//select *from syscolumns syscolumns描述列的属性select count(*) from sysobjects a join syscolumns b on a.id=b.id where a.name='I_BBOrderUpload'
阅读全文