亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? salechance.js

?? 本系統基本完善了CRM管理系統的各個模塊
?? JS
字號:
// 銷售機會管理
Ext.namespace("CRM.saleManage");
var salChance_chcId;
// 點擊指派圖標打開指派窗口
function showAssignChcWin() {
	if (currentRole == '2') {
		var panel = new saleChancePanel();
		panel.assign();
	} else {
		Ext.Msg.alert("警告", "您無權進行指派");
	}
}
function showEditChcWin() {
	var panel = new saleChancePanel();
	panel.edit();
}
function showDelChcWin() {
	var panel = new saleChancePanel();
	panel.removeData();
}
// 存儲器
var salChanceStore = new Ext.data.JsonStore({
	id : "id",
	url : 'sale.do?actionType=doList',
	root : "data",// 數據源
	totalProperty : "rowCount",// 總行數
	// 參數
	baseParams : {
		chcCustName : null,
		chcTitle : null,
		chcLinkman : null
	},
	remoteSort : true,
	fields : ["chcId", "chcSource", "chcCustName", "chcTitle", "chcRate",
			"chcLinkman", "chcTel", "chcDesc", "chcCreateBy", "chcCreateDate",
			"chcDueTo", "chcDueDate", "chcStatus"]
});

var salChanceColm = new Ext.grid.ColumnModel([new Ext.grid.RowNumberer(), {
	header : '編號',
	sortable : true,
	dataIndex : 'chcId',
	width : 122
}, {
	header : '客戶名稱',
	sortable : true,
	dataIndex : 'chcCustName',
	width : 122
}, {
	header : '概要',
	sortable : true,
	dataIndex : 'chcTitle',
	width : 122
}, {
	header : '聯系人',
	sortable : true,
	dataIndex : 'chcLinkman',
	width : 122
}, {
	header : '聯系人電話',
	sortable : true,
	dataIndex : 'chcTel',
	width : 122
}, {
	header : '創建時間',
	sortable : true,
	dataIndex : 'chcCreateDate',
	width : 122
}, {
	header : '操作',
	dataIndex : 'chcStatus',
	renderer : function(value) {
		var operation = '';
		if (value == 1) {
			operation += '     ';
			operation += '<img src="images/bt_linkman.gif" title="指派" onclick="showAssignChcWin()"/>';
			operation += '&nbsp;&nbsp;&nbsp;'
					+ '<img src="images/bt_edit.gif" title="編輯" onclick="showEditChcWin()"/>';
			operation += '&nbsp;&nbsp;&nbsp;'
					+ '<img src="images/bt_del.gif" title="刪除" onclick="showDelChcWin()">';
			return operation;
		}
	}
}]);
// 表格
var salChanceGrid = new Ext.grid.GridPanel({
	store : salChanceStore,
	cm : salChanceColm,
	height : 300,
	stripeRows : true,
	pageSize : 15,
	tbar : [{
		text : '新建',
		id : 'add',
		iconCls : 'add',
		pressed : false,
		handler : function() {
			var panel = new saleChancePanel();
			panel.create();
		},
		scope : this
	}, new Ext.Toolbar.Fill(), '客戶名稱', {
		xtype : 'textfield',
		name : 'chcCustName',
		width : 150
	}, '&nbsp;&nbsp;', '概要', {
		xtype : "textfield",
		name : 'chcTitle',
		width : 150
	}, '&nbsp;&nbsp;', '聯系人', {
		xtype : 'textfield',
		name : 'chcLinkman',
		width : 150
	}, {
		text : '查詢',
		iconCls : 'search',
		pressed : true,
		handler : function() {
			var panel = new saleChancePanel();
			panel.search();
		},
		scope : this
	}, '   '],
	bbar : new Ext.PagingToolbar({
		pageSize : 15,
		store : salChanceStore,
		grid : salChanceGrid,
		displayInfo : true,
		displayMsg : '當前顯示 {0} - {1}條記錄&nbsp;&nbsp;共有 {2} 條記錄',
		emptyMsg : "沒有記錄"
	})
});
// 自定義
CRM.saleManage.saleChance = Ext.extend(Ext.Panel, {
	closable : true,
	autoScroll : true,
	layout : "fit",
	maskDisabled : false,
	// 初始化新建或編輯窗體
	initWin : function(width, height, title) {
		var win = new Ext.Window({
			width : width,
			height : height,
			buttonAlign : "center",
			title : title,
			modal : true,
			closeAction : "hide",
			resizable : false,
			plain : true,
			items : [this.fp],
			buttons : [{
				text : "保存",
				handler : this.save,
				tooltip : '點擊該按鈕將執行確認操作',
				scope : this
			}, {
				text : "清空",
				handler : this.reset,
				scope : this
			}, {
				text : "取消",
				id : 'cancel',
				handler : function() {
					this.closeWin();
				},
				scope : this
			}]
		});
		return win;
	},
	// 初始化指派窗體
	initAssignWin : function(width, height, title) {
		var assignWin = new Ext.Window({
			width : width,
			height : height,
			buttonAlign : "center",
			title : title,
			modal : true,
			closeAction : "hide",
			resizable : false,
			plain : true,
			items : [this.fp],
			buttons : [{
				text : "保存",
				handler : this.doAssign,
				tooltip : '點擊該按鈕將執行確認操作',
				scope : this
			}, {
				text : "清空",
				handler : this.reset,
				scope : this
			}, {
				text : "取消",
				id : 'cancel',
				handler : function() {
					this.closeWin();
				},
				scope : this
			}]
		});
		return assignWin;
	},
	// 打開新建或編輯窗體
	showWin : function() {
		if (!this.win) {
			if (!this.fp) {
				this.fp = this.createForm();
			}
			this.win = this.createWin();
			this.win.on("close", function() {
				this.win = null;
				this.fp = null;
			}, this);
		}
		this.win.show();
	},
	create : function() {
		this.showWin();
		this.reset();
	},

	// 關閉新建或編輯窗口
	closeWin : function() {
		if (this.win)
			this.win.close();
		this.win = null;
	},
	// 關閉指派窗口
	closeAssignWin : function() {
		if (this.assignWin) {
			this.assignWin.close();
			this.assignWin = null;
		}
	},
	// 重置
	reset : function() {
		if (this.win)
			this.fp.form.reset();
	},
	// 加載編輯內容
	edit : function() {
		var record = salChanceGrid.getSelectionModel().getSelected();
//		if (!record) {
//			Ext.Msg.alert("提示", "請選擇要編輯的行!");
//			return;
//		}
		this.showWin();
		this.fp.form.loadRecord(record);
	},
	// 保存
	save : function() {
		if (this.fp.form.isValid()) {
			this.fp.form.submit({
				waitTitle : '請稍候',
				waitMsg : '正在保存......',
				url : 'sale.do?actionType=doSaveorUpdate',
				method : 'POST',
				params : {
					chcCreateBy : currentUser
				},
				success : function(form, action) {
					Ext.Msg.alert("系統消息", action.result.msg, function() {
						this.closeWin();
						salChanceStore.reload();
					}, this);
				},
				failure : function(form, action) {
					Ext.Msg.alert('系統消息', action.result.msg);
				},
				scope : this
			});
		}
	},
	// 加載指派窗體
	assign : function() {
		var record = salChanceGrid.getSelectionModel().getSelected();
		salChance_chcId = record.get('chcId');
		if (!record) {
			Ext.Msg.alert("提示", "請選擇要指派的行!");
			return;
		}
		// 顯示指派窗口
		if (!this.assignWin) {
			if (!this.fp) {
				this.fp = this.createAssignForm();
			}
			this.assignWin = this.createAssignWin();
			this.assignWin.on("close", function() {
				this.assignWin = null;
				this.fp = null;
			}, this);
		}
		this.assignWin.show();

	},
	// 進行指派操作
	doAssign : function() {
		if (this.fp.form.isValid()) {
			this.fp.form.submit({
				waitTitle : '請稍候',
				waitMsg : '正在保存......',
				url : 'sale.do?actionType=doAssign',
				method : 'POST',
				params : {
					chcId : salChance_chcId
				},
				success : function(form, action) {
					Ext.Msg.alert("系統消息", action.result.msg, function() {
						this.closeAssignWin();
						salChanceStore.reload();
					}, this);
				},
				failure : function(form, action) {
					Ext.Msg.alert('系統消息', action.result.msg);
				},
				scope : this
			});
		}
	},
	// 刪除
	removeData : function() {
		var record = salChanceGrid.getSelectionModel().getSelected();
//		if (!record) {
//			Ext.Msg.alert("提示", "請先選擇要刪除的行!");
//			return;
//		}
		Ext.MessageBox.confirm("確認刪除", "確認刪除所選數據?", function(button) {
			if (button == "yes") {
				Ext.Ajax.request({
					url : this.baseUrl + '?actionType=doDel',
					params : {
						chcId : record.get("chcId")
					},
					method : 'POST',
					success : function(response) {
						Ext.Msg.alert("系統消息", response.responseText,
								function() {
									salChanceStore.reload();
								}, this);
					},
					scope : this
				});
			}
		}, this);
	},
	// 查詢
	search : function() {
		salChanceStore.baseParams.chcCustName = Ext.get('chcCustName')
				.getValue();
		salChanceStore.baseParams.chcTitle = Ext.get('chcTitle').getValue();
		salChanceStore.baseParams.chcLinkman = Ext.get('chcLinkman').getValue();
		salChanceStore.load({
			params : {
				start : 0,
				limit : 15
			}
		});
	},
	initComponent : function() {

		CRM.saleManage.saleChance.superclass.initComponent.call(this);
		// 數據載
		salChanceStore.load({
			params : {
				start : 0,
				limit : 15
			}
		});
		this.add(salChanceGrid);
	}
});

