C# farpoint로 조회,입력,수정,저장,삭제 프로그램입니다.
닫기
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
해당 자료는 9페이지 까지만 미리보기를 제공합니다.
9페이지 이후부터 다운로드 후 확인할 수 있습니다.

소개글

C# farpoint로 조회,입력,수정,저장,삭제 프로그램입니다. 에 대한 보고서 자료입니다.

목차

없음[ProjectTest]
  [bin]
  [obj]
  [Properties]
  BookRoom01.cs
  BookRoom01.Designer.cs
  BookRoom01.resx
  DBCONNECT.cs
  Program.cs
  ProjectTest.csproj

ProjectTest.sln
ProjectTest.suo
USERTABLE.bak



1.75MB

파일 28
폴더 8

본문내용

farpoint 스프레드를 이용한 입력 수정 삭제 저장 프로그램입니다.
MSSQL2012 로 연동되있구요 압출파일안에 DB파일도 있습니다.
c#에 내장되어있는 datagrid 컨트롤 보다 훨씬 쉽고 유용하게 쓰일수 있습니다.


특히 대학생여러분 학교 프로젝트할때 farpoint로 프로그램을 만들시 장담하는데 오히려 교수님이 당황하실 겁니다.
기본적인 조회와 저장, 입력, 수정, 삭제가 있구요

소스를 보시면 약간 쉬우면서도 일부러 어질러져있어요
직접보시면서 수정하시라고 일부러 어질러놨습니다. 정리만 하시면 될 거에요^^

보기에는 되게 간단해 보이는 화면인데 이래뵈도 5개모듈이 포함되어있어요
farpoint 공부하실분 이거 하나로 충분합니다. 어떤식으로든지 응용할수 있습니다.^^





BookRoom01.cs



using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
using System.Collections;
namespace ProjectTest
{
  public partial class BookRoom01 : Form
  {
    public SqlConnection sct;
    private int no = 0;
    private SqlCommand scm = null;
    private string inup;


    public void cmb(ComboBox cb, ArrayList list, string val)
    {
      cb.SelectedValue = val;
      cb.DataSource = list;
      cb.ValueMember = "val";
      cb.DisplayMember = "dis";
    }

    public static SqlConnection ConnectionProvider()
    {
      return new SqlConnection(DBCONNECT.connect);
    }

    public DataSet getDataSet(string query)
    {
      SqlDataAdapter qeqp = null;
      DataSet ds = null;
      sct = ConnectionProvider();
      qeqp = new SqlDataAdapter(query, sct);
      ds = new DataSet();
      qeqp.Fill(ds, "tb");
      return ds;
    }

    public int nonquery(string query)
    {
      sct = ConnectionProvider();
      no = 0;
      scm = new SqlCommand(query, sct);

      sct.Open();
      no = scm.ExecuteNonQuery();
      
      return no;
    }

    public BookRoom01()
    {
      InitializeComponent();
    }

    private void BookRoom01_Load(object sender, EventArgs e)
    {
      yn();
      
      tableSrh();  
    }

    private void tableSrh()
    {
      string test = "select userid,usernm,userno,major,joindt,quitdt,yn from usertable "
        + "where 1=1 and usernm like '%" + srhusernm.Text + "%' and userno like '%" + srhuserno.Text + "%'";

키워드

c#,   Farpoint,   Spread,   datagrid,   mssql2012,   mssql,   visualstudio,   파포인트
  • 가격1,000
  • 페이지수28페이지
  • 등록일2014.01.21
  • 저작시기2014.1
  • 파일형식압축파일(zip)
  • 자료번호#902535
본 자료는 최근 2주간 다운받은 회원이 없습니다.
청소해
다운로드 장바구니