Ejemplo n.º 1
0
 protected void bt_Search_Click(object sender, EventArgs e)
 {
     if ((int)ViewState["VolumeID"] == 0)
     {
         if (SVM_SalesVolumeBLL.CheckSalesVolume((int)ViewState["ClientID"], DateTime.Parse(tbx_VolumeDate.Text),
                                                 (int)ViewState["Type"], int.Parse(ddl_Flag.SelectedValue)) > 0)
         {
             MessageBox.Show(this, "该客户在当前日期:" + tbx_VolumeDate.Text + " 已经填报过数据,请检查以免重复录入!");
         }
     }
     if (bt_Save.Visible)
     {
         SaveMyViewState();
     }
     gv_List.PageIndex = 0;
     BindGrid();
 }
Ejemplo n.º 2
0
    protected void bt_Search_Click(object sender, EventArgs e)
    {
        if ((int)ViewState["VolumeID"] == 0)
        {
            int transferinclient = 0;

            if (int.TryParse(select_Client.SelectValue, out transferinclient) &&
                SVM_SalesVolumeBLL.CheckSalesVolume(transferinclient, DateTime.Parse(tbx_VolumeDate.Text), 6, 1) > 0)
            {
                MessageBox.Show(this, "该客户在当前日期:" + tbx_VolumeDate.Text + " 已经填报过数据,请检查以免重复录入!");
            }
        }
        if (bt_Save.Visible)
        {
            SaveMyViewState();
        }
        gv_List.PageIndex = 0;
        BindGrid();
    }