private void InitialData(itemBLL u)
        {
            if (!string.IsNullOrEmpty(u.item_code))
            {
                cmbCat.Text      = u.item_cat;
                txtItemCode.Text = u.item_code;
                txtItemName.Text = u.item_name;

                cmbMaterialType.Text = u.item_material;
                cmbMasterBatch.Text  = u.item_mb;
                txtMBRate.Text       = u.item_mb_rate.ToString();
                txtColor.Text        = u.item_color;

                txtQuoTon.Text  = u.item_quo_ton.ToString();
                txtBestTon.Text = u.item_best_ton.ToString();
                txtProTon.Text  = u.item_pro_ton.ToString();

                txtQuoCT.Text     = u.item_quo_ct.ToString();
                txtProCTFrom.Text = u.item_pro_ct_from.ToString();
                txtProCTTo.Text   = u.item_pro_ct_to.ToString();
                txtCapacity.Text  = u.item_capacity.ToString();
                txtQuoPWPcs.Text  = u.item_quo_pw_pcs.ToString();
                txtQuoRWPcs.Text  = u.item_quo_rw_pcs.ToString();
                txtProPWPcs.Text  = u.item_pro_pw_pcs.ToString();
                txtProRWPcs.Text  = u.item_pro_rw_pcs.ToString();

                txtProPWShot.Text      = u.item_pro_pw_shot.ToString();
                txtProRWShot.Text      = u.item_pro_rw_shot.ToString();
                txtProCooling.Text     = u.item_pro_cooling.ToString();
                txtWastageAllowed.Text = u.item_wastage_allowed.ToString();

                if (u.item_assembly.ToString() != null)
                {
                    if (u.item_assembly == 1)
                    {
                        cbAssembly.Checked = true;
                    }
                    else
                    {
                        cbAssembly.Checked = false;
                    }
                }
                else
                {
                    cbAssembly.Checked = false;
                }

                if (u.item_production.ToString() != null)
                {
                    if (u.item_production == 1)
                    {
                        cbProduction.Checked = true;
                    }
                    else
                    {
                        cbProduction.Checked = false;
                    }
                }
                else
                {
                    cbProduction.Checked = false;
                }


                if (!dalItem.getCatName(u.item_code).Equals("Part"))
                {
                    if (dalMaterial.checkIfZeroCost(u.item_code))
                    {
                        cbZeroCost.Checked = true;
                    }
                    else
                    {
                        cbZeroCost.Checked = false;
                    }
                }
            }
            else
            {
                cmbCat.Text = u.item_cat;
                InitialData();
            }
        }