// 銷售機會管理面板
saleChancePanel = Ext.extend(CRM.saleManage.saleChance, {
	id : 'saleChance',
	baseUrl : 'sale.do',
	createAssignForm : function() {
		return assignForm = new Ext.form.FormPanel({
			labelWidth : 70,
			frame : true,
			autoHeight : true,
			resizable : false,
			labelAlign : 'right',
			defaultType : 'textfield',
			items : [{
				xtype : 'combo',
				name : 'chcDueTo',
				width : 125,
				fieldLabel : '指派給',
				store : new Ext.data.JsonStore({
					url : 'sale.do?actionType=doFindAllCstManager',
					root : 'data',
					totalProperty : 'rowCount',
					fields : ['manName']
				}),
				displayField : 'manName',
				pageSize : 10,
				forceSelection : true,
				triggerAction : 'all',
				editable : false,
				allowBlank : false,
				blankText : '請輸入被指派人的姓名'
			}, {
				xtype : 'datefield',
				name : 'chcDueDate',
				fieldLabel : '指派時間',
				format : 'Y年m月d日',
				allowBlank : false,
				blankText : '指派時間為必填項',
				width : 125
			}]
		});
	},
	createForm : function() {
		var formPanel = new Ext.form.FormPanel({
			labelWidth : 80,
			frame : true,
			autoHeight : true,
			resizable : false,
			labelAlign : 'right',
			defaultType : 'textfield',
			items : [{
				xtype : 'fieldset',
				title : '  ',
				autoHeight : true,
				items : [{
					layout : 'column',
					border : false,
					items : [{
						columnWidth : .5,
						layout : 'form',
						defaultType : 'textfield',
						items : [{
							xtype : 'combo',
							name : 'chcCustName',
							fieldLabel : '客戶名稱',
							width : 125,
							store : new Ext.data.JsonStore({
								url : 'sale.do?actionType=doFindAllCustomer',
								root : 'data',
								fields : ['custName']
							}),
							displayField : 'custName',
							forceSelection : true,
							triggerAction : 'all',
							editable : false,
							allowBlank : false,
							blankText : '客戶名稱為必填項'
						}]
					}, {
						columnWidth : .5,
						layout : 'form',
						defaultType : 'textfield',
						items : [{
							xtype : 'numberfield',
							name : 'chcRate',
							fieldLabel : '成功機率',
							allowBlank : false,
							blankText : '成功機率為必填項',
							maxValue : 100,
							minValue : 1
						}]
					}, {
						xtype : 'hidden',
						name : 'chcStatus'
					}, {
						columnWidth : .5,
						layout : 'form',
						defaultType : 'textfield',
						items : [{
							xtype : 'hidden',
							name : 'chcId'
						}]
					}]
				}, {
					layout : 'column',
					border : false,
					items : [{
						columnWidth : .5,
						layout : 'form',
						defaultType : 'textfield',
						items : [{
							name : 'chcLinkman',
							fieldLabel : '聯系人'
						}]
					}, {
						columnWidth : .5,
						layout : 'form',
						defaultType : 'textfield',
						items : [{
							xtype : 'textfield',
							name : 'chcTel',
							fieldLabel : '聯系人電話'
						}]
					}]
				}, {
					layout : 'column',
					border : false,
					items : [{
						columnWidth : .5,
						layout : 'form',
						defaultType : 'textfield',
						items : [{
							name : 'chcSource',
							fieldLabel : '機會來源'
						}]
					}, {
						columnWidth : .5,
						layout : 'form',
						defaultType : 'textfield',
						items : [{
							name : 'chcTitle',
							fieldLabel : '概要',
							allowBlank : false,
							blankText : '概要為必填項'
						}]
					}]
				}]
			}, {
				xtype : 'fieldset',
				title : '機會描述',
				autoHeight : true,
				items : [{
					layout : 'fit',
					xtype : 'htmleditor',
					height : 125,
					width : 500,
					name : 'chcDesc',
					hideLabel : true,
					allowBlank : false,
					blankText : '創建人為必填項'
				}]
			}]
		});
		return formPanel;
	},
	createAssignWin : function() {
		return this.initAssignWin(300, 140, '營銷機會指派');
	},
	createWin : function() {
		return this.initWin(555, 360, '銷售機會管理');
	},
	initComponent : function() {
		saleChancePanel.superclass.initComponent.call(this);
	}
});

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国模套图日韩精品一区二区| 精品一区二区三区久久久| 日本一区二区成人| 欧美v日韩v国产v| 精品国产一二三| 精品成人一区二区| 久久亚洲综合av| 国产欧美一区二区精品性色| 国产欧美精品一区二区色综合朱莉 | 国产精品黄色在线观看 | 成人久久视频在线观看| 国产成人av电影在线播放| 国产**成人网毛片九色 | 91国产福利在线| 欧美在线一区二区三区| 欧美电影在线免费观看| 精品国精品自拍自在线| 国产精品久久久久久久午夜片| 亚洲免费视频成人| 日韩高清在线电影| 国产一区美女在线| 99视频热这里只有精品免费| 欧美日韩精品欧美日韩精品一 | 综合自拍亚洲综合图不卡区| 亚洲女同女同女同女同女同69| 亚洲中国最大av网站| 美腿丝袜亚洲综合| 97精品国产露脸对白| 欧美精品亚洲二区| 国产三级三级三级精品8ⅰ区| 亚洲欧美在线观看| 青椒成人免费视频| 99国产精品99久久久久久| 制服丝袜中文字幕亚洲| 国产精品久久久久久亚洲伦| 石原莉奈在线亚洲二区| 成人99免费视频| 91精品国产综合久久香蕉麻豆| 国产无一区二区| 五月天一区二区三区| 国产高清成人在线| 欧美一级国产精品| 一区二区视频在线看| 狠狠狠色丁香婷婷综合激情| 在线视频观看一区| 国产欧美日韩不卡免费| 日本91福利区| 欧美性淫爽ww久久久久无| 国产日韩精品一区| 麻豆精品在线视频| 欧美日韩1234| 一区二区三区在线视频免费观看| 国产不卡在线视频| 亚洲精品一区二区三区影院 | 精品欧美一区二区久久| 亚洲一区在线观看免费观看电影高清 | 一区二区三区视频在线看| 国产成人综合亚洲91猫咪| 日韩一区二区三区电影| 亚洲成人久久影院| 欧美在线观看视频一区二区| 国产精品传媒在线| www.在线欧美| 国产精品久久久久三级| 国产成人在线影院| 久久久精品国产免费观看同学| 免费欧美在线视频| 日韩午夜在线观看视频| 日韩国产高清影视| 日韩一区二区三区av| 美女视频第一区二区三区免费观看网站| 欧美专区在线观看一区| 一区二区不卡在线视频 午夜欧美不卡在| 成人动漫视频在线| 国产精品毛片高清在线完整版| 国产精品一区不卡| 欧美激情综合五月色丁香| 国产精品一品二品| 亚洲欧洲日韩av| 91蜜桃免费观看视频| 亚洲裸体在线观看| 欧美在线视频日韩| 日本不卡1234视频| 久久精品日产第一区二区三区高清版| 国产高清一区日本| 亚洲欧美一区二区三区久本道91 | 国产91高潮流白浆在线麻豆 | 亚洲成人一二三| 欧美在线免费播放| 蜜桃av噜噜一区| 国产亚洲视频系列| 丁香婷婷综合激情五月色| 亚洲卡通欧美制服中文| 欧美日韩中文字幕一区| 久久成人久久鬼色| 国产精品狼人久久影院观看方式| 91麻豆免费观看| 免费三级欧美电影| 欧美极品xxx| 欧美亚一区二区| 国产乱码一区二区三区| 亚洲女厕所小便bbb| 91精品国产综合久久福利软件| 国产在线看一区| 亚洲一区二区免费视频| 久久影音资源网| 欧美亚洲动漫精品| 国产.欧美.日韩| 水蜜桃久久夜色精品一区的特点| 精品久久久久久综合日本欧美| 99久久精品费精品国产一区二区| 日韩不卡一区二区三区| 中文字幕一区二区在线观看| 欧美日韩mp4| 97精品久久久午夜一区二区三区| 美女视频一区二区| 亚洲老妇xxxxxx| 国产欧美精品在线观看| 欧美一区二区播放| 色综合天天综合色综合av | 91.com在线观看| eeuss鲁片一区二区三区在线看| 天天综合色天天综合色h| 国产精品网站一区| www国产精品av| 日韩一区和二区| 欧美羞羞免费网站| 色综合久久综合| 国产成人精品三级| 精品一区二区免费| 视频在线观看一区| 亚洲一级电影视频| 亚洲日本在线天堂| 国产精品久久久久久久第一福利| 亚洲精品在线电影| 精品久久久三级丝袜| 日韩免费在线观看| 4438亚洲最大| 欧美年轻男男videosbes| 色婷婷精品久久二区二区蜜臂av| 国产一区不卡视频| 国产一区二区不卡老阿姨| 免费在线观看视频一区| 日本在线不卡视频一二三区| 亚洲国产精品一区二区久久| 亚洲人精品午夜| 亚洲精品va在线观看| 亚洲精品久久7777| 亚洲欧美色图小说| 亚洲最大色网站| 亚洲成人在线免费| 日韩电影免费在线| 秋霞av亚洲一区二区三| 麻豆精品在线播放| 国产精品一区二区久久精品爱涩| 国产一区二区在线影院| 国产成人在线观看免费网站| 国产精品一区免费在线观看| 国产98色在线|日韩| 92精品国产成人观看免费| 色婷婷精品大在线视频| 欧美日韩免费一区二区三区视频| 欧美日韩在线播放一区| 91精品国产综合久久精品性色| 日韩一级片网站| 欧美激情综合五月色丁香小说| 最新成人av在线| 亚洲国产精品久久不卡毛片| 日本视频在线一区| 国产成人综合精品三级| 色综合天天综合网天天狠天天| 欧美人牲a欧美精品| 久久青草欧美一区二区三区| 中文字幕中文在线不卡住| 亚洲综合一区二区三区| 蜜桃视频一区二区| 成人高清免费观看| 欧美精品vⅰdeose4hd| 2023国产精华国产精品| 专区另类欧美日韩| 日韩vs国产vs欧美| 国产成人精品免费视频网站| 欧美在线视频日韩| 2021国产精品久久精品| 亚洲精品v日韩精品| 久久不见久久见中文字幕免费| a美女胸又www黄视频久久| 在线播放日韩导航| 国产精品萝li| 日本女优在线视频一区二区| 成人国产电影网| 日韩一级视频免费观看在线| 亚洲欧美日韩精品久久久久| 狠狠色丁香久久婷婷综合_中 | 国产乱子伦视频一区二区三区| 在线看不卡av| 中文字幕精品三区| 毛片av一区二区三区| 欧美亚州韩日在线看免费版国语版| 国产午夜精品福利|