protected void link_send_Click(object sender, EventArgs e) { HPCBusinessLogic.DAL.T_Album_CategoriesDAL T_Album = new HPCBusinessLogic.DAL.T_Album_CategoriesDAL(); if (TabContainer1.ActiveTabIndex == 0) { foreach (DataGridItem item in grdListCate.Items) { Label lblcatid = (Label)item.FindControl("lblcatid"); int _id = int.Parse(lblcatid.Text); CheckBox check = (CheckBox)item.FindControl("optSelect"); if (check.Checked) { T_Album.Update_Status(_id, 2, _user.UserID); } WriteLogHistory2Database.WriteHistory2Database(_user.UserID, _user.UserFullName, "Gửi duyệt", Request["Menu_ID"].ToString(), "[Gửi duyệt] [Phóng sự mới] [Thao tác Gửi duyệt Phóng sự ảnh: " + T_Album.load_T_Album_Categories(Convert.ToInt32(lblcatid.Text)).Cat_Album_Name + "]", _id, ConstAction.GocAnh); } LoadPSmoi(); } else if (TabContainer1.ActiveTabIndex == 2) { foreach (DataGridItem item in DataGrid_tralai.Items) { Label lblcatid = (Label)item.FindControl("lblcatid"); CheckBox check = (CheckBox)item.FindControl("optSelect"); if (check.Checked) { T_Album.Update_Status(int.Parse(lblcatid.Text), 2, _user.UserID); } WriteLogHistory2Database.WriteHistory2Database(_user.UserID, _user.UserFullName, "Gửi duyệt", Request["Menu_ID"].ToString(), "[Gửi duyệt] [Phóng sự trả lại] [Thao tác Gửi duyệt Phóng sự ảnh: " + T_Album.load_T_Album_Categories(Convert.ToInt32(lblcatid.Text)).Cat_Album_Name + "]", 0, ConstAction.GocAnh); } LoadPStralai(); } }
protected void link_HuyXB_Click(object sender, EventArgs e) { HPCBusinessLogic.DAL.T_Album_CategoriesDAL T_Album = new HPCBusinessLogic.DAL.T_Album_CategoriesDAL(); T_Album_Categories _obj = new T_Album_Categories(); foreach (DataGridItem item in DataGrid_DaXB.Items) { Label lblcatid = (Label)item.FindControl("lblcatid"); int _id = Convert.ToInt32(lblcatid.Text); TextBox txtGhichu = (TextBox)item.FindControl("txtGhichu"); CheckBox check = (CheckBox)item.FindControl("optSelect"); if (check.Checked) { string _sql = "Update T_Album_Categories set Comment='" + txtGhichu.Text + "' where Cat_Album_ID =" + _id; HPCDataProvider.Instance().ExecSql(_sql); T_Album.Update_Status(_id, 5, _user.UserID); } WriteLogHistory2Database.WriteHistory2Database(_user.UserID, _user.UserFullName, "Hủy xuất bản", Request["Menu_ID"].ToString(), "[Xuất bản] [Hủy xuất bản Phóng sự ảnh: " + T_Album.load_T_Album_Categories(Convert.ToInt32(lblcatid.Text)).Cat_Album_Name + "]", _id, ConstAction.GocAnh); } LoadPSXB(); }