Esempio n. 1
0
        private void InsertBusiness(object sender, EventArgs e)
        {
            var frm = new BusinessSheetPopup();

            if (frm.ShowDialog() == DialogResult.OK)
            {
            }
        }
Esempio n. 2
0
        private void BusinessFix(object sender, DataGridViewCellEventArgs e)
        {
            DataGridView view = (DataGridView)sender;

            if ("Fix".Equals(view.Columns[e.ColumnIndex].Name))
            {
                if (e.RowIndex > -1)
                {
                    DataGridViewRow row = view.Rows[e.RowIndex];

                    BF = true;
                    DateTime AcceptTime = "".Equals(row.Cells["ACCEPT_DT"].Value.ToString())
                        ? DateTime.Now : DateTime.Parse(row.Cells["ACCEPT_DT"].Value.ToString());

                    var frm = new BusinessSheetPopup()
                    {
                        DOC_ID       = row.Cells["DOC_ID"].Value.ToString(),
                        SUBJECT      = row.Cells["SUBJECT"].Value.ToString(),
                        COMP_CD      = row.Cells["COMP_CD"].Value.ToString(),
                        COMP_USER_ID = row.Cells["COMP_USER_ID"].Value.ToString(),
                        ACCEPT_DT    = AcceptTime,
                        USER_ID      = row.Cells["USER_ID"].Value.ToString(),
                        COST         = row.Cells["COST"].Value.ToString(),
                        PROJECT_ID   = row.Cells["PRO_ID"].Value.ToString(),

                        BF = BF
                    };

                    if (frm.ShowDialog() == DialogResult.OK)
                    {
                        GetBusinessHistory(gd_List, null);
                        BF = false;
                    }
                }
            }
        }