Example #1
0
 protected void chkMRPFlag_CheckedChanged(object sender, EventArgs e)
 {
     cboMRPFlag.Enabled = !chkMRPFlag.Checked;
     if (chkMRPFlag.Checked && txtItemCode.Text != string.Empty)
     {
         BOMBIZ             bizBOM = new BOMBIZ();
         DTO.ItemProcessDTO dto    = bizBOM.LoadLocationandMRPFLag((NZString)txtItemCode.Text);
         //cboMRPFlag.SelectedValue = dto.MRP_FLAG.ToString();
     }
 }
Example #2
0
 protected void chkChildOrderLoc_CheckedChanged(object sender, EventArgs e)
 {
     cboOrderLoc.Enabled = !chkChildOrderLoc.Checked;
     if (chkChildOrderLoc.Checked && txtItemCode.Text != string.Empty)
     {
         BOMBIZ             bizBOM = new BOMBIZ();
         DTO.ItemProcessDTO dto    = bizBOM.LoadLocationandMRPFLag((NZString)txtItemCode.Text);
         //cboOrderLoc.SelectedValue = dto.ORDER_LOC_CD.ToString();
     }
 }
Example #3
0
        private void SetOrderLoactionandMRPFlag()
        {
            for (int iRow = 0; iRow < shtView.RowCount; iRow++)
            {
                if (Convert.ToString(shtView.Cells[iRow, (int)eColView.CHILD_ORDER_LOC].Value) == string.Empty)
                {
                    BOMBIZ         bizBOM = new BOMBIZ();
                    ItemProcessDTO dto    = bizBOM.LoadLocationandMRPFLag(Convert.ToString(shtView.Cells[iRow, (int)eColView.ITEM_CD].Value));
                    if (dto != null)
                    {
                        //shtView.Cells[iRow, (int)eColView.CHILD_ORDER_LOC].Value = dto.ORDER_LOC_CD;
                        shtView.Cells[iRow, (int)eColView.CHILD_ORDER_LOC].ForeColor = Color.Gray;
                        //shtView.Cells[iRow, (int)eColView.CHILD_ORDER_LOC].HorizontalAlignment = FarPoint.Win.Spread.she
                    }
                }
                else
                {
                    shtView.Cells[iRow, (int)eColView.CHILD_ORDER_LOC].ForeColor = Color.Black;
                }

                if (Convert.ToString(shtView.Cells[iRow, (int)eColView.MRP_FLAG].Value) == string.Empty)
                {
                    BOMBIZ         bizBOM = new BOMBIZ();
                    ItemProcessDTO dto    = bizBOM.LoadLocationandMRPFLag(Convert.ToString(shtView.Cells[iRow, (int)eColView.ITEM_CD].Value));
                    if (dto != null)
                    {
                        //shtView.Cells[iRow, (int)eColView.MRP_FLAG].Value = dto.MRP_FLAG.StrongValue == string.Empty ? "" : bizBOM.LoadMRPFLag(dto.MRP_FLAG);
                        shtView.Cells[iRow, (int)eColView.MRP_FLAG].ForeColor = Color.Gray;
                    }
                }
                else
                {
                    shtView.Cells[iRow, (int)eColView.MRP_FLAG].ForeColor = Color.Black;
                }
            }
        }