Ejemplo n.º 1
0
        private void workFlowGrid_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            try
            {
                wnDm      wDm       = new wnDm();
                DataTable dt        = null;
                string    condition = "where B.F_SUB_DATE = '" + workFlowGrid.Rows[e.RowIndex].Cells["FLOW_DATE"].Value.ToString() + "' and B.FLOW_CD = '" + workFlowGrid.Rows[e.RowIndex].Cells["FLOW_CD"].Value.ToString() + "' ";
                dt = wDm.flowTracking(condition);

                if (dt != null && dt.Rows.Count > 0)
                {
                    grd_flow_item.RowCount = dt.Rows.Count;
                    for (int i = 0; i < dt.Rows.Count; i++)
                    {
                        grd_flow_item.Rows[i].Cells["T_FLOW_DATE"].Value = dt.Rows[i]["F_SUB_DATE"].ToString();
                        grd_flow_item.Rows[i].Cells["ITEM_CD"].Value     = dt.Rows[i]["ITEM_CD"].ToString();
                        grd_flow_item.Rows[i].Cells["ITEM_NM"].Value     = dt.Rows[i]["ITEM_NM"].ToString();
                        grd_flow_item.Rows[i].Cells["T_FLOW_CD"].Value   = dt.Rows[i]["FLOW_CD"].ToString();
                        grd_flow_item.Rows[i].Cells["T_FLOW_NM"].Value   = dt.Rows[i]["FLOW_NM"].ToString();
                        grd_flow_item.Rows[i].Cells["LOT_NO"].Value      = dt.Rows[i]["LOT_NO"].ToString();
                    }
                    pnl_flow_item.Visible = true;
                }
                else
                {
                    grd_flow_item.Rows.Clear();
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show("시스템 오류" + ex.ToString());
            }
        }