This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*** Service | |
public void Edit(BillingItemViewModel item) | |
{ | |
var acc = new AccountBook | |
{ | |
Id = item.Id, | |
Categoryyy = item.BillType, | |
Dateee = item.BillDate, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// *** Service | |
public void Edit(BillingItemViewModel item) | |
{ | |
var acc = new AccountBook | |
{ | |
Id = item.Id, | |
Categoryyy = item.BillType, | |
Dateee = item.BillDate, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Thread.Sleep(3 * 1000); //暫停一下, 看效果 | |
@section Scripts { | |
@Scripts.Render("~/bundles/jqueryval") | |
@Scripts.Render("~/bundles/jqueryajax") | |
<script type="text/javascript"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function postPage(page) { | |
var targetFormId = '#frmQuery'; | |
$('#PageIndex').val(page); | |
$(targetFormId).submit(); | |
}; //end of postPage(page) | |
function setSubmitInGoTo() { | |
//找出頁碼, 並改為呼叫 postPage(page) 作 submit | |
var gotoFormClass = '.PagedList-goToPage'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void PrintPdfByEvoPdf(string fileName, string printerName) | |
{ | |
// create the PDF printer | |
PdfPrint pdfPrint = new PdfPrint(); | |
// for WatermarkText | |
pdfPrint.PagePrintedEvent += pdfPrint_PagePrintedEvent; | |
// set the license key |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<SQL.1> | |
USE AdventureWorks2014 | |
GO | |
WITH depth_results | |
AS | |
( SELECT | |
[index_id], | |
[index_type_desc], | |
[index_depth], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Security.Cryptography.X509Certificates; | |
using Microsoft.VisualStudio.TestTools.UnitTesting; | |
using NSubstitute; | |
//============================================= | |
//http://nsubstitute.github.io/help/getting-started/ | |
//============================================= | |
//TestCategory 的中文名稱叫作 "特性", 可依 TestCategory 找到測試方法 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using ExpectedObjects; | |
using System; | |
using System.Collections.Generic; | |
namespace ExpectedObjectsSample01 | |
{ | |
internal class Program | |
{ | |
private static void Main(string[] args) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<!-- CDN for Bootstrap 4 CSS --> | |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.2/css/bootstrap.min.css"> | |
<!-- CDN for Bootstrap Font Awesome CSS --> | |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"> |
![01.png](https://gist.github.com/jasper-lai/d74431e3dac469426bb709676be443c1/raw/092b7b374e361a19474ab8f59a5c760f657a018c/01.png)
OlderNewer