摘要: ALTER view [dbo].[BOM_STANDARD_OPERATIONS_V]asSELECT WL.LINE_CODE, BSO.SEQUENCE_NUM, BSO.LINE_ID, BSO.OPERATION_TYPE, BSO.STANDARD_OPERATION_ID, BSO.OPERATION_CODE, BSO.ORGANIZATION_ID, BSO.DEPARTMENT... 阅读全文
posted @ 2010-09-18 18:08 leslie116 阅读(336) 评论(0) 推荐(0) 编辑
摘要: private void OnDelete(object sender, EventArgs e) { if (this.IsCurrentCellInEditMode) { if (this.EndEdit()) { this.DeleteSelectedRows(); } } else this.DeleteSelectedRows(); } 阅读全文
posted @ 2010-09-05 00:01 leslie116 阅读(128) 评论(0) 推荐(0) 编辑
摘要: private bool autoBuildCompleteString = false; if (this.AutoBuildCompleteString) { this.Edit.AutoCompleteSource = AutoCompleteSource.CustomSource; this.Edit.AutoCompleteMode = AutoCompleteMode.SuggestA... 阅读全文
posted @ 2010-08-31 20:58 leslie116 阅读(95) 评论(0) 推荐(0) 编辑
摘要: protectedoverrideboolProcessDialogKey(KeyskeyData){if(keyData==Keys.Enter&&this.ActiveControlisTextBox){keyData=Keys.Tab;}returnbase.ProcessDialogKey(keyData);} 阅读全文
posted @ 2010-08-30 22:23 leslie116 阅读(199) 评论(0) 推荐(0) 编辑
摘要: private static SqlParameter[] DiscoverSpParameterSet(SqlConnection connection, string spName, bool includeReturnValueParameter, DataTable dt, SqlTransaction transaction) { using (SqlCommand cmd = new ... 阅读全文
posted @ 2010-08-30 22:07 leslie116 阅读(325) 评论(0) 推荐(0) 编辑
摘要: protected override void OnDataError(bool displayErrorDialogIfNoHandler, DataGridViewDataErrorEventArgs e) { if ((e.Exception) is ConstraintException) { //DataGridView view = (DataGridView)sender; this... 阅读全文
posted @ 2010-08-30 22:06 leslie116 阅读(278) 评论(0) 推荐(0) 编辑
摘要: private void button1_Click(object sender, EventArgs e) { printForm1.PrintAction = System.Drawing.Printing.PrintAction.PrintToPreview; //在PrintAction可選擇 PrintToFile、PrintToPreview(列印預覽)、PrintToPrinte... 阅读全文
posted @ 2010-08-13 22:16 leslie116 阅读(197) 评论(0) 推荐(0) 编辑
摘要: private void OnPrintPreview(object sender,EventArgs e) { DataGridView dgv = null; Control control; for (control = this.ActiveControl; (control != null) && !object.ReferenceEquals(this, control... 阅读全文
posted @ 2010-08-11 07:08 leslie116 阅读(178) 评论(0) 推荐(0) 编辑
摘要: private static void EnableFormat(ReportViewer viewer, string formatName) { const BindingFlags Flags = BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance; FieldInfo m_previewService =... 阅读全文
posted @ 2010-07-18 08:24 leslie116 阅读(627) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// Convert value to string /// </summary> /// <param name="context"></param> /// <param name="culture"></param> /// <param name="value"></pa... 阅读全文
posted @ 2010-07-09 23:26 leslie116 阅读(201) 评论(0) 推荐(0) 编辑