摘要:
USE [CZJXC]GO/****** Object: Trigger [dbo].[tg_StgImpOrderWriteoffVersion] Script Date: 04/24/2012 10:53:18 ******/SET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGO-- =============================================-- Author: By template generator-- Create date: 2012-4-24-- Description: 仓库: 入... 阅读全文
posted @ 2013-01-25 16:48
xust
阅读(131)
评论(0)
推荐(0)
摘要:
设置属性 landscape = true 阅读全文
posted @ 2013-01-25 16:48
xust
阅读(266)
评论(0)
推荐(0)
摘要:
--临时表接受执行存储过程返回的结果集 CREATE TABLE #VersionTable( [Index] int PRIMARY KEY, Name varchar(30), Internal_Value int, Character_Value varchar(250) ) TRUNCATE TABLE #VersionTable INSERT INTO #VersionTable EXEC master..xp_msver select * from #VersionTable --表... 阅读全文
posted @ 2013-01-25 16:45
xust
阅读(284)
评论(0)
推荐(0)
摘要:
工作原理: after--执行sql之后触发触发器before(instead of)--执行sql之前触发触发器After触发器的工作原理:After触发器是在SQL语句执行之后才被激活的。以删除记录为例:当SQL Server接收到一条删除操作的SQL语句时,SQL Server先将要删除的记录存放在Deleted表里,然后把数据表里的记录删除,再激活After触发器,执行After触发器里的SQL语句。执行完毕之后, 删除内存中的Deleted表,操作结束。还是举上面的例子:在产品库存表里,如果要删除一条产品记录,在删除的时候,触发器可以检查该产品库存数量是否为零,如果不为零则取消删除操 阅读全文
posted @ 2013-01-25 16:45
xust
阅读(2875)
评论(0)
推荐(0)
摘要:
在SQL 触发器内部把 SELECT 的结果集查出来 或者是打印出 SQL语句 阅读全文
posted @ 2013-01-25 16:44
xust
阅读(142)
评论(0)
推荐(0)
摘要:
--把不同结果集合并select --a.docno adocno,--b.docno bdocno,CASE WHEN a.docNo IS NULL THEN b.docNo ELSE a.docNo END docNo,CASE WHEN a.msg IS NULL THEN '' ELSE a.msg END msg1,CASE WHEN b.msg IS NULL THEN '' ELSE b.msg END msg2from ( select docNo,'当前单据已被入库单调用,不允许回退!' as msg from dbo.ACN 阅读全文
posted @ 2013-01-25 16:43
xust
阅读(155)
评论(0)
推荐(0)
摘要:
select a.* from SYS_Account awhere a.id not in ( select pId from SYS_Account where isDel = 0 and id <> '-1000' --null)and isDel = 0 and id <> '-1000' 阅读全文
posted @ 2013-01-25 16:42
xust
阅读(200)
评论(0)
推荐(0)
摘要:
方法一:if (totalCount % mStore.pageSize == 0) totalPage = parseInt(totalCount / mStore.pageSize); else totalPage = parseInt(totalCount / mStore.pageSize) + 1;方法二: totalPage = parseInt(parseInt(totalCount - 1) / mStore.pageSize) + 1; (一种算法)等价于下面一句: totalPage = parseIn... 阅读全文
posted @ 2013-01-25 16:16
xust
阅读(132)
评论(0)
推荐(0)
摘要:
判断相等 用 ==,判断 是否等于空 可以用 = null 或 == null 阅读全文
posted @ 2013-01-25 16:07
xust
阅读(180)
评论(0)
推荐(0)
摘要:
xtype: 'textfield',fieldStyle: { //fieldStyle 样式应用于text 文本控件 background: 'white'},style: 'color:red;background:blue;',//style 样式应用于label 文本 阅读全文
posted @ 2013-01-25 16:05
xust
阅读(1362)
评论(0)
推荐(0)
摘要:
Ext.MessageBox.show({ title: this.msgTitle, msg: action.result.message, buttons: Ext.Msg.OK, icon: Ext.Msg.INFO, fn: function (buttonId, text, opt) { switch ... 阅读全文
posted @ 2013-01-25 16:05
xust
阅读(98)
评论(0)
推荐(0)
摘要:
var mGrid = Ext.getCmp('regionMainGrid').getSelectionModel(); if (mGrid.hasSelection()) { var record = mGrid.getLastSelected(); Ext.Ajax.request({ url: '/BscRegion/HasChildren', params: record.data, success: function (form, ac... 阅读全文
posted @ 2013-01-25 16:04
xust
阅读(414)
评论(0)
推荐(0)
摘要:
1. onRender: function (cmp, eOpts) { this.getStudentStore().load(); },function (cmp, eOpts) 可以写成 function () 但 function () 不会用到 参数2. { xtype: ''numberfield'', name: ''printNum'', fieldLabel: ''打印次数'', allowBlank: false, minValue: 0,value:0 }xtype: ' 阅读全文
posted @ 2013-01-25 16:03
xust
阅读(540)
评论(0)
推荐(0)
摘要:
方法一:(Form 中必须放name与model的字段名称相同的控件){ xtype: 'hiddenfield', name: 'id', id: 'id', hidden: true } var mNewRecord = new IniStore.model.Store(); mNewRecord.set('id', this.activeRecord.data.id); mImportForm.loadRecord(mNewRecord); mImportForm.submit(... 阅读全文
posted @ 2013-01-25 16:00
xust
阅读(159)
评论(0)
推荐(0)
摘要:
// 导入 onImport: function (button, e, eOpts) { var mMainGrid = Ext.getCmp('storeMainGrid'); var mSelections = mMainGrid.getSelectionModel().getSelection(); if (mSelections.length > 0) { var mWin = Ext.getCmp('winImport'); mWin.show(); } else... 阅读全文
posted @ 2013-01-25 15:59
xust
阅读(194)
评论(0)
推荐(0)
摘要:
this.getAttachementStore().load({ callback: function (records, operation, success) { var json = Ext.decode(operation.response.responseText); var data = { files: json.data }; var strTable = ""; st... 阅读全文
posted @ 2013-01-25 15:58
xust
阅读(223)
评论(0)
推荐(0)
摘要:
var data = { name: 'Jack Slocum', title: 'Lead Developer', company: 'Ext JS, LLC', email: 'jack@extjs.com', address: '4 Red Bulls Drive', city: 'Cleveland', state: 'Ohio', zip: '44102', drinks: ['Red Bull', 'Coffee', 阅读全文
posted @ 2013-01-25 15:56
xust
阅读(331)
评论(0)
推荐(0)
摘要:
private DataSet ListToDataSet(IList<Asset> list) { DataSet mResult = new DataSet(); if (list != null) { var newList = from l in list select new { ... 阅读全文
posted @ 2013-01-25 15:52
xust
阅读(152)
评论(0)
推荐(0)
摘要:
// lambda 表达式 分组,并且分页 /// <summary> /// 获取所有组织机构数据(按价格名称分组) /// </summary> /// <returns></returns> public string PriceStandardSelectAllGroupBy() { IList<PriceStandard> mPriceStandards = new List<PriceStandard>(); IList<PriceStandar... 阅读全文
posted @ 2013-01-25 15:50
xust
阅读(740)
评论(0)
推荐(0)
摘要:
1. <?xml version="1.0" encoding="UTF-8" ?><sqlMap namespace="User" xmlns="http://ibatis.apache.org/mapping" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > <alias> <typeAlias alias="StgImpBalanceGoods" type=&quo 阅读全文
posted @ 2013-01-25 15:48
xust
阅读(243)
评论(0)
推荐(0)

浙公网安备 33010602011771号