コード例 #1
0
ファイル: BusinessManager.cs プロジェクト: mycadmin/UI
        //담당자 변경
        private void SetSchedule(object sender, DataGridViewCellEventArgs e)
        {
            DataGridView view = (DataGridView)sender;

            if (e.RowIndex > -1)
            {
                if ("SAVE".Equals(view.Columns[e.ColumnIndex].Name))
                {
                    DateTime date = DateTime.Parse(gd_schedule.GetSelectString("SCH_TM").ToString());
                    SF = true;

                    var frm = new BusinessSchedulePopup()
                    {
                        DOC_NM      = gd_List.GetSelectString("SUBJECT"),
                        DOC_ID      = gd_List.GetSelectString("DOC_ID"),
                        USER_ID     = gd_schedule.GetSelectString("USER_ID"),
                        SCH_ID      = gd_schedule.GetSelectString("SCH_ID"),
                        SCH_DESC    = gd_schedule.GetSelectString("SCH_DESC"),
                        DATE        = date,
                        ScheduleFix = SF
                    };
                    if (frm.ShowDialog() == DialogResult.OK)
                    {
                        GetItemInfo(gd_List, null);
                        SF = false;
                    }
                    //ClearSearchData();
                    //SetSearchData("DOC_ID", gd_schedule.Rows[e.RowIndex].Cells["SCH_ID"].Value);
                    //SetSearchData("ACCEPT_TM", gd_schedule.Rows[e.RowIndex].Cells["SCH_TM"].Value);
                    //SetSearchData("USER_ID_LST", gd_schedule.Rows[e.RowIndex].Cells["USER_ID"].Value);
                    //SetSearchData("CRT_USER_ID", DTOFactory.UserId);
                    //SetServiceId("SetScheduleManager");

                    //DTOFactory.Action();

                    //try
                    //{
                    //    DTOFactory.Transaction(new ReportDTO());

                    //    GetItemInfo(gd_List, null);
                    //}
                    //catch (Exception ex)
                    //{
                    //    ViewMessage.Error(ex.Message);
                    //}

                    //DTOFactory.Complete();
                }
                else if ("VIEW".Equals(view.Columns[e.ColumnIndex].Name))
                {
                    GetDocumentList(e.RowIndex);
                }
            }
        }
コード例 #2
0
ファイル: BusinessManager.cs プロジェクト: mycadmin/UI
        //사업추가
        private void InsertSchedule(object sender, EventArgs e)
        {
            BusinessSchedulePopup frm = new BusinessSchedulePopup()
            {
                DOC_NM = gd_List.GetSelectString("SUBJECT"),
                DOC_ID = gd_List.GetSelectString("DOC_ID")
            };

            if (frm.ShowDialog() == DialogResult.OK)
            {
                GetItemInfo(gd_List, null);
            }
        }