Exemple #1
0
    //删除我的洗唛
    protected void BtnDelMyXM_Click(object sender, DirectEventArgs e)
    {
        int Success = 0, Failed = 0;
        RowSelectionModel sm = Y_CareLabel_Grid.SelectionModel.Primary as RowSelectionModel;

        foreach (SelectedRow row in sm.SelectedRows)
        {
            Y_StyleCareLabel _Y_CareLabel = new Y_StyleCareLabel();
            _Y_CareLabel.Id = int.Parse(row.RecordID);
            if (WMSFactory.Y_StyleCareLabel.Del(_Y_CareLabel))
            {
                Success++;
            }
            else
            {
                Failed++;
            }
        }
        Y_CareLabel_Grid.Reload();
        if (Failed > 0)
        {
            MsgBox.MessageShow("删除操作完成,成功" + Success.ToString() + "条,失败" + Failed.ToString() + "条!", "OK");
        }
        else
        {
            MsgBox.NotifiShow("删除操作完成,成功" + Success.ToString() + "条,失败" + Failed.ToString() + "条!", "OK");
        }
    }
Exemple #2
0
    //查找
    protected void BtnSearch_Click(object sender, EventArgs e)
    {
        StyleIDHidden.Text = "";
        lbinfo.Text        = "";
        IList <Y_StyleFoundation> style = WMSFactory.Y_StyleFoundation.FindByCondition(string.Format("(StyleId='{0}' OR OldStyleId='{0}')", TxtStyleId.Text.Trim().Replace("'", "").Replace("--", "")));

        if (style.Count <= 0)
        {
            lbinfo.Text = "没有找到任何记录,请检查款号!";
            return;
        }
        Y_StyleFoundation sf = style[0];

        lbbrand.Text       = sf.BrName;
        lbpm.Text          = sf.S_Name;
        lbproduction.Text  = sf.Production;
        StyleIDHidden.Text = sf.StyleId;
        Y_CareLabel_Grid.Reload();
    }
Exemple #3
0
    //保存已经选择的图片
    protected void BtnSaveSelected_Click(object sender, DirectEventArgs e)
    {
        if (StyleIDHidden.Text == "")
        {
            MsgBox.MessageShow("请先输入款式编号,然后单击查询按钮!", "ERROR");
            return;
        }
        RowSelectionModel sm = CL_Grid.SelectionModel.Primary as RowSelectionModel;

        foreach (SelectedRow row in sm.SelectedRows)
        {
            Y_StyleCareLabel _Y_CareLabel = new Y_StyleCareLabel();
            _Y_CareLabel.LbId    = int.Parse(row.RecordID);
            _Y_CareLabel.StyleId = StyleIDHidden.Text;
            WMSFactory.Y_StyleCareLabel.Add(_Y_CareLabel);
        }
        CL_Win.Hide();
        CL_WinEdit.Hide();
        Y_CareLabel_Grid.Reload();
    }