Skip to content

Instantly share code, notes, and snippets.

View k4m4r82's full-sized avatar
🏠
Working from home

Kamarudin k4m4r82

🏠
Working from home
View GitHub Profile
@k4m4r82
k4m4r82 / FrmMahasiswa.cs
Created October 3, 2018 04:29
lab 03 - FrmMahasiswa.cs
public partial class FrmMahasiswa : Form
{
private IList<Mahasiswa> listOfMahasiswa = new List<Mahasiswa>();
private FrmEntryMahasiswa frmEntry;
public FrmMahasiswa()
{
InitializeComponent();
}
@k4m4r82
k4m4r82 / FrmEntryMahasiswa.cs
Created October 3, 2018 04:28
lab 03 - FrmEntryMahasiswa
public partial class FrmEntryMahasiswa : Form
{
/// <summary>
/// Deklarasi tipe data untuk event menggunakan delegate
/// </summary>
/// <param name="obj"></param>
public delegate void SaveUpdateEventHandler(Mahasiswa obj);
/// <summary>
/// Deklarasi event OnSave. Event ini di panggil ketika terjadi proses input data baru
@k4m4r82
k4m4r82 / setup.iss
Last active September 9, 2017 14:17
#define AppName 'Northwind App'
#define AppDir 'Northwind'
#define BuildDir 'src\Northwind.ConsoleApp\bin\Debug'
#define AppExeName 'Northwind.ConsoleApp.exe'
#define AppVendorName 'KR Software'
#define AppCopyright 'Copyright © 2017. ' + AppVendorName
#define AppURL 'http://coding4ever.net/'
#define AppVersion GetFileVersion('src\Northwind.ConsoleApp\bin\Debug\' + AppExeName)
[Setup]
variables:
MsBuildPath: "C:\\Program Files (x86)\\MSBuild\\12.0\\Bin\\MSBuild.exe"
NugetPath: "C:\\GitLab-Runner\\NuGet\\nuget.exe"
InnoSetupPath: "C:\\Program Files (x86)\\Inno Setup 5\\ISCC.exe"
SolutionName: "Northwind.sln"
stages: # tipe dari job
- restore # stage untuk merestore paket nuget
- build # stage untuk proses build
- setup # stage untuk proses eksekusi skrip inno setup
variables:
MsBuildPath: "C:\\Program Files (x86)\\MSBuild\\12.0\\Bin\\MSBuild.exe"
NugetPath: "C:\\GitLab-Runner\\NuGet\\nuget.exe"
SolutionName: "Northwind.sln"
stages: # tipe dari job
- restore # stage untuk merestore paket nuget
- build # stage untuk proses build
cache:
using log4net;
using WindowsServiceGammu.Model;
using WindowsServiceGammu.Model.Gammu;
using WindowsServiceGammu.Repository;
namespace WindowsServiceGammu.Service
{
public class SMSGatewayTask : TaskBase
{
private ILog _log;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Linq;
using System.ServiceProcess;
using System.Text;
using log4net;
using Dapper;
using log4net;
using WindowsServiceGammu.Model.Gammu;
namespace WindowsServiceGammu.Repository
{
public interface IGammuRepository
{
/// <summary>
/// Method untuk membaca data sms di tabel inbox yang belum diproses
using Dapper;
using log4net;
using WindowsServiceGammu.Model;
namespace WindowsServiceGammu.Repository
{
public interface ISiswaRepository
{
Siswa GetByNIS(string nis);
}
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd">
<changeSet author="Administrator (generated)" id="1484641393235-1">
<createTable tableName="m_alasan_penyesuaian_stok">
<column name="alasan_penyesuaian_stok_id" type="CHAR(36)">
<constraints nullable="false"/>
</column>
<column name="alasan" type="VARCHAR(100)"/>
</createTable>
</changeSet>