Beispiel #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     //System.Threading.Thread.Sleep(500);
     // button1.Text = "test";
     //if (conLabel3.Location.Y > 0)
     //{
     //    conLabel3.Animate(new YLocationEffect(), EasingFunctions.QuadEaseIn, 10, 2000, 0, false, 1);
     //}
     //else
     //{
     //    conLabel3.Animate(new YLocationEffect(), EasingFunctions.QuadEaseIn, 5, 2000, 0, false, 1);
     //}
     //conLabel3.Animate(new YLocationEffect(), EasingFunctions.QuadEaseIn, 10, 2000, 0, false, -1);
     //conLabel3.Location = new Point(conLabel3.Location.X, conLabel3.Location.Y + 10);
     Popup.pop오류리포트 msg = new Popup.pop오류리포트();
     msg.ShowDialog();
 }
Beispiel #2
0
 private void 마지막공지()
 {
     try
     {
         wnDm      wDm = new wnDm();
         DataTable dt  = wDm.fn_last_Notice();
         if (dt != null && dt.Rows.Count > 0)
         {
             noti_title.Text   = dt.Rows[0]["TITLE"].ToString();
             noti_comment.Text = dt.Rows[0]["CONTENT"].ToString();
             noti_time.Text    = dt.Rows[0]["INTIME"].ToString();
             noti_writer.Text  = dt.Rows[0]["STAFF_NM"].ToString();
         }
     }
     catch (Exception ex)
     {
         Popup.pop오류리포트 msg = new Popup.pop오류리포트(ex.Message + " - " + ex.ToString());
         msg.ShowDialog();
     }
 }
Beispiel #3
0
        public void insert(String date, String title, String memo)
        {
            try
            {
                wnDm wDm = new wnDm();

                wnAdo         wAdo = new wnAdo();
                StringBuilder sb   = new StringBuilder();

                sb.AppendLine("	insert  into F_DATES (Title,date,Memo,color) values ('" + title + "','" + date + "','" + memo + "','" + scolor16 + "')");

                SqlCommand sCommand = new SqlCommand(sb.ToString());

                int qResult = wAdo.SqlCommandEtc(sCommand, "insert_RAW_CHK_EXAM_TB");
            }
            catch (Exception e)
            {
                wnLog.writeLog(wnLog.LOG_ERROR, e.Message + " - " + e.ToString());
                Popup.pop오류리포트 msg = new pop오류리포트(e.Message + " - " + e.ToString());
                msg.ShowDialog();
                return;
            }
        }
Beispiel #4
0
        private void clear()
        {
            try
            {
                wnDm wDm = new wnDm();

                wnAdo         wAdo = new wnAdo();
                StringBuilder sb   = new StringBuilder();

                sb.AppendLine("	delete from F_DATES where Date='" + dtp.Value.ToString().Substring(0, 10) + "' ");

                SqlCommand sCommand = new SqlCommand(sb.ToString());

                int qResult = wAdo.SqlCommandEtc(sCommand, "insert_RAW_CHK_EXAM_TB");
            }
            catch (Exception e)
            {
                wnLog.writeLog(wnLog.LOG_ERROR, e.Message + " - " + e.ToString());
                Popup.pop오류리포트 msg = new pop오류리포트(e.Message + " - " + e.ToString());
                msg.ShowDialog();
                return;
            }
        }