//清除条件
        private void clearCondition()
        {
            DropDownListFatherLogic.ClearSelection();
            DropDownListFatherLogic.Items[0].Selected = true;

            DropDownListwarehouse.ClearSelection();
            DropDownListwarehouse.Items[0].Selected = true;

            DropDownListposition.ClearSelection();
            DropDownListposition.Items[0].Selected = true;

            TextBoxattribute.Text   = string.Empty;
            TextBoxcgmode.Text      = string.Empty;
            TextBoxconfirmtime.Text = string.Empty;
            TextBoxeng.Text         = string.Empty;

            TextBoxgb.Text            = string.Empty;
            TextBoxmarterialid.Text   = string.Empty;
            TextBoxmarterialname.Text = string.Empty;
            TextBoxnum.Text           = string.Empty;
            TextBoxpmode.Text         = string.Empty;
            TextBoxprj.Text           = string.Empty;
            TextBoxptc.Text           = string.Empty;
            TextBoxstandard.Text      = string.Empty;
            TextBoxtaskid.Text        = string.Empty;
        }
        protected void GetwarehousePosition()
        {
            if (DropDownListwarehouse.SelectedIndex != 0)
            {
                string    sqltext = "select distinct wl_id,wl_name from TBWS_LOCATION where wl_wsid ='" + DropDownListwarehouse.SelectedValue + "' order by wl_name";
                DataTable dt      = DBCallCommon.GetDTUsingSqlText(sqltext);
                DropDownListposition.DataSource     = dt;
                DropDownListposition.DataTextField  = "wl_name";
                DropDownListposition.DataValueField = "wl_id";
                DropDownListposition.DataBind();
            }
            else
            {
                DropDownListposition.Items.Clear();
            }
            ListItem lsitem = new ListItem("--请选择--", "0");

            DropDownListposition.Items.Insert(0, lsitem);
        }